@quantiya/codevibe-claude-plugin 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/plugin.json +1 -1
- package/bin/codevibe-claude +13 -0
- package/dist/http-api.js +1 -1
- package/dist/http-api.js.map +1 -1
- package/hooks/session-start.sh +10 -4
- package/node_modules/@quantiya/codevibe-core/README.md +178 -0
- package/node_modules/@quantiya/codevibe-core/bin/codevibe.js +7 -0
- package/node_modules/@quantiya/codevibe-core/dist/appsync/appsync-client.d.ts +132 -0
- package/node_modules/@quantiya/codevibe-core/dist/appsync/appsync-client.js +568 -0
- package/node_modules/@quantiya/codevibe-core/dist/appsync/index.d.ts +2 -0
- package/node_modules/@quantiya/codevibe-core/dist/appsync/index.js +10 -0
- package/node_modules/@quantiya/codevibe-core/dist/appsync/queries.d.ts +16 -0
- package/node_modules/@quantiya/codevibe-core/dist/appsync/queries.js +189 -0
- package/node_modules/@quantiya/codevibe-core/dist/auth/auth-cli.d.ts +5 -0
- package/node_modules/@quantiya/codevibe-core/dist/auth/auth-cli.js +217 -0
- package/node_modules/@quantiya/codevibe-core/dist/auth/auth-service.d.ts +53 -0
- package/node_modules/@quantiya/codevibe-core/dist/auth/auth-service.js +310 -0
- package/node_modules/@quantiya/codevibe-core/dist/auth/index.d.ts +2 -0
- package/node_modules/@quantiya/codevibe-core/dist/auth/index.js +9 -0
- package/node_modules/@quantiya/codevibe-core/dist/config/config.d.ts +53 -0
- package/node_modules/@quantiya/codevibe-core/dist/config/config.js +123 -0
- package/node_modules/@quantiya/codevibe-core/dist/config/index.d.ts +2 -0
- package/node_modules/@quantiya/codevibe-core/dist/config/index.js +8 -0
- package/node_modules/@quantiya/codevibe-core/dist/crypto/crypto-service.d.ts +118 -0
- package/node_modules/@quantiya/codevibe-core/dist/crypto/crypto-service.js +284 -0
- package/node_modules/@quantiya/codevibe-core/dist/crypto/index.d.ts +1 -0
- package/node_modules/@quantiya/codevibe-core/dist/crypto/index.js +9 -0
- package/node_modules/@quantiya/codevibe-core/dist/index.d.ts +14 -0
- package/node_modules/@quantiya/codevibe-core/dist/index.js +68 -0
- package/node_modules/@quantiya/codevibe-core/dist/keychain/index.d.ts +1 -0
- package/node_modules/@quantiya/codevibe-core/dist/keychain/index.js +8 -0
- package/node_modules/@quantiya/codevibe-core/dist/keychain/keychain-manager.d.ts +125 -0
- package/node_modules/@quantiya/codevibe-core/dist/keychain/keychain-manager.js +375 -0
- package/node_modules/@quantiya/codevibe-core/dist/logger/index.d.ts +1 -0
- package/node_modules/@quantiya/codevibe-core/dist/logger/index.js +8 -0
- package/node_modules/@quantiya/codevibe-core/dist/logger/logger.d.ts +35 -0
- package/node_modules/@quantiya/codevibe-core/dist/logger/logger.js +142 -0
- package/node_modules/@quantiya/codevibe-core/dist/prompt-parser.d.ts +39 -0
- package/node_modules/@quantiya/codevibe-core/dist/prompt-parser.js +236 -0
- package/node_modules/@quantiya/codevibe-core/dist/session/index.d.ts +2 -0
- package/node_modules/@quantiya/codevibe-core/dist/session/index.js +7 -0
- package/node_modules/@quantiya/codevibe-core/dist/session/session-resume.d.ts +55 -0
- package/node_modules/@quantiya/codevibe-core/dist/session/session-resume.js +151 -0
- package/node_modules/@quantiya/codevibe-core/dist/types/auth.d.ts +15 -0
- package/node_modules/@quantiya/codevibe-core/dist/types/auth.js +3 -0
- package/node_modules/@quantiya/codevibe-core/dist/types/encryption.d.ts +54 -0
- package/node_modules/@quantiya/codevibe-core/dist/types/encryption.js +3 -0
- package/node_modules/@quantiya/codevibe-core/dist/types/events.d.ts +74 -0
- package/node_modules/@quantiya/codevibe-core/dist/types/events.js +28 -0
- package/node_modules/@quantiya/codevibe-core/dist/types/index.d.ts +4 -0
- package/node_modules/@quantiya/codevibe-core/dist/types/index.js +22 -0
- package/node_modules/@quantiya/codevibe-core/dist/types/session.d.ts +59 -0
- package/node_modules/@quantiya/codevibe-core/dist/types/session.js +22 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/CHANGELOG.md +274 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/CONTRIBUTING.md +18 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/LICENSE.md +9 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/README.md +466 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/bin/uuid +2 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/commonjs-browser/index.js +79 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/commonjs-browser/md5.js +223 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/commonjs-browser/native.js +11 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/commonjs-browser/nil.js +8 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/commonjs-browser/parse.js +45 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/commonjs-browser/regex.js +8 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/commonjs-browser/rng.js +25 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/commonjs-browser/sha1.js +104 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/commonjs-browser/stringify.js +44 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/commonjs-browser/v1.js +107 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/commonjs-browser/v3.js +16 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/commonjs-browser/v35.js +80 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/commonjs-browser/v4.js +43 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/commonjs-browser/v5.js +16 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/commonjs-browser/validate.js +17 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/commonjs-browser/version.js +21 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/index.js +9 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/md5.js +215 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/native.js +4 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/nil.js +1 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/parse.js +35 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/regex.js +1 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/rng.js +18 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/sha1.js +96 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/stringify.js +33 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/v1.js +95 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/v3.js +4 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/v35.js +66 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/v4.js +29 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/v5.js +4 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/validate.js +7 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-browser/version.js +11 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-node/index.js +9 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-node/md5.js +13 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-node/native.js +4 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-node/nil.js +1 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-node/parse.js +35 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-node/regex.js +1 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-node/rng.js +12 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-node/sha1.js +13 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-node/stringify.js +33 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-node/v1.js +95 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-node/v3.js +4 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-node/v35.js +66 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-node/v4.js +29 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-node/v5.js +4 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-node/validate.js +7 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/esm-node/version.js +11 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/index.js +79 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/md5-browser.js +223 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/md5.js +23 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/native-browser.js +11 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/native.js +15 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/nil.js +8 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/parse.js +45 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/regex.js +8 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/rng-browser.js +25 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/rng.js +24 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/sha1-browser.js +104 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/sha1.js +23 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/stringify.js +44 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/uuid-bin.js +85 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/v1.js +107 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/v3.js +16 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/v35.js +80 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/v4.js +43 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/v5.js +16 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/validate.js +17 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/dist/version.js +21 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/package.json +135 -0
- package/node_modules/@quantiya/codevibe-core/node_modules/uuid/wrapper.mjs +10 -0
- package/node_modules/@quantiya/codevibe-core/package.json +51 -0
- package/node_modules/accepts/HISTORY.md +250 -0
- package/node_modules/accepts/LICENSE +23 -0
- package/node_modules/accepts/README.md +140 -0
- package/node_modules/accepts/index.js +238 -0
- package/node_modules/accepts/package.json +47 -0
- package/node_modules/base64-js/LICENSE +21 -0
- package/node_modules/base64-js/README.md +34 -0
- package/node_modules/base64-js/base64js.min.js +1 -0
- package/node_modules/base64-js/index.d.ts +3 -0
- package/node_modules/base64-js/index.js +150 -0
- package/node_modules/base64-js/package.json +47 -0
- package/node_modules/bl/.travis.yml +17 -0
- package/node_modules/bl/BufferList.js +396 -0
- package/node_modules/bl/LICENSE.md +13 -0
- package/node_modules/bl/README.md +247 -0
- package/node_modules/bl/bl.js +84 -0
- package/node_modules/bl/package.json +37 -0
- package/node_modules/bl/test/convert.js +21 -0
- package/node_modules/bl/test/indexOf.js +492 -0
- package/node_modules/bl/test/isBufferList.js +32 -0
- package/node_modules/bl/test/test.js +869 -0
- package/node_modules/body-parser/LICENSE +23 -0
- package/node_modules/body-parser/README.md +494 -0
- package/node_modules/body-parser/index.js +80 -0
- package/node_modules/body-parser/lib/read.js +250 -0
- package/node_modules/body-parser/lib/types/json.js +166 -0
- package/node_modules/body-parser/lib/types/raw.js +43 -0
- package/node_modules/body-parser/lib/types/text.js +37 -0
- package/node_modules/body-parser/lib/types/urlencoded.js +142 -0
- package/node_modules/body-parser/lib/utils.js +96 -0
- package/node_modules/body-parser/package.json +52 -0
- package/node_modules/buffer/AUTHORS.md +70 -0
- package/node_modules/buffer/LICENSE +21 -0
- package/node_modules/buffer/README.md +410 -0
- package/node_modules/buffer/index.d.ts +186 -0
- package/node_modules/buffer/index.js +1817 -0
- package/node_modules/buffer/package.json +96 -0
- package/node_modules/bytes/History.md +97 -0
- package/node_modules/bytes/LICENSE +23 -0
- package/node_modules/bytes/Readme.md +152 -0
- package/node_modules/bytes/index.js +170 -0
- package/node_modules/bytes/package.json +42 -0
- package/node_modules/call-bind-apply-helpers/.eslintrc +17 -0
- package/node_modules/call-bind-apply-helpers/.github/FUNDING.yml +12 -0
- package/node_modules/call-bind-apply-helpers/.nycrc +9 -0
- package/node_modules/call-bind-apply-helpers/CHANGELOG.md +30 -0
- package/node_modules/call-bind-apply-helpers/LICENSE +21 -0
- package/node_modules/call-bind-apply-helpers/README.md +62 -0
- package/node_modules/call-bind-apply-helpers/actualApply.d.ts +1 -0
- package/node_modules/call-bind-apply-helpers/actualApply.js +10 -0
- package/node_modules/call-bind-apply-helpers/applyBind.d.ts +19 -0
- package/node_modules/call-bind-apply-helpers/applyBind.js +10 -0
- package/node_modules/call-bind-apply-helpers/functionApply.d.ts +1 -0
- package/node_modules/call-bind-apply-helpers/functionApply.js +4 -0
- package/node_modules/call-bind-apply-helpers/functionCall.d.ts +1 -0
- package/node_modules/call-bind-apply-helpers/functionCall.js +4 -0
- package/node_modules/call-bind-apply-helpers/index.d.ts +64 -0
- package/node_modules/call-bind-apply-helpers/index.js +15 -0
- package/node_modules/call-bind-apply-helpers/package.json +85 -0
- package/node_modules/call-bind-apply-helpers/reflectApply.d.ts +3 -0
- package/node_modules/call-bind-apply-helpers/reflectApply.js +4 -0
- package/node_modules/call-bind-apply-helpers/test/index.js +63 -0
- package/node_modules/call-bind-apply-helpers/tsconfig.json +9 -0
- package/node_modules/call-bound/.eslintrc +13 -0
- package/node_modules/call-bound/.github/FUNDING.yml +12 -0
- package/node_modules/call-bound/.nycrc +9 -0
- package/node_modules/call-bound/CHANGELOG.md +42 -0
- package/node_modules/call-bound/LICENSE +21 -0
- package/node_modules/call-bound/README.md +53 -0
- package/node_modules/call-bound/index.d.ts +94 -0
- package/node_modules/call-bound/index.js +19 -0
- package/node_modules/call-bound/package.json +99 -0
- package/node_modules/call-bound/test/index.js +61 -0
- package/node_modules/call-bound/tsconfig.json +10 -0
- package/node_modules/chownr/LICENSE +15 -0
- package/node_modules/chownr/README.md +3 -0
- package/node_modules/chownr/chownr.js +167 -0
- package/node_modules/chownr/package.json +29 -0
- package/node_modules/content-disposition/HISTORY.md +72 -0
- package/node_modules/content-disposition/LICENSE +22 -0
- package/node_modules/content-disposition/README.md +142 -0
- package/node_modules/content-disposition/index.js +458 -0
- package/node_modules/content-disposition/package.json +43 -0
- package/node_modules/content-type/HISTORY.md +29 -0
- package/node_modules/content-type/LICENSE +22 -0
- package/node_modules/content-type/README.md +94 -0
- package/node_modules/content-type/index.js +225 -0
- package/node_modules/content-type/package.json +42 -0
- package/node_modules/cookie/LICENSE +24 -0
- package/node_modules/cookie/README.md +317 -0
- package/node_modules/cookie/SECURITY.md +25 -0
- package/node_modules/cookie/index.js +335 -0
- package/node_modules/cookie/package.json +44 -0
- package/node_modules/cookie-signature/History.md +70 -0
- package/node_modules/cookie-signature/LICENSE +22 -0
- package/node_modules/cookie-signature/Readme.md +23 -0
- package/node_modules/cookie-signature/index.js +47 -0
- package/node_modules/cookie-signature/package.json +24 -0
- package/node_modules/debug/LICENSE +20 -0
- package/node_modules/debug/README.md +481 -0
- package/node_modules/debug/package.json +64 -0
- package/node_modules/debug/src/browser.js +272 -0
- package/node_modules/debug/src/common.js +292 -0
- package/node_modules/debug/src/index.js +10 -0
- package/node_modules/debug/src/node.js +263 -0
- package/node_modules/decompress-response/index.d.ts +22 -0
- package/node_modules/decompress-response/index.js +58 -0
- package/node_modules/decompress-response/license +9 -0
- package/node_modules/decompress-response/package.json +56 -0
- package/node_modules/decompress-response/readme.md +48 -0
- package/node_modules/deep-extend/CHANGELOG.md +46 -0
- package/node_modules/deep-extend/LICENSE +20 -0
- package/node_modules/deep-extend/README.md +91 -0
- package/node_modules/deep-extend/index.js +1 -0
- package/node_modules/deep-extend/lib/deep-extend.js +150 -0
- package/node_modules/deep-extend/package.json +62 -0
- package/node_modules/depd/History.md +103 -0
- package/node_modules/depd/LICENSE +22 -0
- package/node_modules/depd/Readme.md +280 -0
- package/node_modules/depd/index.js +538 -0
- package/node_modules/depd/lib/browser/index.js +77 -0
- package/node_modules/depd/package.json +45 -0
- package/node_modules/detect-libc/LICENSE +201 -0
- package/node_modules/detect-libc/README.md +163 -0
- package/node_modules/detect-libc/index.d.ts +14 -0
- package/node_modules/detect-libc/lib/detect-libc.js +313 -0
- package/node_modules/detect-libc/lib/elf.js +39 -0
- package/node_modules/detect-libc/lib/filesystem.js +51 -0
- package/node_modules/detect-libc/lib/process.js +24 -0
- package/node_modules/detect-libc/package.json +44 -0
- package/node_modules/dotenv/CHANGELOG.md +520 -0
- package/node_modules/dotenv/LICENSE +23 -0
- package/node_modules/dotenv/README-es.md +411 -0
- package/node_modules/dotenv/README.md +645 -0
- package/node_modules/dotenv/SECURITY.md +1 -0
- package/node_modules/dotenv/config.d.ts +1 -0
- package/node_modules/dotenv/config.js +9 -0
- package/node_modules/dotenv/lib/cli-options.js +17 -0
- package/node_modules/dotenv/lib/env-options.js +28 -0
- package/node_modules/dotenv/lib/main.d.ts +162 -0
- package/node_modules/dotenv/lib/main.js +386 -0
- package/node_modules/dotenv/package.json +62 -0
- package/node_modules/dunder-proto/.eslintrc +5 -0
- package/node_modules/dunder-proto/.github/FUNDING.yml +12 -0
- package/node_modules/dunder-proto/.nycrc +13 -0
- package/node_modules/dunder-proto/CHANGELOG.md +24 -0
- package/node_modules/dunder-proto/LICENSE +21 -0
- package/node_modules/dunder-proto/README.md +54 -0
- package/node_modules/dunder-proto/get.d.ts +5 -0
- package/node_modules/dunder-proto/get.js +30 -0
- package/node_modules/dunder-proto/package.json +76 -0
- package/node_modules/dunder-proto/set.d.ts +5 -0
- package/node_modules/dunder-proto/set.js +35 -0
- package/node_modules/dunder-proto/test/get.js +34 -0
- package/node_modules/dunder-proto/test/index.js +4 -0
- package/node_modules/dunder-proto/test/set.js +50 -0
- package/node_modules/dunder-proto/tsconfig.json +9 -0
- package/node_modules/ee-first/LICENSE +22 -0
- package/node_modules/ee-first/README.md +80 -0
- package/node_modules/ee-first/index.js +95 -0
- package/node_modules/ee-first/package.json +29 -0
- package/node_modules/encodeurl/LICENSE +22 -0
- package/node_modules/encodeurl/README.md +109 -0
- package/node_modules/encodeurl/index.js +60 -0
- package/node_modules/encodeurl/package.json +40 -0
- package/node_modules/end-of-stream/LICENSE +21 -0
- package/node_modules/end-of-stream/README.md +54 -0
- package/node_modules/end-of-stream/index.js +96 -0
- package/node_modules/end-of-stream/package.json +37 -0
- package/node_modules/es-define-property/.eslintrc +13 -0
- package/node_modules/es-define-property/.github/FUNDING.yml +12 -0
- package/node_modules/es-define-property/.nycrc +9 -0
- package/node_modules/es-define-property/CHANGELOG.md +29 -0
- package/node_modules/es-define-property/LICENSE +21 -0
- package/node_modules/es-define-property/README.md +49 -0
- package/node_modules/es-define-property/index.d.ts +3 -0
- package/node_modules/es-define-property/index.js +14 -0
- package/node_modules/es-define-property/package.json +81 -0
- package/node_modules/es-define-property/test/index.js +56 -0
- package/node_modules/es-define-property/tsconfig.json +10 -0
- package/node_modules/es-errors/.eslintrc +5 -0
- package/node_modules/es-errors/.github/FUNDING.yml +12 -0
- package/node_modules/es-errors/CHANGELOG.md +40 -0
- package/node_modules/es-errors/LICENSE +21 -0
- package/node_modules/es-errors/README.md +55 -0
- package/node_modules/es-errors/eval.d.ts +3 -0
- package/node_modules/es-errors/eval.js +4 -0
- package/node_modules/es-errors/index.d.ts +3 -0
- package/node_modules/es-errors/index.js +4 -0
- package/node_modules/es-errors/package.json +80 -0
- package/node_modules/es-errors/range.d.ts +3 -0
- package/node_modules/es-errors/range.js +4 -0
- package/node_modules/es-errors/ref.d.ts +3 -0
- package/node_modules/es-errors/ref.js +4 -0
- package/node_modules/es-errors/syntax.d.ts +3 -0
- package/node_modules/es-errors/syntax.js +4 -0
- package/node_modules/es-errors/test/index.js +19 -0
- package/node_modules/es-errors/tsconfig.json +49 -0
- package/node_modules/es-errors/type.d.ts +3 -0
- package/node_modules/es-errors/type.js +4 -0
- package/node_modules/es-errors/uri.d.ts +3 -0
- package/node_modules/es-errors/uri.js +4 -0
- package/node_modules/es-object-atoms/.eslintrc +16 -0
- package/node_modules/es-object-atoms/.github/FUNDING.yml +12 -0
- package/node_modules/es-object-atoms/CHANGELOG.md +37 -0
- package/node_modules/es-object-atoms/LICENSE +21 -0
- package/node_modules/es-object-atoms/README.md +63 -0
- package/node_modules/es-object-atoms/RequireObjectCoercible.d.ts +3 -0
- package/node_modules/es-object-atoms/RequireObjectCoercible.js +11 -0
- package/node_modules/es-object-atoms/ToObject.d.ts +7 -0
- package/node_modules/es-object-atoms/ToObject.js +10 -0
- package/node_modules/es-object-atoms/index.d.ts +3 -0
- package/node_modules/es-object-atoms/index.js +4 -0
- package/node_modules/es-object-atoms/isObject.d.ts +3 -0
- package/node_modules/es-object-atoms/isObject.js +6 -0
- package/node_modules/es-object-atoms/package.json +80 -0
- package/node_modules/es-object-atoms/test/index.js +38 -0
- package/node_modules/es-object-atoms/tsconfig.json +6 -0
- package/node_modules/escape-html/LICENSE +24 -0
- package/node_modules/escape-html/Readme.md +43 -0
- package/node_modules/escape-html/index.js +78 -0
- package/node_modules/escape-html/package.json +24 -0
- package/node_modules/etag/HISTORY.md +83 -0
- package/node_modules/etag/LICENSE +22 -0
- package/node_modules/etag/README.md +159 -0
- package/node_modules/etag/index.js +131 -0
- package/node_modules/etag/package.json +47 -0
- package/node_modules/expand-template/.travis.yml +6 -0
- package/node_modules/expand-template/LICENSE +21 -0
- package/node_modules/expand-template/README.md +43 -0
- package/node_modules/expand-template/index.js +26 -0
- package/node_modules/expand-template/package.json +29 -0
- package/node_modules/expand-template/test.js +67 -0
- package/node_modules/express/History.md +3858 -0
- package/node_modules/express/LICENSE +24 -0
- package/node_modules/express/Readme.md +266 -0
- package/node_modules/express/index.js +11 -0
- package/node_modules/express/lib/application.js +631 -0
- package/node_modules/express/lib/express.js +81 -0
- package/node_modules/express/lib/request.js +515 -0
- package/node_modules/express/lib/response.js +1039 -0
- package/node_modules/express/lib/utils.js +269 -0
- package/node_modules/express/lib/view.js +205 -0
- package/node_modules/express/package.json +98 -0
- package/node_modules/finalhandler/HISTORY.md +233 -0
- package/node_modules/finalhandler/LICENSE +22 -0
- package/node_modules/finalhandler/README.md +147 -0
- package/node_modules/finalhandler/index.js +293 -0
- package/node_modules/finalhandler/package.json +43 -0
- package/node_modules/forwarded/HISTORY.md +21 -0
- package/node_modules/forwarded/LICENSE +22 -0
- package/node_modules/forwarded/README.md +57 -0
- package/node_modules/forwarded/index.js +90 -0
- package/node_modules/forwarded/package.json +45 -0
- package/node_modules/fresh/HISTORY.md +80 -0
- package/node_modules/fresh/LICENSE +23 -0
- package/node_modules/fresh/README.md +117 -0
- package/node_modules/fresh/index.js +136 -0
- package/node_modules/fresh/package.json +46 -0
- package/node_modules/fs-constants/LICENSE +21 -0
- package/node_modules/fs-constants/README.md +26 -0
- package/node_modules/fs-constants/browser.js +1 -0
- package/node_modules/fs-constants/index.js +1 -0
- package/node_modules/fs-constants/package.json +19 -0
- package/node_modules/function-bind/.eslintrc +21 -0
- package/node_modules/function-bind/.github/FUNDING.yml +12 -0
- package/node_modules/function-bind/.github/SECURITY.md +3 -0
- package/node_modules/function-bind/.nycrc +13 -0
- package/node_modules/function-bind/CHANGELOG.md +136 -0
- package/node_modules/function-bind/LICENSE +20 -0
- package/node_modules/function-bind/README.md +46 -0
- package/node_modules/function-bind/implementation.js +84 -0
- package/node_modules/function-bind/index.js +5 -0
- package/node_modules/function-bind/package.json +87 -0
- package/node_modules/function-bind/test/.eslintrc +9 -0
- package/node_modules/function-bind/test/index.js +252 -0
- package/node_modules/get-intrinsic/.eslintrc +42 -0
- package/node_modules/get-intrinsic/.github/FUNDING.yml +12 -0
- package/node_modules/get-intrinsic/.nycrc +9 -0
- package/node_modules/get-intrinsic/CHANGELOG.md +186 -0
- package/node_modules/get-intrinsic/LICENSE +21 -0
- package/node_modules/get-intrinsic/README.md +71 -0
- package/node_modules/get-intrinsic/index.js +378 -0
- package/node_modules/get-intrinsic/package.json +97 -0
- package/node_modules/get-intrinsic/test/GetIntrinsic.js +274 -0
- package/node_modules/get-proto/.eslintrc +10 -0
- package/node_modules/get-proto/.github/FUNDING.yml +12 -0
- package/node_modules/get-proto/.nycrc +9 -0
- package/node_modules/get-proto/CHANGELOG.md +21 -0
- package/node_modules/get-proto/LICENSE +21 -0
- package/node_modules/get-proto/Object.getPrototypeOf.d.ts +5 -0
- package/node_modules/get-proto/Object.getPrototypeOf.js +6 -0
- package/node_modules/get-proto/README.md +50 -0
- package/node_modules/get-proto/Reflect.getPrototypeOf.d.ts +3 -0
- package/node_modules/get-proto/Reflect.getPrototypeOf.js +4 -0
- package/node_modules/get-proto/index.d.ts +5 -0
- package/node_modules/get-proto/index.js +27 -0
- package/node_modules/get-proto/package.json +81 -0
- package/node_modules/get-proto/test/index.js +68 -0
- package/node_modules/get-proto/tsconfig.json +9 -0
- package/node_modules/github-from-package/.travis.yml +4 -0
- package/node_modules/github-from-package/LICENSE +18 -0
- package/node_modules/github-from-package/example/package.json +8 -0
- package/node_modules/github-from-package/example/url.js +3 -0
- package/node_modules/github-from-package/index.js +17 -0
- package/node_modules/github-from-package/package.json +30 -0
- package/node_modules/github-from-package/readme.markdown +53 -0
- package/node_modules/github-from-package/test/a.json +8 -0
- package/node_modules/github-from-package/test/b.json +5 -0
- package/node_modules/github-from-package/test/c.json +5 -0
- package/node_modules/github-from-package/test/d.json +7 -0
- package/node_modules/github-from-package/test/e.json +5 -0
- package/node_modules/github-from-package/test/url.js +19 -0
- package/node_modules/gopd/.eslintrc +16 -0
- package/node_modules/gopd/.github/FUNDING.yml +12 -0
- package/node_modules/gopd/CHANGELOG.md +45 -0
- package/node_modules/gopd/LICENSE +21 -0
- package/node_modules/gopd/README.md +40 -0
- package/node_modules/gopd/gOPD.d.ts +1 -0
- package/node_modules/gopd/gOPD.js +4 -0
- package/node_modules/gopd/index.d.ts +5 -0
- package/node_modules/gopd/index.js +15 -0
- package/node_modules/gopd/package.json +77 -0
- package/node_modules/gopd/test/index.js +36 -0
- package/node_modules/gopd/tsconfig.json +9 -0
- package/node_modules/graphql/LICENSE +21 -0
- package/node_modules/graphql/NotSupportedTSVersion.d.ts +1 -0
- package/node_modules/graphql/README.md +203 -0
- package/node_modules/graphql/error/GraphQLError.d.ts +152 -0
- package/node_modules/graphql/error/GraphQLError.js +267 -0
- package/node_modules/graphql/error/GraphQLError.mjs +253 -0
- package/node_modules/graphql/error/index.d.ts +9 -0
- package/node_modules/graphql/error/index.js +41 -0
- package/node_modules/graphql/error/index.mjs +3 -0
- package/node_modules/graphql/error/locatedError.d.ts +13 -0
- package/node_modules/graphql/error/locatedError.js +40 -0
- package/node_modules/graphql/error/locatedError.mjs +32 -0
- package/node_modules/graphql/error/syntaxError.d.ts +11 -0
- package/node_modules/graphql/error/syntaxError.js +19 -0
- package/node_modules/graphql/error/syntaxError.mjs +12 -0
- package/node_modules/graphql/execution/collectFields.d.ts +45 -0
- package/node_modules/graphql/execution/collectFields.js +229 -0
- package/node_modules/graphql/execution/collectFields.mjs +213 -0
- package/node_modules/graphql/execution/execute.d.ts +190 -0
- package/node_modules/graphql/execution/execute.js +1054 -0
- package/node_modules/graphql/execution/execute.mjs +1026 -0
- package/node_modules/graphql/execution/index.d.ts +18 -0
- package/node_modules/graphql/execution/index.js +73 -0
- package/node_modules/graphql/execution/index.mjs +13 -0
- package/node_modules/graphql/execution/mapAsyncIterator.d.ts +9 -0
- package/node_modules/graphql/execution/mapAsyncIterator.js +68 -0
- package/node_modules/graphql/execution/mapAsyncIterator.mjs +61 -0
- package/node_modules/graphql/execution/subscribe.d.ts +72 -0
- package/node_modules/graphql/execution/subscribe.js +244 -0
- package/node_modules/graphql/execution/subscribe.mjs +222 -0
- package/node_modules/graphql/execution/values.d.ts +79 -0
- package/node_modules/graphql/execution/values.js +300 -0
- package/node_modules/graphql/execution/values.mjs +263 -0
- package/node_modules/graphql/graphql.d.ts +67 -0
- package/node_modules/graphql/graphql.js +96 -0
- package/node_modules/graphql/graphql.mjs +122 -0
- package/node_modules/graphql/index.d.ts +428 -0
- package/node_modules/graphql/index.js +1311 -0
- package/node_modules/graphql/index.mjs +262 -0
- package/node_modules/graphql/jsutils/Maybe.d.ts +2 -0
- package/node_modules/graphql/jsutils/Maybe.js +5 -0
- package/node_modules/graphql/jsutils/Maybe.mjs +1 -0
- package/node_modules/graphql/jsutils/ObjMap.d.ts +16 -0
- package/node_modules/graphql/jsutils/ObjMap.js +5 -0
- package/node_modules/graphql/jsutils/ObjMap.mjs +1 -0
- package/node_modules/graphql/jsutils/Path.d.ts +20 -0
- package/node_modules/graphql/jsutils/Path.js +33 -0
- package/node_modules/graphql/jsutils/Path.mjs +25 -0
- package/node_modules/graphql/jsutils/PromiseOrValue.d.ts +1 -0
- package/node_modules/graphql/jsutils/PromiseOrValue.js +5 -0
- package/node_modules/graphql/jsutils/PromiseOrValue.mjs +1 -0
- package/node_modules/graphql/jsutils/devAssert.d.ts +1 -0
- package/node_modules/graphql/jsutils/devAssert.js +14 -0
- package/node_modules/graphql/jsutils/devAssert.mjs +7 -0
- package/node_modules/graphql/jsutils/didYouMean.d.ts +8 -0
- package/node_modules/graphql/jsutils/didYouMean.js +38 -0
- package/node_modules/graphql/jsutils/didYouMean.mjs +32 -0
- package/node_modules/graphql/jsutils/groupBy.d.ts +7 -0
- package/node_modules/graphql/jsutils/groupBy.js +26 -0
- package/node_modules/graphql/jsutils/groupBy.mjs +19 -0
- package/node_modules/graphql/jsutils/identityFunc.d.ts +4 -0
- package/node_modules/graphql/jsutils/identityFunc.js +13 -0
- package/node_modules/graphql/jsutils/identityFunc.mjs +6 -0
- package/node_modules/graphql/jsutils/inspect.d.ts +4 -0
- package/node_modules/graphql/jsutils/inspect.js +121 -0
- package/node_modules/graphql/jsutils/inspect.mjs +115 -0
- package/node_modules/graphql/jsutils/instanceOf.d.ts +16 -0
- package/node_modules/graphql/jsutils/instanceOf.js +65 -0
- package/node_modules/graphql/jsutils/instanceOf.mjs +57 -0
- package/node_modules/graphql/jsutils/invariant.d.ts +4 -0
- package/node_modules/graphql/jsutils/invariant.js +16 -0
- package/node_modules/graphql/jsutils/invariant.mjs +9 -0
- package/node_modules/graphql/jsutils/isAsyncIterable.d.ts +7 -0
- package/node_modules/graphql/jsutils/isAsyncIterable.js +18 -0
- package/node_modules/graphql/jsutils/isAsyncIterable.mjs +11 -0
- package/node_modules/graphql/jsutils/isIterableObject.d.ts +20 -0
- package/node_modules/graphql/jsutils/isIterableObject.js +32 -0
- package/node_modules/graphql/jsutils/isIterableObject.mjs +25 -0
- package/node_modules/graphql/jsutils/isObjectLike.d.ts +7 -0
- package/node_modules/graphql/jsutils/isObjectLike.js +14 -0
- package/node_modules/graphql/jsutils/isObjectLike.mjs +7 -0
- package/node_modules/graphql/jsutils/isPromise.d.ts +5 -0
- package/node_modules/graphql/jsutils/isPromise.js +17 -0
- package/node_modules/graphql/jsutils/isPromise.mjs +10 -0
- package/node_modules/graphql/jsutils/keyMap.d.ts +32 -0
- package/node_modules/graphql/jsutils/keyMap.js +43 -0
- package/node_modules/graphql/jsutils/keyMap.mjs +36 -0
- package/node_modules/graphql/jsutils/keyValMap.d.ts +23 -0
- package/node_modules/graphql/jsutils/keyValMap.js +33 -0
- package/node_modules/graphql/jsutils/keyValMap.mjs +26 -0
- package/node_modules/graphql/jsutils/mapValue.d.ts +9 -0
- package/node_modules/graphql/jsutils/mapValue.js +20 -0
- package/node_modules/graphql/jsutils/mapValue.mjs +13 -0
- package/node_modules/graphql/jsutils/memoize3.d.ts +9 -0
- package/node_modules/graphql/jsutils/memoize3.js +41 -0
- package/node_modules/graphql/jsutils/memoize3.mjs +34 -0
- package/node_modules/graphql/jsutils/naturalCompare.d.ts +8 -0
- package/node_modules/graphql/jsutils/naturalCompare.js +69 -0
- package/node_modules/graphql/jsutils/naturalCompare.mjs +61 -0
- package/node_modules/graphql/jsutils/printPathArray.d.ts +6 -0
- package/node_modules/graphql/jsutils/printPathArray.js +17 -0
- package/node_modules/graphql/jsutils/printPathArray.mjs +10 -0
- package/node_modules/graphql/jsutils/promiseForObject.d.ts +11 -0
- package/node_modules/graphql/jsutils/promiseForObject.js +25 -0
- package/node_modules/graphql/jsutils/promiseForObject.mjs +18 -0
- package/node_modules/graphql/jsutils/promiseReduce.d.ts +13 -0
- package/node_modules/graphql/jsutils/promiseReduce.js +27 -0
- package/node_modules/graphql/jsutils/promiseReduce.mjs +20 -0
- package/node_modules/graphql/jsutils/suggestionList.d.ts +8 -0
- package/node_modules/graphql/jsutils/suggestionList.js +139 -0
- package/node_modules/graphql/jsutils/suggestionList.mjs +130 -0
- package/node_modules/graphql/jsutils/toError.d.ts +4 -0
- package/node_modules/graphql/jsutils/toError.js +25 -0
- package/node_modules/graphql/jsutils/toError.mjs +18 -0
- package/node_modules/graphql/jsutils/toObjMap.d.ts +5 -0
- package/node_modules/graphql/jsutils/toObjMap.js +24 -0
- package/node_modules/graphql/jsutils/toObjMap.mjs +17 -0
- package/node_modules/graphql/language/ast.d.ts +582 -0
- package/node_modules/graphql/language/ast.js +237 -0
- package/node_modules/graphql/language/ast.mjs +221 -0
- package/node_modules/graphql/language/blockString.d.ts +28 -0
- package/node_modules/graphql/language/blockString.js +195 -0
- package/node_modules/graphql/language/blockString.mjs +178 -0
- package/node_modules/graphql/language/characterClasses.d.ts +47 -0
- package/node_modules/graphql/language/characterClasses.js +75 -0
- package/node_modules/graphql/language/characterClasses.mjs +64 -0
- package/node_modules/graphql/language/directiveLocation.d.ts +33 -0
- package/node_modules/graphql/language/directiveLocation.js +39 -0
- package/node_modules/graphql/language/directiveLocation.mjs +33 -0
- package/node_modules/graphql/language/index.d.ts +110 -0
- package/node_modules/graphql/language/index.js +227 -0
- package/node_modules/graphql/language/index.mjs +36 -0
- package/node_modules/graphql/language/kinds.d.ts +72 -0
- package/node_modules/graphql/language/kinds.js +68 -0
- package/node_modules/graphql/language/kinds.mjs +62 -0
- package/node_modules/graphql/language/lexer.d.ts +96 -0
- package/node_modules/graphql/language/lexer.js +1016 -0
- package/node_modules/graphql/language/lexer.mjs +915 -0
- package/node_modules/graphql/language/location.d.ts +16 -0
- package/node_modules/graphql/language/location.js +38 -0
- package/node_modules/graphql/language/location.mjs +30 -0
- package/node_modules/graphql/language/parser.d.ts +592 -0
- package/node_modules/graphql/language/parser.js +1692 -0
- package/node_modules/graphql/language/parser.mjs +1645 -0
- package/node_modules/graphql/language/predicates.d.ts +37 -0
- package/node_modules/graphql/language/predicates.js +120 -0
- package/node_modules/graphql/language/predicates.mjs +90 -0
- package/node_modules/graphql/language/printLocation.d.ts +14 -0
- package/node_modules/graphql/language/printLocation.js +74 -0
- package/node_modules/graphql/language/printLocation.mjs +66 -0
- package/node_modules/graphql/language/printString.d.ts +5 -0
- package/node_modules/graphql/language/printString.js +183 -0
- package/node_modules/graphql/language/printString.mjs +176 -0
- package/node_modules/graphql/language/printer.d.ts +6 -0
- package/node_modules/graphql/language/printer.js +380 -0
- package/node_modules/graphql/language/printer.mjs +368 -0
- package/node_modules/graphql/language/schemaCoordinateLexer.d.ts +43 -0
- package/node_modules/graphql/language/schemaCoordinateLexer.js +171 -0
- package/node_modules/graphql/language/schemaCoordinateLexer.mjs +122 -0
- package/node_modules/graphql/language/source.d.ts +25 -0
- package/node_modules/graphql/language/source.js +65 -0
- package/node_modules/graphql/language/source.mjs +50 -0
- package/node_modules/graphql/language/tokenKind.d.ts +36 -0
- package/node_modules/graphql/language/tokenKind.js +44 -0
- package/node_modules/graphql/language/tokenKind.mjs +38 -0
- package/node_modules/graphql/language/visitor.d.ts +194 -0
- package/node_modules/graphql/language/visitor.js +374 -0
- package/node_modules/graphql/language/visitor.mjs +358 -0
- package/node_modules/graphql/package.json +39 -0
- package/node_modules/graphql/subscription/index.d.ts +19 -0
- package/node_modules/graphql/subscription/index.js +19 -0
- package/node_modules/graphql/subscription/index.mjs +19 -0
- package/node_modules/graphql/type/assertName.d.ts +10 -0
- package/node_modules/graphql/type/assertName.js +59 -0
- package/node_modules/graphql/type/assertName.mjs +44 -0
- package/node_modules/graphql/type/definition.d.ts +926 -0
- package/node_modules/graphql/type/definition.js +1362 -0
- package/node_modules/graphql/type/definition.mjs +1197 -0
- package/node_modules/graphql/type/directives.d.ts +90 -0
- package/node_modules/graphql/type/directives.js +238 -0
- package/node_modules/graphql/type/directives.mjs +202 -0
- package/node_modules/graphql/type/index.d.ts +151 -0
- package/node_modules/graphql/type/index.js +553 -0
- package/node_modules/graphql/type/index.mjs +104 -0
- package/node_modules/graphql/type/introspection.d.ts +30 -0
- package/node_modules/graphql/type/introspection.js +625 -0
- package/node_modules/graphql/type/introspection.mjs +559 -0
- package/node_modules/graphql/type/scalars.d.ts +19 -0
- package/node_modules/graphql/type/scalars.js +369 -0
- package/node_modules/graphql/type/scalars.mjs +309 -0
- package/node_modules/graphql/type/schema.d.ts +170 -0
- package/node_modules/graphql/type/schema.js +402 -0
- package/node_modules/graphql/type/schema.mjs +381 -0
- package/node_modules/graphql/type/validate.d.ts +17 -0
- package/node_modules/graphql/type/validate.js +706 -0
- package/node_modules/graphql/type/validate.mjs +681 -0
- package/node_modules/graphql/utilities/TypeInfo.d.ts +67 -0
- package/node_modules/graphql/utilities/TypeInfo.js +418 -0
- package/node_modules/graphql/utilities/TypeInfo.mjs +395 -0
- package/node_modules/graphql/utilities/assertValidName.d.ts +13 -0
- package/node_modules/graphql/utilities/assertValidName.js +51 -0
- package/node_modules/graphql/utilities/assertValidName.mjs +40 -0
- package/node_modules/graphql/utilities/astFromValue.d.ts +28 -0
- package/node_modules/graphql/utilities/astFromValue.js +190 -0
- package/node_modules/graphql/utilities/astFromValue.mjs +177 -0
- package/node_modules/graphql/utilities/buildASTSchema.d.ts +35 -0
- package/node_modules/graphql/utilities/buildASTSchema.js +115 -0
- package/node_modules/graphql/utilities/buildASTSchema.mjs +97 -0
- package/node_modules/graphql/utilities/buildClientSchema.d.ts +19 -0
- package/node_modules/graphql/utilities/buildClientSchema.js +387 -0
- package/node_modules/graphql/utilities/buildClientSchema.mjs +364 -0
- package/node_modules/graphql/utilities/coerceInputValue.d.ts +16 -0
- package/node_modules/graphql/utilities/coerceInputValue.js +217 -0
- package/node_modules/graphql/utilities/coerceInputValue.mjs +192 -0
- package/node_modules/graphql/utilities/concatAST.d.ts +9 -0
- package/node_modules/graphql/utilities/concatAST.js +26 -0
- package/node_modules/graphql/utilities/concatAST.mjs +19 -0
- package/node_modules/graphql/utilities/extendSchema.d.ts +40 -0
- package/node_modules/graphql/utilities/extendSchema.js +808 -0
- package/node_modules/graphql/utilities/extendSchema.mjs +798 -0
- package/node_modules/graphql/utilities/findBreakingChanges.d.ts +53 -0
- package/node_modules/graphql/utilities/findBreakingChanges.js +547 -0
- package/node_modules/graphql/utilities/findBreakingChanges.mjs +519 -0
- package/node_modules/graphql/utilities/getIntrospectionQuery.d.ts +188 -0
- package/node_modules/graphql/utilities/getIntrospectionQuery.js +145 -0
- package/node_modules/graphql/utilities/getIntrospectionQuery.mjs +138 -0
- package/node_modules/graphql/utilities/getOperationAST.d.ts +11 -0
- package/node_modules/graphql/utilities/getOperationAST.js +43 -0
- package/node_modules/graphql/utilities/getOperationAST.mjs +36 -0
- package/node_modules/graphql/utilities/getOperationRootType.d.ts +15 -0
- package/node_modules/graphql/utilities/getOperationRootType.js +67 -0
- package/node_modules/graphql/utilities/getOperationRootType.mjs +54 -0
- package/node_modules/graphql/utilities/index.d.ts +66 -0
- package/node_modules/graphql/utilities/index.js +247 -0
- package/node_modules/graphql/utilities/index.mjs +60 -0
- package/node_modules/graphql/utilities/introspectionFromSchema.d.ts +18 -0
- package/node_modules/graphql/utilities/introspectionFromSchema.js +43 -0
- package/node_modules/graphql/utilities/introspectionFromSchema.mjs +31 -0
- package/node_modules/graphql/utilities/lexicographicSortSchema.d.ts +9 -0
- package/node_modules/graphql/utilities/lexicographicSortSchema.js +177 -0
- package/node_modules/graphql/utilities/lexicographicSortSchema.mjs +172 -0
- package/node_modules/graphql/utilities/printSchema.d.ts +5 -0
- package/node_modules/graphql/utilities/printSchema.js +338 -0
- package/node_modules/graphql/utilities/printSchema.mjs +314 -0
- package/node_modules/graphql/utilities/resolveSchemaCoordinate.d.ts +80 -0
- package/node_modules/graphql/utilities/resolveSchemaCoordinate.js +260 -0
- package/node_modules/graphql/utilities/resolveSchemaCoordinate.mjs +243 -0
- package/node_modules/graphql/utilities/separateOperations.d.ts +11 -0
- package/node_modules/graphql/utilities/separateOperations.js +88 -0
- package/node_modules/graphql/utilities/separateOperations.mjs +80 -0
- package/node_modules/graphql/utilities/sortValueNode.d.ts +9 -0
- package/node_modules/graphql/utilities/sortValueNode.js +47 -0
- package/node_modules/graphql/utilities/sortValueNode.mjs +39 -0
- package/node_modules/graphql/utilities/stripIgnoredCharacters.d.ts +62 -0
- package/node_modules/graphql/utilities/stripIgnoredCharacters.js +121 -0
- package/node_modules/graphql/utilities/stripIgnoredCharacters.mjs +104 -0
- package/node_modules/graphql/utilities/typeComparators.d.ts +32 -0
- package/node_modules/graphql/utilities/typeComparators.js +116 -0
- package/node_modules/graphql/utilities/typeComparators.mjs +106 -0
- package/node_modules/graphql/utilities/typeFromAST.d.ts +32 -0
- package/node_modules/graphql/utilities/typeFromAST.js +27 -0
- package/node_modules/graphql/utilities/typeFromAST.mjs +18 -0
- package/node_modules/graphql/utilities/typedQueryDocumentNode.d.ts +22 -0
- package/node_modules/graphql/utilities/typedQueryDocumentNode.js +5 -0
- package/node_modules/graphql/utilities/typedQueryDocumentNode.mjs +1 -0
- package/node_modules/graphql/utilities/valueFromAST.d.ts +29 -0
- package/node_modules/graphql/utilities/valueFromAST.js +197 -0
- package/node_modules/graphql/utilities/valueFromAST.mjs +184 -0
- package/node_modules/graphql/utilities/valueFromASTUntyped.d.ts +23 -0
- package/node_modules/graphql/utilities/valueFromASTUntyped.js +61 -0
- package/node_modules/graphql/utilities/valueFromASTUntyped.mjs +53 -0
- package/node_modules/graphql/validation/ValidationContext.d.ts +96 -0
- package/node_modules/graphql/validation/ValidationContext.js +233 -0
- package/node_modules/graphql/validation/ValidationContext.mjs +213 -0
- package/node_modules/graphql/validation/index.d.ts +41 -0
- package/node_modules/graphql/validation/index.js +331 -0
- package/node_modules/graphql/validation/index.mjs +69 -0
- package/node_modules/graphql/validation/rules/ExecutableDefinitionsRule.d.ts +13 -0
- package/node_modules/graphql/validation/rules/ExecutableDefinitionsRule.js +46 -0
- package/node_modules/graphql/validation/rules/ExecutableDefinitionsRule.mjs +34 -0
- package/node_modules/graphql/validation/rules/FieldsOnCorrectTypeRule.d.ts +13 -0
- package/node_modules/graphql/validation/rules/FieldsOnCorrectTypeRule.js +145 -0
- package/node_modules/graphql/validation/rules/FieldsOnCorrectTypeRule.mjs +127 -0
- package/node_modules/graphql/validation/rules/FragmentsOnCompositeTypesRule.d.ts +14 -0
- package/node_modules/graphql/validation/rules/FragmentsOnCompositeTypesRule.js +69 -0
- package/node_modules/graphql/validation/rules/FragmentsOnCompositeTypesRule.mjs +53 -0
- package/node_modules/graphql/validation/rules/KnownArgumentNamesRule.d.ts +23 -0
- package/node_modules/graphql/validation/rules/KnownArgumentNamesRule.js +120 -0
- package/node_modules/graphql/validation/rules/KnownArgumentNamesRule.mjs +102 -0
- package/node_modules/graphql/validation/rules/KnownDirectivesRule.d.ts +16 -0
- package/node_modules/graphql/validation/rules/KnownDirectivesRule.js +167 -0
- package/node_modules/graphql/validation/rules/KnownDirectivesRule.mjs +150 -0
- package/node_modules/graphql/validation/rules/KnownFragmentNamesRule.d.ts +13 -0
- package/node_modules/graphql/validation/rules/KnownFragmentNamesRule.js +36 -0
- package/node_modules/graphql/validation/rules/KnownFragmentNamesRule.mjs +26 -0
- package/node_modules/graphql/validation/rules/KnownTypeNamesRule.d.ts +16 -0
- package/node_modules/graphql/validation/rules/KnownTypeNamesRule.js +89 -0
- package/node_modules/graphql/validation/rules/KnownTypeNamesRule.mjs +77 -0
- package/node_modules/graphql/validation/rules/LoneAnonymousOperationRule.d.ts +13 -0
- package/node_modules/graphql/validation/rules/LoneAnonymousOperationRule.js +42 -0
- package/node_modules/graphql/validation/rules/LoneAnonymousOperationRule.mjs +34 -0
- package/node_modules/graphql/validation/rules/LoneSchemaDefinitionRule.d.ts +10 -0
- package/node_modules/graphql/validation/rules/LoneSchemaDefinitionRule.js +67 -0
- package/node_modules/graphql/validation/rules/LoneSchemaDefinitionRule.mjs +57 -0
- package/node_modules/graphql/validation/rules/MaxIntrospectionDepthRule.d.ts +5 -0
- package/node_modules/graphql/validation/rules/MaxIntrospectionDepthRule.js +90 -0
- package/node_modules/graphql/validation/rules/MaxIntrospectionDepthRule.mjs +77 -0
- package/node_modules/graphql/validation/rules/NoFragmentCyclesRule.d.ts +13 -0
- package/node_modules/graphql/validation/rules/NoFragmentCyclesRule.js +85 -0
- package/node_modules/graphql/validation/rules/NoFragmentCyclesRule.mjs +78 -0
- package/node_modules/graphql/validation/rules/NoUndefinedVariablesRule.d.ts +13 -0
- package/node_modules/graphql/validation/rules/NoUndefinedVariablesRule.js +52 -0
- package/node_modules/graphql/validation/rules/NoUndefinedVariablesRule.mjs +45 -0
- package/node_modules/graphql/validation/rules/NoUnusedFragmentsRule.d.ts +13 -0
- package/node_modules/graphql/validation/rules/NoUnusedFragmentsRule.js +61 -0
- package/node_modules/graphql/validation/rules/NoUnusedFragmentsRule.mjs +51 -0
- package/node_modules/graphql/validation/rules/NoUnusedVariablesRule.d.ts +13 -0
- package/node_modules/graphql/validation/rules/NoUnusedVariablesRule.js +57 -0
- package/node_modules/graphql/validation/rules/NoUnusedVariablesRule.mjs +50 -0
- package/node_modules/graphql/validation/rules/OverlappingFieldsCanBeMergedRule.d.ts +14 -0
- package/node_modules/graphql/validation/rules/OverlappingFieldsCanBeMergedRule.js +868 -0
- package/node_modules/graphql/validation/rules/OverlappingFieldsCanBeMergedRule.mjs +853 -0
- package/node_modules/graphql/validation/rules/PossibleFragmentSpreadsRule.d.ts +12 -0
- package/node_modules/graphql/validation/rules/PossibleFragmentSpreadsRule.js +95 -0
- package/node_modules/graphql/validation/rules/PossibleFragmentSpreadsRule.mjs +73 -0
- package/node_modules/graphql/validation/rules/PossibleTypeExtensionsRule.d.ts +10 -0
- package/node_modules/graphql/validation/rules/PossibleTypeExtensionsRule.js +171 -0
- package/node_modules/graphql/validation/rules/PossibleTypeExtensionsRule.mjs +148 -0
- package/node_modules/graphql/validation/rules/ProvidedRequiredArgumentsRule.d.ts +20 -0
- package/node_modules/graphql/validation/rules/ProvidedRequiredArgumentsRule.js +162 -0
- package/node_modules/graphql/validation/rules/ProvidedRequiredArgumentsRule.mjs +142 -0
- package/node_modules/graphql/validation/rules/ScalarLeafsRule.d.ts +9 -0
- package/node_modules/graphql/validation/rules/ScalarLeafsRule.js +66 -0
- package/node_modules/graphql/validation/rules/ScalarLeafsRule.mjs +57 -0
- package/node_modules/graphql/validation/rules/SingleFieldSubscriptionsRule.d.ts +13 -0
- package/node_modules/graphql/validation/rules/SingleFieldSubscriptionsRule.js +86 -0
- package/node_modules/graphql/validation/rules/SingleFieldSubscriptionsRule.mjs +77 -0
- package/node_modules/graphql/validation/rules/UniqueArgumentDefinitionNamesRule.d.ts +11 -0
- package/node_modules/graphql/validation/rules/UniqueArgumentDefinitionNamesRule.js +92 -0
- package/node_modules/graphql/validation/rules/UniqueArgumentDefinitionNamesRule.mjs +81 -0
- package/node_modules/graphql/validation/rules/UniqueArgumentNamesRule.d.ts +13 -0
- package/node_modules/graphql/validation/rules/UniqueArgumentNamesRule.js +55 -0
- package/node_modules/graphql/validation/rules/UniqueArgumentNamesRule.mjs +44 -0
- package/node_modules/graphql/validation/rules/UniqueDirectiveNamesRule.d.ts +10 -0
- package/node_modules/graphql/validation/rules/UniqueDirectiveNamesRule.js +54 -0
- package/node_modules/graphql/validation/rules/UniqueDirectiveNamesRule.mjs +47 -0
- package/node_modules/graphql/validation/rules/UniqueDirectivesPerLocationRule.d.ts +16 -0
- package/node_modules/graphql/validation/rules/UniqueDirectivesPerLocationRule.js +95 -0
- package/node_modules/graphql/validation/rules/UniqueDirectivesPerLocationRule.mjs +85 -0
- package/node_modules/graphql/validation/rules/UniqueEnumValueNamesRule.d.ts +10 -0
- package/node_modules/graphql/validation/rules/UniqueEnumValueNamesRule.js +75 -0
- package/node_modules/graphql/validation/rules/UniqueEnumValueNamesRule.mjs +64 -0
- package/node_modules/graphql/validation/rules/UniqueFieldDefinitionNamesRule.d.ts +10 -0
- package/node_modules/graphql/validation/rules/UniqueFieldDefinitionNamesRule.js +87 -0
- package/node_modules/graphql/validation/rules/UniqueFieldDefinitionNamesRule.mjs +79 -0
- package/node_modules/graphql/validation/rules/UniqueFragmentNamesRule.d.ts +12 -0
- package/node_modules/graphql/validation/rules/UniqueFragmentNamesRule.js +41 -0
- package/node_modules/graphql/validation/rules/UniqueFragmentNamesRule.mjs +34 -0
- package/node_modules/graphql/validation/rules/UniqueInputFieldNamesRule.d.ts +13 -0
- package/node_modules/graphql/validation/rules/UniqueInputFieldNamesRule.js +54 -0
- package/node_modules/graphql/validation/rules/UniqueInputFieldNamesRule.mjs +46 -0
- package/node_modules/graphql/validation/rules/UniqueOperationNamesRule.d.ts +12 -0
- package/node_modules/graphql/validation/rules/UniqueOperationNamesRule.js +46 -0
- package/node_modules/graphql/validation/rules/UniqueOperationNamesRule.mjs +39 -0
- package/node_modules/graphql/validation/rules/UniqueOperationTypesRule.d.ts +10 -0
- package/node_modules/graphql/validation/rules/UniqueOperationTypesRule.js +71 -0
- package/node_modules/graphql/validation/rules/UniqueOperationTypesRule.mjs +64 -0
- package/node_modules/graphql/validation/rules/UniqueTypeNamesRule.d.ts +10 -0
- package/node_modules/graphql/validation/rules/UniqueTypeNamesRule.js +57 -0
- package/node_modules/graphql/validation/rules/UniqueTypeNamesRule.mjs +47 -0
- package/node_modules/graphql/validation/rules/UniqueVariableNamesRule.d.ts +10 -0
- package/node_modules/graphql/validation/rules/UniqueVariableNamesRule.js +49 -0
- package/node_modules/graphql/validation/rules/UniqueVariableNamesRule.mjs +41 -0
- package/node_modules/graphql/validation/rules/ValuesOfCorrectTypeRule.d.ts +13 -0
- package/node_modules/graphql/validation/rules/ValuesOfCorrectTypeRule.js +246 -0
- package/node_modules/graphql/validation/rules/ValuesOfCorrectTypeRule.mjs +223 -0
- package/node_modules/graphql/validation/rules/VariablesAreInputTypesRule.d.ts +13 -0
- package/node_modules/graphql/validation/rules/VariablesAreInputTypesRule.js +46 -0
- package/node_modules/graphql/validation/rules/VariablesAreInputTypesRule.mjs +33 -0
- package/node_modules/graphql/validation/rules/VariablesInAllowedPositionRule.d.ts +12 -0
- package/node_modules/graphql/validation/rules/VariablesInAllowedPositionRule.js +131 -0
- package/node_modules/graphql/validation/rules/VariablesInAllowedPositionRule.mjs +116 -0
- package/node_modules/graphql/validation/rules/custom/NoDeprecatedCustomRule.d.ts +15 -0
- package/node_modules/graphql/validation/rules/custom/NoDeprecatedCustomRule.js +131 -0
- package/node_modules/graphql/validation/rules/custom/NoDeprecatedCustomRule.mjs +117 -0
- package/node_modules/graphql/validation/rules/custom/NoSchemaIntrospectionCustomRule.d.ts +15 -0
- package/node_modules/graphql/validation/rules/custom/NoSchemaIntrospectionCustomRule.js +41 -0
- package/node_modules/graphql/validation/rules/custom/NoSchemaIntrospectionCustomRule.mjs +32 -0
- package/node_modules/graphql/validation/specifiedRules.d.ts +18 -0
- package/node_modules/graphql/validation/specifiedRules.js +176 -0
- package/node_modules/graphql/validation/specifiedRules.mjs +132 -0
- package/node_modules/graphql/validation/validate.d.ts +61 -0
- package/node_modules/graphql/validation/validate.js +151 -0
- package/node_modules/graphql/validation/validate.mjs +133 -0
- package/node_modules/graphql/version.d.ts +13 -0
- package/node_modules/graphql/version.js +25 -0
- package/node_modules/graphql/version.mjs +17 -0
- package/node_modules/has-symbols/.eslintrc +11 -0
- package/node_modules/has-symbols/.github/FUNDING.yml +12 -0
- package/node_modules/has-symbols/.nycrc +9 -0
- package/node_modules/has-symbols/CHANGELOG.md +91 -0
- package/node_modules/has-symbols/LICENSE +21 -0
- package/node_modules/has-symbols/README.md +46 -0
- package/node_modules/has-symbols/index.d.ts +3 -0
- package/node_modules/has-symbols/index.js +14 -0
- package/node_modules/has-symbols/package.json +111 -0
- package/node_modules/has-symbols/shams.d.ts +3 -0
- package/node_modules/has-symbols/shams.js +45 -0
- package/node_modules/has-symbols/test/index.js +22 -0
- package/node_modules/has-symbols/test/shams/core-js.js +29 -0
- package/node_modules/has-symbols/test/shams/get-own-property-symbols.js +29 -0
- package/node_modules/has-symbols/test/tests.js +58 -0
- package/node_modules/has-symbols/tsconfig.json +10 -0
- package/node_modules/hasown/.eslintrc +5 -0
- package/node_modules/hasown/.github/FUNDING.yml +12 -0
- package/node_modules/hasown/.nycrc +13 -0
- package/node_modules/hasown/CHANGELOG.md +40 -0
- package/node_modules/hasown/LICENSE +21 -0
- package/node_modules/hasown/README.md +40 -0
- package/node_modules/hasown/index.d.ts +3 -0
- package/node_modules/hasown/index.js +8 -0
- package/node_modules/hasown/package.json +92 -0
- package/node_modules/hasown/tsconfig.json +6 -0
- package/node_modules/http-errors/HISTORY.md +186 -0
- package/node_modules/http-errors/LICENSE +23 -0
- package/node_modules/http-errors/README.md +169 -0
- package/node_modules/http-errors/index.js +290 -0
- package/node_modules/http-errors/package.json +54 -0
- package/node_modules/iconv-lite/Changelog.md +236 -0
- package/node_modules/iconv-lite/LICENSE +21 -0
- package/node_modules/iconv-lite/README.md +138 -0
- package/node_modules/iconv-lite/encodings/dbcs-codec.js +532 -0
- package/node_modules/iconv-lite/encodings/dbcs-data.js +185 -0
- package/node_modules/iconv-lite/encodings/index.js +23 -0
- package/node_modules/iconv-lite/encodings/internal.js +218 -0
- package/node_modules/iconv-lite/encodings/sbcs-codec.js +75 -0
- package/node_modules/iconv-lite/encodings/sbcs-data-generated.js +451 -0
- package/node_modules/iconv-lite/encodings/sbcs-data.js +178 -0
- package/node_modules/iconv-lite/encodings/tables/big5-added.json +122 -0
- package/node_modules/iconv-lite/encodings/tables/cp936.json +264 -0
- package/node_modules/iconv-lite/encodings/tables/cp949.json +273 -0
- package/node_modules/iconv-lite/encodings/tables/cp950.json +177 -0
- package/node_modules/iconv-lite/encodings/tables/eucjp.json +182 -0
- package/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +1 -0
- package/node_modules/iconv-lite/encodings/tables/gbk-added.json +56 -0
- package/node_modules/iconv-lite/encodings/tables/shiftjis.json +125 -0
- package/node_modules/iconv-lite/encodings/utf16.js +187 -0
- package/node_modules/iconv-lite/encodings/utf32.js +307 -0
- package/node_modules/iconv-lite/encodings/utf7.js +283 -0
- package/node_modules/iconv-lite/lib/bom-handling.js +48 -0
- package/node_modules/iconv-lite/lib/helpers/merge-exports.js +13 -0
- package/node_modules/iconv-lite/lib/index.d.ts +41 -0
- package/node_modules/iconv-lite/lib/index.js +183 -0
- package/node_modules/iconv-lite/lib/streams.js +105 -0
- package/node_modules/iconv-lite/package.json +59 -0
- package/node_modules/ieee754/LICENSE +11 -0
- package/node_modules/ieee754/README.md +51 -0
- package/node_modules/ieee754/index.d.ts +10 -0
- package/node_modules/ieee754/index.js +85 -0
- package/node_modules/ieee754/package.json +52 -0
- package/node_modules/inherits/LICENSE +16 -0
- package/node_modules/inherits/README.md +42 -0
- package/node_modules/inherits/inherits.js +9 -0
- package/node_modules/inherits/inherits_browser.js +27 -0
- package/node_modules/inherits/package.json +29 -0
- package/node_modules/ini/LICENSE +15 -0
- package/node_modules/ini/README.md +102 -0
- package/node_modules/ini/ini.js +206 -0
- package/node_modules/ini/package.json +33 -0
- package/node_modules/ipaddr.js/LICENSE +19 -0
- package/node_modules/ipaddr.js/README.md +233 -0
- package/node_modules/ipaddr.js/ipaddr.min.js +1 -0
- package/node_modules/ipaddr.js/lib/ipaddr.js +673 -0
- package/node_modules/ipaddr.js/lib/ipaddr.js.d.ts +68 -0
- package/node_modules/ipaddr.js/package.json +35 -0
- package/node_modules/is-promise/LICENSE +19 -0
- package/node_modules/is-promise/index.d.ts +2 -0
- package/node_modules/is-promise/index.js +6 -0
- package/node_modules/is-promise/index.mjs +3 -0
- package/node_modules/is-promise/package.json +30 -0
- package/node_modules/is-promise/readme.md +33 -0
- package/node_modules/keytar/LICENSE.md +20 -0
- package/node_modules/keytar/README.md +94 -0
- package/node_modules/keytar/binding.gyp +66 -0
- package/node_modules/keytar/build/Release/keytar.node +0 -0
- package/node_modules/keytar/keytar.d.ts +51 -0
- package/node_modules/keytar/lib/keytar.js +43 -0
- package/node_modules/keytar/package.json +66 -0
- package/node_modules/keytar/src/async.cc +242 -0
- package/node_modules/keytar/src/async.h +103 -0
- package/node_modules/keytar/src/credentials.h +13 -0
- package/node_modules/keytar/src/keytar.h +41 -0
- package/node_modules/keytar/src/keytar_mac.cc +296 -0
- package/node_modules/keytar/src/keytar_posix.cc +184 -0
- package/node_modules/keytar/src/keytar_win.cc +272 -0
- package/node_modules/keytar/src/main.cc +139 -0
- package/node_modules/math-intrinsics/.eslintrc +16 -0
- package/node_modules/math-intrinsics/.github/FUNDING.yml +12 -0
- package/node_modules/math-intrinsics/CHANGELOG.md +24 -0
- package/node_modules/math-intrinsics/LICENSE +21 -0
- package/node_modules/math-intrinsics/README.md +50 -0
- package/node_modules/math-intrinsics/abs.d.ts +1 -0
- package/node_modules/math-intrinsics/abs.js +4 -0
- package/node_modules/math-intrinsics/constants/maxArrayLength.d.ts +3 -0
- package/node_modules/math-intrinsics/constants/maxArrayLength.js +4 -0
- package/node_modules/math-intrinsics/constants/maxSafeInteger.d.ts +3 -0
- package/node_modules/math-intrinsics/constants/maxSafeInteger.js +5 -0
- package/node_modules/math-intrinsics/constants/maxValue.d.ts +3 -0
- package/node_modules/math-intrinsics/constants/maxValue.js +5 -0
- package/node_modules/math-intrinsics/floor.d.ts +1 -0
- package/node_modules/math-intrinsics/floor.js +4 -0
- package/node_modules/math-intrinsics/isFinite.d.ts +3 -0
- package/node_modules/math-intrinsics/isFinite.js +12 -0
- package/node_modules/math-intrinsics/isInteger.d.ts +3 -0
- package/node_modules/math-intrinsics/isInteger.js +16 -0
- package/node_modules/math-intrinsics/isNaN.d.ts +1 -0
- package/node_modules/math-intrinsics/isNaN.js +6 -0
- package/node_modules/math-intrinsics/isNegativeZero.d.ts +3 -0
- package/node_modules/math-intrinsics/isNegativeZero.js +6 -0
- package/node_modules/math-intrinsics/max.d.ts +1 -0
- package/node_modules/math-intrinsics/max.js +4 -0
- package/node_modules/math-intrinsics/min.d.ts +1 -0
- package/node_modules/math-intrinsics/min.js +4 -0
- package/node_modules/math-intrinsics/mod.d.ts +3 -0
- package/node_modules/math-intrinsics/mod.js +9 -0
- package/node_modules/math-intrinsics/package.json +86 -0
- package/node_modules/math-intrinsics/pow.d.ts +1 -0
- package/node_modules/math-intrinsics/pow.js +4 -0
- package/node_modules/math-intrinsics/round.d.ts +1 -0
- package/node_modules/math-intrinsics/round.js +4 -0
- package/node_modules/math-intrinsics/sign.d.ts +3 -0
- package/node_modules/math-intrinsics/sign.js +11 -0
- package/node_modules/math-intrinsics/test/index.js +192 -0
- package/node_modules/math-intrinsics/tsconfig.json +3 -0
- package/node_modules/media-typer/HISTORY.md +50 -0
- package/node_modules/media-typer/LICENSE +22 -0
- package/node_modules/media-typer/README.md +93 -0
- package/node_modules/media-typer/index.js +143 -0
- package/node_modules/media-typer/package.json +33 -0
- package/node_modules/merge-descriptors/index.d.ts +11 -0
- package/node_modules/merge-descriptors/index.js +26 -0
- package/node_modules/merge-descriptors/license +11 -0
- package/node_modules/merge-descriptors/package.json +50 -0
- package/node_modules/merge-descriptors/readme.md +55 -0
- package/node_modules/mime-db/HISTORY.md +541 -0
- package/node_modules/mime-db/LICENSE +23 -0
- package/node_modules/mime-db/README.md +109 -0
- package/node_modules/mime-db/db.json +9342 -0
- package/node_modules/mime-db/index.js +12 -0
- package/node_modules/mime-db/package.json +56 -0
- package/node_modules/mime-types/HISTORY.md +428 -0
- package/node_modules/mime-types/LICENSE +23 -0
- package/node_modules/mime-types/README.md +126 -0
- package/node_modules/mime-types/index.js +211 -0
- package/node_modules/mime-types/mimeScore.js +57 -0
- package/node_modules/mime-types/package.json +49 -0
- package/node_modules/mimic-response/index.d.ts +17 -0
- package/node_modules/mimic-response/index.js +77 -0
- package/node_modules/mimic-response/license +9 -0
- package/node_modules/mimic-response/package.json +42 -0
- package/node_modules/mimic-response/readme.md +78 -0
- package/node_modules/minimist/.eslintrc +29 -0
- package/node_modules/minimist/.github/FUNDING.yml +12 -0
- package/node_modules/minimist/.nycrc +14 -0
- package/node_modules/minimist/CHANGELOG.md +298 -0
- package/node_modules/minimist/LICENSE +18 -0
- package/node_modules/minimist/README.md +121 -0
- package/node_modules/minimist/example/parse.js +4 -0
- package/node_modules/minimist/index.js +263 -0
- package/node_modules/minimist/package.json +75 -0
- package/node_modules/minimist/test/all_bool.js +34 -0
- package/node_modules/minimist/test/bool.js +177 -0
- package/node_modules/minimist/test/dash.js +43 -0
- package/node_modules/minimist/test/default_bool.js +37 -0
- package/node_modules/minimist/test/dotted.js +24 -0
- package/node_modules/minimist/test/kv_short.js +32 -0
- package/node_modules/minimist/test/long.js +33 -0
- package/node_modules/minimist/test/num.js +38 -0
- package/node_modules/minimist/test/parse.js +209 -0
- package/node_modules/minimist/test/parse_modified.js +11 -0
- package/node_modules/minimist/test/proto.js +64 -0
- package/node_modules/minimist/test/short.js +69 -0
- package/node_modules/minimist/test/stop_early.js +17 -0
- package/node_modules/minimist/test/unknown.js +104 -0
- package/node_modules/minimist/test/whitespace.js +10 -0
- package/node_modules/mkdirp-classic/LICENSE +21 -0
- package/node_modules/mkdirp-classic/README.md +18 -0
- package/node_modules/mkdirp-classic/index.js +98 -0
- package/node_modules/mkdirp-classic/package.json +18 -0
- package/node_modules/ms/index.js +162 -0
- package/node_modules/ms/license.md +21 -0
- package/node_modules/ms/package.json +38 -0
- package/node_modules/ms/readme.md +59 -0
- package/node_modules/napi-build-utils/.github/workflows/run-npm-tests.yml +31 -0
- package/node_modules/napi-build-utils/LICENSE +21 -0
- package/node_modules/napi-build-utils/README.md +52 -0
- package/node_modules/napi-build-utils/index.js +214 -0
- package/node_modules/napi-build-utils/index.md +0 -0
- package/node_modules/napi-build-utils/package.json +42 -0
- package/node_modules/negotiator/HISTORY.md +114 -0
- package/node_modules/negotiator/LICENSE +24 -0
- package/node_modules/negotiator/README.md +212 -0
- package/node_modules/negotiator/index.js +83 -0
- package/node_modules/negotiator/lib/charset.js +169 -0
- package/node_modules/negotiator/lib/encoding.js +205 -0
- package/node_modules/negotiator/lib/language.js +179 -0
- package/node_modules/negotiator/lib/mediaType.js +294 -0
- package/node_modules/negotiator/package.json +43 -0
- package/node_modules/node-abi/LICENSE +21 -0
- package/node_modules/node-abi/README.md +54 -0
- package/node_modules/node-abi/abi_registry.json +432 -0
- package/node_modules/node-abi/index.js +179 -0
- package/node_modules/node-abi/package.json +45 -0
- package/node_modules/node-addon-api/LICENSE.md +13 -0
- package/node_modules/node-addon-api/README.md +293 -0
- package/node_modules/node-addon-api/common.gypi +21 -0
- package/node_modules/node-addon-api/except.gypi +25 -0
- package/node_modules/node-addon-api/index.js +11 -0
- package/node_modules/node-addon-api/napi-inl.deprecated.h +192 -0
- package/node_modules/node-addon-api/napi-inl.h +6209 -0
- package/node_modules/node-addon-api/napi.h +2983 -0
- package/node_modules/node-addon-api/node_api.gyp +9 -0
- package/node_modules/node-addon-api/noexcept.gypi +26 -0
- package/node_modules/node-addon-api/nothing.c +0 -0
- package/node_modules/node-addon-api/package-support.json +21 -0
- package/node_modules/node-addon-api/package.json +399 -0
- package/node_modules/node-addon-api/tools/README.md +73 -0
- package/node_modules/node-addon-api/tools/check-napi.js +100 -0
- package/node_modules/node-addon-api/tools/clang-format.js +68 -0
- package/node_modules/node-addon-api/tools/conversion.js +309 -0
- package/node_modules/node-addon-api/tools/eslint-format.js +71 -0
- package/node_modules/object-inspect/.eslintrc +53 -0
- package/node_modules/object-inspect/.github/FUNDING.yml +12 -0
- package/node_modules/object-inspect/.nycrc +13 -0
- package/node_modules/object-inspect/CHANGELOG.md +424 -0
- package/node_modules/object-inspect/LICENSE +21 -0
- package/node_modules/object-inspect/example/all.js +23 -0
- package/node_modules/object-inspect/example/circular.js +6 -0
- package/node_modules/object-inspect/example/fn.js +5 -0
- package/node_modules/object-inspect/example/inspect.js +10 -0
- package/node_modules/object-inspect/index.js +544 -0
- package/node_modules/object-inspect/package-support.json +20 -0
- package/node_modules/object-inspect/package.json +105 -0
- package/node_modules/object-inspect/readme.markdown +84 -0
- package/node_modules/object-inspect/test/bigint.js +58 -0
- package/node_modules/object-inspect/test/browser/dom.js +15 -0
- package/node_modules/object-inspect/test/circular.js +16 -0
- package/node_modules/object-inspect/test/deep.js +12 -0
- package/node_modules/object-inspect/test/element.js +53 -0
- package/node_modules/object-inspect/test/err.js +48 -0
- package/node_modules/object-inspect/test/fakes.js +29 -0
- package/node_modules/object-inspect/test/fn.js +76 -0
- package/node_modules/object-inspect/test/global.js +17 -0
- package/node_modules/object-inspect/test/has.js +15 -0
- package/node_modules/object-inspect/test/holes.js +15 -0
- package/node_modules/object-inspect/test/indent-option.js +271 -0
- package/node_modules/object-inspect/test/inspect.js +139 -0
- package/node_modules/object-inspect/test/lowbyte.js +12 -0
- package/node_modules/object-inspect/test/number.js +58 -0
- package/node_modules/object-inspect/test/quoteStyle.js +26 -0
- package/node_modules/object-inspect/test/toStringTag.js +40 -0
- package/node_modules/object-inspect/test/undef.js +12 -0
- package/node_modules/object-inspect/test/values.js +261 -0
- package/node_modules/object-inspect/test-core-js.js +26 -0
- package/node_modules/object-inspect/util.inspect.js +1 -0
- package/node_modules/on-finished/HISTORY.md +98 -0
- package/node_modules/on-finished/LICENSE +23 -0
- package/node_modules/on-finished/README.md +162 -0
- package/node_modules/on-finished/index.js +234 -0
- package/node_modules/on-finished/package.json +39 -0
- package/node_modules/once/LICENSE +15 -0
- package/node_modules/once/README.md +79 -0
- package/node_modules/once/once.js +42 -0
- package/node_modules/once/package.json +33 -0
- package/node_modules/parseurl/HISTORY.md +58 -0
- package/node_modules/parseurl/LICENSE +24 -0
- package/node_modules/parseurl/README.md +133 -0
- package/node_modules/parseurl/index.js +158 -0
- package/node_modules/parseurl/package.json +40 -0
- package/node_modules/path-to-regexp/LICENSE +21 -0
- package/node_modules/path-to-regexp/Readme.md +224 -0
- package/node_modules/path-to-regexp/dist/index.d.ts +144 -0
- package/node_modules/path-to-regexp/dist/index.js +409 -0
- package/node_modules/path-to-regexp/dist/index.js.map +1 -0
- package/node_modules/path-to-regexp/package.json +64 -0
- package/node_modules/prebuild-install/CHANGELOG.md +131 -0
- package/node_modules/prebuild-install/CONTRIBUTING.md +6 -0
- package/node_modules/prebuild-install/LICENSE +21 -0
- package/node_modules/prebuild-install/README.md +163 -0
- package/node_modules/prebuild-install/asset.js +44 -0
- package/node_modules/prebuild-install/bin.js +78 -0
- package/node_modules/prebuild-install/download.js +142 -0
- package/node_modules/prebuild-install/error.js +14 -0
- package/node_modules/prebuild-install/help.txt +16 -0
- package/node_modules/prebuild-install/index.js +1 -0
- package/node_modules/prebuild-install/log.js +33 -0
- package/node_modules/prebuild-install/package.json +67 -0
- package/node_modules/prebuild-install/proxy.js +35 -0
- package/node_modules/prebuild-install/rc.js +64 -0
- package/node_modules/prebuild-install/util.js +143 -0
- package/node_modules/proxy-addr/HISTORY.md +161 -0
- package/node_modules/proxy-addr/LICENSE +22 -0
- package/node_modules/proxy-addr/README.md +139 -0
- package/node_modules/proxy-addr/index.js +327 -0
- package/node_modules/proxy-addr/package.json +47 -0
- package/node_modules/pump/.github/FUNDING.yml +2 -0
- package/node_modules/pump/.travis.yml +5 -0
- package/node_modules/pump/LICENSE +21 -0
- package/node_modules/pump/README.md +74 -0
- package/node_modules/pump/SECURITY.md +5 -0
- package/node_modules/pump/empty.js +1 -0
- package/node_modules/pump/index.js +86 -0
- package/node_modules/pump/package.json +30 -0
- package/node_modules/pump/test-browser.js +66 -0
- package/node_modules/pump/test-node.js +53 -0
- package/node_modules/qs/.editorconfig +46 -0
- package/node_modules/qs/.eslintrc +39 -0
- package/node_modules/qs/.github/FUNDING.yml +12 -0
- package/node_modules/qs/.nycrc +13 -0
- package/node_modules/qs/CHANGELOG.md +622 -0
- package/node_modules/qs/LICENSE.md +29 -0
- package/node_modules/qs/README.md +733 -0
- package/node_modules/qs/dist/qs.js +141 -0
- package/node_modules/qs/lib/formats.js +23 -0
- package/node_modules/qs/lib/index.js +11 -0
- package/node_modules/qs/lib/parse.js +328 -0
- package/node_modules/qs/lib/stringify.js +356 -0
- package/node_modules/qs/lib/utils.js +268 -0
- package/node_modules/qs/package.json +93 -0
- package/node_modules/qs/test/empty-keys-cases.js +267 -0
- package/node_modules/qs/test/parse.js +1276 -0
- package/node_modules/qs/test/stringify.js +1306 -0
- package/node_modules/qs/test/utils.js +262 -0
- package/node_modules/range-parser/HISTORY.md +56 -0
- package/node_modules/range-parser/LICENSE +23 -0
- package/node_modules/range-parser/README.md +84 -0
- package/node_modules/range-parser/index.js +162 -0
- package/node_modules/range-parser/package.json +44 -0
- package/node_modules/raw-body/LICENSE +22 -0
- package/node_modules/raw-body/README.md +223 -0
- package/node_modules/raw-body/index.d.ts +85 -0
- package/node_modules/raw-body/index.js +336 -0
- package/node_modules/raw-body/package.json +46 -0
- package/node_modules/rc/LICENSE.APACHE2 +15 -0
- package/node_modules/rc/LICENSE.BSD +26 -0
- package/node_modules/rc/LICENSE.MIT +24 -0
- package/node_modules/rc/README.md +227 -0
- package/node_modules/rc/browser.js +7 -0
- package/node_modules/rc/cli.js +4 -0
- package/node_modules/rc/index.js +53 -0
- package/node_modules/rc/lib/utils.js +104 -0
- package/node_modules/rc/package.json +29 -0
- package/node_modules/rc/test/ini.js +16 -0
- package/node_modules/rc/test/nested-env-vars.js +50 -0
- package/node_modules/rc/test/test.js +59 -0
- package/node_modules/readable-stream/CONTRIBUTING.md +38 -0
- package/node_modules/readable-stream/GOVERNANCE.md +136 -0
- package/node_modules/readable-stream/LICENSE +47 -0
- package/node_modules/readable-stream/README.md +106 -0
- package/node_modules/readable-stream/errors-browser.js +127 -0
- package/node_modules/readable-stream/errors.js +116 -0
- package/node_modules/readable-stream/experimentalWarning.js +17 -0
- package/node_modules/readable-stream/lib/_stream_duplex.js +126 -0
- package/node_modules/readable-stream/lib/_stream_passthrough.js +37 -0
- package/node_modules/readable-stream/lib/_stream_readable.js +1027 -0
- package/node_modules/readable-stream/lib/_stream_transform.js +190 -0
- package/node_modules/readable-stream/lib/_stream_writable.js +641 -0
- package/node_modules/readable-stream/lib/internal/streams/async_iterator.js +180 -0
- package/node_modules/readable-stream/lib/internal/streams/buffer_list.js +183 -0
- package/node_modules/readable-stream/lib/internal/streams/destroy.js +96 -0
- package/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +86 -0
- package/node_modules/readable-stream/lib/internal/streams/from-browser.js +3 -0
- package/node_modules/readable-stream/lib/internal/streams/from.js +52 -0
- package/node_modules/readable-stream/lib/internal/streams/pipeline.js +86 -0
- package/node_modules/readable-stream/lib/internal/streams/state.js +22 -0
- package/node_modules/readable-stream/lib/internal/streams/stream-browser.js +1 -0
- package/node_modules/readable-stream/lib/internal/streams/stream.js +1 -0
- package/node_modules/readable-stream/package.json +68 -0
- package/node_modules/readable-stream/readable-browser.js +9 -0
- package/node_modules/readable-stream/readable.js +16 -0
- package/node_modules/router/HISTORY.md +228 -0
- package/node_modules/router/LICENSE +23 -0
- package/node_modules/router/README.md +416 -0
- package/node_modules/router/index.js +748 -0
- package/node_modules/router/lib/layer.js +247 -0
- package/node_modules/router/lib/route.js +242 -0
- package/node_modules/router/package.json +44 -0
- package/node_modules/safe-buffer/LICENSE +21 -0
- package/node_modules/safe-buffer/README.md +584 -0
- package/node_modules/safe-buffer/index.d.ts +187 -0
- package/node_modules/safe-buffer/index.js +65 -0
- package/node_modules/safe-buffer/package.json +51 -0
- package/node_modules/safer-buffer/LICENSE +21 -0
- package/node_modules/safer-buffer/Porting-Buffer.md +268 -0
- package/node_modules/safer-buffer/Readme.md +156 -0
- package/node_modules/safer-buffer/dangerous.js +58 -0
- package/node_modules/safer-buffer/package.json +34 -0
- package/node_modules/safer-buffer/safer.js +77 -0
- package/node_modules/safer-buffer/tests.js +406 -0
- package/node_modules/semver/LICENSE +15 -0
- package/node_modules/semver/README.md +665 -0
- package/node_modules/semver/bin/semver.js +191 -0
- package/node_modules/semver/classes/comparator.js +143 -0
- package/node_modules/semver/classes/index.js +7 -0
- package/node_modules/semver/classes/range.js +557 -0
- package/node_modules/semver/classes/semver.js +333 -0
- package/node_modules/semver/functions/clean.js +8 -0
- package/node_modules/semver/functions/cmp.js +54 -0
- package/node_modules/semver/functions/coerce.js +62 -0
- package/node_modules/semver/functions/compare-build.js +9 -0
- package/node_modules/semver/functions/compare-loose.js +5 -0
- package/node_modules/semver/functions/compare.js +7 -0
- package/node_modules/semver/functions/diff.js +60 -0
- package/node_modules/semver/functions/eq.js +5 -0
- package/node_modules/semver/functions/gt.js +5 -0
- package/node_modules/semver/functions/gte.js +5 -0
- package/node_modules/semver/functions/inc.js +21 -0
- package/node_modules/semver/functions/lt.js +5 -0
- package/node_modules/semver/functions/lte.js +5 -0
- package/node_modules/semver/functions/major.js +5 -0
- package/node_modules/semver/functions/minor.js +5 -0
- package/node_modules/semver/functions/neq.js +5 -0
- package/node_modules/semver/functions/parse.js +18 -0
- package/node_modules/semver/functions/patch.js +5 -0
- package/node_modules/semver/functions/prerelease.js +8 -0
- package/node_modules/semver/functions/rcompare.js +5 -0
- package/node_modules/semver/functions/rsort.js +5 -0
- package/node_modules/semver/functions/satisfies.js +12 -0
- package/node_modules/semver/functions/sort.js +5 -0
- package/node_modules/semver/functions/valid.js +8 -0
- package/node_modules/semver/index.js +91 -0
- package/node_modules/semver/internal/constants.js +37 -0
- package/node_modules/semver/internal/debug.js +11 -0
- package/node_modules/semver/internal/identifiers.js +29 -0
- package/node_modules/semver/internal/lrucache.js +42 -0
- package/node_modules/semver/internal/parse-options.js +17 -0
- package/node_modules/semver/internal/re.js +223 -0
- package/node_modules/semver/package.json +78 -0
- package/node_modules/semver/preload.js +4 -0
- package/node_modules/semver/range.bnf +16 -0
- package/node_modules/semver/ranges/gtr.js +6 -0
- package/node_modules/semver/ranges/intersects.js +9 -0
- package/node_modules/semver/ranges/ltr.js +6 -0
- package/node_modules/semver/ranges/max-satisfying.js +27 -0
- package/node_modules/semver/ranges/min-satisfying.js +26 -0
- package/node_modules/semver/ranges/min-version.js +63 -0
- package/node_modules/semver/ranges/outside.js +82 -0
- package/node_modules/semver/ranges/simplify.js +49 -0
- package/node_modules/semver/ranges/subset.js +249 -0
- package/node_modules/semver/ranges/to-comparators.js +10 -0
- package/node_modules/semver/ranges/valid.js +13 -0
- package/node_modules/send/HISTORY.md +580 -0
- package/node_modules/send/LICENSE +23 -0
- package/node_modules/send/README.md +317 -0
- package/node_modules/send/index.js +997 -0
- package/node_modules/send/package.json +60 -0
- package/node_modules/serve-static/HISTORY.md +516 -0
- package/node_modules/serve-static/LICENSE +25 -0
- package/node_modules/serve-static/README.md +253 -0
- package/node_modules/serve-static/index.js +208 -0
- package/node_modules/serve-static/package.json +41 -0
- package/node_modules/setprototypeof/LICENSE +13 -0
- package/node_modules/setprototypeof/README.md +31 -0
- package/node_modules/setprototypeof/index.d.ts +2 -0
- package/node_modules/setprototypeof/index.js +17 -0
- package/node_modules/setprototypeof/package.json +38 -0
- package/node_modules/setprototypeof/test/index.js +24 -0
- package/node_modules/side-channel/.editorconfig +9 -0
- package/node_modules/side-channel/.eslintrc +12 -0
- package/node_modules/side-channel/.github/FUNDING.yml +12 -0
- package/node_modules/side-channel/.nycrc +13 -0
- package/node_modules/side-channel/CHANGELOG.md +110 -0
- package/node_modules/side-channel/LICENSE +21 -0
- package/node_modules/side-channel/README.md +61 -0
- package/node_modules/side-channel/index.d.ts +14 -0
- package/node_modules/side-channel/index.js +43 -0
- package/node_modules/side-channel/package.json +85 -0
- package/node_modules/side-channel/test/index.js +104 -0
- package/node_modules/side-channel/tsconfig.json +9 -0
- package/node_modules/side-channel-list/.editorconfig +9 -0
- package/node_modules/side-channel-list/.eslintrc +11 -0
- package/node_modules/side-channel-list/.github/FUNDING.yml +12 -0
- package/node_modules/side-channel-list/.nycrc +13 -0
- package/node_modules/side-channel-list/CHANGELOG.md +15 -0
- package/node_modules/side-channel-list/LICENSE +21 -0
- package/node_modules/side-channel-list/README.md +62 -0
- package/node_modules/side-channel-list/index.d.ts +13 -0
- package/node_modules/side-channel-list/index.js +113 -0
- package/node_modules/side-channel-list/list.d.ts +14 -0
- package/node_modules/side-channel-list/package.json +77 -0
- package/node_modules/side-channel-list/test/index.js +104 -0
- package/node_modules/side-channel-list/tsconfig.json +9 -0
- package/node_modules/side-channel-map/.editorconfig +9 -0
- package/node_modules/side-channel-map/.eslintrc +11 -0
- package/node_modules/side-channel-map/.github/FUNDING.yml +12 -0
- package/node_modules/side-channel-map/.nycrc +13 -0
- package/node_modules/side-channel-map/CHANGELOG.md +22 -0
- package/node_modules/side-channel-map/LICENSE +21 -0
- package/node_modules/side-channel-map/README.md +62 -0
- package/node_modules/side-channel-map/index.d.ts +15 -0
- package/node_modules/side-channel-map/index.js +68 -0
- package/node_modules/side-channel-map/package.json +80 -0
- package/node_modules/side-channel-map/test/index.js +114 -0
- package/node_modules/side-channel-map/tsconfig.json +9 -0
- package/node_modules/side-channel-weakmap/.editorconfig +9 -0
- package/node_modules/side-channel-weakmap/.eslintrc +12 -0
- package/node_modules/side-channel-weakmap/.github/FUNDING.yml +12 -0
- package/node_modules/side-channel-weakmap/.nycrc +13 -0
- package/node_modules/side-channel-weakmap/CHANGELOG.md +28 -0
- package/node_modules/side-channel-weakmap/LICENSE +21 -0
- package/node_modules/side-channel-weakmap/README.md +62 -0
- package/node_modules/side-channel-weakmap/index.d.ts +15 -0
- package/node_modules/side-channel-weakmap/index.js +84 -0
- package/node_modules/side-channel-weakmap/package.json +87 -0
- package/node_modules/side-channel-weakmap/test/index.js +114 -0
- package/node_modules/side-channel-weakmap/tsconfig.json +9 -0
- package/node_modules/simple-concat/.travis.yml +3 -0
- package/node_modules/simple-concat/LICENSE +20 -0
- package/node_modules/simple-concat/README.md +44 -0
- package/node_modules/simple-concat/index.js +15 -0
- package/node_modules/simple-concat/package.json +47 -0
- package/node_modules/simple-concat/test/basic.js +41 -0
- package/node_modules/simple-get/.github/dependabot.yml +15 -0
- package/node_modules/simple-get/.github/workflows/ci.yml +23 -0
- package/node_modules/simple-get/LICENSE +20 -0
- package/node_modules/simple-get/README.md +333 -0
- package/node_modules/simple-get/index.js +108 -0
- package/node_modules/simple-get/package.json +67 -0
- package/node_modules/statuses/HISTORY.md +87 -0
- package/node_modules/statuses/LICENSE +23 -0
- package/node_modules/statuses/README.md +139 -0
- package/node_modules/statuses/codes.json +65 -0
- package/node_modules/statuses/index.js +146 -0
- package/node_modules/statuses/package.json +49 -0
- package/node_modules/string_decoder/LICENSE +48 -0
- package/node_modules/string_decoder/README.md +47 -0
- package/node_modules/string_decoder/lib/string_decoder.js +296 -0
- package/node_modules/string_decoder/package.json +34 -0
- package/node_modules/strip-json-comments/index.js +70 -0
- package/node_modules/strip-json-comments/license +21 -0
- package/node_modules/strip-json-comments/package.json +42 -0
- package/node_modules/strip-json-comments/readme.md +64 -0
- package/node_modules/tar-fs/.travis.yml +6 -0
- package/node_modules/tar-fs/LICENSE +21 -0
- package/node_modules/tar-fs/README.md +165 -0
- package/node_modules/tar-fs/index.js +363 -0
- package/node_modules/tar-fs/package.json +41 -0
- package/node_modules/tar-fs/test/fixtures/a/hello.txt +1 -0
- package/node_modules/tar-fs/test/fixtures/b/a/test.txt +1 -0
- package/node_modules/tar-fs/test/fixtures/d/file1 +0 -0
- package/node_modules/tar-fs/test/fixtures/d/file2 +0 -0
- package/node_modules/tar-fs/test/fixtures/d/sub-dir/file5 +0 -0
- package/node_modules/tar-fs/test/fixtures/d/sub-files/file3 +0 -0
- package/node_modules/tar-fs/test/fixtures/d/sub-files/file4 +0 -0
- package/node_modules/tar-fs/test/fixtures/e/directory/.ignore +0 -0
- package/node_modules/tar-fs/test/fixtures/e/file +0 -0
- package/node_modules/tar-fs/test/fixtures/invalid.tar +0 -0
- package/node_modules/tar-fs/test/index.js +346 -0
- package/node_modules/tar-stream/LICENSE +21 -0
- package/node_modules/tar-stream/README.md +168 -0
- package/node_modules/tar-stream/extract.js +257 -0
- package/node_modules/tar-stream/headers.js +295 -0
- package/node_modules/tar-stream/index.js +2 -0
- package/node_modules/tar-stream/pack.js +255 -0
- package/node_modules/tar-stream/package.json +58 -0
- package/node_modules/tar-stream/sandbox.js +11 -0
- package/node_modules/toidentifier/HISTORY.md +9 -0
- package/node_modules/toidentifier/LICENSE +21 -0
- package/node_modules/toidentifier/README.md +61 -0
- package/node_modules/toidentifier/index.js +32 -0
- package/node_modules/toidentifier/package.json +38 -0
- package/node_modules/tunnel-agent/LICENSE +55 -0
- package/node_modules/tunnel-agent/README.md +4 -0
- package/node_modules/tunnel-agent/index.js +244 -0
- package/node_modules/tunnel-agent/package.json +22 -0
- package/node_modules/type-is/HISTORY.md +292 -0
- package/node_modules/type-is/LICENSE +23 -0
- package/node_modules/type-is/README.md +198 -0
- package/node_modules/type-is/index.js +250 -0
- package/node_modules/type-is/package.json +47 -0
- package/node_modules/unpipe/HISTORY.md +4 -0
- package/node_modules/unpipe/LICENSE +22 -0
- package/node_modules/unpipe/README.md +43 -0
- package/node_modules/unpipe/index.js +69 -0
- package/node_modules/unpipe/package.json +27 -0
- package/node_modules/util-deprecate/History.md +16 -0
- package/node_modules/util-deprecate/LICENSE +24 -0
- package/node_modules/util-deprecate/README.md +53 -0
- package/node_modules/util-deprecate/browser.js +67 -0
- package/node_modules/util-deprecate/node.js +6 -0
- package/node_modules/util-deprecate/package.json +27 -0
- package/node_modules/uuid/LICENSE.md +9 -0
- package/node_modules/uuid/README.md +499 -0
- package/node_modules/uuid/dist/index.d.ts +15 -0
- package/node_modules/uuid/dist/index.js +14 -0
- package/node_modules/uuid/dist/max.d.ts +2 -0
- package/node_modules/uuid/dist/max.js +1 -0
- package/node_modules/uuid/dist/md5.d.ts +2 -0
- package/node_modules/uuid/dist/md5.js +135 -0
- package/node_modules/uuid/dist/native.d.ts +4 -0
- package/node_modules/uuid/dist/native.js +2 -0
- package/node_modules/uuid/dist/nil.d.ts +2 -0
- package/node_modules/uuid/dist/nil.js +1 -0
- package/node_modules/uuid/dist/parse.d.ts +2 -0
- package/node_modules/uuid/dist/parse.js +9 -0
- package/node_modules/uuid/dist/regex.d.ts +2 -0
- package/node_modules/uuid/dist/regex.js +1 -0
- package/node_modules/uuid/dist/rng.d.ts +1 -0
- package/node_modules/uuid/dist/rng.js +11 -0
- package/node_modules/uuid/dist/sha1.d.ts +2 -0
- package/node_modules/uuid/dist/sha1.js +70 -0
- package/node_modules/uuid/dist/stringify.d.ts +3 -0
- package/node_modules/uuid/dist/stringify.js +35 -0
- package/node_modules/uuid/dist/types.d.ts +21 -0
- package/node_modules/uuid/dist/types.js +1 -0
- package/node_modules/uuid/dist/uuid-bin.d.ts +1 -0
- package/node_modules/uuid/dist/uuid-bin.js +70 -0
- package/node_modules/uuid/dist/v1.d.ts +11 -0
- package/node_modules/uuid/dist/v1.js +83 -0
- package/node_modules/uuid/dist/v1ToV6.d.ts +2 -0
- package/node_modules/uuid/dist/v1ToV6.js +10 -0
- package/node_modules/uuid/dist/v3.d.ts +9 -0
- package/node_modules/uuid/dist/v3.js +9 -0
- package/node_modules/uuid/dist/v35.d.ts +7 -0
- package/node_modules/uuid/dist/v35.js +36 -0
- package/node_modules/uuid/dist/v4.d.ts +4 -0
- package/node_modules/uuid/dist/v4.js +30 -0
- package/node_modules/uuid/dist/v5.d.ts +9 -0
- package/node_modules/uuid/dist/v5.js +9 -0
- package/node_modules/uuid/dist/v6.d.ts +4 -0
- package/node_modules/uuid/dist/v6.js +17 -0
- package/node_modules/uuid/dist/v6ToV1.d.ts +2 -0
- package/node_modules/uuid/dist/v6ToV1.js +10 -0
- package/node_modules/uuid/dist/v7.d.ts +9 -0
- package/node_modules/uuid/dist/v7.js +65 -0
- package/node_modules/uuid/dist/validate.d.ts +2 -0
- package/node_modules/uuid/dist/validate.js +5 -0
- package/node_modules/uuid/dist/version.d.ts +2 -0
- package/node_modules/uuid/dist/version.js +8 -0
- package/node_modules/uuid/dist-node/bin/uuid +2 -0
- package/node_modules/uuid/dist-node/index.js +14 -0
- package/node_modules/uuid/dist-node/max.js +1 -0
- package/node_modules/uuid/dist-node/md5.js +11 -0
- package/node_modules/uuid/dist-node/native.js +2 -0
- package/node_modules/uuid/dist-node/nil.js +1 -0
- package/node_modules/uuid/dist-node/parse.js +9 -0
- package/node_modules/uuid/dist-node/regex.js +1 -0
- package/node_modules/uuid/dist-node/rng.js +10 -0
- package/node_modules/uuid/dist-node/sha1.js +11 -0
- package/node_modules/uuid/dist-node/stringify.js +35 -0
- package/node_modules/uuid/dist-node/types.js +1 -0
- package/node_modules/uuid/dist-node/uuid-bin.js +70 -0
- package/node_modules/uuid/dist-node/v1.js +83 -0
- package/node_modules/uuid/dist-node/v1ToV6.js +10 -0
- package/node_modules/uuid/dist-node/v3.js +9 -0
- package/node_modules/uuid/dist-node/v35.js +36 -0
- package/node_modules/uuid/dist-node/v4.js +30 -0
- package/node_modules/uuid/dist-node/v5.js +9 -0
- package/node_modules/uuid/dist-node/v6.js +17 -0
- package/node_modules/uuid/dist-node/v6ToV1.js +10 -0
- package/node_modules/uuid/dist-node/v7.js +65 -0
- package/node_modules/uuid/dist-node/validate.js +5 -0
- package/node_modules/uuid/dist-node/version.js +8 -0
- package/node_modules/uuid/package.json +119 -0
- package/node_modules/vary/HISTORY.md +39 -0
- package/node_modules/vary/LICENSE +22 -0
- package/node_modules/vary/README.md +101 -0
- package/node_modules/vary/index.js +149 -0
- package/node_modules/vary/package.json +43 -0
- package/node_modules/wrappy/LICENSE +15 -0
- package/node_modules/wrappy/README.md +36 -0
- package/node_modules/wrappy/package.json +29 -0
- package/node_modules/wrappy/wrappy.js +33 -0
- package/node_modules/ws/LICENSE +20 -0
- package/node_modules/ws/README.md +548 -0
- package/node_modules/ws/browser.js +8 -0
- package/node_modules/ws/index.js +13 -0
- package/node_modules/ws/lib/buffer-util.js +131 -0
- package/node_modules/ws/lib/constants.js +18 -0
- package/node_modules/ws/lib/event-target.js +292 -0
- package/node_modules/ws/lib/extension.js +203 -0
- package/node_modules/ws/lib/limiter.js +55 -0
- package/node_modules/ws/lib/permessage-deflate.js +528 -0
- package/node_modules/ws/lib/receiver.js +706 -0
- package/node_modules/ws/lib/sender.js +602 -0
- package/node_modules/ws/lib/stream.js +161 -0
- package/node_modules/ws/lib/subprotocol.js +62 -0
- package/node_modules/ws/lib/validation.js +152 -0
- package/node_modules/ws/lib/websocket-server.js +550 -0
- package/node_modules/ws/lib/websocket.js +1388 -0
- package/node_modules/ws/package.json +69 -0
- package/node_modules/ws/wrapper.mjs +8 -0
- package/package.json +11 -2
|
@@ -0,0 +1,1197 @@
|
|
|
1
|
+
import { devAssert } from '../jsutils/devAssert.mjs';
|
|
2
|
+
import { didYouMean } from '../jsutils/didYouMean.mjs';
|
|
3
|
+
import { identityFunc } from '../jsutils/identityFunc.mjs';
|
|
4
|
+
import { inspect } from '../jsutils/inspect.mjs';
|
|
5
|
+
import { instanceOf } from '../jsutils/instanceOf.mjs';
|
|
6
|
+
import { isObjectLike } from '../jsutils/isObjectLike.mjs';
|
|
7
|
+
import { keyMap } from '../jsutils/keyMap.mjs';
|
|
8
|
+
import { keyValMap } from '../jsutils/keyValMap.mjs';
|
|
9
|
+
import { mapValue } from '../jsutils/mapValue.mjs';
|
|
10
|
+
import { suggestionList } from '../jsutils/suggestionList.mjs';
|
|
11
|
+
import { toObjMap } from '../jsutils/toObjMap.mjs';
|
|
12
|
+
import { GraphQLError } from '../error/GraphQLError.mjs';
|
|
13
|
+
import { Kind } from '../language/kinds.mjs';
|
|
14
|
+
import { print } from '../language/printer.mjs';
|
|
15
|
+
import { valueFromASTUntyped } from '../utilities/valueFromASTUntyped.mjs';
|
|
16
|
+
import { assertEnumValueName, assertName } from './assertName.mjs';
|
|
17
|
+
export function isType(type) {
|
|
18
|
+
return (
|
|
19
|
+
isScalarType(type) ||
|
|
20
|
+
isObjectType(type) ||
|
|
21
|
+
isInterfaceType(type) ||
|
|
22
|
+
isUnionType(type) ||
|
|
23
|
+
isEnumType(type) ||
|
|
24
|
+
isInputObjectType(type) ||
|
|
25
|
+
isListType(type) ||
|
|
26
|
+
isNonNullType(type)
|
|
27
|
+
);
|
|
28
|
+
}
|
|
29
|
+
export function assertType(type) {
|
|
30
|
+
if (!isType(type)) {
|
|
31
|
+
throw new Error(`Expected ${inspect(type)} to be a GraphQL type.`);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
return type;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* There are predicates for each kind of GraphQL type.
|
|
38
|
+
*/
|
|
39
|
+
|
|
40
|
+
export function isScalarType(type) {
|
|
41
|
+
return instanceOf(type, GraphQLScalarType);
|
|
42
|
+
}
|
|
43
|
+
export function assertScalarType(type) {
|
|
44
|
+
if (!isScalarType(type)) {
|
|
45
|
+
throw new Error(`Expected ${inspect(type)} to be a GraphQL Scalar type.`);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
return type;
|
|
49
|
+
}
|
|
50
|
+
export function isObjectType(type) {
|
|
51
|
+
return instanceOf(type, GraphQLObjectType);
|
|
52
|
+
}
|
|
53
|
+
export function assertObjectType(type) {
|
|
54
|
+
if (!isObjectType(type)) {
|
|
55
|
+
throw new Error(`Expected ${inspect(type)} to be a GraphQL Object type.`);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
return type;
|
|
59
|
+
}
|
|
60
|
+
export function isInterfaceType(type) {
|
|
61
|
+
return instanceOf(type, GraphQLInterfaceType);
|
|
62
|
+
}
|
|
63
|
+
export function assertInterfaceType(type) {
|
|
64
|
+
if (!isInterfaceType(type)) {
|
|
65
|
+
throw new Error(
|
|
66
|
+
`Expected ${inspect(type)} to be a GraphQL Interface type.`,
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
return type;
|
|
71
|
+
}
|
|
72
|
+
export function isUnionType(type) {
|
|
73
|
+
return instanceOf(type, GraphQLUnionType);
|
|
74
|
+
}
|
|
75
|
+
export function assertUnionType(type) {
|
|
76
|
+
if (!isUnionType(type)) {
|
|
77
|
+
throw new Error(`Expected ${inspect(type)} to be a GraphQL Union type.`);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
return type;
|
|
81
|
+
}
|
|
82
|
+
export function isEnumType(type) {
|
|
83
|
+
return instanceOf(type, GraphQLEnumType);
|
|
84
|
+
}
|
|
85
|
+
export function assertEnumType(type) {
|
|
86
|
+
if (!isEnumType(type)) {
|
|
87
|
+
throw new Error(`Expected ${inspect(type)} to be a GraphQL Enum type.`);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
return type;
|
|
91
|
+
}
|
|
92
|
+
export function isInputObjectType(type) {
|
|
93
|
+
return instanceOf(type, GraphQLInputObjectType);
|
|
94
|
+
}
|
|
95
|
+
export function assertInputObjectType(type) {
|
|
96
|
+
if (!isInputObjectType(type)) {
|
|
97
|
+
throw new Error(
|
|
98
|
+
`Expected ${inspect(type)} to be a GraphQL Input Object type.`,
|
|
99
|
+
);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
return type;
|
|
103
|
+
}
|
|
104
|
+
export function isListType(type) {
|
|
105
|
+
return instanceOf(type, GraphQLList);
|
|
106
|
+
}
|
|
107
|
+
export function assertListType(type) {
|
|
108
|
+
if (!isListType(type)) {
|
|
109
|
+
throw new Error(`Expected ${inspect(type)} to be a GraphQL List type.`);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
return type;
|
|
113
|
+
}
|
|
114
|
+
export function isNonNullType(type) {
|
|
115
|
+
return instanceOf(type, GraphQLNonNull);
|
|
116
|
+
}
|
|
117
|
+
export function assertNonNullType(type) {
|
|
118
|
+
if (!isNonNullType(type)) {
|
|
119
|
+
throw new Error(`Expected ${inspect(type)} to be a GraphQL Non-Null type.`);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
return type;
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* These types may be used as input types for arguments and directives.
|
|
126
|
+
*/
|
|
127
|
+
|
|
128
|
+
export function isInputType(type) {
|
|
129
|
+
return (
|
|
130
|
+
isScalarType(type) ||
|
|
131
|
+
isEnumType(type) ||
|
|
132
|
+
isInputObjectType(type) ||
|
|
133
|
+
(isWrappingType(type) && isInputType(type.ofType))
|
|
134
|
+
);
|
|
135
|
+
}
|
|
136
|
+
export function assertInputType(type) {
|
|
137
|
+
if (!isInputType(type)) {
|
|
138
|
+
throw new Error(`Expected ${inspect(type)} to be a GraphQL input type.`);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
return type;
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* These types may be used as output types as the result of fields.
|
|
145
|
+
*/
|
|
146
|
+
|
|
147
|
+
export function isOutputType(type) {
|
|
148
|
+
return (
|
|
149
|
+
isScalarType(type) ||
|
|
150
|
+
isObjectType(type) ||
|
|
151
|
+
isInterfaceType(type) ||
|
|
152
|
+
isUnionType(type) ||
|
|
153
|
+
isEnumType(type) ||
|
|
154
|
+
(isWrappingType(type) && isOutputType(type.ofType))
|
|
155
|
+
);
|
|
156
|
+
}
|
|
157
|
+
export function assertOutputType(type) {
|
|
158
|
+
if (!isOutputType(type)) {
|
|
159
|
+
throw new Error(`Expected ${inspect(type)} to be a GraphQL output type.`);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
return type;
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* These types may describe types which may be leaf values.
|
|
166
|
+
*/
|
|
167
|
+
|
|
168
|
+
export function isLeafType(type) {
|
|
169
|
+
return isScalarType(type) || isEnumType(type);
|
|
170
|
+
}
|
|
171
|
+
export function assertLeafType(type) {
|
|
172
|
+
if (!isLeafType(type)) {
|
|
173
|
+
throw new Error(`Expected ${inspect(type)} to be a GraphQL leaf type.`);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
return type;
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* These types may describe the parent context of a selection set.
|
|
180
|
+
*/
|
|
181
|
+
|
|
182
|
+
export function isCompositeType(type) {
|
|
183
|
+
return isObjectType(type) || isInterfaceType(type) || isUnionType(type);
|
|
184
|
+
}
|
|
185
|
+
export function assertCompositeType(type) {
|
|
186
|
+
if (!isCompositeType(type)) {
|
|
187
|
+
throw new Error(
|
|
188
|
+
`Expected ${inspect(type)} to be a GraphQL composite type.`,
|
|
189
|
+
);
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
return type;
|
|
193
|
+
}
|
|
194
|
+
/**
|
|
195
|
+
* These types may describe the parent context of a selection set.
|
|
196
|
+
*/
|
|
197
|
+
|
|
198
|
+
export function isAbstractType(type) {
|
|
199
|
+
return isInterfaceType(type) || isUnionType(type);
|
|
200
|
+
}
|
|
201
|
+
export function assertAbstractType(type) {
|
|
202
|
+
if (!isAbstractType(type)) {
|
|
203
|
+
throw new Error(`Expected ${inspect(type)} to be a GraphQL abstract type.`);
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
return type;
|
|
207
|
+
}
|
|
208
|
+
/**
|
|
209
|
+
* List Type Wrapper
|
|
210
|
+
*
|
|
211
|
+
* A list is a wrapping type which points to another type.
|
|
212
|
+
* Lists are often created within the context of defining the fields of
|
|
213
|
+
* an object type.
|
|
214
|
+
*
|
|
215
|
+
* Example:
|
|
216
|
+
*
|
|
217
|
+
* ```ts
|
|
218
|
+
* const PersonType = new GraphQLObjectType({
|
|
219
|
+
* name: 'Person',
|
|
220
|
+
* fields: () => ({
|
|
221
|
+
* parents: { type: new GraphQLList(PersonType) },
|
|
222
|
+
* children: { type: new GraphQLList(PersonType) },
|
|
223
|
+
* })
|
|
224
|
+
* })
|
|
225
|
+
* ```
|
|
226
|
+
*/
|
|
227
|
+
|
|
228
|
+
export class GraphQLList {
|
|
229
|
+
constructor(ofType) {
|
|
230
|
+
isType(ofType) ||
|
|
231
|
+
devAssert(false, `Expected ${inspect(ofType)} to be a GraphQL type.`);
|
|
232
|
+
this.ofType = ofType;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
get [Symbol.toStringTag]() {
|
|
236
|
+
return 'GraphQLList';
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
toString() {
|
|
240
|
+
return '[' + String(this.ofType) + ']';
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
toJSON() {
|
|
244
|
+
return this.toString();
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
/**
|
|
248
|
+
* Non-Null Type Wrapper
|
|
249
|
+
*
|
|
250
|
+
* A non-null is a wrapping type which points to another type.
|
|
251
|
+
* Non-null types enforce that their values are never null and can ensure
|
|
252
|
+
* an error is raised if this ever occurs during a request. It is useful for
|
|
253
|
+
* fields which you can make a strong guarantee on non-nullability, for example
|
|
254
|
+
* usually the id field of a database row will never be null.
|
|
255
|
+
*
|
|
256
|
+
* Example:
|
|
257
|
+
*
|
|
258
|
+
* ```ts
|
|
259
|
+
* const RowType = new GraphQLObjectType({
|
|
260
|
+
* name: 'Row',
|
|
261
|
+
* fields: () => ({
|
|
262
|
+
* id: { type: new GraphQLNonNull(GraphQLString) },
|
|
263
|
+
* })
|
|
264
|
+
* })
|
|
265
|
+
* ```
|
|
266
|
+
* Note: the enforcement of non-nullability occurs within the executor.
|
|
267
|
+
*/
|
|
268
|
+
|
|
269
|
+
export class GraphQLNonNull {
|
|
270
|
+
constructor(ofType) {
|
|
271
|
+
isNullableType(ofType) ||
|
|
272
|
+
devAssert(
|
|
273
|
+
false,
|
|
274
|
+
`Expected ${inspect(ofType)} to be a GraphQL nullable type.`,
|
|
275
|
+
);
|
|
276
|
+
this.ofType = ofType;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
get [Symbol.toStringTag]() {
|
|
280
|
+
return 'GraphQLNonNull';
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
toString() {
|
|
284
|
+
return String(this.ofType) + '!';
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
toJSON() {
|
|
288
|
+
return this.toString();
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
/**
|
|
292
|
+
* These types wrap and modify other types
|
|
293
|
+
*/
|
|
294
|
+
|
|
295
|
+
export function isWrappingType(type) {
|
|
296
|
+
return isListType(type) || isNonNullType(type);
|
|
297
|
+
}
|
|
298
|
+
export function assertWrappingType(type) {
|
|
299
|
+
if (!isWrappingType(type)) {
|
|
300
|
+
throw new Error(`Expected ${inspect(type)} to be a GraphQL wrapping type.`);
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
return type;
|
|
304
|
+
}
|
|
305
|
+
/**
|
|
306
|
+
* These types can all accept null as a value.
|
|
307
|
+
*/
|
|
308
|
+
|
|
309
|
+
export function isNullableType(type) {
|
|
310
|
+
return isType(type) && !isNonNullType(type);
|
|
311
|
+
}
|
|
312
|
+
export function assertNullableType(type) {
|
|
313
|
+
if (!isNullableType(type)) {
|
|
314
|
+
throw new Error(`Expected ${inspect(type)} to be a GraphQL nullable type.`);
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
return type;
|
|
318
|
+
}
|
|
319
|
+
export function getNullableType(type) {
|
|
320
|
+
if (type) {
|
|
321
|
+
return isNonNullType(type) ? type.ofType : type;
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
/**
|
|
325
|
+
* These named types do not include modifiers like List or NonNull.
|
|
326
|
+
*/
|
|
327
|
+
|
|
328
|
+
export function isNamedType(type) {
|
|
329
|
+
return (
|
|
330
|
+
isScalarType(type) ||
|
|
331
|
+
isObjectType(type) ||
|
|
332
|
+
isInterfaceType(type) ||
|
|
333
|
+
isUnionType(type) ||
|
|
334
|
+
isEnumType(type) ||
|
|
335
|
+
isInputObjectType(type)
|
|
336
|
+
);
|
|
337
|
+
}
|
|
338
|
+
export function assertNamedType(type) {
|
|
339
|
+
if (!isNamedType(type)) {
|
|
340
|
+
throw new Error(`Expected ${inspect(type)} to be a GraphQL named type.`);
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
return type;
|
|
344
|
+
}
|
|
345
|
+
export function getNamedType(type) {
|
|
346
|
+
if (type) {
|
|
347
|
+
let unwrappedType = type;
|
|
348
|
+
|
|
349
|
+
while (isWrappingType(unwrappedType)) {
|
|
350
|
+
unwrappedType = unwrappedType.ofType;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
return unwrappedType;
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
/**
|
|
357
|
+
* Used while defining GraphQL types to allow for circular references in
|
|
358
|
+
* otherwise immutable type definitions.
|
|
359
|
+
*/
|
|
360
|
+
|
|
361
|
+
export function resolveReadonlyArrayThunk(thunk) {
|
|
362
|
+
return typeof thunk === 'function' ? thunk() : thunk;
|
|
363
|
+
}
|
|
364
|
+
export function resolveObjMapThunk(thunk) {
|
|
365
|
+
return typeof thunk === 'function' ? thunk() : thunk;
|
|
366
|
+
}
|
|
367
|
+
/**
|
|
368
|
+
* Custom extensions
|
|
369
|
+
*
|
|
370
|
+
* @remarks
|
|
371
|
+
* Use a unique identifier name for your extension, for example the name of
|
|
372
|
+
* your library or project. Do not use a shortened identifier as this increases
|
|
373
|
+
* the risk of conflicts. We recommend you add at most one extension field,
|
|
374
|
+
* an object which can contain all the values you need.
|
|
375
|
+
*/
|
|
376
|
+
|
|
377
|
+
/**
|
|
378
|
+
* Scalar Type Definition
|
|
379
|
+
*
|
|
380
|
+
* The leaf values of any request and input values to arguments are
|
|
381
|
+
* Scalars (or Enums) and are defined with a name and a series of functions
|
|
382
|
+
* used to parse input from ast or variables and to ensure validity.
|
|
383
|
+
*
|
|
384
|
+
* If a type's serialize function returns `null` or does not return a value
|
|
385
|
+
* (i.e. it returns `undefined`) then an error will be raised and a `null`
|
|
386
|
+
* value will be returned in the response. It is always better to validate
|
|
387
|
+
*
|
|
388
|
+
* Example:
|
|
389
|
+
*
|
|
390
|
+
* ```ts
|
|
391
|
+
* const OddType = new GraphQLScalarType({
|
|
392
|
+
* name: 'Odd',
|
|
393
|
+
* serialize(value) {
|
|
394
|
+
* if (!Number.isFinite(value)) {
|
|
395
|
+
* throw new Error(
|
|
396
|
+
* `Scalar "Odd" cannot represent "${value}" since it is not a finite number.`,
|
|
397
|
+
* );
|
|
398
|
+
* }
|
|
399
|
+
*
|
|
400
|
+
* if (value % 2 === 0) {
|
|
401
|
+
* throw new Error(`Scalar "Odd" cannot represent "${value}" since it is even.`);
|
|
402
|
+
* }
|
|
403
|
+
* return value;
|
|
404
|
+
* }
|
|
405
|
+
* });
|
|
406
|
+
* ```
|
|
407
|
+
*/
|
|
408
|
+
export class GraphQLScalarType {
|
|
409
|
+
constructor(config) {
|
|
410
|
+
var _config$parseValue,
|
|
411
|
+
_config$serialize,
|
|
412
|
+
_config$parseLiteral,
|
|
413
|
+
_config$extensionASTN;
|
|
414
|
+
|
|
415
|
+
const parseValue =
|
|
416
|
+
(_config$parseValue = config.parseValue) !== null &&
|
|
417
|
+
_config$parseValue !== void 0
|
|
418
|
+
? _config$parseValue
|
|
419
|
+
: identityFunc;
|
|
420
|
+
this.name = assertName(config.name);
|
|
421
|
+
this.description = config.description;
|
|
422
|
+
this.specifiedByURL = config.specifiedByURL;
|
|
423
|
+
this.serialize =
|
|
424
|
+
(_config$serialize = config.serialize) !== null &&
|
|
425
|
+
_config$serialize !== void 0
|
|
426
|
+
? _config$serialize
|
|
427
|
+
: identityFunc;
|
|
428
|
+
this.parseValue = parseValue;
|
|
429
|
+
this.parseLiteral =
|
|
430
|
+
(_config$parseLiteral = config.parseLiteral) !== null &&
|
|
431
|
+
_config$parseLiteral !== void 0
|
|
432
|
+
? _config$parseLiteral
|
|
433
|
+
: (node, variables) => parseValue(valueFromASTUntyped(node, variables));
|
|
434
|
+
this.extensions = toObjMap(config.extensions);
|
|
435
|
+
this.astNode = config.astNode;
|
|
436
|
+
this.extensionASTNodes =
|
|
437
|
+
(_config$extensionASTN = config.extensionASTNodes) !== null &&
|
|
438
|
+
_config$extensionASTN !== void 0
|
|
439
|
+
? _config$extensionASTN
|
|
440
|
+
: [];
|
|
441
|
+
config.specifiedByURL == null ||
|
|
442
|
+
typeof config.specifiedByURL === 'string' ||
|
|
443
|
+
devAssert(
|
|
444
|
+
false,
|
|
445
|
+
`${this.name} must provide "specifiedByURL" as a string, ` +
|
|
446
|
+
`but got: ${inspect(config.specifiedByURL)}.`,
|
|
447
|
+
);
|
|
448
|
+
config.serialize == null ||
|
|
449
|
+
typeof config.serialize === 'function' ||
|
|
450
|
+
devAssert(
|
|
451
|
+
false,
|
|
452
|
+
`${this.name} must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.`,
|
|
453
|
+
);
|
|
454
|
+
|
|
455
|
+
if (config.parseLiteral) {
|
|
456
|
+
(typeof config.parseValue === 'function' &&
|
|
457
|
+
typeof config.parseLiteral === 'function') ||
|
|
458
|
+
devAssert(
|
|
459
|
+
false,
|
|
460
|
+
`${this.name} must provide both "parseValue" and "parseLiteral" functions.`,
|
|
461
|
+
);
|
|
462
|
+
}
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
get [Symbol.toStringTag]() {
|
|
466
|
+
return 'GraphQLScalarType';
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
toConfig() {
|
|
470
|
+
return {
|
|
471
|
+
name: this.name,
|
|
472
|
+
description: this.description,
|
|
473
|
+
specifiedByURL: this.specifiedByURL,
|
|
474
|
+
serialize: this.serialize,
|
|
475
|
+
parseValue: this.parseValue,
|
|
476
|
+
parseLiteral: this.parseLiteral,
|
|
477
|
+
extensions: this.extensions,
|
|
478
|
+
astNode: this.astNode,
|
|
479
|
+
extensionASTNodes: this.extensionASTNodes,
|
|
480
|
+
};
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
toString() {
|
|
484
|
+
return this.name;
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
toJSON() {
|
|
488
|
+
return this.toString();
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
/**
|
|
493
|
+
* Object Type Definition
|
|
494
|
+
*
|
|
495
|
+
* Almost all of the GraphQL types you define will be object types. Object types
|
|
496
|
+
* have a name, but most importantly describe their fields.
|
|
497
|
+
*
|
|
498
|
+
* Example:
|
|
499
|
+
*
|
|
500
|
+
* ```ts
|
|
501
|
+
* const AddressType = new GraphQLObjectType({
|
|
502
|
+
* name: 'Address',
|
|
503
|
+
* fields: {
|
|
504
|
+
* street: { type: GraphQLString },
|
|
505
|
+
* number: { type: GraphQLInt },
|
|
506
|
+
* formatted: {
|
|
507
|
+
* type: GraphQLString,
|
|
508
|
+
* resolve(obj) {
|
|
509
|
+
* return obj.number + ' ' + obj.street
|
|
510
|
+
* }
|
|
511
|
+
* }
|
|
512
|
+
* }
|
|
513
|
+
* });
|
|
514
|
+
* ```
|
|
515
|
+
*
|
|
516
|
+
* When two types need to refer to each other, or a type needs to refer to
|
|
517
|
+
* itself in a field, you can use a function expression (aka a closure or a
|
|
518
|
+
* thunk) to supply the fields lazily.
|
|
519
|
+
*
|
|
520
|
+
* Example:
|
|
521
|
+
*
|
|
522
|
+
* ```ts
|
|
523
|
+
* const PersonType = new GraphQLObjectType({
|
|
524
|
+
* name: 'Person',
|
|
525
|
+
* fields: () => ({
|
|
526
|
+
* name: { type: GraphQLString },
|
|
527
|
+
* bestFriend: { type: PersonType },
|
|
528
|
+
* })
|
|
529
|
+
* });
|
|
530
|
+
* ```
|
|
531
|
+
*/
|
|
532
|
+
export class GraphQLObjectType {
|
|
533
|
+
constructor(config) {
|
|
534
|
+
var _config$extensionASTN2;
|
|
535
|
+
|
|
536
|
+
this.name = assertName(config.name);
|
|
537
|
+
this.description = config.description;
|
|
538
|
+
this.isTypeOf = config.isTypeOf;
|
|
539
|
+
this.extensions = toObjMap(config.extensions);
|
|
540
|
+
this.astNode = config.astNode;
|
|
541
|
+
this.extensionASTNodes =
|
|
542
|
+
(_config$extensionASTN2 = config.extensionASTNodes) !== null &&
|
|
543
|
+
_config$extensionASTN2 !== void 0
|
|
544
|
+
? _config$extensionASTN2
|
|
545
|
+
: [];
|
|
546
|
+
|
|
547
|
+
this._fields = () => defineFieldMap(config);
|
|
548
|
+
|
|
549
|
+
this._interfaces = () => defineInterfaces(config);
|
|
550
|
+
|
|
551
|
+
config.isTypeOf == null ||
|
|
552
|
+
typeof config.isTypeOf === 'function' ||
|
|
553
|
+
devAssert(
|
|
554
|
+
false,
|
|
555
|
+
`${this.name} must provide "isTypeOf" as a function, ` +
|
|
556
|
+
`but got: ${inspect(config.isTypeOf)}.`,
|
|
557
|
+
);
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
get [Symbol.toStringTag]() {
|
|
561
|
+
return 'GraphQLObjectType';
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
getFields() {
|
|
565
|
+
if (typeof this._fields === 'function') {
|
|
566
|
+
this._fields = this._fields();
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
return this._fields;
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
getInterfaces() {
|
|
573
|
+
if (typeof this._interfaces === 'function') {
|
|
574
|
+
this._interfaces = this._interfaces();
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
return this._interfaces;
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
toConfig() {
|
|
581
|
+
return {
|
|
582
|
+
name: this.name,
|
|
583
|
+
description: this.description,
|
|
584
|
+
interfaces: this.getInterfaces(),
|
|
585
|
+
fields: fieldsToFieldsConfig(this.getFields()),
|
|
586
|
+
isTypeOf: this.isTypeOf,
|
|
587
|
+
extensions: this.extensions,
|
|
588
|
+
astNode: this.astNode,
|
|
589
|
+
extensionASTNodes: this.extensionASTNodes,
|
|
590
|
+
};
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
toString() {
|
|
594
|
+
return this.name;
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
toJSON() {
|
|
598
|
+
return this.toString();
|
|
599
|
+
}
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
function defineInterfaces(config) {
|
|
603
|
+
var _config$interfaces;
|
|
604
|
+
|
|
605
|
+
const interfaces = resolveReadonlyArrayThunk(
|
|
606
|
+
(_config$interfaces = config.interfaces) !== null &&
|
|
607
|
+
_config$interfaces !== void 0
|
|
608
|
+
? _config$interfaces
|
|
609
|
+
: [],
|
|
610
|
+
);
|
|
611
|
+
Array.isArray(interfaces) ||
|
|
612
|
+
devAssert(
|
|
613
|
+
false,
|
|
614
|
+
`${config.name} interfaces must be an Array or a function which returns an Array.`,
|
|
615
|
+
);
|
|
616
|
+
return interfaces;
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
function defineFieldMap(config) {
|
|
620
|
+
const fieldMap = resolveObjMapThunk(config.fields);
|
|
621
|
+
isPlainObj(fieldMap) ||
|
|
622
|
+
devAssert(
|
|
623
|
+
false,
|
|
624
|
+
`${config.name} fields must be an object with field names as keys or a function which returns such an object.`,
|
|
625
|
+
);
|
|
626
|
+
return mapValue(fieldMap, (fieldConfig, fieldName) => {
|
|
627
|
+
var _fieldConfig$args;
|
|
628
|
+
|
|
629
|
+
isPlainObj(fieldConfig) ||
|
|
630
|
+
devAssert(
|
|
631
|
+
false,
|
|
632
|
+
`${config.name}.${fieldName} field config must be an object.`,
|
|
633
|
+
);
|
|
634
|
+
fieldConfig.resolve == null ||
|
|
635
|
+
typeof fieldConfig.resolve === 'function' ||
|
|
636
|
+
devAssert(
|
|
637
|
+
false,
|
|
638
|
+
`${config.name}.${fieldName} field resolver must be a function if ` +
|
|
639
|
+
`provided, but got: ${inspect(fieldConfig.resolve)}.`,
|
|
640
|
+
);
|
|
641
|
+
const argsConfig =
|
|
642
|
+
(_fieldConfig$args = fieldConfig.args) !== null &&
|
|
643
|
+
_fieldConfig$args !== void 0
|
|
644
|
+
? _fieldConfig$args
|
|
645
|
+
: {};
|
|
646
|
+
isPlainObj(argsConfig) ||
|
|
647
|
+
devAssert(
|
|
648
|
+
false,
|
|
649
|
+
`${config.name}.${fieldName} args must be an object with argument names as keys.`,
|
|
650
|
+
);
|
|
651
|
+
return {
|
|
652
|
+
name: assertName(fieldName),
|
|
653
|
+
description: fieldConfig.description,
|
|
654
|
+
type: fieldConfig.type,
|
|
655
|
+
args: defineArguments(argsConfig),
|
|
656
|
+
resolve: fieldConfig.resolve,
|
|
657
|
+
subscribe: fieldConfig.subscribe,
|
|
658
|
+
deprecationReason: fieldConfig.deprecationReason,
|
|
659
|
+
extensions: toObjMap(fieldConfig.extensions),
|
|
660
|
+
astNode: fieldConfig.astNode,
|
|
661
|
+
};
|
|
662
|
+
});
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
export function defineArguments(config) {
|
|
666
|
+
return Object.entries(config).map(([argName, argConfig]) => ({
|
|
667
|
+
name: assertName(argName),
|
|
668
|
+
description: argConfig.description,
|
|
669
|
+
type: argConfig.type,
|
|
670
|
+
defaultValue: argConfig.defaultValue,
|
|
671
|
+
deprecationReason: argConfig.deprecationReason,
|
|
672
|
+
extensions: toObjMap(argConfig.extensions),
|
|
673
|
+
astNode: argConfig.astNode,
|
|
674
|
+
}));
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
function isPlainObj(obj) {
|
|
678
|
+
return isObjectLike(obj) && !Array.isArray(obj);
|
|
679
|
+
}
|
|
680
|
+
|
|
681
|
+
function fieldsToFieldsConfig(fields) {
|
|
682
|
+
return mapValue(fields, (field) => ({
|
|
683
|
+
description: field.description,
|
|
684
|
+
type: field.type,
|
|
685
|
+
args: argsToArgsConfig(field.args),
|
|
686
|
+
resolve: field.resolve,
|
|
687
|
+
subscribe: field.subscribe,
|
|
688
|
+
deprecationReason: field.deprecationReason,
|
|
689
|
+
extensions: field.extensions,
|
|
690
|
+
astNode: field.astNode,
|
|
691
|
+
}));
|
|
692
|
+
}
|
|
693
|
+
/**
|
|
694
|
+
* @internal
|
|
695
|
+
*/
|
|
696
|
+
|
|
697
|
+
export function argsToArgsConfig(args) {
|
|
698
|
+
return keyValMap(
|
|
699
|
+
args,
|
|
700
|
+
(arg) => arg.name,
|
|
701
|
+
(arg) => ({
|
|
702
|
+
description: arg.description,
|
|
703
|
+
type: arg.type,
|
|
704
|
+
defaultValue: arg.defaultValue,
|
|
705
|
+
deprecationReason: arg.deprecationReason,
|
|
706
|
+
extensions: arg.extensions,
|
|
707
|
+
astNode: arg.astNode,
|
|
708
|
+
}),
|
|
709
|
+
);
|
|
710
|
+
}
|
|
711
|
+
export function isRequiredArgument(arg) {
|
|
712
|
+
return isNonNullType(arg.type) && arg.defaultValue === undefined;
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
/**
|
|
716
|
+
* Interface Type Definition
|
|
717
|
+
*
|
|
718
|
+
* When a field can return one of a heterogeneous set of types, a Interface type
|
|
719
|
+
* is used to describe what types are possible, what fields are in common across
|
|
720
|
+
* all types, as well as a function to determine which type is actually used
|
|
721
|
+
* when the field is resolved.
|
|
722
|
+
*
|
|
723
|
+
* Example:
|
|
724
|
+
*
|
|
725
|
+
* ```ts
|
|
726
|
+
* const EntityType = new GraphQLInterfaceType({
|
|
727
|
+
* name: 'Entity',
|
|
728
|
+
* fields: {
|
|
729
|
+
* name: { type: GraphQLString }
|
|
730
|
+
* }
|
|
731
|
+
* });
|
|
732
|
+
* ```
|
|
733
|
+
*/
|
|
734
|
+
export class GraphQLInterfaceType {
|
|
735
|
+
constructor(config) {
|
|
736
|
+
var _config$extensionASTN3;
|
|
737
|
+
|
|
738
|
+
this.name = assertName(config.name);
|
|
739
|
+
this.description = config.description;
|
|
740
|
+
this.resolveType = config.resolveType;
|
|
741
|
+
this.extensions = toObjMap(config.extensions);
|
|
742
|
+
this.astNode = config.astNode;
|
|
743
|
+
this.extensionASTNodes =
|
|
744
|
+
(_config$extensionASTN3 = config.extensionASTNodes) !== null &&
|
|
745
|
+
_config$extensionASTN3 !== void 0
|
|
746
|
+
? _config$extensionASTN3
|
|
747
|
+
: [];
|
|
748
|
+
this._fields = defineFieldMap.bind(undefined, config);
|
|
749
|
+
this._interfaces = defineInterfaces.bind(undefined, config);
|
|
750
|
+
config.resolveType == null ||
|
|
751
|
+
typeof config.resolveType === 'function' ||
|
|
752
|
+
devAssert(
|
|
753
|
+
false,
|
|
754
|
+
`${this.name} must provide "resolveType" as a function, ` +
|
|
755
|
+
`but got: ${inspect(config.resolveType)}.`,
|
|
756
|
+
);
|
|
757
|
+
}
|
|
758
|
+
|
|
759
|
+
get [Symbol.toStringTag]() {
|
|
760
|
+
return 'GraphQLInterfaceType';
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
getFields() {
|
|
764
|
+
if (typeof this._fields === 'function') {
|
|
765
|
+
this._fields = this._fields();
|
|
766
|
+
}
|
|
767
|
+
|
|
768
|
+
return this._fields;
|
|
769
|
+
}
|
|
770
|
+
|
|
771
|
+
getInterfaces() {
|
|
772
|
+
if (typeof this._interfaces === 'function') {
|
|
773
|
+
this._interfaces = this._interfaces();
|
|
774
|
+
}
|
|
775
|
+
|
|
776
|
+
return this._interfaces;
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
toConfig() {
|
|
780
|
+
return {
|
|
781
|
+
name: this.name,
|
|
782
|
+
description: this.description,
|
|
783
|
+
interfaces: this.getInterfaces(),
|
|
784
|
+
fields: fieldsToFieldsConfig(this.getFields()),
|
|
785
|
+
resolveType: this.resolveType,
|
|
786
|
+
extensions: this.extensions,
|
|
787
|
+
astNode: this.astNode,
|
|
788
|
+
extensionASTNodes: this.extensionASTNodes,
|
|
789
|
+
};
|
|
790
|
+
}
|
|
791
|
+
|
|
792
|
+
toString() {
|
|
793
|
+
return this.name;
|
|
794
|
+
}
|
|
795
|
+
|
|
796
|
+
toJSON() {
|
|
797
|
+
return this.toString();
|
|
798
|
+
}
|
|
799
|
+
}
|
|
800
|
+
|
|
801
|
+
/**
|
|
802
|
+
* Union Type Definition
|
|
803
|
+
*
|
|
804
|
+
* When a field can return one of a heterogeneous set of types, a Union type
|
|
805
|
+
* is used to describe what types are possible as well as providing a function
|
|
806
|
+
* to determine which type is actually used when the field is resolved.
|
|
807
|
+
*
|
|
808
|
+
* Example:
|
|
809
|
+
*
|
|
810
|
+
* ```ts
|
|
811
|
+
* const PetType = new GraphQLUnionType({
|
|
812
|
+
* name: 'Pet',
|
|
813
|
+
* types: [ DogType, CatType ],
|
|
814
|
+
* resolveType(value) {
|
|
815
|
+
* if (value instanceof Dog) {
|
|
816
|
+
* return DogType;
|
|
817
|
+
* }
|
|
818
|
+
* if (value instanceof Cat) {
|
|
819
|
+
* return CatType;
|
|
820
|
+
* }
|
|
821
|
+
* }
|
|
822
|
+
* });
|
|
823
|
+
* ```
|
|
824
|
+
*/
|
|
825
|
+
export class GraphQLUnionType {
|
|
826
|
+
constructor(config) {
|
|
827
|
+
var _config$extensionASTN4;
|
|
828
|
+
|
|
829
|
+
this.name = assertName(config.name);
|
|
830
|
+
this.description = config.description;
|
|
831
|
+
this.resolveType = config.resolveType;
|
|
832
|
+
this.extensions = toObjMap(config.extensions);
|
|
833
|
+
this.astNode = config.astNode;
|
|
834
|
+
this.extensionASTNodes =
|
|
835
|
+
(_config$extensionASTN4 = config.extensionASTNodes) !== null &&
|
|
836
|
+
_config$extensionASTN4 !== void 0
|
|
837
|
+
? _config$extensionASTN4
|
|
838
|
+
: [];
|
|
839
|
+
this._types = defineTypes.bind(undefined, config);
|
|
840
|
+
config.resolveType == null ||
|
|
841
|
+
typeof config.resolveType === 'function' ||
|
|
842
|
+
devAssert(
|
|
843
|
+
false,
|
|
844
|
+
`${this.name} must provide "resolveType" as a function, ` +
|
|
845
|
+
`but got: ${inspect(config.resolveType)}.`,
|
|
846
|
+
);
|
|
847
|
+
}
|
|
848
|
+
|
|
849
|
+
get [Symbol.toStringTag]() {
|
|
850
|
+
return 'GraphQLUnionType';
|
|
851
|
+
}
|
|
852
|
+
|
|
853
|
+
getTypes() {
|
|
854
|
+
if (typeof this._types === 'function') {
|
|
855
|
+
this._types = this._types();
|
|
856
|
+
}
|
|
857
|
+
|
|
858
|
+
return this._types;
|
|
859
|
+
}
|
|
860
|
+
|
|
861
|
+
toConfig() {
|
|
862
|
+
return {
|
|
863
|
+
name: this.name,
|
|
864
|
+
description: this.description,
|
|
865
|
+
types: this.getTypes(),
|
|
866
|
+
resolveType: this.resolveType,
|
|
867
|
+
extensions: this.extensions,
|
|
868
|
+
astNode: this.astNode,
|
|
869
|
+
extensionASTNodes: this.extensionASTNodes,
|
|
870
|
+
};
|
|
871
|
+
}
|
|
872
|
+
|
|
873
|
+
toString() {
|
|
874
|
+
return this.name;
|
|
875
|
+
}
|
|
876
|
+
|
|
877
|
+
toJSON() {
|
|
878
|
+
return this.toString();
|
|
879
|
+
}
|
|
880
|
+
}
|
|
881
|
+
|
|
882
|
+
function defineTypes(config) {
|
|
883
|
+
const types = resolveReadonlyArrayThunk(config.types);
|
|
884
|
+
Array.isArray(types) ||
|
|
885
|
+
devAssert(
|
|
886
|
+
false,
|
|
887
|
+
`Must provide Array of types or a function which returns such an array for Union ${config.name}.`,
|
|
888
|
+
);
|
|
889
|
+
return types;
|
|
890
|
+
}
|
|
891
|
+
|
|
892
|
+
/**
|
|
893
|
+
* Enum Type Definition
|
|
894
|
+
*
|
|
895
|
+
* Some leaf values of requests and input values are Enums. GraphQL serializes
|
|
896
|
+
* Enum values as strings, however internally Enums can be represented by any
|
|
897
|
+
* kind of type, often integers.
|
|
898
|
+
*
|
|
899
|
+
* Example:
|
|
900
|
+
*
|
|
901
|
+
* ```ts
|
|
902
|
+
* const RGBType = new GraphQLEnumType({
|
|
903
|
+
* name: 'RGB',
|
|
904
|
+
* values: {
|
|
905
|
+
* RED: { value: 0 },
|
|
906
|
+
* GREEN: { value: 1 },
|
|
907
|
+
* BLUE: { value: 2 }
|
|
908
|
+
* }
|
|
909
|
+
* });
|
|
910
|
+
* ```
|
|
911
|
+
*
|
|
912
|
+
* Note: If a value is not provided in a definition, the name of the enum value
|
|
913
|
+
* will be used as its internal value.
|
|
914
|
+
*/
|
|
915
|
+
export class GraphQLEnumType {
|
|
916
|
+
/* <T> */
|
|
917
|
+
constructor(config) {
|
|
918
|
+
var _config$extensionASTN5;
|
|
919
|
+
|
|
920
|
+
this.name = assertName(config.name);
|
|
921
|
+
this.description = config.description;
|
|
922
|
+
this.extensions = toObjMap(config.extensions);
|
|
923
|
+
this.astNode = config.astNode;
|
|
924
|
+
this.extensionASTNodes =
|
|
925
|
+
(_config$extensionASTN5 = config.extensionASTNodes) !== null &&
|
|
926
|
+
_config$extensionASTN5 !== void 0
|
|
927
|
+
? _config$extensionASTN5
|
|
928
|
+
: [];
|
|
929
|
+
this._values =
|
|
930
|
+
typeof config.values === 'function'
|
|
931
|
+
? config.values
|
|
932
|
+
: defineEnumValues(this.name, config.values);
|
|
933
|
+
this._valueLookup = null;
|
|
934
|
+
this._nameLookup = null;
|
|
935
|
+
}
|
|
936
|
+
|
|
937
|
+
get [Symbol.toStringTag]() {
|
|
938
|
+
return 'GraphQLEnumType';
|
|
939
|
+
}
|
|
940
|
+
|
|
941
|
+
getValues() {
|
|
942
|
+
if (typeof this._values === 'function') {
|
|
943
|
+
this._values = defineEnumValues(this.name, this._values());
|
|
944
|
+
}
|
|
945
|
+
|
|
946
|
+
return this._values;
|
|
947
|
+
}
|
|
948
|
+
|
|
949
|
+
getValue(name) {
|
|
950
|
+
if (this._nameLookup === null) {
|
|
951
|
+
this._nameLookup = keyMap(this.getValues(), (value) => value.name);
|
|
952
|
+
}
|
|
953
|
+
|
|
954
|
+
return this._nameLookup[name];
|
|
955
|
+
}
|
|
956
|
+
|
|
957
|
+
serialize(outputValue) {
|
|
958
|
+
if (this._valueLookup === null) {
|
|
959
|
+
this._valueLookup = new Map(
|
|
960
|
+
this.getValues().map((enumValue) => [enumValue.value, enumValue]),
|
|
961
|
+
);
|
|
962
|
+
}
|
|
963
|
+
|
|
964
|
+
const enumValue = this._valueLookup.get(outputValue);
|
|
965
|
+
|
|
966
|
+
if (enumValue === undefined) {
|
|
967
|
+
throw new GraphQLError(
|
|
968
|
+
`Enum "${this.name}" cannot represent value: ${inspect(outputValue)}`,
|
|
969
|
+
);
|
|
970
|
+
}
|
|
971
|
+
|
|
972
|
+
return enumValue.name;
|
|
973
|
+
}
|
|
974
|
+
|
|
975
|
+
parseValue(inputValue) /* T */
|
|
976
|
+
{
|
|
977
|
+
if (typeof inputValue !== 'string') {
|
|
978
|
+
const valueStr = inspect(inputValue);
|
|
979
|
+
throw new GraphQLError(
|
|
980
|
+
`Enum "${this.name}" cannot represent non-string value: ${valueStr}.` +
|
|
981
|
+
didYouMeanEnumValue(this, valueStr),
|
|
982
|
+
);
|
|
983
|
+
}
|
|
984
|
+
|
|
985
|
+
const enumValue = this.getValue(inputValue);
|
|
986
|
+
|
|
987
|
+
if (enumValue == null) {
|
|
988
|
+
throw new GraphQLError(
|
|
989
|
+
`Value "${inputValue}" does not exist in "${this.name}" enum.` +
|
|
990
|
+
didYouMeanEnumValue(this, inputValue),
|
|
991
|
+
);
|
|
992
|
+
}
|
|
993
|
+
|
|
994
|
+
return enumValue.value;
|
|
995
|
+
}
|
|
996
|
+
|
|
997
|
+
parseLiteral(valueNode, _variables) /* T */
|
|
998
|
+
{
|
|
999
|
+
// Note: variables will be resolved to a value before calling this function.
|
|
1000
|
+
if (valueNode.kind !== Kind.ENUM) {
|
|
1001
|
+
const valueStr = print(valueNode);
|
|
1002
|
+
throw new GraphQLError(
|
|
1003
|
+
`Enum "${this.name}" cannot represent non-enum value: ${valueStr}.` +
|
|
1004
|
+
didYouMeanEnumValue(this, valueStr),
|
|
1005
|
+
{
|
|
1006
|
+
nodes: valueNode,
|
|
1007
|
+
},
|
|
1008
|
+
);
|
|
1009
|
+
}
|
|
1010
|
+
|
|
1011
|
+
const enumValue = this.getValue(valueNode.value);
|
|
1012
|
+
|
|
1013
|
+
if (enumValue == null) {
|
|
1014
|
+
const valueStr = print(valueNode);
|
|
1015
|
+
throw new GraphQLError(
|
|
1016
|
+
`Value "${valueStr}" does not exist in "${this.name}" enum.` +
|
|
1017
|
+
didYouMeanEnumValue(this, valueStr),
|
|
1018
|
+
{
|
|
1019
|
+
nodes: valueNode,
|
|
1020
|
+
},
|
|
1021
|
+
);
|
|
1022
|
+
}
|
|
1023
|
+
|
|
1024
|
+
return enumValue.value;
|
|
1025
|
+
}
|
|
1026
|
+
|
|
1027
|
+
toConfig() {
|
|
1028
|
+
const values = keyValMap(
|
|
1029
|
+
this.getValues(),
|
|
1030
|
+
(value) => value.name,
|
|
1031
|
+
(value) => ({
|
|
1032
|
+
description: value.description,
|
|
1033
|
+
value: value.value,
|
|
1034
|
+
deprecationReason: value.deprecationReason,
|
|
1035
|
+
extensions: value.extensions,
|
|
1036
|
+
astNode: value.astNode,
|
|
1037
|
+
}),
|
|
1038
|
+
);
|
|
1039
|
+
return {
|
|
1040
|
+
name: this.name,
|
|
1041
|
+
description: this.description,
|
|
1042
|
+
values,
|
|
1043
|
+
extensions: this.extensions,
|
|
1044
|
+
astNode: this.astNode,
|
|
1045
|
+
extensionASTNodes: this.extensionASTNodes,
|
|
1046
|
+
};
|
|
1047
|
+
}
|
|
1048
|
+
|
|
1049
|
+
toString() {
|
|
1050
|
+
return this.name;
|
|
1051
|
+
}
|
|
1052
|
+
|
|
1053
|
+
toJSON() {
|
|
1054
|
+
return this.toString();
|
|
1055
|
+
}
|
|
1056
|
+
}
|
|
1057
|
+
|
|
1058
|
+
function didYouMeanEnumValue(enumType, unknownValueStr) {
|
|
1059
|
+
const allNames = enumType.getValues().map((value) => value.name);
|
|
1060
|
+
const suggestedValues = suggestionList(unknownValueStr, allNames);
|
|
1061
|
+
return didYouMean('the enum value', suggestedValues);
|
|
1062
|
+
}
|
|
1063
|
+
|
|
1064
|
+
function defineEnumValues(typeName, valueMap) {
|
|
1065
|
+
isPlainObj(valueMap) ||
|
|
1066
|
+
devAssert(
|
|
1067
|
+
false,
|
|
1068
|
+
`${typeName} values must be an object with value names as keys.`,
|
|
1069
|
+
);
|
|
1070
|
+
return Object.entries(valueMap).map(([valueName, valueConfig]) => {
|
|
1071
|
+
isPlainObj(valueConfig) ||
|
|
1072
|
+
devAssert(
|
|
1073
|
+
false,
|
|
1074
|
+
`${typeName}.${valueName} must refer to an object with a "value" key ` +
|
|
1075
|
+
`representing an internal value but got: ${inspect(valueConfig)}.`,
|
|
1076
|
+
);
|
|
1077
|
+
return {
|
|
1078
|
+
name: assertEnumValueName(valueName),
|
|
1079
|
+
description: valueConfig.description,
|
|
1080
|
+
value: valueConfig.value !== undefined ? valueConfig.value : valueName,
|
|
1081
|
+
deprecationReason: valueConfig.deprecationReason,
|
|
1082
|
+
extensions: toObjMap(valueConfig.extensions),
|
|
1083
|
+
astNode: valueConfig.astNode,
|
|
1084
|
+
};
|
|
1085
|
+
});
|
|
1086
|
+
}
|
|
1087
|
+
|
|
1088
|
+
/**
|
|
1089
|
+
* Input Object Type Definition
|
|
1090
|
+
*
|
|
1091
|
+
* An input object defines a structured collection of fields which may be
|
|
1092
|
+
* supplied to a field argument.
|
|
1093
|
+
*
|
|
1094
|
+
* Using `NonNull` will ensure that a value must be provided by the query
|
|
1095
|
+
*
|
|
1096
|
+
* Example:
|
|
1097
|
+
*
|
|
1098
|
+
* ```ts
|
|
1099
|
+
* const GeoPoint = new GraphQLInputObjectType({
|
|
1100
|
+
* name: 'GeoPoint',
|
|
1101
|
+
* fields: {
|
|
1102
|
+
* lat: { type: new GraphQLNonNull(GraphQLFloat) },
|
|
1103
|
+
* lon: { type: new GraphQLNonNull(GraphQLFloat) },
|
|
1104
|
+
* alt: { type: GraphQLFloat, defaultValue: 0 },
|
|
1105
|
+
* }
|
|
1106
|
+
* });
|
|
1107
|
+
* ```
|
|
1108
|
+
*/
|
|
1109
|
+
export class GraphQLInputObjectType {
|
|
1110
|
+
constructor(config) {
|
|
1111
|
+
var _config$extensionASTN6, _config$isOneOf;
|
|
1112
|
+
|
|
1113
|
+
this.name = assertName(config.name);
|
|
1114
|
+
this.description = config.description;
|
|
1115
|
+
this.extensions = toObjMap(config.extensions);
|
|
1116
|
+
this.astNode = config.astNode;
|
|
1117
|
+
this.extensionASTNodes =
|
|
1118
|
+
(_config$extensionASTN6 = config.extensionASTNodes) !== null &&
|
|
1119
|
+
_config$extensionASTN6 !== void 0
|
|
1120
|
+
? _config$extensionASTN6
|
|
1121
|
+
: [];
|
|
1122
|
+
this.isOneOf =
|
|
1123
|
+
(_config$isOneOf = config.isOneOf) !== null && _config$isOneOf !== void 0
|
|
1124
|
+
? _config$isOneOf
|
|
1125
|
+
: false;
|
|
1126
|
+
this._fields = defineInputFieldMap.bind(undefined, config);
|
|
1127
|
+
}
|
|
1128
|
+
|
|
1129
|
+
get [Symbol.toStringTag]() {
|
|
1130
|
+
return 'GraphQLInputObjectType';
|
|
1131
|
+
}
|
|
1132
|
+
|
|
1133
|
+
getFields() {
|
|
1134
|
+
if (typeof this._fields === 'function') {
|
|
1135
|
+
this._fields = this._fields();
|
|
1136
|
+
}
|
|
1137
|
+
|
|
1138
|
+
return this._fields;
|
|
1139
|
+
}
|
|
1140
|
+
|
|
1141
|
+
toConfig() {
|
|
1142
|
+
const fields = mapValue(this.getFields(), (field) => ({
|
|
1143
|
+
description: field.description,
|
|
1144
|
+
type: field.type,
|
|
1145
|
+
defaultValue: field.defaultValue,
|
|
1146
|
+
deprecationReason: field.deprecationReason,
|
|
1147
|
+
extensions: field.extensions,
|
|
1148
|
+
astNode: field.astNode,
|
|
1149
|
+
}));
|
|
1150
|
+
return {
|
|
1151
|
+
name: this.name,
|
|
1152
|
+
description: this.description,
|
|
1153
|
+
fields,
|
|
1154
|
+
extensions: this.extensions,
|
|
1155
|
+
astNode: this.astNode,
|
|
1156
|
+
extensionASTNodes: this.extensionASTNodes,
|
|
1157
|
+
isOneOf: this.isOneOf,
|
|
1158
|
+
};
|
|
1159
|
+
}
|
|
1160
|
+
|
|
1161
|
+
toString() {
|
|
1162
|
+
return this.name;
|
|
1163
|
+
}
|
|
1164
|
+
|
|
1165
|
+
toJSON() {
|
|
1166
|
+
return this.toString();
|
|
1167
|
+
}
|
|
1168
|
+
}
|
|
1169
|
+
|
|
1170
|
+
function defineInputFieldMap(config) {
|
|
1171
|
+
const fieldMap = resolveObjMapThunk(config.fields);
|
|
1172
|
+
isPlainObj(fieldMap) ||
|
|
1173
|
+
devAssert(
|
|
1174
|
+
false,
|
|
1175
|
+
`${config.name} fields must be an object with field names as keys or a function which returns such an object.`,
|
|
1176
|
+
);
|
|
1177
|
+
return mapValue(fieldMap, (fieldConfig, fieldName) => {
|
|
1178
|
+
!('resolve' in fieldConfig) ||
|
|
1179
|
+
devAssert(
|
|
1180
|
+
false,
|
|
1181
|
+
`${config.name}.${fieldName} field has a resolve property, but Input Types cannot define resolvers.`,
|
|
1182
|
+
);
|
|
1183
|
+
return {
|
|
1184
|
+
name: assertName(fieldName),
|
|
1185
|
+
description: fieldConfig.description,
|
|
1186
|
+
type: fieldConfig.type,
|
|
1187
|
+
defaultValue: fieldConfig.defaultValue,
|
|
1188
|
+
deprecationReason: fieldConfig.deprecationReason,
|
|
1189
|
+
extensions: toObjMap(fieldConfig.extensions),
|
|
1190
|
+
astNode: fieldConfig.astNode,
|
|
1191
|
+
};
|
|
1192
|
+
});
|
|
1193
|
+
}
|
|
1194
|
+
|
|
1195
|
+
export function isRequiredInputField(field) {
|
|
1196
|
+
return isNonNullType(field.type) && field.defaultValue === undefined;
|
|
1197
|
+
}
|