@wopee-io/wopee.wdio 5.2.2 → 6.0.0
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/README.md +14 -0
- package/build/domain/model/config.interface.d.ts +9 -9
- package/build/utils/versionMetadata.d.ts.map +1 -1
- package/build/utils/versionMetadata.js +2 -2
- package/node_modules/@autonomous-testing/sdk/.github/workflows/ci_cd.yaml +52 -20
- package/node_modules/@autonomous-testing/sdk/README.md +129 -36
- package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/index.d.ts +2 -2
- package/node_modules/@autonomous-testing/sdk/build/core/domain/entities/index.js +3 -1
- package/node_modules/@autonomous-testing/sdk/build/index.d.ts +0 -1
- package/node_modules/@autonomous-testing/sdk/build/index.js +0 -2
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/adapter.js +6 -8
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/axios-config.d.ts +16 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/axios-config.js +121 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/errors.d.ts +20 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/errors.js +178 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/factories.js +1 -0
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/interface.d.ts +4 -1
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/adapters/apolloAdapter/interface.js +14 -3
- package/node_modules/@autonomous-testing/sdk/build/infrastructure/services/apolloAdapterService/apolloAdapterService.js +6 -2
- package/node_modules/@autonomous-testing/sdk/build/shared/metadata/versionMetadata.js +2 -2
- package/node_modules/@autonomous-testing/sdk/build/shared/utils/error.interface.d.ts +13 -1
- package/node_modules/@autonomous-testing/sdk/build/shared/utils/error.interface.js +8 -1
- package/node_modules/@autonomous-testing/sdk/build/shared/utils/index.d.ts +2 -2
- package/node_modules/@autonomous-testing/sdk/package.json +27 -11
- package/node_modules/agent-base/LICENSE +22 -0
- package/node_modules/agent-base/README.md +69 -0
- package/node_modules/agent-base/dist/helpers.d.ts +15 -0
- package/node_modules/agent-base/dist/helpers.d.ts.map +1 -0
- package/node_modules/agent-base/dist/helpers.js +66 -0
- package/node_modules/agent-base/dist/helpers.js.map +1 -0
- package/node_modules/agent-base/dist/index.d.ts +41 -0
- package/node_modules/agent-base/dist/index.d.ts.map +1 -0
- package/node_modules/agent-base/dist/index.js +178 -0
- package/node_modules/agent-base/dist/index.js.map +1 -0
- package/node_modules/agent-base/package.json +46 -0
- package/node_modules/axios/CHANGELOG.md +1934 -1039
- package/node_modules/axios/LICENSE +4 -16
- package/node_modules/axios/MIGRATION_GUIDE.md +877 -0
- package/node_modules/axios/README.md +2047 -378
- package/node_modules/axios/dist/axios.js +4784 -1364
- package/node_modules/axios/dist/axios.min.js +4 -1
- package/node_modules/axios/dist/axios.min.js.map +1 -1
- package/node_modules/axios/dist/browser/axios.cjs +5829 -0
- package/node_modules/axios/dist/esm/axios.js +5073 -1602
- package/node_modules/axios/dist/esm/axios.min.js +2 -1
- package/node_modules/axios/dist/esm/axios.min.js.map +1 -1
- package/node_modules/axios/dist/node/axios.cjs +6808 -0
- package/node_modules/axios/index.d.cts +766 -0
- package/node_modules/axios/index.d.ts +582 -136
- package/node_modules/axios/index.js +45 -1
- package/node_modules/axios/lib/adapters/README.md +5 -6
- package/node_modules/axios/lib/adapters/adapters.js +132 -0
- package/node_modules/axios/lib/adapters/fetch.js +696 -0
- package/node_modules/axios/lib/adapters/http.js +1385 -358
- package/node_modules/axios/lib/adapters/xhr.js +247 -196
- package/node_modules/axios/lib/axios.js +47 -26
- package/node_modules/axios/lib/cancel/CancelToken.js +103 -86
- package/node_modules/axios/lib/cancel/CanceledError.js +17 -19
- package/node_modules/axios/lib/cancel/isCancel.js +2 -2
- package/node_modules/axios/lib/core/Axios.js +255 -125
- package/node_modules/axios/lib/core/AxiosError.js +196 -74
- package/node_modules/axios/lib/core/AxiosHeaders.js +474 -0
- package/node_modules/axios/lib/core/InterceptorManager.js +162 -54
- package/node_modules/axios/lib/core/buildFullPath.js +60 -7
- package/node_modules/axios/lib/core/dispatchRequest.js +61 -60
- package/node_modules/axios/lib/core/mergeConfig.js +130 -59
- package/node_modules/axios/lib/core/methodList.js +17 -0
- package/node_modules/axios/lib/core/setFormDataHeaders.js +27 -0
- package/node_modules/axios/lib/core/settle.js +7 -5
- package/node_modules/axios/lib/core/transformData.js +15 -10
- package/node_modules/axios/lib/defaults/index.js +114 -111
- package/node_modules/axios/lib/defaults/transitional.js +5 -2
- package/node_modules/axios/lib/env/classes/FormData.js +2 -2
- package/node_modules/axios/lib/env/data.js +1 -3
- package/node_modules/axios/lib/helpers/AxiosTransformStream.js +156 -0
- package/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +31 -14
- package/node_modules/axios/lib/helpers/Http2Sessions.js +121 -0
- package/node_modules/axios/lib/helpers/HttpStatusCode.js +88 -0
- package/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js +29 -0
- package/node_modules/axios/lib/helpers/bind.js +9 -2
- package/node_modules/axios/lib/helpers/buildURL.js +42 -28
- package/node_modules/axios/lib/helpers/callbackify.js +18 -0
- package/node_modules/axios/lib/helpers/combineURLs.js +14 -5
- package/node_modules/axios/lib/helpers/composeSignals.js +68 -0
- package/node_modules/axios/lib/helpers/cookies.js +56 -45
- package/node_modules/axios/lib/helpers/deprecatedMethod.js +13 -6
- package/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js +166 -0
- package/node_modules/axios/lib/helpers/formDataToJSON.js +74 -23
- package/node_modules/axios/lib/helpers/formDataToStream.js +119 -0
- package/node_modules/axios/lib/helpers/fromDataURI.js +32 -14
- package/node_modules/axios/lib/helpers/isAbsoluteURL.js +7 -2
- package/node_modules/axios/lib/helpers/isAxiosError.js +5 -4
- package/node_modules/axios/lib/helpers/isURLSameOrigin.js +16 -68
- package/node_modules/axios/lib/helpers/normalizeURLForProtocolCheck.js +24 -0
- package/node_modules/axios/lib/helpers/null.js +1 -1
- package/node_modules/axios/lib/helpers/parseHeaders.js +43 -25
- package/node_modules/axios/lib/helpers/parseProtocol.js +4 -4
- package/node_modules/axios/lib/helpers/progressEventReducer.js +54 -0
- package/node_modules/axios/lib/helpers/readBlob.js +15 -0
- package/node_modules/axios/lib/helpers/resolveConfig.js +107 -0
- package/node_modules/axios/lib/helpers/sanitizeHeaderValue.js +60 -0
- package/node_modules/axios/lib/helpers/shouldBypassProxy.js +505 -0
- package/node_modules/axios/lib/helpers/speedometer.js +55 -0
- package/node_modules/axios/lib/helpers/spread.js +4 -3
- package/node_modules/axios/lib/helpers/throttle.js +45 -0
- package/node_modules/axios/lib/helpers/toFormData.js +152 -52
- package/node_modules/axios/lib/helpers/toURLEncodedForm.js +10 -9
- package/node_modules/axios/lib/helpers/trackStream.js +89 -0
- package/node_modules/axios/lib/helpers/validator.js +44 -18
- package/node_modules/axios/lib/platform/browser/classes/Blob.js +3 -0
- package/node_modules/axios/lib/platform/browser/classes/FormData.js +1 -1
- package/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +2 -3
- package/node_modules/axios/lib/platform/browser/index.js +8 -6
- package/node_modules/axios/lib/platform/common/utils.js +52 -0
- package/node_modules/axios/lib/platform/index.js +6 -2
- package/node_modules/axios/lib/platform/node/classes/Buffer.js +11 -0
- package/node_modules/axios/lib/platform/node/classes/FormData.js +2 -2
- package/node_modules/axios/lib/platform/node/classes/URLSearchParams.js +2 -3
- package/node_modules/axios/lib/platform/node/index.js +32 -6
- package/node_modules/axios/lib/utils.js +866 -238
- package/node_modules/axios/node_modules/agent-base/README.md +145 -0
- package/node_modules/axios/node_modules/agent-base/dist/src/index.d.ts +78 -0
- package/node_modules/axios/node_modules/agent-base/dist/src/index.js +203 -0
- package/node_modules/axios/node_modules/agent-base/dist/src/index.js.map +1 -0
- package/node_modules/axios/node_modules/agent-base/dist/src/promisify.d.ts +4 -0
- package/node_modules/axios/node_modules/agent-base/dist/src/promisify.js +18 -0
- package/node_modules/axios/node_modules/agent-base/dist/src/promisify.js.map +1 -0
- package/node_modules/axios/node_modules/agent-base/package.json +64 -0
- package/node_modules/axios/node_modules/agent-base/src/index.ts +345 -0
- package/node_modules/axios/node_modules/agent-base/src/promisify.ts +33 -0
- package/node_modules/axios/node_modules/https-proxy-agent/README.md +137 -0
- package/node_modules/axios/node_modules/https-proxy-agent/dist/agent.d.ts +30 -0
- package/node_modules/axios/node_modules/https-proxy-agent/dist/agent.js +177 -0
- package/node_modules/axios/node_modules/https-proxy-agent/dist/agent.js.map +1 -0
- package/node_modules/axios/node_modules/https-proxy-agent/dist/index.d.ts +23 -0
- package/node_modules/axios/node_modules/https-proxy-agent/dist/index.js +14 -0
- package/node_modules/axios/node_modules/https-proxy-agent/dist/index.js.map +1 -0
- package/node_modules/axios/node_modules/https-proxy-agent/dist/parse-proxy-response.d.ts +7 -0
- package/node_modules/axios/node_modules/https-proxy-agent/dist/parse-proxy-response.js +66 -0
- package/node_modules/axios/node_modules/https-proxy-agent/dist/parse-proxy-response.js.map +1 -0
- package/node_modules/axios/node_modules/https-proxy-agent/package.json +56 -0
- package/node_modules/axios/package.json +178 -75
- 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/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/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.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/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 +44 -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 +79 -0
- package/node_modules/es-object-atoms/test/index.js +38 -0
- package/node_modules/es-object-atoms/tsconfig.json +7 -0
- package/node_modules/es-set-tostringtag/.eslintrc +13 -0
- package/node_modules/es-set-tostringtag/.nycrc +9 -0
- package/node_modules/es-set-tostringtag/CHANGELOG.md +67 -0
- package/node_modules/es-set-tostringtag/LICENSE +21 -0
- package/node_modules/es-set-tostringtag/README.md +53 -0
- package/node_modules/es-set-tostringtag/index.d.ts +10 -0
- package/node_modules/es-set-tostringtag/index.js +35 -0
- package/node_modules/es-set-tostringtag/package.json +78 -0
- package/node_modules/es-set-tostringtag/test/index.js +85 -0
- package/node_modules/es-set-tostringtag/tsconfig.json +9 -0
- package/node_modules/follow-redirects/README.md +7 -5
- package/node_modules/follow-redirects/index.js +45 -8
- package/node_modules/follow-redirects/package.json +2 -2
- package/node_modules/form-data/CHANGELOG.md +686 -0
- package/node_modules/form-data/{README.md.bak → README.md} +34 -37
- package/node_modules/form-data/lib/browser.js +3 -1
- package/node_modules/form-data/lib/form_data.js +152 -147
- package/node_modules/form-data/lib/populate.js +5 -5
- package/node_modules/form-data/package.json +43 -29
- 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/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/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/has-tostringtag/.eslintrc +5 -0
- package/node_modules/has-tostringtag/.github/FUNDING.yml +12 -0
- package/node_modules/has-tostringtag/.nycrc +13 -0
- package/node_modules/has-tostringtag/CHANGELOG.md +42 -0
- package/node_modules/has-tostringtag/LICENSE +21 -0
- package/node_modules/has-tostringtag/README.md +46 -0
- package/node_modules/has-tostringtag/index.d.ts +3 -0
- package/node_modules/has-tostringtag/index.js +8 -0
- package/node_modules/has-tostringtag/package.json +108 -0
- package/node_modules/has-tostringtag/shams.d.ts +3 -0
- package/node_modules/has-tostringtag/shams.js +8 -0
- package/node_modules/has-tostringtag/test/index.js +21 -0
- package/node_modules/has-tostringtag/test/shams/core-js.js +31 -0
- package/node_modules/has-tostringtag/test/shams/get-own-property-symbols.js +30 -0
- package/node_modules/has-tostringtag/test/tests.js +15 -0
- package/node_modules/has-tostringtag/tsconfig.json +49 -0
- package/node_modules/hasown/.github/FUNDING.yml +12 -0
- package/node_modules/hasown/.nycrc +13 -0
- package/node_modules/hasown/CHANGELOG.md +58 -0
- package/node_modules/hasown/LICENSE +21 -0
- package/node_modules/hasown/README.md +40 -0
- package/node_modules/hasown/eslint.config.mjs +6 -0
- package/node_modules/hasown/index.d.ts +3 -0
- package/node_modules/hasown/index.js +8 -0
- package/node_modules/hasown/package.json +91 -0
- package/node_modules/hasown/tsconfig.json +6 -0
- package/node_modules/{process → http-proxy-agent}/LICENSE +1 -1
- package/node_modules/http-proxy-agent/README.md +44 -0
- package/node_modules/http-proxy-agent/dist/index.d.ts +44 -0
- package/node_modules/http-proxy-agent/dist/index.d.ts.map +1 -0
- package/node_modules/http-proxy-agent/dist/index.js +148 -0
- package/node_modules/http-proxy-agent/dist/index.js.map +1 -0
- package/node_modules/http-proxy-agent/package.json +47 -0
- package/node_modules/https-proxy-agent/LICENSE +22 -0
- package/node_modules/https-proxy-agent/README.md +70 -0
- package/node_modules/https-proxy-agent/dist/index.d.ts +47 -0
- package/node_modules/https-proxy-agent/dist/index.d.ts.map +1 -0
- package/node_modules/https-proxy-agent/dist/index.js +180 -0
- package/node_modules/https-proxy-agent/dist/index.js.map +1 -0
- package/node_modules/https-proxy-agent/dist/parse-proxy-response.d.ts +15 -0
- package/node_modules/https-proxy-agent/dist/parse-proxy-response.d.ts.map +1 -0
- package/node_modules/https-proxy-agent/dist/parse-proxy-response.js +101 -0
- package/node_modules/https-proxy-agent/dist/parse-proxy-response.js.map +1 -0
- package/node_modules/https-proxy-agent/package.json +50 -0
- package/node_modules/lodash/LICENSE +47 -0
- package/node_modules/lodash/README.md +39 -0
- package/node_modules/lodash/_DataView.js +7 -0
- package/node_modules/lodash/_Hash.js +32 -0
- package/node_modules/lodash/_LazyWrapper.js +28 -0
- package/node_modules/lodash/_ListCache.js +32 -0
- package/node_modules/lodash/_LodashWrapper.js +22 -0
- package/node_modules/lodash/_Map.js +7 -0
- package/node_modules/lodash/_MapCache.js +32 -0
- package/node_modules/lodash/_Promise.js +7 -0
- package/node_modules/lodash/_Set.js +7 -0
- package/node_modules/lodash/_SetCache.js +27 -0
- package/node_modules/lodash/_Stack.js +27 -0
- package/node_modules/lodash/_Symbol.js +6 -0
- package/node_modules/lodash/_Uint8Array.js +6 -0
- package/node_modules/lodash/_WeakMap.js +7 -0
- package/node_modules/lodash/_apply.js +21 -0
- package/node_modules/lodash/_arrayAggregator.js +22 -0
- package/node_modules/lodash/_arrayEach.js +22 -0
- package/node_modules/lodash/_arrayEachRight.js +21 -0
- package/node_modules/lodash/_arrayEvery.js +23 -0
- package/node_modules/lodash/_arrayFilter.js +25 -0
- package/node_modules/lodash/_arrayIncludes.js +17 -0
- package/node_modules/lodash/_arrayIncludesWith.js +22 -0
- package/node_modules/lodash/_arrayLikeKeys.js +49 -0
- package/node_modules/lodash/_arrayMap.js +21 -0
- package/node_modules/lodash/_arrayPush.js +20 -0
- package/node_modules/lodash/_arrayReduce.js +26 -0
- package/node_modules/lodash/_arrayReduceRight.js +24 -0
- package/node_modules/lodash/_arraySample.js +15 -0
- package/node_modules/lodash/_arraySampleSize.js +17 -0
- package/node_modules/lodash/_arrayShuffle.js +15 -0
- package/node_modules/lodash/_arraySome.js +23 -0
- package/node_modules/lodash/_asciiSize.js +12 -0
- package/node_modules/lodash/_asciiToArray.js +12 -0
- package/node_modules/lodash/_asciiWords.js +15 -0
- package/node_modules/lodash/_assignMergeValue.js +20 -0
- package/node_modules/lodash/_assignValue.js +28 -0
- package/node_modules/lodash/_assocIndexOf.js +21 -0
- package/node_modules/lodash/_baseAggregator.js +21 -0
- package/node_modules/lodash/_baseAssign.js +17 -0
- package/node_modules/lodash/_baseAssignIn.js +17 -0
- package/node_modules/lodash/_baseAssignValue.js +25 -0
- package/node_modules/lodash/_baseAt.js +23 -0
- package/node_modules/lodash/_baseClamp.js +22 -0
- package/node_modules/lodash/_baseClone.js +166 -0
- package/node_modules/lodash/_baseConforms.js +18 -0
- package/node_modules/lodash/_baseConformsTo.js +27 -0
- package/node_modules/lodash/_baseCreate.js +30 -0
- package/node_modules/lodash/_baseDelay.js +21 -0
- package/node_modules/lodash/_baseDifference.js +67 -0
- package/node_modules/lodash/_baseEach.js +14 -0
- package/node_modules/lodash/_baseEachRight.js +14 -0
- package/node_modules/lodash/_baseEvery.js +21 -0
- package/node_modules/lodash/_baseExtremum.js +32 -0
- package/node_modules/lodash/_baseFill.js +32 -0
- package/node_modules/lodash/_baseFilter.js +21 -0
- package/node_modules/lodash/_baseFindIndex.js +24 -0
- package/node_modules/lodash/_baseFindKey.js +23 -0
- package/node_modules/lodash/_baseFlatten.js +38 -0
- package/node_modules/lodash/_baseFor.js +16 -0
- package/node_modules/lodash/_baseForOwn.js +16 -0
- package/node_modules/lodash/_baseForOwnRight.js +16 -0
- package/node_modules/lodash/_baseForRight.js +15 -0
- package/node_modules/lodash/_baseFunctions.js +19 -0
- package/node_modules/lodash/_baseGet.js +24 -0
- package/node_modules/lodash/_baseGetAllKeys.js +20 -0
- package/node_modules/lodash/_baseGetTag.js +28 -0
- package/node_modules/lodash/_baseGt.js +14 -0
- package/node_modules/lodash/_baseHas.js +19 -0
- package/node_modules/lodash/_baseHasIn.js +13 -0
- package/node_modules/lodash/_baseInRange.js +18 -0
- package/node_modules/lodash/_baseIndexOf.js +20 -0
- package/node_modules/lodash/_baseIndexOfWith.js +23 -0
- package/node_modules/lodash/_baseIntersection.js +74 -0
- package/node_modules/lodash/_baseInverter.js +21 -0
- package/node_modules/lodash/_baseInvoke.js +24 -0
- package/node_modules/lodash/_baseIsArguments.js +18 -0
- package/node_modules/lodash/_baseIsArrayBuffer.js +17 -0
- package/node_modules/lodash/_baseIsDate.js +18 -0
- package/node_modules/lodash/_baseIsEqual.js +28 -0
- package/node_modules/lodash/_baseIsEqualDeep.js +83 -0
- package/node_modules/lodash/_baseIsMap.js +18 -0
- package/node_modules/lodash/_baseIsMatch.js +62 -0
- package/node_modules/lodash/_baseIsNaN.js +12 -0
- package/node_modules/lodash/_baseIsNative.js +47 -0
- package/node_modules/lodash/_baseIsRegExp.js +18 -0
- package/node_modules/lodash/_baseIsSet.js +18 -0
- package/node_modules/lodash/_baseIsTypedArray.js +60 -0
- package/node_modules/lodash/_baseIteratee.js +31 -0
- package/node_modules/lodash/_baseKeys.js +30 -0
- package/node_modules/lodash/_baseKeysIn.js +33 -0
- package/node_modules/lodash/_baseLodash.js +10 -0
- package/node_modules/lodash/_baseLt.js +14 -0
- package/node_modules/lodash/_baseMap.js +22 -0
- package/node_modules/lodash/_baseMatches.js +22 -0
- package/node_modules/lodash/_baseMatchesProperty.js +33 -0
- package/node_modules/lodash/_baseMean.js +20 -0
- package/node_modules/lodash/_baseMerge.js +42 -0
- package/node_modules/lodash/_baseMergeDeep.js +94 -0
- package/node_modules/lodash/_baseNth.js +20 -0
- package/node_modules/lodash/_baseOrderBy.js +49 -0
- package/node_modules/lodash/_basePick.js +19 -0
- package/node_modules/lodash/_basePickBy.js +30 -0
- package/node_modules/lodash/_baseProperty.js +14 -0
- package/node_modules/lodash/_basePropertyDeep.js +16 -0
- package/node_modules/lodash/_basePropertyOf.js +14 -0
- package/node_modules/lodash/_basePullAll.js +51 -0
- package/node_modules/lodash/_basePullAt.js +37 -0
- package/node_modules/lodash/_baseRandom.js +18 -0
- package/node_modules/lodash/_baseRange.js +28 -0
- package/node_modules/lodash/_baseReduce.js +23 -0
- package/node_modules/lodash/_baseRepeat.js +35 -0
- package/node_modules/lodash/_baseRest.js +17 -0
- package/node_modules/lodash/_baseSample.js +15 -0
- package/node_modules/lodash/_baseSampleSize.js +18 -0
- package/node_modules/lodash/_baseSet.js +51 -0
- package/node_modules/lodash/_baseSetData.js +17 -0
- package/node_modules/lodash/_baseSetToString.js +22 -0
- package/node_modules/lodash/_baseShuffle.js +15 -0
- package/node_modules/lodash/_baseSlice.js +31 -0
- package/node_modules/lodash/_baseSome.js +22 -0
- package/node_modules/lodash/_baseSortBy.js +21 -0
- package/node_modules/lodash/_baseSortedIndex.js +42 -0
- package/node_modules/lodash/_baseSortedIndexBy.js +67 -0
- package/node_modules/lodash/_baseSortedUniq.js +30 -0
- package/node_modules/lodash/_baseSum.js +24 -0
- package/node_modules/lodash/_baseTimes.js +20 -0
- package/node_modules/lodash/_baseToNumber.js +24 -0
- package/node_modules/lodash/_baseToPairs.js +18 -0
- package/node_modules/lodash/_baseToString.js +37 -0
- package/node_modules/lodash/_baseTrim.js +19 -0
- package/node_modules/lodash/_baseUnary.js +14 -0
- package/node_modules/lodash/_baseUniq.js +72 -0
- package/node_modules/lodash/_baseUnset.js +52 -0
- package/node_modules/lodash/_baseUpdate.js +18 -0
- package/node_modules/lodash/_baseValues.js +19 -0
- package/node_modules/lodash/_baseWhile.js +26 -0
- package/node_modules/lodash/_baseWrapperValue.js +25 -0
- package/node_modules/lodash/_baseXor.js +36 -0
- package/node_modules/lodash/_baseZipObject.js +23 -0
- package/node_modules/lodash/_cacheHas.js +13 -0
- package/node_modules/lodash/_castArrayLikeObject.js +14 -0
- package/node_modules/lodash/_castFunction.js +14 -0
- package/node_modules/lodash/_castPath.js +21 -0
- package/node_modules/lodash/_castRest.js +14 -0
- package/node_modules/lodash/_castSlice.js +18 -0
- package/node_modules/lodash/_charsEndIndex.js +19 -0
- package/node_modules/lodash/_charsStartIndex.js +20 -0
- package/node_modules/lodash/_cloneArrayBuffer.js +16 -0
- package/node_modules/lodash/_cloneBuffer.js +35 -0
- package/node_modules/lodash/_cloneDataView.js +16 -0
- package/node_modules/lodash/_cloneRegExp.js +17 -0
- package/node_modules/lodash/_cloneSymbol.js +18 -0
- package/node_modules/lodash/_cloneTypedArray.js +16 -0
- package/node_modules/lodash/_compareAscending.js +41 -0
- package/node_modules/lodash/_compareMultiple.js +44 -0
- package/node_modules/lodash/_composeArgs.js +39 -0
- package/node_modules/lodash/_composeArgsRight.js +41 -0
- package/node_modules/lodash/_copyArray.js +20 -0
- package/node_modules/lodash/_copyObject.js +40 -0
- package/node_modules/lodash/_copySymbols.js +16 -0
- package/node_modules/lodash/_copySymbolsIn.js +16 -0
- package/node_modules/lodash/_coreJsData.js +6 -0
- package/node_modules/lodash/_countHolders.js +21 -0
- package/node_modules/lodash/_createAggregator.js +23 -0
- package/node_modules/lodash/_createAssigner.js +37 -0
- package/node_modules/lodash/_createBaseEach.js +32 -0
- package/node_modules/lodash/_createBaseFor.js +25 -0
- package/node_modules/lodash/_createBind.js +28 -0
- package/node_modules/lodash/_createCaseFirst.js +33 -0
- package/node_modules/lodash/_createCompounder.js +24 -0
- package/node_modules/lodash/_createCtor.js +37 -0
- package/node_modules/lodash/_createCurry.js +46 -0
- package/node_modules/lodash/_createFind.js +25 -0
- package/node_modules/lodash/_createFlow.js +78 -0
- package/node_modules/lodash/_createHybrid.js +92 -0
- package/node_modules/lodash/_createInverter.js +17 -0
- package/node_modules/lodash/_createMathOperation.js +38 -0
- package/node_modules/lodash/_createOver.js +27 -0
- package/node_modules/lodash/_createPadding.js +33 -0
- package/node_modules/lodash/_createPartial.js +43 -0
- package/node_modules/lodash/_createRange.js +30 -0
- package/node_modules/lodash/_createRecurry.js +56 -0
- package/node_modules/lodash/_createRelationalOperation.js +20 -0
- package/node_modules/lodash/_createRound.js +35 -0
- package/node_modules/lodash/_createSet.js +19 -0
- package/node_modules/lodash/_createToPairs.js +30 -0
- package/node_modules/lodash/_createWrap.js +106 -0
- package/node_modules/lodash/_customDefaultsAssignIn.js +29 -0
- package/node_modules/lodash/_customDefaultsMerge.js +28 -0
- package/node_modules/lodash/_customOmitClone.js +16 -0
- package/node_modules/lodash/_deburrLetter.js +71 -0
- package/node_modules/lodash/_defineProperty.js +11 -0
- package/node_modules/lodash/_equalArrays.js +84 -0
- package/node_modules/lodash/_equalByTag.js +112 -0
- package/node_modules/lodash/_equalObjects.js +90 -0
- package/node_modules/lodash/_escapeHtmlChar.js +21 -0
- package/node_modules/lodash/_escapeStringChar.js +22 -0
- package/node_modules/lodash/_flatRest.js +16 -0
- package/node_modules/lodash/_freeGlobal.js +4 -0
- package/node_modules/lodash/_getAllKeys.js +16 -0
- package/node_modules/lodash/_getAllKeysIn.js +17 -0
- package/node_modules/lodash/_getData.js +15 -0
- package/node_modules/lodash/_getFuncName.js +31 -0
- package/node_modules/lodash/_getHolder.js +13 -0
- package/node_modules/lodash/_getMapData.js +18 -0
- package/node_modules/lodash/_getMatchData.js +24 -0
- package/node_modules/lodash/_getNative.js +17 -0
- package/node_modules/lodash/_getPrototype.js +6 -0
- package/node_modules/lodash/_getRawTag.js +46 -0
- package/node_modules/lodash/_getSymbols.js +30 -0
- package/node_modules/lodash/_getSymbolsIn.js +25 -0
- package/node_modules/lodash/_getTag.js +58 -0
- package/node_modules/lodash/_getValue.js +13 -0
- package/node_modules/lodash/_getView.js +33 -0
- package/node_modules/lodash/_getWrapDetails.js +17 -0
- package/node_modules/lodash/_hasPath.js +39 -0
- package/node_modules/lodash/_hasUnicode.js +26 -0
- package/node_modules/lodash/_hasUnicodeWord.js +15 -0
- package/node_modules/lodash/_hashClear.js +15 -0
- package/node_modules/lodash/_hashDelete.js +17 -0
- package/node_modules/lodash/_hashGet.js +30 -0
- package/node_modules/lodash/_hashHas.js +23 -0
- package/node_modules/lodash/_hashSet.js +23 -0
- package/node_modules/lodash/_initCloneArray.js +26 -0
- package/node_modules/lodash/_initCloneByTag.js +77 -0
- package/node_modules/lodash/_initCloneObject.js +18 -0
- package/node_modules/lodash/_insertWrapDetails.js +23 -0
- package/node_modules/lodash/_isFlattenable.js +20 -0
- package/node_modules/lodash/_isIndex.js +25 -0
- package/node_modules/lodash/_isIterateeCall.js +30 -0
- package/node_modules/lodash/_isKey.js +29 -0
- package/node_modules/lodash/_isKeyable.js +15 -0
- package/node_modules/lodash/_isLaziable.js +28 -0
- package/node_modules/lodash/_isMaskable.js +14 -0
- package/node_modules/lodash/_isMasked.js +20 -0
- package/node_modules/lodash/_isPrototype.js +18 -0
- package/node_modules/lodash/_isStrictComparable.js +15 -0
- package/node_modules/lodash/_iteratorToArray.js +18 -0
- package/node_modules/lodash/_lazyClone.js +23 -0
- package/node_modules/lodash/_lazyReverse.js +23 -0
- package/node_modules/lodash/_lazyValue.js +69 -0
- package/node_modules/lodash/_listCacheClear.js +13 -0
- package/node_modules/lodash/_listCacheDelete.js +35 -0
- package/node_modules/lodash/_listCacheGet.js +19 -0
- package/node_modules/lodash/_listCacheHas.js +16 -0
- package/node_modules/lodash/_listCacheSet.js +26 -0
- package/node_modules/lodash/_mapCacheClear.js +21 -0
- package/node_modules/lodash/_mapCacheDelete.js +18 -0
- package/node_modules/lodash/_mapCacheGet.js +16 -0
- package/node_modules/lodash/_mapCacheHas.js +16 -0
- package/node_modules/lodash/_mapCacheSet.js +22 -0
- package/node_modules/lodash/_mapToArray.js +18 -0
- package/node_modules/lodash/_matchesStrictComparable.js +20 -0
- package/node_modules/lodash/_memoizeCapped.js +26 -0
- package/node_modules/lodash/_mergeData.js +90 -0
- package/node_modules/lodash/_metaMap.js +6 -0
- package/node_modules/lodash/_nativeCreate.js +6 -0
- package/node_modules/lodash/_nativeKeys.js +6 -0
- package/node_modules/lodash/_nativeKeysIn.js +20 -0
- package/node_modules/lodash/_nodeUtil.js +30 -0
- package/node_modules/lodash/_objectToString.js +22 -0
- package/node_modules/lodash/_overArg.js +15 -0
- package/node_modules/lodash/_overRest.js +36 -0
- package/node_modules/lodash/_parent.js +16 -0
- package/node_modules/lodash/_reEscape.js +4 -0
- package/node_modules/lodash/_reEvaluate.js +4 -0
- package/node_modules/lodash/_reInterpolate.js +4 -0
- package/node_modules/lodash/_realNames.js +4 -0
- package/node_modules/lodash/_reorder.js +29 -0
- package/node_modules/lodash/_replaceHolders.js +29 -0
- package/node_modules/lodash/_root.js +9 -0
- package/node_modules/lodash/_safeGet.js +21 -0
- package/node_modules/lodash/_setCacheAdd.js +19 -0
- package/node_modules/lodash/_setCacheHas.js +14 -0
- package/node_modules/lodash/_setData.js +20 -0
- package/node_modules/lodash/_setToArray.js +18 -0
- package/node_modules/lodash/_setToPairs.js +18 -0
- package/node_modules/lodash/_setToString.js +14 -0
- package/node_modules/lodash/_setWrapToString.js +21 -0
- package/node_modules/lodash/_shortOut.js +37 -0
- package/node_modules/lodash/_shuffleSelf.js +28 -0
- package/node_modules/lodash/_stackClear.js +15 -0
- package/node_modules/lodash/_stackDelete.js +18 -0
- package/node_modules/lodash/_stackGet.js +14 -0
- package/node_modules/lodash/_stackHas.js +14 -0
- package/node_modules/lodash/_stackSet.js +34 -0
- package/node_modules/lodash/_strictIndexOf.js +23 -0
- package/node_modules/lodash/_strictLastIndexOf.js +21 -0
- package/node_modules/lodash/_stringSize.js +18 -0
- package/node_modules/lodash/_stringToArray.js +18 -0
- package/node_modules/lodash/_stringToPath.js +27 -0
- package/node_modules/lodash/_toKey.js +21 -0
- package/node_modules/lodash/_toSource.js +26 -0
- package/node_modules/lodash/_trimmedEndIndex.js +19 -0
- package/node_modules/lodash/_unescapeHtmlChar.js +21 -0
- package/node_modules/lodash/_unicodeSize.js +44 -0
- package/node_modules/lodash/_unicodeToArray.js +40 -0
- package/node_modules/lodash/_unicodeWords.js +69 -0
- package/node_modules/lodash/_updateWrapDetails.js +46 -0
- package/node_modules/lodash/_wrapperClone.js +23 -0
- package/node_modules/lodash/add.js +22 -0
- package/node_modules/lodash/after.js +42 -0
- package/node_modules/lodash/array.js +67 -0
- package/node_modules/lodash/ary.js +29 -0
- package/node_modules/lodash/assign.js +58 -0
- package/node_modules/lodash/assignIn.js +40 -0
- package/node_modules/lodash/assignInWith.js +38 -0
- package/node_modules/lodash/assignWith.js +37 -0
- package/node_modules/lodash/at.js +23 -0
- package/node_modules/lodash/attempt.js +35 -0
- package/node_modules/lodash/before.js +40 -0
- package/node_modules/lodash/bind.js +57 -0
- package/node_modules/lodash/bindAll.js +41 -0
- package/node_modules/lodash/bindKey.js +68 -0
- package/node_modules/lodash/camelCase.js +29 -0
- package/node_modules/lodash/capitalize.js +23 -0
- package/node_modules/lodash/castArray.js +44 -0
- package/node_modules/lodash/ceil.js +26 -0
- package/node_modules/lodash/chain.js +38 -0
- package/node_modules/lodash/chunk.js +50 -0
- package/node_modules/lodash/clamp.js +39 -0
- package/node_modules/lodash/clone.js +36 -0
- package/node_modules/lodash/cloneDeep.js +29 -0
- package/node_modules/lodash/cloneDeepWith.js +40 -0
- package/node_modules/lodash/cloneWith.js +42 -0
- package/node_modules/lodash/collection.js +30 -0
- package/node_modules/lodash/commit.js +33 -0
- package/node_modules/lodash/compact.js +31 -0
- package/node_modules/lodash/concat.js +43 -0
- package/node_modules/lodash/cond.js +60 -0
- package/node_modules/lodash/conforms.js +35 -0
- package/node_modules/lodash/conformsTo.js +32 -0
- package/node_modules/lodash/constant.js +26 -0
- package/node_modules/lodash/core.js +3877 -0
- package/node_modules/lodash/core.min.js +30 -0
- package/node_modules/lodash/countBy.js +40 -0
- package/node_modules/lodash/create.js +43 -0
- package/node_modules/lodash/curry.js +57 -0
- package/node_modules/lodash/curryRight.js +54 -0
- package/node_modules/lodash/date.js +3 -0
- package/node_modules/lodash/debounce.js +191 -0
- package/node_modules/lodash/deburr.js +45 -0
- package/node_modules/lodash/defaultTo.js +25 -0
- package/node_modules/lodash/defaults.js +64 -0
- package/node_modules/lodash/defaultsDeep.js +30 -0
- package/node_modules/lodash/defer.js +26 -0
- package/node_modules/lodash/delay.js +28 -0
- package/node_modules/lodash/difference.js +33 -0
- package/node_modules/lodash/differenceBy.js +44 -0
- package/node_modules/lodash/differenceWith.js +40 -0
- package/node_modules/lodash/divide.js +22 -0
- package/node_modules/lodash/drop.js +38 -0
- package/node_modules/lodash/dropRight.js +39 -0
- package/node_modules/lodash/dropRightWhile.js +45 -0
- package/node_modules/lodash/dropWhile.js +45 -0
- package/node_modules/lodash/each.js +1 -0
- package/node_modules/lodash/eachRight.js +1 -0
- package/node_modules/lodash/endsWith.js +43 -0
- package/node_modules/lodash/entries.js +1 -0
- package/node_modules/lodash/entriesIn.js +1 -0
- package/node_modules/lodash/eq.js +37 -0
- package/node_modules/lodash/escape.js +43 -0
- package/node_modules/lodash/escapeRegExp.js +32 -0
- package/node_modules/lodash/every.js +56 -0
- package/node_modules/lodash/extend.js +1 -0
- package/node_modules/lodash/extendWith.js +1 -0
- package/node_modules/lodash/fill.js +45 -0
- package/node_modules/lodash/filter.js +52 -0
- package/node_modules/lodash/find.js +42 -0
- package/node_modules/lodash/findIndex.js +55 -0
- package/node_modules/lodash/findKey.js +44 -0
- package/node_modules/lodash/findLast.js +25 -0
- package/node_modules/lodash/findLastIndex.js +59 -0
- package/node_modules/lodash/findLastKey.js +44 -0
- package/node_modules/lodash/first.js +1 -0
- package/node_modules/lodash/flatMap.js +29 -0
- package/node_modules/lodash/flatMapDeep.js +31 -0
- package/node_modules/lodash/flatMapDepth.js +31 -0
- package/node_modules/lodash/flatten.js +22 -0
- package/node_modules/lodash/flattenDeep.js +25 -0
- package/node_modules/lodash/flattenDepth.js +33 -0
- package/node_modules/lodash/flip.js +28 -0
- package/node_modules/lodash/floor.js +26 -0
- package/node_modules/lodash/flow.js +27 -0
- package/node_modules/lodash/flowRight.js +26 -0
- package/node_modules/lodash/forEach.js +41 -0
- package/node_modules/lodash/forEachRight.js +31 -0
- package/node_modules/lodash/forIn.js +39 -0
- package/node_modules/lodash/forInRight.js +37 -0
- package/node_modules/lodash/forOwn.js +36 -0
- package/node_modules/lodash/forOwnRight.js +34 -0
- package/node_modules/lodash/fp/F.js +1 -0
- package/node_modules/lodash/fp/T.js +1 -0
- package/node_modules/lodash/fp/__.js +1 -0
- package/node_modules/lodash/fp/_baseConvert.js +569 -0
- package/node_modules/lodash/fp/_convertBrowser.js +18 -0
- package/node_modules/lodash/fp/_falseOptions.js +7 -0
- package/node_modules/lodash/fp/_mapping.js +358 -0
- package/node_modules/lodash/fp/_util.js +16 -0
- package/node_modules/lodash/fp/add.js +5 -0
- package/node_modules/lodash/fp/after.js +5 -0
- package/node_modules/lodash/fp/all.js +1 -0
- package/node_modules/lodash/fp/allPass.js +1 -0
- package/node_modules/lodash/fp/always.js +1 -0
- package/node_modules/lodash/fp/any.js +1 -0
- package/node_modules/lodash/fp/anyPass.js +1 -0
- package/node_modules/lodash/fp/apply.js +1 -0
- package/node_modules/lodash/fp/array.js +2 -0
- package/node_modules/lodash/fp/ary.js +5 -0
- package/node_modules/lodash/fp/assign.js +5 -0
- package/node_modules/lodash/fp/assignAll.js +5 -0
- package/node_modules/lodash/fp/assignAllWith.js +5 -0
- package/node_modules/lodash/fp/assignIn.js +5 -0
- package/node_modules/lodash/fp/assignInAll.js +5 -0
- package/node_modules/lodash/fp/assignInAllWith.js +5 -0
- package/node_modules/lodash/fp/assignInWith.js +5 -0
- package/node_modules/lodash/fp/assignWith.js +5 -0
- package/node_modules/lodash/fp/assoc.js +1 -0
- package/node_modules/lodash/fp/assocPath.js +1 -0
- package/node_modules/lodash/fp/at.js +5 -0
- package/node_modules/lodash/fp/attempt.js +5 -0
- package/node_modules/lodash/fp/before.js +5 -0
- package/node_modules/lodash/fp/bind.js +5 -0
- package/node_modules/lodash/fp/bindAll.js +5 -0
- package/node_modules/lodash/fp/bindKey.js +5 -0
- package/node_modules/lodash/fp/camelCase.js +5 -0
- package/node_modules/lodash/fp/capitalize.js +5 -0
- package/node_modules/lodash/fp/castArray.js +5 -0
- package/node_modules/lodash/fp/ceil.js +5 -0
- package/node_modules/lodash/fp/chain.js +5 -0
- package/node_modules/lodash/fp/chunk.js +5 -0
- package/node_modules/lodash/fp/clamp.js +5 -0
- package/node_modules/lodash/fp/clone.js +5 -0
- package/node_modules/lodash/fp/cloneDeep.js +5 -0
- package/node_modules/lodash/fp/cloneDeepWith.js +5 -0
- package/node_modules/lodash/fp/cloneWith.js +5 -0
- package/node_modules/lodash/fp/collection.js +2 -0
- package/node_modules/lodash/fp/commit.js +5 -0
- package/node_modules/lodash/fp/compact.js +5 -0
- package/node_modules/lodash/fp/complement.js +1 -0
- package/node_modules/lodash/fp/compose.js +1 -0
- package/node_modules/lodash/fp/concat.js +5 -0
- package/node_modules/lodash/fp/cond.js +5 -0
- package/node_modules/lodash/fp/conforms.js +1 -0
- package/node_modules/lodash/fp/conformsTo.js +5 -0
- package/node_modules/lodash/fp/constant.js +5 -0
- package/node_modules/lodash/fp/contains.js +1 -0
- package/node_modules/lodash/fp/convert.js +18 -0
- package/node_modules/lodash/fp/countBy.js +5 -0
- package/node_modules/lodash/fp/create.js +5 -0
- package/node_modules/lodash/fp/curry.js +5 -0
- package/node_modules/lodash/fp/curryN.js +5 -0
- package/node_modules/lodash/fp/curryRight.js +5 -0
- package/node_modules/lodash/fp/curryRightN.js +5 -0
- package/node_modules/lodash/fp/date.js +2 -0
- package/node_modules/lodash/fp/debounce.js +5 -0
- package/node_modules/lodash/fp/deburr.js +5 -0
- package/node_modules/lodash/fp/defaultTo.js +5 -0
- package/node_modules/lodash/fp/defaults.js +5 -0
- package/node_modules/lodash/fp/defaultsAll.js +5 -0
- package/node_modules/lodash/fp/defaultsDeep.js +5 -0
- package/node_modules/lodash/fp/defaultsDeepAll.js +5 -0
- package/node_modules/lodash/fp/defer.js +5 -0
- package/node_modules/lodash/fp/delay.js +5 -0
- package/node_modules/lodash/fp/difference.js +5 -0
- package/node_modules/lodash/fp/differenceBy.js +5 -0
- package/node_modules/lodash/fp/differenceWith.js +5 -0
- package/node_modules/lodash/fp/dissoc.js +1 -0
- package/node_modules/lodash/fp/dissocPath.js +1 -0
- package/node_modules/lodash/fp/divide.js +5 -0
- package/node_modules/lodash/fp/drop.js +5 -0
- package/node_modules/lodash/fp/dropLast.js +1 -0
- package/node_modules/lodash/fp/dropLastWhile.js +1 -0
- package/node_modules/lodash/fp/dropRight.js +5 -0
- package/node_modules/lodash/fp/dropRightWhile.js +5 -0
- package/node_modules/lodash/fp/dropWhile.js +5 -0
- package/node_modules/lodash/fp/each.js +1 -0
- package/node_modules/lodash/fp/eachRight.js +1 -0
- package/node_modules/lodash/fp/endsWith.js +5 -0
- package/node_modules/lodash/fp/entries.js +1 -0
- package/node_modules/lodash/fp/entriesIn.js +1 -0
- package/node_modules/lodash/fp/eq.js +5 -0
- package/node_modules/lodash/fp/equals.js +1 -0
- package/node_modules/lodash/fp/escape.js +5 -0
- package/node_modules/lodash/fp/escapeRegExp.js +5 -0
- package/node_modules/lodash/fp/every.js +5 -0
- package/node_modules/lodash/fp/extend.js +1 -0
- package/node_modules/lodash/fp/extendAll.js +1 -0
- package/node_modules/lodash/fp/extendAllWith.js +1 -0
- package/node_modules/lodash/fp/extendWith.js +1 -0
- package/node_modules/lodash/fp/fill.js +5 -0
- package/node_modules/lodash/fp/filter.js +5 -0
- package/node_modules/lodash/fp/find.js +5 -0
- package/node_modules/lodash/fp/findFrom.js +5 -0
- package/node_modules/lodash/fp/findIndex.js +5 -0
- package/node_modules/lodash/fp/findIndexFrom.js +5 -0
- package/node_modules/lodash/fp/findKey.js +5 -0
- package/node_modules/lodash/fp/findLast.js +5 -0
- package/node_modules/lodash/fp/findLastFrom.js +5 -0
- package/node_modules/lodash/fp/findLastIndex.js +5 -0
- package/node_modules/lodash/fp/findLastIndexFrom.js +5 -0
- package/node_modules/lodash/fp/findLastKey.js +5 -0
- package/node_modules/lodash/fp/first.js +1 -0
- package/node_modules/lodash/fp/flatMap.js +5 -0
- package/node_modules/lodash/fp/flatMapDeep.js +5 -0
- package/node_modules/lodash/fp/flatMapDepth.js +5 -0
- package/node_modules/lodash/fp/flatten.js +5 -0
- package/node_modules/lodash/fp/flattenDeep.js +5 -0
- package/node_modules/lodash/fp/flattenDepth.js +5 -0
- package/node_modules/lodash/fp/flip.js +5 -0
- package/node_modules/lodash/fp/floor.js +5 -0
- package/node_modules/lodash/fp/flow.js +5 -0
- package/node_modules/lodash/fp/flowRight.js +5 -0
- package/node_modules/lodash/fp/forEach.js +5 -0
- package/node_modules/lodash/fp/forEachRight.js +5 -0
- package/node_modules/lodash/fp/forIn.js +5 -0
- package/node_modules/lodash/fp/forInRight.js +5 -0
- package/node_modules/lodash/fp/forOwn.js +5 -0
- package/node_modules/lodash/fp/forOwnRight.js +5 -0
- package/node_modules/lodash/fp/fromPairs.js +5 -0
- package/node_modules/lodash/fp/function.js +2 -0
- package/node_modules/lodash/fp/functions.js +5 -0
- package/node_modules/lodash/fp/functionsIn.js +5 -0
- package/node_modules/lodash/fp/get.js +5 -0
- package/node_modules/lodash/fp/getOr.js +5 -0
- package/node_modules/lodash/fp/groupBy.js +5 -0
- package/node_modules/lodash/fp/gt.js +5 -0
- package/node_modules/lodash/fp/gte.js +5 -0
- package/node_modules/lodash/fp/has.js +5 -0
- package/node_modules/lodash/fp/hasIn.js +5 -0
- package/node_modules/lodash/fp/head.js +5 -0
- package/node_modules/lodash/fp/identical.js +1 -0
- package/node_modules/lodash/fp/identity.js +5 -0
- package/node_modules/lodash/fp/inRange.js +5 -0
- package/node_modules/lodash/fp/includes.js +5 -0
- package/node_modules/lodash/fp/includesFrom.js +5 -0
- package/node_modules/lodash/fp/indexBy.js +1 -0
- package/node_modules/lodash/fp/indexOf.js +5 -0
- package/node_modules/lodash/fp/indexOfFrom.js +5 -0
- package/node_modules/lodash/fp/init.js +1 -0
- package/node_modules/lodash/fp/initial.js +5 -0
- package/node_modules/lodash/fp/intersection.js +5 -0
- package/node_modules/lodash/fp/intersectionBy.js +5 -0
- package/node_modules/lodash/fp/intersectionWith.js +5 -0
- package/node_modules/lodash/fp/invert.js +5 -0
- package/node_modules/lodash/fp/invertBy.js +5 -0
- package/node_modules/lodash/fp/invertObj.js +1 -0
- package/node_modules/lodash/fp/invoke.js +5 -0
- package/node_modules/lodash/fp/invokeArgs.js +5 -0
- package/node_modules/lodash/fp/invokeArgsMap.js +5 -0
- package/node_modules/lodash/fp/invokeMap.js +5 -0
- package/node_modules/lodash/fp/isArguments.js +5 -0
- package/node_modules/lodash/fp/isArray.js +5 -0
- package/node_modules/lodash/fp/isArrayBuffer.js +5 -0
- package/node_modules/lodash/fp/isArrayLike.js +5 -0
- package/node_modules/lodash/fp/isArrayLikeObject.js +5 -0
- package/node_modules/lodash/fp/isBoolean.js +5 -0
- package/node_modules/lodash/fp/isBuffer.js +5 -0
- package/node_modules/lodash/fp/isDate.js +5 -0
- package/node_modules/lodash/fp/isElement.js +5 -0
- package/node_modules/lodash/fp/isEmpty.js +5 -0
- package/node_modules/lodash/fp/isEqual.js +5 -0
- package/node_modules/lodash/fp/isEqualWith.js +5 -0
- package/node_modules/lodash/fp/isError.js +5 -0
- package/node_modules/lodash/fp/isFinite.js +5 -0
- package/node_modules/lodash/fp/isFunction.js +5 -0
- package/node_modules/lodash/fp/isInteger.js +5 -0
- package/node_modules/lodash/fp/isLength.js +5 -0
- package/node_modules/lodash/fp/isMap.js +5 -0
- package/node_modules/lodash/fp/isMatch.js +5 -0
- package/node_modules/lodash/fp/isMatchWith.js +5 -0
- package/node_modules/lodash/fp/isNaN.js +5 -0
- package/node_modules/lodash/fp/isNative.js +5 -0
- package/node_modules/lodash/fp/isNil.js +5 -0
- package/node_modules/lodash/fp/isNull.js +5 -0
- package/node_modules/lodash/fp/isNumber.js +5 -0
- package/node_modules/lodash/fp/isObject.js +5 -0
- package/node_modules/lodash/fp/isObjectLike.js +5 -0
- package/node_modules/lodash/fp/isPlainObject.js +5 -0
- package/node_modules/lodash/fp/isRegExp.js +5 -0
- package/node_modules/lodash/fp/isSafeInteger.js +5 -0
- package/node_modules/lodash/fp/isSet.js +5 -0
- package/node_modules/lodash/fp/isString.js +5 -0
- package/node_modules/lodash/fp/isSymbol.js +5 -0
- package/node_modules/lodash/fp/isTypedArray.js +5 -0
- package/node_modules/lodash/fp/isUndefined.js +5 -0
- package/node_modules/lodash/fp/isWeakMap.js +5 -0
- package/node_modules/lodash/fp/isWeakSet.js +5 -0
- package/node_modules/lodash/fp/iteratee.js +5 -0
- package/node_modules/lodash/fp/join.js +5 -0
- package/node_modules/lodash/fp/juxt.js +1 -0
- package/node_modules/lodash/fp/kebabCase.js +5 -0
- package/node_modules/lodash/fp/keyBy.js +5 -0
- package/node_modules/lodash/fp/keys.js +5 -0
- package/node_modules/lodash/fp/keysIn.js +5 -0
- package/node_modules/lodash/fp/lang.js +2 -0
- package/node_modules/lodash/fp/last.js +5 -0
- package/node_modules/lodash/fp/lastIndexOf.js +5 -0
- package/node_modules/lodash/fp/lastIndexOfFrom.js +5 -0
- package/node_modules/lodash/fp/lowerCase.js +5 -0
- package/node_modules/lodash/fp/lowerFirst.js +5 -0
- package/node_modules/lodash/fp/lt.js +5 -0
- package/node_modules/lodash/fp/lte.js +5 -0
- package/node_modules/lodash/fp/map.js +5 -0
- package/node_modules/lodash/fp/mapKeys.js +5 -0
- package/node_modules/lodash/fp/mapValues.js +5 -0
- package/node_modules/lodash/fp/matches.js +1 -0
- package/node_modules/lodash/fp/matchesProperty.js +5 -0
- package/node_modules/lodash/fp/math.js +2 -0
- package/node_modules/lodash/fp/max.js +5 -0
- package/node_modules/lodash/fp/maxBy.js +5 -0
- package/node_modules/lodash/fp/mean.js +5 -0
- package/node_modules/lodash/fp/meanBy.js +5 -0
- package/node_modules/lodash/fp/memoize.js +5 -0
- package/node_modules/lodash/fp/merge.js +5 -0
- package/node_modules/lodash/fp/mergeAll.js +5 -0
- package/node_modules/lodash/fp/mergeAllWith.js +5 -0
- package/node_modules/lodash/fp/mergeWith.js +5 -0
- package/node_modules/lodash/fp/method.js +5 -0
- package/node_modules/lodash/fp/methodOf.js +5 -0
- package/node_modules/lodash/fp/min.js +5 -0
- package/node_modules/lodash/fp/minBy.js +5 -0
- package/node_modules/lodash/fp/mixin.js +5 -0
- package/node_modules/lodash/fp/multiply.js +5 -0
- package/node_modules/lodash/fp/nAry.js +1 -0
- package/node_modules/lodash/fp/negate.js +5 -0
- package/node_modules/lodash/fp/next.js +5 -0
- package/node_modules/lodash/fp/noop.js +5 -0
- package/node_modules/lodash/fp/now.js +5 -0
- package/node_modules/lodash/fp/nth.js +5 -0
- package/node_modules/lodash/fp/nthArg.js +5 -0
- package/node_modules/lodash/fp/number.js +2 -0
- package/node_modules/lodash/fp/object.js +2 -0
- package/node_modules/lodash/fp/omit.js +5 -0
- package/node_modules/lodash/fp/omitAll.js +1 -0
- package/node_modules/lodash/fp/omitBy.js +5 -0
- package/node_modules/lodash/fp/once.js +5 -0
- package/node_modules/lodash/fp/orderBy.js +5 -0
- package/node_modules/lodash/fp/over.js +5 -0
- package/node_modules/lodash/fp/overArgs.js +5 -0
- package/node_modules/lodash/fp/overEvery.js +5 -0
- package/node_modules/lodash/fp/overSome.js +5 -0
- package/node_modules/lodash/fp/pad.js +5 -0
- package/node_modules/lodash/fp/padChars.js +5 -0
- package/node_modules/lodash/fp/padCharsEnd.js +5 -0
- package/node_modules/lodash/fp/padCharsStart.js +5 -0
- package/node_modules/lodash/fp/padEnd.js +5 -0
- package/node_modules/lodash/fp/padStart.js +5 -0
- package/node_modules/lodash/fp/parseInt.js +5 -0
- package/node_modules/lodash/fp/partial.js +5 -0
- package/node_modules/lodash/fp/partialRight.js +5 -0
- package/node_modules/lodash/fp/partition.js +5 -0
- package/node_modules/lodash/fp/path.js +1 -0
- package/node_modules/lodash/fp/pathEq.js +1 -0
- package/node_modules/lodash/fp/pathOr.js +1 -0
- package/node_modules/lodash/fp/paths.js +1 -0
- package/node_modules/lodash/fp/pick.js +5 -0
- package/node_modules/lodash/fp/pickAll.js +1 -0
- package/node_modules/lodash/fp/pickBy.js +5 -0
- package/node_modules/lodash/fp/pipe.js +1 -0
- package/node_modules/lodash/fp/placeholder.js +6 -0
- package/node_modules/lodash/fp/plant.js +5 -0
- package/node_modules/lodash/fp/pluck.js +1 -0
- package/node_modules/lodash/fp/prop.js +1 -0
- package/node_modules/lodash/fp/propEq.js +1 -0
- package/node_modules/lodash/fp/propOr.js +1 -0
- package/node_modules/lodash/fp/property.js +1 -0
- package/node_modules/lodash/fp/propertyOf.js +5 -0
- package/node_modules/lodash/fp/props.js +1 -0
- package/node_modules/lodash/fp/pull.js +5 -0
- package/node_modules/lodash/fp/pullAll.js +5 -0
- package/node_modules/lodash/fp/pullAllBy.js +5 -0
- package/node_modules/lodash/fp/pullAllWith.js +5 -0
- package/node_modules/lodash/fp/pullAt.js +5 -0
- package/node_modules/lodash/fp/random.js +5 -0
- package/node_modules/lodash/fp/range.js +5 -0
- package/node_modules/lodash/fp/rangeRight.js +5 -0
- package/node_modules/lodash/fp/rangeStep.js +5 -0
- package/node_modules/lodash/fp/rangeStepRight.js +5 -0
- package/node_modules/lodash/fp/rearg.js +5 -0
- package/node_modules/lodash/fp/reduce.js +5 -0
- package/node_modules/lodash/fp/reduceRight.js +5 -0
- package/node_modules/lodash/fp/reject.js +5 -0
- package/node_modules/lodash/fp/remove.js +5 -0
- package/node_modules/lodash/fp/repeat.js +5 -0
- package/node_modules/lodash/fp/replace.js +5 -0
- package/node_modules/lodash/fp/rest.js +5 -0
- package/node_modules/lodash/fp/restFrom.js +5 -0
- package/node_modules/lodash/fp/result.js +5 -0
- package/node_modules/lodash/fp/reverse.js +5 -0
- package/node_modules/lodash/fp/round.js +5 -0
- package/node_modules/lodash/fp/sample.js +5 -0
- package/node_modules/lodash/fp/sampleSize.js +5 -0
- package/node_modules/lodash/fp/seq.js +2 -0
- package/node_modules/lodash/fp/set.js +5 -0
- package/node_modules/lodash/fp/setWith.js +5 -0
- package/node_modules/lodash/fp/shuffle.js +5 -0
- package/node_modules/lodash/fp/size.js +5 -0
- package/node_modules/lodash/fp/slice.js +5 -0
- package/node_modules/lodash/fp/snakeCase.js +5 -0
- package/node_modules/lodash/fp/some.js +5 -0
- package/node_modules/lodash/fp/sortBy.js +5 -0
- package/node_modules/lodash/fp/sortedIndex.js +5 -0
- package/node_modules/lodash/fp/sortedIndexBy.js +5 -0
- package/node_modules/lodash/fp/sortedIndexOf.js +5 -0
- package/node_modules/lodash/fp/sortedLastIndex.js +5 -0
- package/node_modules/lodash/fp/sortedLastIndexBy.js +5 -0
- package/node_modules/lodash/fp/sortedLastIndexOf.js +5 -0
- package/node_modules/lodash/fp/sortedUniq.js +5 -0
- package/node_modules/lodash/fp/sortedUniqBy.js +5 -0
- package/node_modules/lodash/fp/split.js +5 -0
- package/node_modules/lodash/fp/spread.js +5 -0
- package/node_modules/lodash/fp/spreadFrom.js +5 -0
- package/node_modules/lodash/fp/startCase.js +5 -0
- package/node_modules/lodash/fp/startsWith.js +5 -0
- package/node_modules/lodash/fp/string.js +2 -0
- package/node_modules/lodash/fp/stubArray.js +5 -0
- package/node_modules/lodash/fp/stubFalse.js +5 -0
- package/node_modules/lodash/fp/stubObject.js +5 -0
- package/node_modules/lodash/fp/stubString.js +5 -0
- package/node_modules/lodash/fp/stubTrue.js +5 -0
- package/node_modules/lodash/fp/subtract.js +5 -0
- package/node_modules/lodash/fp/sum.js +5 -0
- package/node_modules/lodash/fp/sumBy.js +5 -0
- package/node_modules/lodash/fp/symmetricDifference.js +1 -0
- package/node_modules/lodash/fp/symmetricDifferenceBy.js +1 -0
- package/node_modules/lodash/fp/symmetricDifferenceWith.js +1 -0
- package/node_modules/lodash/fp/tail.js +5 -0
- package/node_modules/lodash/fp/take.js +5 -0
- package/node_modules/lodash/fp/takeLast.js +1 -0
- package/node_modules/lodash/fp/takeLastWhile.js +1 -0
- package/node_modules/lodash/fp/takeRight.js +5 -0
- package/node_modules/lodash/fp/takeRightWhile.js +5 -0
- package/node_modules/lodash/fp/takeWhile.js +5 -0
- package/node_modules/lodash/fp/tap.js +5 -0
- package/node_modules/lodash/fp/template.js +5 -0
- package/node_modules/lodash/fp/templateSettings.js +5 -0
- package/node_modules/lodash/fp/throttle.js +5 -0
- package/node_modules/lodash/fp/thru.js +5 -0
- package/node_modules/lodash/fp/times.js +5 -0
- package/node_modules/lodash/fp/toArray.js +5 -0
- package/node_modules/lodash/fp/toFinite.js +5 -0
- package/node_modules/lodash/fp/toInteger.js +5 -0
- package/node_modules/lodash/fp/toIterator.js +5 -0
- package/node_modules/lodash/fp/toJSON.js +5 -0
- package/node_modules/lodash/fp/toLength.js +5 -0
- package/node_modules/lodash/fp/toLower.js +5 -0
- package/node_modules/lodash/fp/toNumber.js +5 -0
- package/node_modules/lodash/fp/toPairs.js +5 -0
- package/node_modules/lodash/fp/toPairsIn.js +5 -0
- package/node_modules/lodash/fp/toPath.js +5 -0
- package/node_modules/lodash/fp/toPlainObject.js +5 -0
- package/node_modules/lodash/fp/toSafeInteger.js +5 -0
- package/node_modules/lodash/fp/toString.js +5 -0
- package/node_modules/lodash/fp/toUpper.js +5 -0
- package/node_modules/lodash/fp/transform.js +5 -0
- package/node_modules/lodash/fp/trim.js +5 -0
- package/node_modules/lodash/fp/trimChars.js +5 -0
- package/node_modules/lodash/fp/trimCharsEnd.js +5 -0
- package/node_modules/lodash/fp/trimCharsStart.js +5 -0
- package/node_modules/lodash/fp/trimEnd.js +5 -0
- package/node_modules/lodash/fp/trimStart.js +5 -0
- package/node_modules/lodash/fp/truncate.js +5 -0
- package/node_modules/lodash/fp/unapply.js +1 -0
- package/node_modules/lodash/fp/unary.js +5 -0
- package/node_modules/lodash/fp/unescape.js +5 -0
- package/node_modules/lodash/fp/union.js +5 -0
- package/node_modules/lodash/fp/unionBy.js +5 -0
- package/node_modules/lodash/fp/unionWith.js +5 -0
- package/node_modules/lodash/fp/uniq.js +5 -0
- package/node_modules/lodash/fp/uniqBy.js +5 -0
- package/node_modules/lodash/fp/uniqWith.js +5 -0
- package/node_modules/lodash/fp/uniqueId.js +5 -0
- package/node_modules/lodash/fp/unnest.js +1 -0
- package/node_modules/lodash/fp/unset.js +5 -0
- package/node_modules/lodash/fp/unzip.js +5 -0
- package/node_modules/lodash/fp/unzipWith.js +5 -0
- package/node_modules/lodash/fp/update.js +5 -0
- package/node_modules/lodash/fp/updateWith.js +5 -0
- package/node_modules/lodash/fp/upperCase.js +5 -0
- package/node_modules/lodash/fp/upperFirst.js +5 -0
- package/node_modules/lodash/fp/useWith.js +1 -0
- package/node_modules/lodash/fp/util.js +2 -0
- package/node_modules/lodash/fp/value.js +5 -0
- package/node_modules/lodash/fp/valueOf.js +5 -0
- package/node_modules/lodash/fp/values.js +5 -0
- package/node_modules/lodash/fp/valuesIn.js +5 -0
- package/node_modules/lodash/fp/where.js +1 -0
- package/node_modules/lodash/fp/whereEq.js +1 -0
- package/node_modules/lodash/fp/without.js +5 -0
- package/node_modules/lodash/fp/words.js +5 -0
- package/node_modules/lodash/fp/wrap.js +5 -0
- package/node_modules/lodash/fp/wrapperAt.js +5 -0
- package/node_modules/lodash/fp/wrapperChain.js +5 -0
- package/node_modules/lodash/fp/wrapperLodash.js +5 -0
- package/node_modules/lodash/fp/wrapperReverse.js +5 -0
- package/node_modules/lodash/fp/wrapperValue.js +5 -0
- package/node_modules/lodash/fp/xor.js +5 -0
- package/node_modules/lodash/fp/xorBy.js +5 -0
- package/node_modules/lodash/fp/xorWith.js +5 -0
- package/node_modules/lodash/fp/zip.js +5 -0
- package/node_modules/lodash/fp/zipAll.js +5 -0
- package/node_modules/lodash/fp/zipObj.js +1 -0
- package/node_modules/lodash/fp/zipObject.js +5 -0
- package/node_modules/lodash/fp/zipObjectDeep.js +5 -0
- package/node_modules/lodash/fp/zipWith.js +5 -0
- package/node_modules/lodash/fp.js +2 -0
- package/node_modules/lodash/fromPairs.js +30 -0
- package/node_modules/lodash/function.js +25 -0
- package/node_modules/lodash/functions.js +31 -0
- package/node_modules/lodash/functionsIn.js +31 -0
- package/node_modules/lodash/get.js +33 -0
- package/node_modules/lodash/groupBy.js +41 -0
- package/node_modules/lodash/gt.js +29 -0
- package/node_modules/lodash/gte.js +30 -0
- package/node_modules/lodash/has.js +35 -0
- package/node_modules/lodash/hasIn.js +34 -0
- package/node_modules/lodash/head.js +23 -0
- package/node_modules/lodash/identity.js +21 -0
- package/node_modules/lodash/inRange.js +55 -0
- package/node_modules/lodash/includes.js +53 -0
- package/node_modules/lodash/index.js +1 -0
- package/node_modules/lodash/indexOf.js +42 -0
- package/node_modules/lodash/initial.js +22 -0
- package/node_modules/lodash/intersection.js +30 -0
- package/node_modules/lodash/intersectionBy.js +45 -0
- package/node_modules/lodash/intersectionWith.js +41 -0
- package/node_modules/lodash/invert.js +42 -0
- package/node_modules/lodash/invertBy.js +56 -0
- package/node_modules/lodash/invoke.js +24 -0
- package/node_modules/lodash/invokeMap.js +41 -0
- package/node_modules/lodash/isArguments.js +36 -0
- package/node_modules/lodash/isArray.js +26 -0
- package/node_modules/lodash/isArrayBuffer.js +27 -0
- package/node_modules/lodash/isArrayLike.js +33 -0
- package/node_modules/lodash/isArrayLikeObject.js +33 -0
- package/node_modules/lodash/isBoolean.js +29 -0
- package/node_modules/lodash/isBuffer.js +38 -0
- package/node_modules/lodash/isDate.js +27 -0
- package/node_modules/lodash/isElement.js +25 -0
- package/node_modules/lodash/isEmpty.js +77 -0
- package/node_modules/lodash/isEqual.js +35 -0
- package/node_modules/lodash/isEqualWith.js +41 -0
- package/node_modules/lodash/isError.js +36 -0
- package/node_modules/lodash/isFinite.js +36 -0
- package/node_modules/lodash/isFunction.js +37 -0
- package/node_modules/lodash/isInteger.js +33 -0
- package/node_modules/lodash/isLength.js +35 -0
- package/node_modules/lodash/isMap.js +27 -0
- package/node_modules/lodash/isMatch.js +36 -0
- package/node_modules/lodash/isMatchWith.js +41 -0
- package/node_modules/lodash/isNaN.js +38 -0
- package/node_modules/lodash/isNative.js +40 -0
- package/node_modules/lodash/isNil.js +25 -0
- package/node_modules/lodash/isNull.js +22 -0
- package/node_modules/lodash/isNumber.js +38 -0
- package/node_modules/lodash/isObject.js +31 -0
- package/node_modules/lodash/isObjectLike.js +29 -0
- package/node_modules/lodash/isPlainObject.js +62 -0
- package/node_modules/lodash/isRegExp.js +27 -0
- package/node_modules/lodash/isSafeInteger.js +37 -0
- package/node_modules/lodash/isSet.js +27 -0
- package/node_modules/lodash/isString.js +30 -0
- package/node_modules/lodash/isSymbol.js +29 -0
- package/node_modules/lodash/isTypedArray.js +27 -0
- package/node_modules/lodash/isUndefined.js +22 -0
- package/node_modules/lodash/isWeakMap.js +28 -0
- package/node_modules/lodash/isWeakSet.js +28 -0
- package/node_modules/lodash/iteratee.js +53 -0
- package/node_modules/lodash/join.js +26 -0
- package/node_modules/lodash/kebabCase.js +28 -0
- package/node_modules/lodash/keyBy.js +36 -0
- package/node_modules/lodash/keys.js +37 -0
- package/node_modules/lodash/keysIn.js +32 -0
- package/node_modules/lodash/lang.js +58 -0
- package/node_modules/lodash/last.js +20 -0
- package/node_modules/lodash/lastIndexOf.js +46 -0
- package/node_modules/lodash/lodash.js +17259 -0
- package/node_modules/lodash/lodash.min.js +136 -0
- package/node_modules/lodash/lowerCase.js +27 -0
- package/node_modules/lodash/lowerFirst.js +22 -0
- package/node_modules/lodash/lt.js +29 -0
- package/node_modules/lodash/lte.js +30 -0
- package/node_modules/lodash/map.js +53 -0
- package/node_modules/lodash/mapKeys.js +36 -0
- package/node_modules/lodash/mapValues.js +43 -0
- package/node_modules/lodash/matches.js +46 -0
- package/node_modules/lodash/matchesProperty.js +44 -0
- package/node_modules/lodash/math.js +17 -0
- package/node_modules/lodash/max.js +29 -0
- package/node_modules/lodash/maxBy.js +34 -0
- package/node_modules/lodash/mean.js +22 -0
- package/node_modules/lodash/meanBy.js +31 -0
- package/node_modules/lodash/memoize.js +73 -0
- package/node_modules/lodash/merge.js +39 -0
- package/node_modules/lodash/mergeWith.js +39 -0
- package/node_modules/lodash/method.js +34 -0
- package/node_modules/lodash/methodOf.js +33 -0
- package/node_modules/lodash/min.js +29 -0
- package/node_modules/lodash/minBy.js +34 -0
- package/node_modules/lodash/mixin.js +74 -0
- package/node_modules/lodash/multiply.js +22 -0
- package/node_modules/lodash/negate.js +40 -0
- package/node_modules/lodash/next.js +35 -0
- package/node_modules/lodash/noop.js +17 -0
- package/node_modules/lodash/now.js +23 -0
- package/node_modules/lodash/nth.js +29 -0
- package/node_modules/lodash/nthArg.js +32 -0
- package/node_modules/lodash/number.js +5 -0
- package/node_modules/lodash/object.js +49 -0
- package/node_modules/lodash/omit.js +57 -0
- package/node_modules/lodash/omitBy.js +29 -0
- package/node_modules/lodash/once.js +25 -0
- package/node_modules/lodash/orderBy.js +47 -0
- package/node_modules/lodash/over.js +24 -0
- package/node_modules/lodash/overArgs.js +61 -0
- package/node_modules/lodash/overEvery.js +34 -0
- package/node_modules/lodash/overSome.js +37 -0
- package/node_modules/lodash/package.json +19 -0
- package/node_modules/lodash/pad.js +49 -0
- package/node_modules/lodash/padEnd.js +39 -0
- package/node_modules/lodash/padStart.js +39 -0
- package/node_modules/lodash/parseInt.js +43 -0
- package/node_modules/lodash/partial.js +50 -0
- package/node_modules/lodash/partialRight.js +49 -0
- package/node_modules/lodash/partition.js +43 -0
- package/node_modules/lodash/pick.js +25 -0
- package/node_modules/lodash/pickBy.js +37 -0
- package/node_modules/lodash/plant.js +48 -0
- package/node_modules/lodash/property.js +32 -0
- package/node_modules/lodash/propertyOf.js +30 -0
- package/node_modules/lodash/pull.js +29 -0
- package/node_modules/lodash/pullAll.js +29 -0
- package/node_modules/lodash/pullAllBy.js +33 -0
- package/node_modules/lodash/pullAllWith.js +32 -0
- package/node_modules/lodash/pullAt.js +43 -0
- package/node_modules/lodash/random.js +91 -0
- package/node_modules/lodash/range.js +46 -0
- package/node_modules/lodash/rangeRight.js +41 -0
- package/node_modules/lodash/rearg.js +33 -0
- package/node_modules/lodash/reduce.js +51 -0
- package/node_modules/lodash/reduceRight.js +36 -0
- package/node_modules/lodash/reject.js +46 -0
- package/node_modules/lodash/remove.js +53 -0
- package/node_modules/lodash/repeat.js +37 -0
- package/node_modules/lodash/replace.js +29 -0
- package/node_modules/lodash/rest.js +40 -0
- package/node_modules/lodash/result.js +56 -0
- package/node_modules/lodash/reverse.js +34 -0
- package/node_modules/lodash/round.js +26 -0
- package/node_modules/lodash/sample.js +24 -0
- package/node_modules/lodash/sampleSize.js +37 -0
- package/node_modules/lodash/seq.js +16 -0
- package/node_modules/lodash/set.js +35 -0
- package/node_modules/lodash/setWith.js +32 -0
- package/node_modules/lodash/shuffle.js +25 -0
- package/node_modules/lodash/size.js +46 -0
- package/node_modules/lodash/slice.js +37 -0
- package/node_modules/lodash/snakeCase.js +28 -0
- package/node_modules/lodash/some.js +51 -0
- package/node_modules/lodash/sortBy.js +48 -0
- package/node_modules/lodash/sortedIndex.js +24 -0
- package/node_modules/lodash/sortedIndexBy.js +33 -0
- package/node_modules/lodash/sortedIndexOf.js +31 -0
- package/node_modules/lodash/sortedLastIndex.js +25 -0
- package/node_modules/lodash/sortedLastIndexBy.js +33 -0
- package/node_modules/lodash/sortedLastIndexOf.js +31 -0
- package/node_modules/lodash/sortedUniq.js +24 -0
- package/node_modules/lodash/sortedUniqBy.js +26 -0
- package/node_modules/lodash/split.js +52 -0
- package/node_modules/lodash/spread.js +63 -0
- package/node_modules/lodash/startCase.js +29 -0
- package/node_modules/lodash/startsWith.js +39 -0
- package/node_modules/lodash/string.js +33 -0
- package/node_modules/lodash/stubArray.js +23 -0
- package/node_modules/lodash/stubFalse.js +18 -0
- package/node_modules/lodash/stubObject.js +23 -0
- package/node_modules/lodash/stubString.js +18 -0
- package/node_modules/lodash/stubTrue.js +18 -0
- package/node_modules/lodash/subtract.js +22 -0
- package/node_modules/lodash/sum.js +24 -0
- package/node_modules/lodash/sumBy.js +33 -0
- package/node_modules/lodash/tail.js +22 -0
- package/node_modules/lodash/take.js +37 -0
- package/node_modules/lodash/takeRight.js +39 -0
- package/node_modules/lodash/takeRightWhile.js +45 -0
- package/node_modules/lodash/takeWhile.js +45 -0
- package/node_modules/lodash/tap.js +29 -0
- package/node_modules/lodash/template.js +284 -0
- package/node_modules/lodash/templateSettings.js +71 -0
- package/node_modules/lodash/throttle.js +69 -0
- package/node_modules/lodash/thru.js +28 -0
- package/node_modules/lodash/times.js +51 -0
- package/node_modules/lodash/toArray.js +58 -0
- package/node_modules/lodash/toFinite.js +42 -0
- package/node_modules/lodash/toInteger.js +36 -0
- package/node_modules/lodash/toIterator.js +23 -0
- package/node_modules/lodash/toJSON.js +1 -0
- package/node_modules/lodash/toLength.js +38 -0
- package/node_modules/lodash/toLower.js +28 -0
- package/node_modules/lodash/toNumber.js +64 -0
- package/node_modules/lodash/toPairs.js +30 -0
- package/node_modules/lodash/toPairsIn.js +30 -0
- package/node_modules/lodash/toPath.js +33 -0
- package/node_modules/lodash/toPlainObject.js +32 -0
- package/node_modules/lodash/toSafeInteger.js +37 -0
- package/node_modules/lodash/toString.js +28 -0
- package/node_modules/lodash/toUpper.js +28 -0
- package/node_modules/lodash/transform.js +65 -0
- package/node_modules/lodash/trim.js +47 -0
- package/node_modules/lodash/trimEnd.js +41 -0
- package/node_modules/lodash/trimStart.js +43 -0
- package/node_modules/lodash/truncate.js +111 -0
- package/node_modules/lodash/unary.js +22 -0
- package/node_modules/lodash/unescape.js +34 -0
- package/node_modules/lodash/union.js +26 -0
- package/node_modules/lodash/unionBy.js +39 -0
- package/node_modules/lodash/unionWith.js +34 -0
- package/node_modules/lodash/uniq.js +25 -0
- package/node_modules/lodash/uniqBy.js +31 -0
- package/node_modules/lodash/uniqWith.js +28 -0
- package/node_modules/lodash/uniqueId.js +28 -0
- package/node_modules/lodash/unset.js +34 -0
- package/node_modules/lodash/unzip.js +45 -0
- package/node_modules/lodash/unzipWith.js +39 -0
- package/node_modules/lodash/update.js +35 -0
- package/node_modules/lodash/updateWith.js +33 -0
- package/node_modules/lodash/upperCase.js +27 -0
- package/node_modules/lodash/upperFirst.js +22 -0
- package/node_modules/lodash/util.js +34 -0
- package/node_modules/lodash/value.js +1 -0
- package/node_modules/lodash/valueOf.js +1 -0
- package/node_modules/lodash/values.js +34 -0
- package/node_modules/lodash/valuesIn.js +32 -0
- package/node_modules/lodash/without.js +31 -0
- package/node_modules/lodash/words.js +35 -0
- package/node_modules/lodash/wrap.js +30 -0
- package/node_modules/lodash/wrapperAt.js +48 -0
- package/node_modules/lodash/wrapperChain.js +34 -0
- package/node_modules/lodash/wrapperLodash.js +147 -0
- package/node_modules/lodash/wrapperReverse.js +44 -0
- package/node_modules/lodash/wrapperValue.js +21 -0
- package/node_modules/lodash/xor.js +28 -0
- package/node_modules/lodash/xorBy.js +39 -0
- package/node_modules/lodash/xorWith.js +34 -0
- package/node_modules/lodash/zip.js +22 -0
- package/node_modules/lodash/zipObject.js +24 -0
- package/node_modules/lodash/zipObjectDeep.js +23 -0
- package/node_modules/lodash/zipWith.js +32 -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/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/proxy-from-env/README.md +43 -11
- package/node_modules/proxy-from-env/index.cjs +105 -0
- package/node_modules/proxy-from-env/index.js +14 -19
- package/node_modules/proxy-from-env/package.json +20 -11
- package/node_modules/zod/LICENSE +1 -1
- package/node_modules/zod/README.md +114 -2782
- package/node_modules/zod/index.cjs +33 -0
- package/node_modules/zod/index.d.cts +4 -0
- package/node_modules/zod/index.d.ts +4 -2
- package/node_modules/zod/index.js +4 -0
- package/node_modules/zod/package.json +94 -95
- package/node_modules/zod/src/index.ts +4 -0
- package/node_modules/zod/src/v3/ZodError.ts +330 -0
- package/node_modules/zod/src/v3/benchmarks/datetime.ts +58 -0
- package/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +80 -0
- package/node_modules/zod/src/v3/benchmarks/index.ts +59 -0
- package/node_modules/zod/src/v3/benchmarks/ipv4.ts +57 -0
- package/node_modules/zod/src/v3/benchmarks/object.ts +69 -0
- package/node_modules/zod/src/v3/benchmarks/primitives.ts +162 -0
- package/node_modules/zod/src/v3/benchmarks/realworld.ts +63 -0
- package/node_modules/zod/src/v3/benchmarks/string.ts +55 -0
- package/node_modules/zod/src/v3/benchmarks/union.ts +80 -0
- package/node_modules/zod/src/v3/errors.ts +13 -0
- package/node_modules/zod/src/v3/external.ts +6 -0
- package/node_modules/zod/src/v3/helpers/enumUtil.ts +17 -0
- package/node_modules/zod/src/v3/helpers/errorUtil.ts +8 -0
- package/node_modules/zod/src/v3/helpers/parseUtil.ts +176 -0
- package/node_modules/zod/src/v3/helpers/partialUtil.ts +34 -0
- package/node_modules/zod/src/v3/helpers/typeAliases.ts +2 -0
- package/node_modules/zod/src/v3/helpers/util.ts +224 -0
- package/node_modules/zod/src/v3/index.ts +4 -0
- package/node_modules/zod/src/v3/locales/en.ts +124 -0
- package/node_modules/zod/src/v3/standard-schema.ts +113 -0
- package/node_modules/zod/src/v3/tests/Mocker.ts +54 -0
- package/node_modules/zod/src/v3/tests/all-errors.test.ts +157 -0
- package/node_modules/zod/src/v3/tests/anyunknown.test.ts +28 -0
- package/node_modules/zod/src/v3/tests/array.test.ts +71 -0
- package/node_modules/zod/src/v3/tests/async-parsing.test.ts +388 -0
- package/node_modules/zod/src/v3/tests/async-refinements.test.ts +46 -0
- package/node_modules/zod/src/v3/tests/base.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/bigint.test.ts +55 -0
- package/node_modules/zod/src/v3/tests/branded.test.ts +53 -0
- package/node_modules/zod/src/v3/tests/catch.test.ts +220 -0
- package/node_modules/zod/src/v3/tests/coerce.test.ts +133 -0
- package/node_modules/zod/src/v3/tests/complex.test.ts +56 -0
- package/node_modules/zod/src/v3/tests/custom.test.ts +31 -0
- package/node_modules/zod/src/v3/tests/date.test.ts +32 -0
- package/node_modules/zod/src/v3/tests/deepmasking.test.ts +186 -0
- package/node_modules/zod/src/v3/tests/default.test.ts +112 -0
- package/node_modules/zod/src/v3/tests/description.test.ts +33 -0
- package/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +315 -0
- package/node_modules/zod/src/v3/tests/enum.test.ts +80 -0
- package/node_modules/zod/src/v3/tests/error.test.ts +551 -0
- package/node_modules/zod/src/v3/tests/firstparty.test.ts +87 -0
- package/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +21 -0
- package/node_modules/zod/src/v3/tests/function.test.ts +257 -0
- package/node_modules/zod/src/v3/tests/generics.test.ts +48 -0
- package/node_modules/zod/src/v3/tests/instanceof.test.ts +37 -0
- package/node_modules/zod/src/v3/tests/intersection.test.ts +110 -0
- package/node_modules/zod/src/v3/tests/language-server.source.ts +76 -0
- package/node_modules/zod/src/v3/tests/language-server.test.ts +207 -0
- package/node_modules/zod/src/v3/tests/literal.test.ts +36 -0
- package/node_modules/zod/src/v3/tests/map.test.ts +110 -0
- package/node_modules/zod/src/v3/tests/masking.test.ts +4 -0
- package/node_modules/zod/src/v3/tests/mocker.test.ts +19 -0
- package/node_modules/zod/src/v3/tests/nan.test.ts +21 -0
- package/node_modules/zod/src/v3/tests/nativeEnum.test.ts +87 -0
- package/node_modules/zod/src/v3/tests/nullable.test.ts +42 -0
- package/node_modules/zod/src/v3/tests/number.test.ts +176 -0
- package/node_modules/zod/src/v3/tests/object-augmentation.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/object.test.ts +434 -0
- package/node_modules/zod/src/v3/tests/optional.test.ts +42 -0
- package/node_modules/zod/src/v3/tests/parseUtil.test.ts +23 -0
- package/node_modules/zod/src/v3/tests/parser.test.ts +41 -0
- package/node_modules/zod/src/v3/tests/partials.test.ts +243 -0
- package/node_modules/zod/src/v3/tests/pickomit.test.ts +111 -0
- package/node_modules/zod/src/v3/tests/pipeline.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/preprocess.test.ts +186 -0
- package/node_modules/zod/src/v3/tests/primitive.test.ts +440 -0
- package/node_modules/zod/src/v3/tests/promise.test.ts +90 -0
- package/node_modules/zod/src/v3/tests/readonly.test.ts +194 -0
- package/node_modules/zod/src/v3/tests/record.test.ts +171 -0
- package/node_modules/zod/src/v3/tests/recursive.test.ts +197 -0
- package/node_modules/zod/src/v3/tests/refine.test.ts +313 -0
- package/node_modules/zod/src/v3/tests/safeparse.test.ts +27 -0
- package/node_modules/zod/src/v3/tests/set.test.ts +142 -0
- package/node_modules/zod/src/v3/tests/standard-schema.test.ts +83 -0
- package/node_modules/zod/src/v3/tests/string.test.ts +916 -0
- package/node_modules/zod/src/v3/tests/transformer.test.ts +233 -0
- package/node_modules/zod/src/v3/tests/tuple.test.ts +90 -0
- package/node_modules/zod/src/v3/tests/unions.test.ts +57 -0
- package/node_modules/zod/src/v3/tests/validations.test.ts +133 -0
- package/node_modules/zod/src/v3/tests/void.test.ts +15 -0
- package/node_modules/zod/src/v3/types.ts +5136 -0
- package/node_modules/zod/src/v4/classic/checks.ts +30 -0
- package/node_modules/zod/src/v4/classic/coerce.ts +27 -0
- package/node_modules/zod/src/v4/classic/compat.ts +66 -0
- package/node_modules/zod/src/v4/classic/errors.ts +75 -0
- package/node_modules/zod/src/v4/classic/external.ts +50 -0
- package/node_modules/zod/src/v4/classic/index.ts +5 -0
- package/node_modules/zod/src/v4/classic/iso.ts +90 -0
- package/node_modules/zod/src/v4/classic/parse.ts +33 -0
- package/node_modules/zod/src/v4/classic/schemas.ts +2054 -0
- package/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +26 -0
- package/node_modules/zod/src/v4/classic/tests/array.test.ts +264 -0
- package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +210 -0
- package/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +381 -0
- package/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +68 -0
- package/node_modules/zod/src/v4/classic/tests/base.test.ts +7 -0
- package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +54 -0
- package/node_modules/zod/src/v4/classic/tests/brand.test.ts +63 -0
- package/node_modules/zod/src/v4/classic/tests/catch.test.ts +252 -0
- package/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +20 -0
- package/node_modules/zod/src/v4/classic/tests/coerce.test.ts +160 -0
- package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +352 -0
- package/node_modules/zod/src/v4/classic/tests/custom.test.ts +40 -0
- package/node_modules/zod/src/v4/classic/tests/date.test.ts +31 -0
- package/node_modules/zod/src/v4/classic/tests/datetime.test.ts +296 -0
- package/node_modules/zod/src/v4/classic/tests/default.test.ts +313 -0
- package/node_modules/zod/src/v4/classic/tests/description.test.ts +32 -0
- package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +619 -0
- package/node_modules/zod/src/v4/classic/tests/enum.test.ts +285 -0
- package/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +527 -0
- package/node_modules/zod/src/v4/classic/tests/error.test.ts +711 -0
- package/node_modules/zod/src/v4/classic/tests/file.test.ts +91 -0
- package/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +175 -0
- package/node_modules/zod/src/v4/classic/tests/function.test.ts +268 -0
- package/node_modules/zod/src/v4/classic/tests/generics.test.ts +72 -0
- package/node_modules/zod/src/v4/classic/tests/index.test.ts +829 -0
- package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +34 -0
- package/node_modules/zod/src/v4/classic/tests/intersection.test.ts +171 -0
- package/node_modules/zod/src/v4/classic/tests/json.test.ts +108 -0
- package/node_modules/zod/src/v4/classic/tests/lazy.test.ts +227 -0
- package/node_modules/zod/src/v4/classic/tests/literal.test.ts +92 -0
- package/node_modules/zod/src/v4/classic/tests/map.test.ts +196 -0
- package/node_modules/zod/src/v4/classic/tests/nan.test.ts +21 -0
- package/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +168 -0
- package/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +86 -0
- package/node_modules/zod/src/v4/classic/tests/nullable.test.ts +22 -0
- package/node_modules/zod/src/v4/classic/tests/number.test.ts +247 -0
- package/node_modules/zod/src/v4/classic/tests/object.test.ts +563 -0
- package/node_modules/zod/src/v4/classic/tests/optional.test.ts +123 -0
- package/node_modules/zod/src/v4/classic/tests/partial.test.ts +147 -0
- package/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +127 -0
- package/node_modules/zod/src/v4/classic/tests/pipe.test.ts +81 -0
- package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +37 -0
- package/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +298 -0
- package/node_modules/zod/src/v4/classic/tests/primitive.test.ts +175 -0
- package/node_modules/zod/src/v4/classic/tests/promise.test.ts +81 -0
- package/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +23 -0
- package/node_modules/zod/src/v4/classic/tests/readonly.test.ts +252 -0
- package/node_modules/zod/src/v4/classic/tests/record.test.ts +342 -0
- package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +356 -0
- package/node_modules/zod/src/v4/classic/tests/refine.test.ts +532 -0
- package/node_modules/zod/src/v4/classic/tests/registries.test.ts +204 -0
- package/node_modules/zod/src/v4/classic/tests/set.test.ts +179 -0
- package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +57 -0
- package/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +109 -0
- package/node_modules/zod/src/v4/classic/tests/string.test.ts +881 -0
- package/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +66 -0
- package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +758 -0
- package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +2314 -0
- package/node_modules/zod/src/v4/classic/tests/transform.test.ts +250 -0
- package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +163 -0
- package/node_modules/zod/src/v4/classic/tests/union.test.ts +94 -0
- package/node_modules/zod/src/v4/classic/tests/validations.test.ts +283 -0
- package/node_modules/zod/src/v4/classic/tests/void.test.ts +12 -0
- package/node_modules/zod/src/v4/core/api.ts +1594 -0
- package/node_modules/zod/src/v4/core/checks.ts +1283 -0
- package/node_modules/zod/src/v4/core/config.ts +15 -0
- package/node_modules/zod/src/v4/core/core.ts +134 -0
- package/node_modules/zod/src/v4/core/doc.ts +44 -0
- package/node_modules/zod/src/v4/core/errors.ts +424 -0
- package/node_modules/zod/src/v4/core/function.ts +176 -0
- package/node_modules/zod/src/v4/core/index.ts +15 -0
- package/node_modules/zod/src/v4/core/json-schema.ts +143 -0
- package/node_modules/zod/src/v4/core/parse.ts +94 -0
- package/node_modules/zod/src/v4/core/regexes.ts +135 -0
- package/node_modules/zod/src/v4/core/registries.ts +96 -0
- package/node_modules/zod/src/v4/core/schemas.ts +3842 -0
- package/node_modules/zod/src/v4/core/standard-schema.ts +64 -0
- package/node_modules/zod/src/v4/core/tests/index.test.ts +46 -0
- package/node_modules/zod/src/v4/core/tests/locales/be.test.ts +124 -0
- package/node_modules/zod/src/v4/core/tests/locales/en.test.ts +22 -0
- package/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +128 -0
- package/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +69 -0
- package/node_modules/zod/src/v4/core/to-json-schema.ts +977 -0
- package/node_modules/zod/src/v4/core/util.ts +775 -0
- package/node_modules/zod/src/v4/core/versions.ts +5 -0
- package/node_modules/zod/src/v4/core/zsf.ts +323 -0
- package/node_modules/zod/src/v4/index.ts +4 -0
- package/node_modules/zod/src/v4/locales/ar.ts +125 -0
- package/node_modules/zod/src/v4/locales/az.ts +121 -0
- package/node_modules/zod/src/v4/locales/be.ts +184 -0
- package/node_modules/zod/src/v4/locales/ca.ts +127 -0
- package/node_modules/zod/src/v4/locales/cs.ts +142 -0
- package/node_modules/zod/src/v4/locales/de.ts +124 -0
- package/node_modules/zod/src/v4/locales/en.ts +127 -0
- package/node_modules/zod/src/v4/locales/eo.ts +125 -0
- package/node_modules/zod/src/v4/locales/es.ts +125 -0
- package/node_modules/zod/src/v4/locales/fa.ts +134 -0
- package/node_modules/zod/src/v4/locales/fi.ts +131 -0
- package/node_modules/zod/src/v4/locales/fr-CA.ts +126 -0
- package/node_modules/zod/src/v4/locales/fr.ts +124 -0
- package/node_modules/zod/src/v4/locales/he.ts +125 -0
- package/node_modules/zod/src/v4/locales/hu.ts +126 -0
- package/node_modules/zod/src/v4/locales/id.ts +125 -0
- package/node_modules/zod/src/v4/locales/index.ts +39 -0
- package/node_modules/zod/src/v4/locales/it.ts +125 -0
- package/node_modules/zod/src/v4/locales/ja.ts +122 -0
- package/node_modules/zod/src/v4/locales/kh.ts +126 -0
- package/node_modules/zod/src/v4/locales/ko.ts +131 -0
- package/node_modules/zod/src/v4/locales/mk.ts +127 -0
- package/node_modules/zod/src/v4/locales/ms.ts +124 -0
- package/node_modules/zod/src/v4/locales/nl.ts +126 -0
- package/node_modules/zod/src/v4/locales/no.ts +124 -0
- package/node_modules/zod/src/v4/locales/ota.ts +125 -0
- package/node_modules/zod/src/v4/locales/pl.ts +126 -0
- package/node_modules/zod/src/v4/locales/ps.ts +133 -0
- package/node_modules/zod/src/v4/locales/pt.ts +123 -0
- package/node_modules/zod/src/v4/locales/ru.ts +184 -0
- package/node_modules/zod/src/v4/locales/sl.ts +126 -0
- package/node_modules/zod/src/v4/locales/sv.ts +127 -0
- package/node_modules/zod/src/v4/locales/ta.ts +125 -0
- package/node_modules/zod/src/v4/locales/th.ts +126 -0
- package/node_modules/zod/src/v4/locales/tr.ts +121 -0
- package/node_modules/zod/src/v4/locales/ua.ts +126 -0
- package/node_modules/zod/src/v4/locales/ur.ts +126 -0
- package/node_modules/zod/src/v4/locales/vi.ts +125 -0
- package/node_modules/zod/src/v4/locales/zh-CN.ts +123 -0
- package/node_modules/zod/src/v4/locales/zh-TW.ts +125 -0
- package/node_modules/zod/src/v4/mini/checks.ts +32 -0
- package/node_modules/zod/src/v4/mini/coerce.ts +22 -0
- package/node_modules/zod/src/v4/mini/external.ts +40 -0
- package/node_modules/zod/src/v4/mini/index.ts +3 -0
- package/node_modules/zod/src/v4/mini/iso.ts +62 -0
- package/node_modules/zod/src/v4/mini/parse.ts +1 -0
- package/node_modules/zod/src/v4/mini/schemas.ts +1579 -0
- package/node_modules/zod/src/v4/mini/tests/assignability.test.ts +129 -0
- package/node_modules/zod/src/v4/mini/tests/brand.test.ts +51 -0
- package/node_modules/zod/src/v4/mini/tests/checks.test.ts +144 -0
- package/node_modules/zod/src/v4/mini/tests/computed.test.ts +36 -0
- package/node_modules/zod/src/v4/mini/tests/error.test.ts +22 -0
- package/node_modules/zod/src/v4/mini/tests/functions.test.ts +43 -0
- package/node_modules/zod/src/v4/mini/tests/index.test.ts +871 -0
- package/node_modules/zod/src/v4/mini/tests/number.test.ts +95 -0
- package/node_modules/zod/src/v4/mini/tests/object.test.ts +185 -0
- package/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +43 -0
- package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +275 -0
- package/node_modules/zod/src/v4/mini/tests/string.test.ts +299 -0
- package/node_modules/zod/src/v4-mini/index.ts +1 -0
- package/node_modules/zod/{lib/ZodError.js → v3/ZodError.cjs} +9 -8
- package/node_modules/zod/v3/ZodError.d.cts +164 -0
- package/node_modules/zod/{lib → v3}/ZodError.d.ts +23 -23
- package/node_modules/zod/v3/ZodError.js +133 -0
- package/node_modules/zod/{lib/errors.js → v3/errors.cjs} +6 -6
- package/node_modules/zod/v3/errors.d.cts +5 -0
- package/node_modules/zod/{lib → v3}/errors.d.ts +2 -2
- package/node_modules/zod/v3/errors.js +9 -0
- package/node_modules/zod/v3/external.cjs +22 -0
- package/node_modules/zod/v3/external.d.cts +6 -0
- package/node_modules/zod/v3/external.d.ts +6 -0
- package/node_modules/zod/v3/external.js +6 -0
- package/node_modules/zod/v3/helpers/enumUtil.d.ts +8 -0
- package/node_modules/zod/v3/helpers/enumUtil.js +1 -0
- package/node_modules/zod/{lib/helpers/errorUtil.js → v3/helpers/errorUtil.cjs} +3 -2
- package/node_modules/zod/v3/helpers/errorUtil.d.cts +9 -0
- package/node_modules/zod/v3/helpers/errorUtil.d.ts +9 -0
- package/node_modules/zod/v3/helpers/errorUtil.js +6 -0
- package/node_modules/zod/{lib/helpers/parseUtil.js → v3/helpers/parseUtil.cjs} +10 -11
- package/node_modules/zod/v3/helpers/parseUtil.d.cts +78 -0
- package/node_modules/zod/{lib → v3}/helpers/parseUtil.d.ts +15 -15
- package/node_modules/zod/v3/helpers/parseUtil.js +109 -0
- package/node_modules/zod/v3/helpers/partialUtil.d.cts +8 -0
- package/node_modules/zod/{lib → v3}/helpers/partialUtil.d.ts +1 -1
- package/node_modules/zod/v3/helpers/partialUtil.js +1 -0
- package/node_modules/zod/v3/helpers/typeAliases.d.cts +2 -0
- package/node_modules/zod/v3/helpers/typeAliases.d.ts +2 -0
- package/node_modules/zod/v3/helpers/typeAliases.js +1 -0
- package/node_modules/zod/{lib/helpers/util.js → v3/helpers/util.cjs} +7 -12
- package/node_modules/zod/v3/helpers/util.d.cts +85 -0
- package/node_modules/zod/{lib → v3}/helpers/util.d.ts +9 -6
- package/node_modules/zod/v3/helpers/util.js +133 -0
- package/node_modules/zod/{lib/index.js → v3/index.cjs} +7 -3
- package/node_modules/zod/v3/index.d.cts +4 -0
- package/node_modules/zod/v3/index.d.ts +4 -0
- package/node_modules/zod/v3/index.js +4 -0
- package/node_modules/zod/{lib/locales/en.js → v3/locales/en.cjs} +32 -50
- package/node_modules/zod/v3/locales/en.d.cts +3 -0
- package/node_modules/zod/{lib → v3}/locales/en.d.ts +1 -1
- package/node_modules/zod/v3/locales/en.js +109 -0
- package/node_modules/zod/v3/standard-schema.cjs +2 -0
- package/node_modules/zod/v3/standard-schema.d.cts +102 -0
- package/node_modules/zod/v3/standard-schema.d.ts +102 -0
- package/node_modules/zod/v3/standard-schema.js +1 -0
- package/node_modules/zod/{lib/types.js → v3/types.cjs} +661 -563
- package/node_modules/zod/{lib/types.d.ts → v3/types.d.cts} +249 -345
- package/node_modules/zod/v3/types.d.ts +1031 -0
- package/node_modules/zod/{lib/index.mjs → v3/types.js} +357 -900
- package/node_modules/zod/v4/classic/checks.cjs +32 -0
- package/node_modules/zod/v4/classic/checks.d.cts +1 -0
- package/node_modules/zod/v4/classic/checks.d.ts +1 -0
- package/node_modules/zod/v4/classic/checks.js +1 -0
- package/node_modules/zod/v4/classic/coerce.cjs +47 -0
- package/node_modules/zod/v4/classic/coerce.d.cts +17 -0
- package/node_modules/zod/v4/classic/coerce.d.ts +17 -0
- package/node_modules/zod/v4/classic/coerce.js +17 -0
- package/node_modules/zod/v4/classic/compat.cjs +57 -0
- package/node_modules/zod/v4/classic/compat.d.cts +46 -0
- package/node_modules/zod/v4/classic/compat.d.ts +46 -0
- package/node_modules/zod/v4/classic/compat.js +27 -0
- package/node_modules/zod/v4/classic/errors.cjs +67 -0
- package/node_modules/zod/v4/classic/errors.d.cts +30 -0
- package/node_modules/zod/v4/classic/errors.d.ts +30 -0
- package/node_modules/zod/v4/classic/errors.js +41 -0
- package/node_modules/zod/v4/classic/external.cjs +70 -0
- package/node_modules/zod/v4/classic/external.d.cts +13 -0
- package/node_modules/zod/v4/classic/external.d.ts +13 -0
- package/node_modules/zod/v4/classic/external.js +18 -0
- package/node_modules/zod/v4/classic/index.cjs +33 -0
- package/node_modules/zod/v4/classic/index.d.cts +4 -0
- package/node_modules/zod/v4/classic/index.d.ts +4 -0
- package/node_modules/zod/v4/classic/index.js +4 -0
- package/node_modules/zod/v4/classic/iso.cjs +60 -0
- package/node_modules/zod/v4/classic/iso.d.cts +22 -0
- package/node_modules/zod/v4/classic/iso.d.ts +22 -0
- package/node_modules/zod/v4/classic/iso.js +30 -0
- package/node_modules/zod/v4/classic/parse.cjs +32 -0
- package/node_modules/zod/v4/classic/parse.d.cts +23 -0
- package/node_modules/zod/v4/classic/parse.d.ts +23 -0
- package/node_modules/zod/v4/classic/parse.js +6 -0
- package/node_modules/zod/v4/classic/schemas.cjs +1109 -0
- package/node_modules/zod/v4/classic/schemas.d.cts +630 -0
- package/node_modules/zod/v4/classic/schemas.d.ts +630 -0
- package/node_modules/zod/v4/classic/schemas.js +1006 -0
- package/node_modules/zod/v4/core/api.cjs +1039 -0
- package/node_modules/zod/v4/core/api.d.cts +284 -0
- package/node_modules/zod/v4/core/api.d.ts +284 -0
- package/node_modules/zod/v4/core/api.js +906 -0
- package/node_modules/zod/v4/core/checks.cjs +591 -0
- package/node_modules/zod/v4/core/checks.d.cts +278 -0
- package/node_modules/zod/v4/core/checks.d.ts +278 -0
- package/node_modules/zod/v4/core/checks.js +565 -0
- package/node_modules/zod/v4/core/core.cjs +67 -0
- package/node_modules/zod/v4/core/core.d.cts +49 -0
- package/node_modules/zod/v4/core/core.d.ts +49 -0
- package/node_modules/zod/v4/core/core.js +61 -0
- package/node_modules/zod/v4/core/doc.cjs +39 -0
- package/node_modules/zod/v4/core/doc.d.cts +14 -0
- package/node_modules/zod/v4/core/doc.d.ts +14 -0
- package/node_modules/zod/v4/core/doc.js +35 -0
- package/node_modules/zod/v4/core/errors.cjs +226 -0
- package/node_modules/zod/v4/core/errors.d.cts +208 -0
- package/node_modules/zod/v4/core/errors.d.ts +208 -0
- package/node_modules/zod/v4/core/errors.js +195 -0
- package/node_modules/zod/v4/core/function.cjs +102 -0
- package/node_modules/zod/v4/core/function.d.cts +52 -0
- package/node_modules/zod/v4/core/function.d.ts +52 -0
- package/node_modules/zod/v4/core/function.js +75 -0
- package/node_modules/zod/v4/core/index.cjs +44 -0
- package/node_modules/zod/v4/core/index.d.cts +15 -0
- package/node_modules/zod/v4/core/index.d.ts +15 -0
- package/node_modules/zod/v4/core/index.js +15 -0
- package/node_modules/zod/v4/core/json-schema.cjs +2 -0
- package/node_modules/zod/v4/core/json-schema.d.cts +87 -0
- package/node_modules/zod/v4/core/json-schema.d.ts +87 -0
- package/node_modules/zod/v4/core/json-schema.js +1 -0
- package/node_modules/zod/v4/core/parse.cjs +87 -0
- package/node_modules/zod/v4/core/parse.d.cts +25 -0
- package/node_modules/zod/v4/core/parse.d.ts +25 -0
- package/node_modules/zod/v4/core/parse.js +57 -0
- package/node_modules/zod/v4/core/regexes.cjs +103 -0
- package/node_modules/zod/v4/core/regexes.d.cts +62 -0
- package/node_modules/zod/v4/core/regexes.d.ts +62 -0
- package/node_modules/zod/v4/core/regexes.js +95 -0
- package/node_modules/zod/v4/core/registries.cjs +56 -0
- package/node_modules/zod/v4/core/registries.d.cts +35 -0
- package/node_modules/zod/v4/core/registries.d.ts +35 -0
- package/node_modules/zod/v4/core/registries.js +51 -0
- package/node_modules/zod/v4/core/schemas.cjs +1748 -0
- package/node_modules/zod/v4/core/schemas.d.cts +1041 -0
- package/node_modules/zod/v4/core/schemas.d.ts +1041 -0
- package/node_modules/zod/v4/core/schemas.js +1717 -0
- package/node_modules/zod/v4/core/standard-schema.cjs +2 -0
- package/node_modules/zod/v4/core/standard-schema.d.cts +55 -0
- package/node_modules/zod/v4/core/standard-schema.d.ts +55 -0
- package/node_modules/zod/v4/core/standard-schema.js +1 -0
- package/node_modules/zod/v4/core/to-json-schema.cjs +854 -0
- package/node_modules/zod/v4/core/to-json-schema.d.cts +88 -0
- package/node_modules/zod/v4/core/to-json-schema.d.ts +88 -0
- package/node_modules/zod/v4/core/to-json-schema.js +849 -0
- package/node_modules/zod/v4/core/util.cjs +539 -0
- package/node_modules/zod/v4/core/util.d.cts +183 -0
- package/node_modules/zod/v4/core/util.d.ts +183 -0
- package/node_modules/zod/v4/core/util.js +493 -0
- package/node_modules/zod/v4/core/versions.cjs +8 -0
- package/node_modules/zod/v4/core/versions.d.cts +5 -0
- package/node_modules/zod/v4/core/versions.d.ts +5 -0
- package/node_modules/zod/v4/core/versions.js +5 -0
- package/node_modules/zod/v4/index.cjs +22 -0
- package/node_modules/zod/v4/index.d.cts +3 -0
- package/node_modules/zod/v4/index.d.ts +3 -0
- package/node_modules/zod/v4/index.js +3 -0
- package/node_modules/zod/v4/locales/ar.cjs +142 -0
- package/node_modules/zod/v4/locales/ar.d.cts +4 -0
- package/node_modules/zod/v4/locales/ar.d.ts +4 -0
- package/node_modules/zod/v4/locales/ar.js +116 -0
- package/node_modules/zod/v4/locales/az.cjs +141 -0
- package/node_modules/zod/v4/locales/az.d.cts +4 -0
- package/node_modules/zod/v4/locales/az.d.ts +4 -0
- package/node_modules/zod/v4/locales/az.js +115 -0
- package/node_modules/zod/v4/locales/be.cjs +190 -0
- package/node_modules/zod/v4/locales/be.d.cts +4 -0
- package/node_modules/zod/v4/locales/be.d.ts +4 -0
- package/node_modules/zod/v4/locales/be.js +164 -0
- package/node_modules/zod/v4/locales/ca.cjs +144 -0
- package/node_modules/zod/v4/locales/ca.d.cts +4 -0
- package/node_modules/zod/v4/locales/ca.d.ts +4 -0
- package/node_modules/zod/v4/locales/ca.js +118 -0
- package/node_modules/zod/v4/locales/cs.cjs +161 -0
- package/node_modules/zod/v4/locales/cs.d.cts +4 -0
- package/node_modules/zod/v4/locales/cs.d.ts +4 -0
- package/node_modules/zod/v4/locales/cs.js +135 -0
- package/node_modules/zod/v4/locales/de.cjs +142 -0
- package/node_modules/zod/v4/locales/de.d.cts +4 -0
- package/node_modules/zod/v4/locales/de.d.ts +4 -0
- package/node_modules/zod/v4/locales/de.js +116 -0
- package/node_modules/zod/v4/locales/en.cjs +145 -0
- package/node_modules/zod/v4/locales/en.d.cts +5 -0
- package/node_modules/zod/v4/locales/en.d.ts +5 -0
- package/node_modules/zod/v4/locales/en.js +117 -0
- package/node_modules/zod/v4/locales/eo.cjs +144 -0
- package/node_modules/zod/v4/locales/eo.d.cts +5 -0
- package/node_modules/zod/v4/locales/eo.d.ts +5 -0
- package/node_modules/zod/v4/locales/eo.js +116 -0
- package/node_modules/zod/v4/locales/es.cjs +143 -0
- package/node_modules/zod/v4/locales/es.d.cts +4 -0
- package/node_modules/zod/v4/locales/es.d.ts +4 -0
- package/node_modules/zod/v4/locales/es.js +117 -0
- package/node_modules/zod/v4/locales/fa.cjs +148 -0
- package/node_modules/zod/v4/locales/fa.d.cts +4 -0
- package/node_modules/zod/v4/locales/fa.d.ts +4 -0
- package/node_modules/zod/v4/locales/fa.js +122 -0
- package/node_modules/zod/v4/locales/fi.cjs +148 -0
- package/node_modules/zod/v4/locales/fi.d.cts +4 -0
- package/node_modules/zod/v4/locales/fi.d.ts +4 -0
- package/node_modules/zod/v4/locales/fi.js +122 -0
- package/node_modules/zod/v4/locales/fr-CA.cjs +143 -0
- package/node_modules/zod/v4/locales/fr-CA.d.cts +4 -0
- package/node_modules/zod/v4/locales/fr-CA.d.ts +4 -0
- package/node_modules/zod/v4/locales/fr-CA.js +117 -0
- package/node_modules/zod/v4/locales/fr.cjs +142 -0
- package/node_modules/zod/v4/locales/fr.d.cts +4 -0
- package/node_modules/zod/v4/locales/fr.d.ts +4 -0
- package/node_modules/zod/v4/locales/fr.js +116 -0
- package/node_modules/zod/v4/locales/he.cjs +143 -0
- package/node_modules/zod/v4/locales/he.d.cts +4 -0
- package/node_modules/zod/v4/locales/he.d.ts +4 -0
- package/node_modules/zod/v4/locales/he.js +117 -0
- package/node_modules/zod/v4/locales/hu.cjs +143 -0
- package/node_modules/zod/v4/locales/hu.d.cts +4 -0
- package/node_modules/zod/v4/locales/hu.d.ts +4 -0
- package/node_modules/zod/v4/locales/hu.js +117 -0
- package/node_modules/zod/v4/locales/id.cjs +142 -0
- package/node_modules/zod/v4/locales/id.d.cts +4 -0
- package/node_modules/zod/v4/locales/id.d.ts +4 -0
- package/node_modules/zod/v4/locales/id.js +116 -0
- package/node_modules/zod/v4/locales/index.cjs +84 -0
- package/node_modules/zod/v4/locales/index.d.cts +39 -0
- package/node_modules/zod/v4/locales/index.d.ts +39 -0
- package/node_modules/zod/v4/locales/index.js +39 -0
- package/node_modules/zod/v4/locales/it.cjs +143 -0
- package/node_modules/zod/v4/locales/it.d.cts +4 -0
- package/node_modules/zod/v4/locales/it.d.ts +4 -0
- package/node_modules/zod/v4/locales/it.js +117 -0
- package/node_modules/zod/v4/locales/ja.cjs +141 -0
- package/node_modules/zod/v4/locales/ja.d.cts +4 -0
- package/node_modules/zod/v4/locales/ja.d.ts +4 -0
- package/node_modules/zod/v4/locales/ja.js +115 -0
- package/node_modules/zod/v4/locales/kh.cjs +143 -0
- package/node_modules/zod/v4/locales/kh.d.cts +4 -0
- package/node_modules/zod/v4/locales/kh.d.ts +4 -0
- package/node_modules/zod/v4/locales/kh.js +117 -0
- package/node_modules/zod/v4/locales/ko.cjs +147 -0
- package/node_modules/zod/v4/locales/ko.d.cts +4 -0
- package/node_modules/zod/v4/locales/ko.d.ts +4 -0
- package/node_modules/zod/v4/locales/ko.js +121 -0
- package/node_modules/zod/v4/locales/mk.cjs +144 -0
- package/node_modules/zod/v4/locales/mk.d.cts +4 -0
- package/node_modules/zod/v4/locales/mk.d.ts +4 -0
- package/node_modules/zod/v4/locales/mk.js +118 -0
- package/node_modules/zod/v4/locales/ms.cjs +142 -0
- package/node_modules/zod/v4/locales/ms.d.cts +4 -0
- package/node_modules/zod/v4/locales/ms.d.ts +4 -0
- package/node_modules/zod/v4/locales/ms.js +116 -0
- package/node_modules/zod/v4/locales/nl.cjs +143 -0
- package/node_modules/zod/v4/locales/nl.d.cts +4 -0
- package/node_modules/zod/v4/locales/nl.d.ts +4 -0
- package/node_modules/zod/v4/locales/nl.js +117 -0
- package/node_modules/zod/v4/locales/no.cjs +142 -0
- package/node_modules/zod/v4/locales/no.d.cts +4 -0
- package/node_modules/zod/v4/locales/no.d.ts +4 -0
- package/node_modules/zod/v4/locales/no.js +116 -0
- package/node_modules/zod/v4/locales/ota.cjs +143 -0
- package/node_modules/zod/v4/locales/ota.d.cts +4 -0
- package/node_modules/zod/v4/locales/ota.d.ts +4 -0
- package/node_modules/zod/v4/locales/ota.js +117 -0
- package/node_modules/zod/v4/locales/pl.cjs +143 -0
- package/node_modules/zod/v4/locales/pl.d.cts +4 -0
- package/node_modules/zod/v4/locales/pl.d.ts +4 -0
- package/node_modules/zod/v4/locales/pl.js +117 -0
- package/node_modules/zod/v4/locales/ps.cjs +148 -0
- package/node_modules/zod/v4/locales/ps.d.cts +4 -0
- package/node_modules/zod/v4/locales/ps.d.ts +4 -0
- package/node_modules/zod/v4/locales/ps.js +122 -0
- package/node_modules/zod/v4/locales/pt.cjs +142 -0
- package/node_modules/zod/v4/locales/pt.d.cts +4 -0
- package/node_modules/zod/v4/locales/pt.d.ts +4 -0
- package/node_modules/zod/v4/locales/pt.js +116 -0
- package/node_modules/zod/v4/locales/ru.cjs +190 -0
- package/node_modules/zod/v4/locales/ru.d.cts +4 -0
- package/node_modules/zod/v4/locales/ru.d.ts +4 -0
- package/node_modules/zod/v4/locales/ru.js +164 -0
- package/node_modules/zod/v4/locales/sl.cjs +143 -0
- package/node_modules/zod/v4/locales/sl.d.cts +4 -0
- package/node_modules/zod/v4/locales/sl.d.ts +4 -0
- package/node_modules/zod/v4/locales/sl.js +117 -0
- package/node_modules/zod/v4/locales/sv.cjs +144 -0
- package/node_modules/zod/v4/locales/sv.d.cts +4 -0
- package/node_modules/zod/v4/locales/sv.d.ts +4 -0
- package/node_modules/zod/v4/locales/sv.js +118 -0
- package/node_modules/zod/v4/locales/ta.cjs +143 -0
- package/node_modules/zod/v4/locales/ta.d.cts +4 -0
- package/node_modules/zod/v4/locales/ta.d.ts +4 -0
- package/node_modules/zod/v4/locales/ta.js +117 -0
- package/node_modules/zod/v4/locales/th.cjs +143 -0
- package/node_modules/zod/v4/locales/th.d.cts +4 -0
- package/node_modules/zod/v4/locales/th.d.ts +4 -0
- package/node_modules/zod/v4/locales/th.js +117 -0
- package/node_modules/zod/v4/locales/tr.cjs +143 -0
- package/node_modules/zod/v4/locales/tr.d.cts +5 -0
- package/node_modules/zod/v4/locales/tr.d.ts +5 -0
- package/node_modules/zod/v4/locales/tr.js +115 -0
- package/node_modules/zod/v4/locales/ua.cjs +143 -0
- package/node_modules/zod/v4/locales/ua.d.cts +4 -0
- package/node_modules/zod/v4/locales/ua.d.ts +4 -0
- package/node_modules/zod/v4/locales/ua.js +117 -0
- package/node_modules/zod/v4/locales/ur.cjs +143 -0
- package/node_modules/zod/v4/locales/ur.d.cts +4 -0
- package/node_modules/zod/v4/locales/ur.d.ts +4 -0
- package/node_modules/zod/v4/locales/ur.js +117 -0
- package/node_modules/zod/v4/locales/vi.cjs +142 -0
- package/node_modules/zod/v4/locales/vi.d.cts +4 -0
- package/node_modules/zod/v4/locales/vi.d.ts +4 -0
- package/node_modules/zod/v4/locales/vi.js +116 -0
- package/node_modules/zod/v4/locales/zh-CN.cjs +142 -0
- package/node_modules/zod/v4/locales/zh-CN.d.cts +4 -0
- package/node_modules/zod/v4/locales/zh-CN.d.ts +4 -0
- package/node_modules/zod/v4/locales/zh-CN.js +116 -0
- package/node_modules/zod/v4/locales/zh-TW.cjs +143 -0
- package/node_modules/zod/v4/locales/zh-TW.d.cts +4 -0
- package/node_modules/zod/v4/locales/zh-TW.d.ts +4 -0
- package/node_modules/zod/v4/locales/zh-TW.js +117 -0
- package/node_modules/zod/v4/mini/checks.cjs +34 -0
- package/node_modules/zod/v4/mini/checks.d.cts +1 -0
- package/node_modules/zod/v4/mini/checks.d.ts +1 -0
- package/node_modules/zod/v4/mini/checks.js +1 -0
- package/node_modules/zod/v4/mini/coerce.cjs +47 -0
- package/node_modules/zod/v4/mini/coerce.d.cts +7 -0
- package/node_modules/zod/v4/mini/coerce.d.ts +7 -0
- package/node_modules/zod/v4/mini/coerce.js +17 -0
- package/node_modules/zod/v4/mini/external.cjs +62 -0
- package/node_modules/zod/v4/mini/external.d.cts +11 -0
- package/node_modules/zod/v4/mini/external.d.ts +11 -0
- package/node_modules/zod/v4/mini/external.js +13 -0
- package/node_modules/zod/v4/mini/index.cjs +32 -0
- package/node_modules/zod/v4/mini/index.d.cts +3 -0
- package/node_modules/zod/v4/mini/index.d.ts +3 -0
- package/node_modules/zod/v4/mini/index.js +3 -0
- package/node_modules/zod/v4/mini/iso.cjs +60 -0
- package/node_modules/zod/v4/mini/iso.d.cts +22 -0
- package/node_modules/zod/v4/mini/iso.d.ts +22 -0
- package/node_modules/zod/v4/mini/iso.js +30 -0
- package/node_modules/zod/v4/mini/parse.cjs +8 -0
- package/node_modules/zod/v4/mini/parse.d.cts +1 -0
- package/node_modules/zod/v4/mini/parse.d.ts +1 -0
- package/node_modules/zod/v4/mini/parse.js +1 -0
- package/node_modules/zod/v4/mini/schemas.cjs +839 -0
- package/node_modules/zod/v4/mini/schemas.d.cts +356 -0
- package/node_modules/zod/v4/mini/schemas.d.ts +356 -0
- package/node_modules/zod/v4/mini/schemas.js +732 -0
- package/node_modules/zod/{lib/external.js → v4-mini/index.cjs} +6 -7
- package/node_modules/zod/v4-mini/index.d.cts +1 -0
- package/node_modules/zod/v4-mini/index.d.ts +1 -0
- package/node_modules/zod/v4-mini/index.js +1 -0
- package/package.json +27 -19
- package/node_modules/@autonomous-testing/sdk/.github/actions/npm_clean_install/action.yaml +0 -35
- package/node_modules/axios/SECURITY.md +0 -5
- package/node_modules/axios/UPGRADE_GUIDE.md +0 -190
- package/node_modules/axios/bin/check-build-version.js +0 -19
- package/node_modules/axios/bin/ssl_hotfix.js +0 -22
- package/node_modules/axios/dist/axios.js.map +0 -1
- package/node_modules/axios/dist/esm/axios.js.map +0 -1
- package/node_modules/axios/lib/helpers/normalizeHeaderName.js +0 -12
- package/node_modules/axios/rollup.config.js +0 -60
- package/node_modules/axios/tsconfig.json +0 -14
- package/node_modules/axios/tslint.json +0 -6
- package/node_modules/form-data/Readme.md +0 -358
- package/node_modules/process/.eslintrc +0 -21
- package/node_modules/process/README.md +0 -26
- package/node_modules/process/browser.js +0 -184
- package/node_modules/process/index.js +0 -2
- package/node_modules/process/package.json +0 -27
- package/node_modules/process/test.js +0 -199
- package/node_modules/proxy-from-env/.eslintrc +0 -29
- package/node_modules/proxy-from-env/.travis.yml +0 -10
- package/node_modules/proxy-from-env/test.js +0 -483
- package/node_modules/zod/lib/__tests__/Mocker.d.ts +0 -17
- package/node_modules/zod/lib/__tests__/Mocker.js +0 -57
- package/node_modules/zod/lib/benchmarks/datetime.d.ts +0 -5
- package/node_modules/zod/lib/benchmarks/datetime.js +0 -54
- package/node_modules/zod/lib/benchmarks/discriminatedUnion.d.ts +0 -5
- package/node_modules/zod/lib/benchmarks/discriminatedUnion.js +0 -79
- package/node_modules/zod/lib/benchmarks/index.js +0 -59
- package/node_modules/zod/lib/benchmarks/ipv4.d.ts +0 -5
- package/node_modules/zod/lib/benchmarks/ipv4.js +0 -54
- package/node_modules/zod/lib/benchmarks/object.d.ts +0 -5
- package/node_modules/zod/lib/benchmarks/object.js +0 -70
- package/node_modules/zod/lib/benchmarks/primitives.d.ts +0 -5
- package/node_modules/zod/lib/benchmarks/primitives.js +0 -170
- package/node_modules/zod/lib/benchmarks/realworld.d.ts +0 -5
- package/node_modules/zod/lib/benchmarks/realworld.js +0 -56
- package/node_modules/zod/lib/benchmarks/string.d.ts +0 -5
- package/node_modules/zod/lib/benchmarks/string.js +0 -55
- package/node_modules/zod/lib/benchmarks/union.d.ts +0 -5
- package/node_modules/zod/lib/benchmarks/union.js +0 -79
- package/node_modules/zod/lib/external.d.ts +0 -6
- package/node_modules/zod/lib/helpers/errorUtil.d.ts +0 -9
- package/node_modules/zod/lib/helpers/typeAliases.d.ts +0 -2
- package/node_modules/zod/lib/index.d.ts +0 -4
- package/node_modules/zod/lib/index.umd.js +0 -4351
- /package/node_modules/{zod/lib/benchmarks/index.d.ts → dotenv/config.d.ts} +0 -0
- /package/node_modules/{mime-types/node_modules/mime-db → mime-db}/HISTORY.md +0 -0
- /package/node_modules/{mime-types/node_modules/mime-db → mime-db}/LICENSE +0 -0
- /package/node_modules/{mime-types/node_modules/mime-db → mime-db}/README.md +0 -0
- /package/node_modules/{mime-types/node_modules/mime-db → mime-db}/db.json +0 -0
- /package/node_modules/{mime-types/node_modules/mime-db → mime-db}/index.js +0 -0
- /package/node_modules/{mime-types/node_modules/mime-db → mime-db}/package.json +0 -0
- /package/node_modules/zod/{lib/helpers/enumUtil.js → v3/helpers/enumUtil.cjs} +0 -0
- /package/node_modules/zod/{lib/helpers/enumUtil.d.ts → v3/helpers/enumUtil.d.cts} +0 -0
- /package/node_modules/zod/{lib/helpers/partialUtil.js → v3/helpers/partialUtil.cjs} +0 -0
- /package/node_modules/zod/{lib/helpers/typeAliases.js → v3/helpers/typeAliases.cjs} +0 -0
|
@@ -1,556 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
function assertNever(_x) {
|
|
7
|
-
throw new Error();
|
|
8
|
-
}
|
|
9
|
-
util.assertNever = assertNever;
|
|
10
|
-
util.arrayToEnum = (items) => {
|
|
11
|
-
const obj = {};
|
|
12
|
-
for (const item of items) {
|
|
13
|
-
obj[item] = item;
|
|
14
|
-
}
|
|
15
|
-
return obj;
|
|
16
|
-
};
|
|
17
|
-
util.getValidEnumValues = (obj) => {
|
|
18
|
-
const validKeys = util.objectKeys(obj).filter((k) => typeof obj[obj[k]] !== "number");
|
|
19
|
-
const filtered = {};
|
|
20
|
-
for (const k of validKeys) {
|
|
21
|
-
filtered[k] = obj[k];
|
|
22
|
-
}
|
|
23
|
-
return util.objectValues(filtered);
|
|
24
|
-
};
|
|
25
|
-
util.objectValues = (obj) => {
|
|
26
|
-
return util.objectKeys(obj).map(function (e) {
|
|
27
|
-
return obj[e];
|
|
28
|
-
});
|
|
29
|
-
};
|
|
30
|
-
util.objectKeys = typeof Object.keys === "function" // eslint-disable-line ban/ban
|
|
31
|
-
? (obj) => Object.keys(obj) // eslint-disable-line ban/ban
|
|
32
|
-
: (object) => {
|
|
33
|
-
const keys = [];
|
|
34
|
-
for (const key in object) {
|
|
35
|
-
if (Object.prototype.hasOwnProperty.call(object, key)) {
|
|
36
|
-
keys.push(key);
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
return keys;
|
|
40
|
-
};
|
|
41
|
-
util.find = (arr, checker) => {
|
|
42
|
-
for (const item of arr) {
|
|
43
|
-
if (checker(item))
|
|
44
|
-
return item;
|
|
45
|
-
}
|
|
46
|
-
return undefined;
|
|
47
|
-
};
|
|
48
|
-
util.isInteger = typeof Number.isInteger === "function"
|
|
49
|
-
? (val) => Number.isInteger(val) // eslint-disable-line ban/ban
|
|
50
|
-
: (val) => typeof val === "number" && isFinite(val) && Math.floor(val) === val;
|
|
51
|
-
function joinValues(array, separator = " | ") {
|
|
52
|
-
return array
|
|
53
|
-
.map((val) => (typeof val === "string" ? `'${val}'` : val))
|
|
54
|
-
.join(separator);
|
|
55
|
-
}
|
|
56
|
-
util.joinValues = joinValues;
|
|
57
|
-
util.jsonStringifyReplacer = (_, value) => {
|
|
58
|
-
if (typeof value === "bigint") {
|
|
59
|
-
return value.toString();
|
|
60
|
-
}
|
|
61
|
-
return value;
|
|
62
|
-
};
|
|
63
|
-
})(util || (util = {}));
|
|
64
|
-
var objectUtil;
|
|
65
|
-
(function (objectUtil) {
|
|
66
|
-
objectUtil.mergeShapes = (first, second) => {
|
|
67
|
-
return {
|
|
68
|
-
...first,
|
|
69
|
-
...second, // second overwrites first
|
|
70
|
-
};
|
|
71
|
-
};
|
|
72
|
-
})(objectUtil || (objectUtil = {}));
|
|
73
|
-
const ZodParsedType = util.arrayToEnum([
|
|
74
|
-
"string",
|
|
75
|
-
"nan",
|
|
76
|
-
"number",
|
|
77
|
-
"integer",
|
|
78
|
-
"float",
|
|
79
|
-
"boolean",
|
|
80
|
-
"date",
|
|
81
|
-
"bigint",
|
|
82
|
-
"symbol",
|
|
83
|
-
"function",
|
|
84
|
-
"undefined",
|
|
85
|
-
"null",
|
|
86
|
-
"array",
|
|
87
|
-
"object",
|
|
88
|
-
"unknown",
|
|
89
|
-
"promise",
|
|
90
|
-
"void",
|
|
91
|
-
"never",
|
|
92
|
-
"map",
|
|
93
|
-
"set",
|
|
94
|
-
]);
|
|
95
|
-
const getParsedType = (data) => {
|
|
96
|
-
const t = typeof data;
|
|
97
|
-
switch (t) {
|
|
98
|
-
case "undefined":
|
|
99
|
-
return ZodParsedType.undefined;
|
|
100
|
-
case "string":
|
|
101
|
-
return ZodParsedType.string;
|
|
102
|
-
case "number":
|
|
103
|
-
return isNaN(data) ? ZodParsedType.nan : ZodParsedType.number;
|
|
104
|
-
case "boolean":
|
|
105
|
-
return ZodParsedType.boolean;
|
|
106
|
-
case "function":
|
|
107
|
-
return ZodParsedType.function;
|
|
108
|
-
case "bigint":
|
|
109
|
-
return ZodParsedType.bigint;
|
|
110
|
-
case "symbol":
|
|
111
|
-
return ZodParsedType.symbol;
|
|
112
|
-
case "object":
|
|
113
|
-
if (Array.isArray(data)) {
|
|
114
|
-
return ZodParsedType.array;
|
|
115
|
-
}
|
|
116
|
-
if (data === null) {
|
|
117
|
-
return ZodParsedType.null;
|
|
118
|
-
}
|
|
119
|
-
if (data.then &&
|
|
120
|
-
typeof data.then === "function" &&
|
|
121
|
-
data.catch &&
|
|
122
|
-
typeof data.catch === "function") {
|
|
123
|
-
return ZodParsedType.promise;
|
|
124
|
-
}
|
|
125
|
-
if (typeof Map !== "undefined" && data instanceof Map) {
|
|
126
|
-
return ZodParsedType.map;
|
|
127
|
-
}
|
|
128
|
-
if (typeof Set !== "undefined" && data instanceof Set) {
|
|
129
|
-
return ZodParsedType.set;
|
|
130
|
-
}
|
|
131
|
-
if (typeof Date !== "undefined" && data instanceof Date) {
|
|
132
|
-
return ZodParsedType.date;
|
|
133
|
-
}
|
|
134
|
-
return ZodParsedType.object;
|
|
135
|
-
default:
|
|
136
|
-
return ZodParsedType.unknown;
|
|
137
|
-
}
|
|
138
|
-
};
|
|
139
|
-
|
|
140
|
-
const ZodIssueCode = util.arrayToEnum([
|
|
141
|
-
"invalid_type",
|
|
142
|
-
"invalid_literal",
|
|
143
|
-
"custom",
|
|
144
|
-
"invalid_union",
|
|
145
|
-
"invalid_union_discriminator",
|
|
146
|
-
"invalid_enum_value",
|
|
147
|
-
"unrecognized_keys",
|
|
148
|
-
"invalid_arguments",
|
|
149
|
-
"invalid_return_type",
|
|
150
|
-
"invalid_date",
|
|
151
|
-
"invalid_string",
|
|
152
|
-
"too_small",
|
|
153
|
-
"too_big",
|
|
154
|
-
"invalid_intersection_types",
|
|
155
|
-
"not_multiple_of",
|
|
156
|
-
"not_finite",
|
|
157
|
-
]);
|
|
158
|
-
const quotelessJson = (obj) => {
|
|
159
|
-
const json = JSON.stringify(obj, null, 2);
|
|
160
|
-
return json.replace(/"([^"]+)":/g, "$1:");
|
|
161
|
-
};
|
|
162
|
-
class ZodError extends Error {
|
|
163
|
-
constructor(issues) {
|
|
164
|
-
super();
|
|
165
|
-
this.issues = [];
|
|
166
|
-
this.addIssue = (sub) => {
|
|
167
|
-
this.issues = [...this.issues, sub];
|
|
168
|
-
};
|
|
169
|
-
this.addIssues = (subs = []) => {
|
|
170
|
-
this.issues = [...this.issues, ...subs];
|
|
171
|
-
};
|
|
172
|
-
const actualProto = new.target.prototype;
|
|
173
|
-
if (Object.setPrototypeOf) {
|
|
174
|
-
// eslint-disable-next-line ban/ban
|
|
175
|
-
Object.setPrototypeOf(this, actualProto);
|
|
176
|
-
}
|
|
177
|
-
else {
|
|
178
|
-
this.__proto__ = actualProto;
|
|
179
|
-
}
|
|
180
|
-
this.name = "ZodError";
|
|
181
|
-
this.issues = issues;
|
|
182
|
-
}
|
|
183
|
-
get errors() {
|
|
184
|
-
return this.issues;
|
|
185
|
-
}
|
|
186
|
-
format(_mapper) {
|
|
187
|
-
const mapper = _mapper ||
|
|
188
|
-
function (issue) {
|
|
189
|
-
return issue.message;
|
|
190
|
-
};
|
|
191
|
-
const fieldErrors = { _errors: [] };
|
|
192
|
-
const processError = (error) => {
|
|
193
|
-
for (const issue of error.issues) {
|
|
194
|
-
if (issue.code === "invalid_union") {
|
|
195
|
-
issue.unionErrors.map(processError);
|
|
196
|
-
}
|
|
197
|
-
else if (issue.code === "invalid_return_type") {
|
|
198
|
-
processError(issue.returnTypeError);
|
|
199
|
-
}
|
|
200
|
-
else if (issue.code === "invalid_arguments") {
|
|
201
|
-
processError(issue.argumentsError);
|
|
202
|
-
}
|
|
203
|
-
else if (issue.path.length === 0) {
|
|
204
|
-
fieldErrors._errors.push(mapper(issue));
|
|
205
|
-
}
|
|
206
|
-
else {
|
|
207
|
-
let curr = fieldErrors;
|
|
208
|
-
let i = 0;
|
|
209
|
-
while (i < issue.path.length) {
|
|
210
|
-
const el = issue.path[i];
|
|
211
|
-
const terminal = i === issue.path.length - 1;
|
|
212
|
-
if (!terminal) {
|
|
213
|
-
curr[el] = curr[el] || { _errors: [] };
|
|
214
|
-
// if (typeof el === "string") {
|
|
215
|
-
// curr[el] = curr[el] || { _errors: [] };
|
|
216
|
-
// } else if (typeof el === "number") {
|
|
217
|
-
// const errorArray: any = [];
|
|
218
|
-
// errorArray._errors = [];
|
|
219
|
-
// curr[el] = curr[el] || errorArray;
|
|
220
|
-
// }
|
|
221
|
-
}
|
|
222
|
-
else {
|
|
223
|
-
curr[el] = curr[el] || { _errors: [] };
|
|
224
|
-
curr[el]._errors.push(mapper(issue));
|
|
225
|
-
}
|
|
226
|
-
curr = curr[el];
|
|
227
|
-
i++;
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
};
|
|
232
|
-
processError(this);
|
|
233
|
-
return fieldErrors;
|
|
234
|
-
}
|
|
235
|
-
static assert(value) {
|
|
236
|
-
if (!(value instanceof ZodError)) {
|
|
237
|
-
throw new Error(`Not a ZodError: ${value}`);
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
toString() {
|
|
241
|
-
return this.message;
|
|
242
|
-
}
|
|
243
|
-
get message() {
|
|
244
|
-
return JSON.stringify(this.issues, util.jsonStringifyReplacer, 2);
|
|
245
|
-
}
|
|
246
|
-
get isEmpty() {
|
|
247
|
-
return this.issues.length === 0;
|
|
248
|
-
}
|
|
249
|
-
flatten(mapper = (issue) => issue.message) {
|
|
250
|
-
const fieldErrors = {};
|
|
251
|
-
const formErrors = [];
|
|
252
|
-
for (const sub of this.issues) {
|
|
253
|
-
if (sub.path.length > 0) {
|
|
254
|
-
fieldErrors[sub.path[0]] = fieldErrors[sub.path[0]] || [];
|
|
255
|
-
fieldErrors[sub.path[0]].push(mapper(sub));
|
|
256
|
-
}
|
|
257
|
-
else {
|
|
258
|
-
formErrors.push(mapper(sub));
|
|
259
|
-
}
|
|
260
|
-
}
|
|
261
|
-
return { formErrors, fieldErrors };
|
|
262
|
-
}
|
|
263
|
-
get formErrors() {
|
|
264
|
-
return this.flatten();
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
ZodError.create = (issues) => {
|
|
268
|
-
const error = new ZodError(issues);
|
|
269
|
-
return error;
|
|
270
|
-
};
|
|
271
|
-
|
|
272
|
-
const errorMap = (issue, _ctx) => {
|
|
273
|
-
let message;
|
|
274
|
-
switch (issue.code) {
|
|
275
|
-
case ZodIssueCode.invalid_type:
|
|
276
|
-
if (issue.received === ZodParsedType.undefined) {
|
|
277
|
-
message = "Required";
|
|
278
|
-
}
|
|
279
|
-
else {
|
|
280
|
-
message = `Expected ${issue.expected}, received ${issue.received}`;
|
|
281
|
-
}
|
|
282
|
-
break;
|
|
283
|
-
case ZodIssueCode.invalid_literal:
|
|
284
|
-
message = `Invalid literal value, expected ${JSON.stringify(issue.expected, util.jsonStringifyReplacer)}`;
|
|
285
|
-
break;
|
|
286
|
-
case ZodIssueCode.unrecognized_keys:
|
|
287
|
-
message = `Unrecognized key(s) in object: ${util.joinValues(issue.keys, ", ")}`;
|
|
288
|
-
break;
|
|
289
|
-
case ZodIssueCode.invalid_union:
|
|
290
|
-
message = `Invalid input`;
|
|
291
|
-
break;
|
|
292
|
-
case ZodIssueCode.invalid_union_discriminator:
|
|
293
|
-
message = `Invalid discriminator value. Expected ${util.joinValues(issue.options)}`;
|
|
294
|
-
break;
|
|
295
|
-
case ZodIssueCode.invalid_enum_value:
|
|
296
|
-
message = `Invalid enum value. Expected ${util.joinValues(issue.options)}, received '${issue.received}'`;
|
|
297
|
-
break;
|
|
298
|
-
case ZodIssueCode.invalid_arguments:
|
|
299
|
-
message = `Invalid function arguments`;
|
|
300
|
-
break;
|
|
301
|
-
case ZodIssueCode.invalid_return_type:
|
|
302
|
-
message = `Invalid function return type`;
|
|
303
|
-
break;
|
|
304
|
-
case ZodIssueCode.invalid_date:
|
|
305
|
-
message = `Invalid date`;
|
|
306
|
-
break;
|
|
307
|
-
case ZodIssueCode.invalid_string:
|
|
308
|
-
if (typeof issue.validation === "object") {
|
|
309
|
-
if ("includes" in issue.validation) {
|
|
310
|
-
message = `Invalid input: must include "${issue.validation.includes}"`;
|
|
311
|
-
if (typeof issue.validation.position === "number") {
|
|
312
|
-
message = `${message} at one or more positions greater than or equal to ${issue.validation.position}`;
|
|
313
|
-
}
|
|
314
|
-
}
|
|
315
|
-
else if ("startsWith" in issue.validation) {
|
|
316
|
-
message = `Invalid input: must start with "${issue.validation.startsWith}"`;
|
|
317
|
-
}
|
|
318
|
-
else if ("endsWith" in issue.validation) {
|
|
319
|
-
message = `Invalid input: must end with "${issue.validation.endsWith}"`;
|
|
320
|
-
}
|
|
321
|
-
else {
|
|
322
|
-
util.assertNever(issue.validation);
|
|
323
|
-
}
|
|
324
|
-
}
|
|
325
|
-
else if (issue.validation !== "regex") {
|
|
326
|
-
message = `Invalid ${issue.validation}`;
|
|
327
|
-
}
|
|
328
|
-
else {
|
|
329
|
-
message = "Invalid";
|
|
330
|
-
}
|
|
331
|
-
break;
|
|
332
|
-
case ZodIssueCode.too_small:
|
|
333
|
-
if (issue.type === "array")
|
|
334
|
-
message = `Array must contain ${issue.exact ? "exactly" : issue.inclusive ? `at least` : `more than`} ${issue.minimum} element(s)`;
|
|
335
|
-
else if (issue.type === "string")
|
|
336
|
-
message = `String must contain ${issue.exact ? "exactly" : issue.inclusive ? `at least` : `over`} ${issue.minimum} character(s)`;
|
|
337
|
-
else if (issue.type === "number")
|
|
338
|
-
message = `Number must be ${issue.exact
|
|
339
|
-
? `exactly equal to `
|
|
340
|
-
: issue.inclusive
|
|
341
|
-
? `greater than or equal to `
|
|
342
|
-
: `greater than `}${issue.minimum}`;
|
|
343
|
-
else if (issue.type === "date")
|
|
344
|
-
message = `Date must be ${issue.exact
|
|
345
|
-
? `exactly equal to `
|
|
346
|
-
: issue.inclusive
|
|
347
|
-
? `greater than or equal to `
|
|
348
|
-
: `greater than `}${new Date(Number(issue.minimum))}`;
|
|
349
|
-
else
|
|
350
|
-
message = "Invalid input";
|
|
351
|
-
break;
|
|
352
|
-
case ZodIssueCode.too_big:
|
|
353
|
-
if (issue.type === "array")
|
|
354
|
-
message = `Array must contain ${issue.exact ? `exactly` : issue.inclusive ? `at most` : `less than`} ${issue.maximum} element(s)`;
|
|
355
|
-
else if (issue.type === "string")
|
|
356
|
-
message = `String must contain ${issue.exact ? `exactly` : issue.inclusive ? `at most` : `under`} ${issue.maximum} character(s)`;
|
|
357
|
-
else if (issue.type === "number")
|
|
358
|
-
message = `Number must be ${issue.exact
|
|
359
|
-
? `exactly`
|
|
360
|
-
: issue.inclusive
|
|
361
|
-
? `less than or equal to`
|
|
362
|
-
: `less than`} ${issue.maximum}`;
|
|
363
|
-
else if (issue.type === "bigint")
|
|
364
|
-
message = `BigInt must be ${issue.exact
|
|
365
|
-
? `exactly`
|
|
366
|
-
: issue.inclusive
|
|
367
|
-
? `less than or equal to`
|
|
368
|
-
: `less than`} ${issue.maximum}`;
|
|
369
|
-
else if (issue.type === "date")
|
|
370
|
-
message = `Date must be ${issue.exact
|
|
371
|
-
? `exactly`
|
|
372
|
-
: issue.inclusive
|
|
373
|
-
? `smaller than or equal to`
|
|
374
|
-
: `smaller than`} ${new Date(Number(issue.maximum))}`;
|
|
375
|
-
else
|
|
376
|
-
message = "Invalid input";
|
|
377
|
-
break;
|
|
378
|
-
case ZodIssueCode.custom:
|
|
379
|
-
message = `Invalid input`;
|
|
380
|
-
break;
|
|
381
|
-
case ZodIssueCode.invalid_intersection_types:
|
|
382
|
-
message = `Intersection results could not be merged`;
|
|
383
|
-
break;
|
|
384
|
-
case ZodIssueCode.not_multiple_of:
|
|
385
|
-
message = `Number must be a multiple of ${issue.multipleOf}`;
|
|
386
|
-
break;
|
|
387
|
-
case ZodIssueCode.not_finite:
|
|
388
|
-
message = "Number must be finite";
|
|
389
|
-
break;
|
|
390
|
-
default:
|
|
391
|
-
message = _ctx.defaultError;
|
|
392
|
-
util.assertNever(issue);
|
|
393
|
-
}
|
|
394
|
-
return { message };
|
|
395
|
-
};
|
|
396
|
-
|
|
397
|
-
let overrideErrorMap = errorMap;
|
|
398
|
-
function setErrorMap(map) {
|
|
399
|
-
overrideErrorMap = map;
|
|
400
|
-
}
|
|
401
|
-
function getErrorMap() {
|
|
402
|
-
return overrideErrorMap;
|
|
403
|
-
}
|
|
404
|
-
|
|
405
|
-
const makeIssue = (params) => {
|
|
406
|
-
const { data, path, errorMaps, issueData } = params;
|
|
407
|
-
const fullPath = [...path, ...(issueData.path || [])];
|
|
408
|
-
const fullIssue = {
|
|
409
|
-
...issueData,
|
|
410
|
-
path: fullPath,
|
|
411
|
-
};
|
|
412
|
-
if (issueData.message !== undefined) {
|
|
413
|
-
return {
|
|
414
|
-
...issueData,
|
|
415
|
-
path: fullPath,
|
|
416
|
-
message: issueData.message,
|
|
417
|
-
};
|
|
418
|
-
}
|
|
419
|
-
let errorMessage = "";
|
|
420
|
-
const maps = errorMaps
|
|
421
|
-
.filter((m) => !!m)
|
|
422
|
-
.slice()
|
|
423
|
-
.reverse();
|
|
424
|
-
for (const map of maps) {
|
|
425
|
-
errorMessage = map(fullIssue, { data, defaultError: errorMessage }).message;
|
|
426
|
-
}
|
|
427
|
-
return {
|
|
428
|
-
...issueData,
|
|
429
|
-
path: fullPath,
|
|
430
|
-
message: errorMessage,
|
|
431
|
-
};
|
|
432
|
-
};
|
|
433
|
-
const EMPTY_PATH = [];
|
|
434
|
-
function addIssueToContext(ctx, issueData) {
|
|
435
|
-
const overrideMap = getErrorMap();
|
|
436
|
-
const issue = makeIssue({
|
|
437
|
-
issueData: issueData,
|
|
438
|
-
data: ctx.data,
|
|
439
|
-
path: ctx.path,
|
|
440
|
-
errorMaps: [
|
|
441
|
-
ctx.common.contextualErrorMap,
|
|
442
|
-
ctx.schemaErrorMap,
|
|
443
|
-
overrideMap,
|
|
444
|
-
overrideMap === errorMap ? undefined : errorMap, // then global default map
|
|
445
|
-
].filter((x) => !!x),
|
|
446
|
-
});
|
|
447
|
-
ctx.common.issues.push(issue);
|
|
448
|
-
}
|
|
449
|
-
class ParseStatus {
|
|
450
|
-
constructor() {
|
|
451
|
-
this.value = "valid";
|
|
452
|
-
}
|
|
453
|
-
dirty() {
|
|
454
|
-
if (this.value === "valid")
|
|
455
|
-
this.value = "dirty";
|
|
456
|
-
}
|
|
457
|
-
abort() {
|
|
458
|
-
if (this.value !== "aborted")
|
|
459
|
-
this.value = "aborted";
|
|
460
|
-
}
|
|
461
|
-
static mergeArray(status, results) {
|
|
462
|
-
const arrayValue = [];
|
|
463
|
-
for (const s of results) {
|
|
464
|
-
if (s.status === "aborted")
|
|
465
|
-
return INVALID;
|
|
466
|
-
if (s.status === "dirty")
|
|
467
|
-
status.dirty();
|
|
468
|
-
arrayValue.push(s.value);
|
|
469
|
-
}
|
|
470
|
-
return { status: status.value, value: arrayValue };
|
|
471
|
-
}
|
|
472
|
-
static async mergeObjectAsync(status, pairs) {
|
|
473
|
-
const syncPairs = [];
|
|
474
|
-
for (const pair of pairs) {
|
|
475
|
-
const key = await pair.key;
|
|
476
|
-
const value = await pair.value;
|
|
477
|
-
syncPairs.push({
|
|
478
|
-
key,
|
|
479
|
-
value,
|
|
480
|
-
});
|
|
481
|
-
}
|
|
482
|
-
return ParseStatus.mergeObjectSync(status, syncPairs);
|
|
483
|
-
}
|
|
484
|
-
static mergeObjectSync(status, pairs) {
|
|
485
|
-
const finalObject = {};
|
|
486
|
-
for (const pair of pairs) {
|
|
487
|
-
const { key, value } = pair;
|
|
488
|
-
if (key.status === "aborted")
|
|
489
|
-
return INVALID;
|
|
490
|
-
if (value.status === "aborted")
|
|
491
|
-
return INVALID;
|
|
492
|
-
if (key.status === "dirty")
|
|
493
|
-
status.dirty();
|
|
494
|
-
if (value.status === "dirty")
|
|
495
|
-
status.dirty();
|
|
496
|
-
if (key.value !== "__proto__" &&
|
|
497
|
-
(typeof value.value !== "undefined" || pair.alwaysSet)) {
|
|
498
|
-
finalObject[key.value] = value.value;
|
|
499
|
-
}
|
|
500
|
-
}
|
|
501
|
-
return { status: status.value, value: finalObject };
|
|
502
|
-
}
|
|
503
|
-
}
|
|
504
|
-
const INVALID = Object.freeze({
|
|
505
|
-
status: "aborted",
|
|
506
|
-
});
|
|
507
|
-
const DIRTY = (value) => ({ status: "dirty", value });
|
|
508
|
-
const OK = (value) => ({ status: "valid", value });
|
|
509
|
-
const isAborted = (x) => x.status === "aborted";
|
|
510
|
-
const isDirty = (x) => x.status === "dirty";
|
|
511
|
-
const isValid = (x) => x.status === "valid";
|
|
512
|
-
const isAsync = (x) => typeof Promise !== "undefined" && x instanceof Promise;
|
|
513
|
-
|
|
514
|
-
/******************************************************************************
|
|
515
|
-
Copyright (c) Microsoft Corporation.
|
|
516
|
-
|
|
517
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
518
|
-
purpose with or without fee is hereby granted.
|
|
519
|
-
|
|
520
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
521
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
522
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
523
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
524
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
525
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
526
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
527
|
-
***************************************************************************** */
|
|
528
|
-
|
|
529
|
-
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
530
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
531
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
532
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
533
|
-
}
|
|
534
|
-
|
|
535
|
-
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
536
|
-
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
537
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
538
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
539
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
540
|
-
}
|
|
541
|
-
|
|
542
|
-
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
543
|
-
var e = new Error(message);
|
|
544
|
-
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
545
|
-
};
|
|
546
|
-
|
|
547
|
-
var errorUtil;
|
|
548
|
-
(function (errorUtil) {
|
|
549
|
-
errorUtil.errToObj = (message) => typeof message === "string" ? { message } : message || {};
|
|
550
|
-
errorUtil.toString = (message) => typeof message === "string" ? message : message === null || message === void 0 ? void 0 : message.message;
|
|
551
|
-
})(errorUtil || (errorUtil = {}));
|
|
552
|
-
|
|
553
|
-
var _ZodEnum_cache, _ZodNativeEnum_cache;
|
|
1
|
+
import { ZodError, ZodIssueCode, } from "./ZodError.js";
|
|
2
|
+
import { defaultErrorMap, getErrorMap } from "./errors.js";
|
|
3
|
+
import { errorUtil } from "./helpers/errorUtil.js";
|
|
4
|
+
import { DIRTY, INVALID, OK, ParseStatus, addIssueToContext, isAborted, isAsync, isDirty, isValid, makeIssue, } from "./helpers/parseUtil.js";
|
|
5
|
+
import { util, ZodParsedType, getParsedType } from "./helpers/util.js";
|
|
554
6
|
class ParseInputLazyPath {
|
|
555
7
|
constructor(parent, value, path, key) {
|
|
556
8
|
this._cachedPath = [];
|
|
@@ -561,7 +13,7 @@ class ParseInputLazyPath {
|
|
|
561
13
|
}
|
|
562
14
|
get path() {
|
|
563
15
|
if (!this._cachedPath.length) {
|
|
564
|
-
if (this._key
|
|
16
|
+
if (Array.isArray(this._key)) {
|
|
565
17
|
this._cachedPath.push(...this._path, ...this._key);
|
|
566
18
|
}
|
|
567
19
|
else {
|
|
@@ -601,50 +53,20 @@ function processCreateParams(params) {
|
|
|
601
53
|
if (errorMap)
|
|
602
54
|
return { errorMap: errorMap, description };
|
|
603
55
|
const customMap = (iss, ctx) => {
|
|
604
|
-
var _a, _b;
|
|
605
56
|
const { message } = params;
|
|
606
57
|
if (iss.code === "invalid_enum_value") {
|
|
607
|
-
return { message: message
|
|
58
|
+
return { message: message ?? ctx.defaultError };
|
|
608
59
|
}
|
|
609
60
|
if (typeof ctx.data === "undefined") {
|
|
610
|
-
return { message:
|
|
61
|
+
return { message: message ?? required_error ?? ctx.defaultError };
|
|
611
62
|
}
|
|
612
63
|
if (iss.code !== "invalid_type")
|
|
613
64
|
return { message: ctx.defaultError };
|
|
614
|
-
return { message:
|
|
65
|
+
return { message: message ?? invalid_type_error ?? ctx.defaultError };
|
|
615
66
|
};
|
|
616
67
|
return { errorMap: customMap, description };
|
|
617
68
|
}
|
|
618
|
-
class ZodType {
|
|
619
|
-
constructor(def) {
|
|
620
|
-
/** Alias of safeParseAsync */
|
|
621
|
-
this.spa = this.safeParseAsync;
|
|
622
|
-
this._def = def;
|
|
623
|
-
this.parse = this.parse.bind(this);
|
|
624
|
-
this.safeParse = this.safeParse.bind(this);
|
|
625
|
-
this.parseAsync = this.parseAsync.bind(this);
|
|
626
|
-
this.safeParseAsync = this.safeParseAsync.bind(this);
|
|
627
|
-
this.spa = this.spa.bind(this);
|
|
628
|
-
this.refine = this.refine.bind(this);
|
|
629
|
-
this.refinement = this.refinement.bind(this);
|
|
630
|
-
this.superRefine = this.superRefine.bind(this);
|
|
631
|
-
this.optional = this.optional.bind(this);
|
|
632
|
-
this.nullable = this.nullable.bind(this);
|
|
633
|
-
this.nullish = this.nullish.bind(this);
|
|
634
|
-
this.array = this.array.bind(this);
|
|
635
|
-
this.promise = this.promise.bind(this);
|
|
636
|
-
this.or = this.or.bind(this);
|
|
637
|
-
this.and = this.and.bind(this);
|
|
638
|
-
this.transform = this.transform.bind(this);
|
|
639
|
-
this.brand = this.brand.bind(this);
|
|
640
|
-
this.default = this.default.bind(this);
|
|
641
|
-
this.catch = this.catch.bind(this);
|
|
642
|
-
this.describe = this.describe.bind(this);
|
|
643
|
-
this.pipe = this.pipe.bind(this);
|
|
644
|
-
this.readonly = this.readonly.bind(this);
|
|
645
|
-
this.isNullable = this.isNullable.bind(this);
|
|
646
|
-
this.isOptional = this.isOptional.bind(this);
|
|
647
|
-
}
|
|
69
|
+
export class ZodType {
|
|
648
70
|
get description() {
|
|
649
71
|
return this._def.description;
|
|
650
72
|
}
|
|
@@ -692,14 +114,13 @@ class ZodType {
|
|
|
692
114
|
throw result.error;
|
|
693
115
|
}
|
|
694
116
|
safeParse(data, params) {
|
|
695
|
-
var _a;
|
|
696
117
|
const ctx = {
|
|
697
118
|
common: {
|
|
698
119
|
issues: [],
|
|
699
|
-
async:
|
|
700
|
-
contextualErrorMap: params
|
|
120
|
+
async: params?.async ?? false,
|
|
121
|
+
contextualErrorMap: params?.errorMap,
|
|
701
122
|
},
|
|
702
|
-
path:
|
|
123
|
+
path: params?.path || [],
|
|
703
124
|
schemaErrorMap: this._def.errorMap,
|
|
704
125
|
parent: null,
|
|
705
126
|
data,
|
|
@@ -708,6 +129,47 @@ class ZodType {
|
|
|
708
129
|
const result = this._parseSync({ data, path: ctx.path, parent: ctx });
|
|
709
130
|
return handleResult(ctx, result);
|
|
710
131
|
}
|
|
132
|
+
"~validate"(data) {
|
|
133
|
+
const ctx = {
|
|
134
|
+
common: {
|
|
135
|
+
issues: [],
|
|
136
|
+
async: !!this["~standard"].async,
|
|
137
|
+
},
|
|
138
|
+
path: [],
|
|
139
|
+
schemaErrorMap: this._def.errorMap,
|
|
140
|
+
parent: null,
|
|
141
|
+
data,
|
|
142
|
+
parsedType: getParsedType(data),
|
|
143
|
+
};
|
|
144
|
+
if (!this["~standard"].async) {
|
|
145
|
+
try {
|
|
146
|
+
const result = this._parseSync({ data, path: [], parent: ctx });
|
|
147
|
+
return isValid(result)
|
|
148
|
+
? {
|
|
149
|
+
value: result.value,
|
|
150
|
+
}
|
|
151
|
+
: {
|
|
152
|
+
issues: ctx.common.issues,
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
catch (err) {
|
|
156
|
+
if (err?.message?.toLowerCase()?.includes("encountered")) {
|
|
157
|
+
this["~standard"].async = true;
|
|
158
|
+
}
|
|
159
|
+
ctx.common = {
|
|
160
|
+
issues: [],
|
|
161
|
+
async: true,
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
return this._parseAsync({ data, path: [], parent: ctx }).then((result) => isValid(result)
|
|
166
|
+
? {
|
|
167
|
+
value: result.value,
|
|
168
|
+
}
|
|
169
|
+
: {
|
|
170
|
+
issues: ctx.common.issues,
|
|
171
|
+
});
|
|
172
|
+
}
|
|
711
173
|
async parseAsync(data, params) {
|
|
712
174
|
const result = await this.safeParseAsync(data, params);
|
|
713
175
|
if (result.success)
|
|
@@ -718,19 +180,17 @@ class ZodType {
|
|
|
718
180
|
const ctx = {
|
|
719
181
|
common: {
|
|
720
182
|
issues: [],
|
|
721
|
-
contextualErrorMap: params
|
|
183
|
+
contextualErrorMap: params?.errorMap,
|
|
722
184
|
async: true,
|
|
723
185
|
},
|
|
724
|
-
path:
|
|
186
|
+
path: params?.path || [],
|
|
725
187
|
schemaErrorMap: this._def.errorMap,
|
|
726
188
|
parent: null,
|
|
727
189
|
data,
|
|
728
190
|
parsedType: getParsedType(data),
|
|
729
191
|
};
|
|
730
192
|
const maybeAsyncResult = this._parse({ data, path: ctx.path, parent: ctx });
|
|
731
|
-
const result = await (isAsync(maybeAsyncResult)
|
|
732
|
-
? maybeAsyncResult
|
|
733
|
-
: Promise.resolve(maybeAsyncResult));
|
|
193
|
+
const result = await (isAsync(maybeAsyncResult) ? maybeAsyncResult : Promise.resolve(maybeAsyncResult));
|
|
734
194
|
return handleResult(ctx, result);
|
|
735
195
|
}
|
|
736
196
|
refine(check, message) {
|
|
@@ -774,9 +234,7 @@ class ZodType {
|
|
|
774
234
|
refinement(check, refinementData) {
|
|
775
235
|
return this._refinement((val, ctx) => {
|
|
776
236
|
if (!check(val)) {
|
|
777
|
-
ctx.addIssue(typeof refinementData === "function"
|
|
778
|
-
? refinementData(val, ctx)
|
|
779
|
-
: refinementData);
|
|
237
|
+
ctx.addIssue(typeof refinementData === "function" ? refinementData(val, ctx) : refinementData);
|
|
780
238
|
return false;
|
|
781
239
|
}
|
|
782
240
|
else {
|
|
@@ -794,6 +252,40 @@ class ZodType {
|
|
|
794
252
|
superRefine(refinement) {
|
|
795
253
|
return this._refinement(refinement);
|
|
796
254
|
}
|
|
255
|
+
constructor(def) {
|
|
256
|
+
/** Alias of safeParseAsync */
|
|
257
|
+
this.spa = this.safeParseAsync;
|
|
258
|
+
this._def = def;
|
|
259
|
+
this.parse = this.parse.bind(this);
|
|
260
|
+
this.safeParse = this.safeParse.bind(this);
|
|
261
|
+
this.parseAsync = this.parseAsync.bind(this);
|
|
262
|
+
this.safeParseAsync = this.safeParseAsync.bind(this);
|
|
263
|
+
this.spa = this.spa.bind(this);
|
|
264
|
+
this.refine = this.refine.bind(this);
|
|
265
|
+
this.refinement = this.refinement.bind(this);
|
|
266
|
+
this.superRefine = this.superRefine.bind(this);
|
|
267
|
+
this.optional = this.optional.bind(this);
|
|
268
|
+
this.nullable = this.nullable.bind(this);
|
|
269
|
+
this.nullish = this.nullish.bind(this);
|
|
270
|
+
this.array = this.array.bind(this);
|
|
271
|
+
this.promise = this.promise.bind(this);
|
|
272
|
+
this.or = this.or.bind(this);
|
|
273
|
+
this.and = this.and.bind(this);
|
|
274
|
+
this.transform = this.transform.bind(this);
|
|
275
|
+
this.brand = this.brand.bind(this);
|
|
276
|
+
this.default = this.default.bind(this);
|
|
277
|
+
this.catch = this.catch.bind(this);
|
|
278
|
+
this.describe = this.describe.bind(this);
|
|
279
|
+
this.pipe = this.pipe.bind(this);
|
|
280
|
+
this.readonly = this.readonly.bind(this);
|
|
281
|
+
this.isNullable = this.isNullable.bind(this);
|
|
282
|
+
this.isOptional = this.isOptional.bind(this);
|
|
283
|
+
this["~standard"] = {
|
|
284
|
+
version: 1,
|
|
285
|
+
vendor: "zod",
|
|
286
|
+
validate: (data) => this["~validate"](data),
|
|
287
|
+
};
|
|
288
|
+
}
|
|
797
289
|
optional() {
|
|
798
290
|
return ZodOptional.create(this, this._def);
|
|
799
291
|
}
|
|
@@ -804,7 +296,7 @@ class ZodType {
|
|
|
804
296
|
return this.nullable().optional();
|
|
805
297
|
}
|
|
806
298
|
array() {
|
|
807
|
-
return ZodArray.create(this
|
|
299
|
+
return ZodArray.create(this);
|
|
808
300
|
}
|
|
809
301
|
promise() {
|
|
810
302
|
return ZodPromise.create(this, this._def);
|
|
@@ -870,11 +362,12 @@ class ZodType {
|
|
|
870
362
|
}
|
|
871
363
|
const cuidRegex = /^c[^\s-]{8,}$/i;
|
|
872
364
|
const cuid2Regex = /^[0-9a-z]+$/;
|
|
873
|
-
const ulidRegex = /^[0-9A-HJKMNP-TV-Z]{26}
|
|
365
|
+
const ulidRegex = /^[0-9A-HJKMNP-TV-Z]{26}$/i;
|
|
874
366
|
// const uuidRegex =
|
|
875
367
|
// /^([a-f0-9]{8}-[a-f0-9]{4}-[1-5][a-f0-9]{3}-[a-f0-9]{4}-[a-f0-9]{12}|00000000-0000-0000-0000-000000000000)$/i;
|
|
876
368
|
const uuidRegex = /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i;
|
|
877
369
|
const nanoidRegex = /^[a-z0-9_-]{21}$/i;
|
|
370
|
+
const jwtRegex = /^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/;
|
|
878
371
|
const durationRegex = /^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/;
|
|
879
372
|
// from https://stackoverflow.com/a/46181/1550155
|
|
880
373
|
// old version: too slow, didn't support unicode
|
|
@@ -896,9 +389,15 @@ const _emojiRegex = `^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`;
|
|
|
896
389
|
let emojiRegex;
|
|
897
390
|
// faster, simpler, safer
|
|
898
391
|
const ipv4Regex = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/;
|
|
899
|
-
const
|
|
392
|
+
const ipv4CidrRegex = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/;
|
|
393
|
+
// const ipv6Regex =
|
|
394
|
+
// /^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/;
|
|
395
|
+
const ipv6Regex = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/;
|
|
396
|
+
const ipv6CidrRegex = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/;
|
|
900
397
|
// https://stackoverflow.com/questions/7860392/determine-if-string-is-in-base64-using-javascript
|
|
901
398
|
const base64Regex = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/;
|
|
399
|
+
// https://base64.guru/standards/base64url
|
|
400
|
+
const base64urlRegex = /^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/;
|
|
902
401
|
// simple
|
|
903
402
|
// const dateRegexSource = `\\d{4}-\\d{2}-\\d{2}`;
|
|
904
403
|
// no leap year validation
|
|
@@ -907,21 +406,21 @@ const base64Regex = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}
|
|
|
907
406
|
const dateRegexSource = `((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))`;
|
|
908
407
|
const dateRegex = new RegExp(`^${dateRegexSource}$`);
|
|
909
408
|
function timeRegexSource(args) {
|
|
910
|
-
|
|
911
|
-
let regex = `([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d`;
|
|
409
|
+
let secondsRegexSource = `[0-5]\\d`;
|
|
912
410
|
if (args.precision) {
|
|
913
|
-
|
|
411
|
+
secondsRegexSource = `${secondsRegexSource}\\.\\d{${args.precision}}`;
|
|
914
412
|
}
|
|
915
413
|
else if (args.precision == null) {
|
|
916
|
-
|
|
414
|
+
secondsRegexSource = `${secondsRegexSource}(\\.\\d+)?`;
|
|
917
415
|
}
|
|
918
|
-
|
|
416
|
+
const secondsQuantifier = args.precision ? "+" : "?"; // require seconds if precision is nonzero
|
|
417
|
+
return `([01]\\d|2[0-3]):[0-5]\\d(:${secondsRegexSource})${secondsQuantifier}`;
|
|
919
418
|
}
|
|
920
419
|
function timeRegex(args) {
|
|
921
420
|
return new RegExp(`^${timeRegexSource(args)}$`);
|
|
922
421
|
}
|
|
923
422
|
// Adapted from https://stackoverflow.com/a/3143231
|
|
924
|
-
function datetimeRegex(args) {
|
|
423
|
+
export function datetimeRegex(args) {
|
|
925
424
|
let regex = `${dateRegexSource}T${timeRegexSource(args)}`;
|
|
926
425
|
const opts = [];
|
|
927
426
|
opts.push(args.local ? `Z?` : `Z`);
|
|
@@ -939,7 +438,43 @@ function isValidIP(ip, version) {
|
|
|
939
438
|
}
|
|
940
439
|
return false;
|
|
941
440
|
}
|
|
942
|
-
|
|
441
|
+
function isValidJWT(jwt, alg) {
|
|
442
|
+
if (!jwtRegex.test(jwt))
|
|
443
|
+
return false;
|
|
444
|
+
try {
|
|
445
|
+
const [header] = jwt.split(".");
|
|
446
|
+
if (!header)
|
|
447
|
+
return false;
|
|
448
|
+
// Convert base64url to base64
|
|
449
|
+
const base64 = header
|
|
450
|
+
.replace(/-/g, "+")
|
|
451
|
+
.replace(/_/g, "/")
|
|
452
|
+
.padEnd(header.length + ((4 - (header.length % 4)) % 4), "=");
|
|
453
|
+
const decoded = JSON.parse(atob(base64));
|
|
454
|
+
if (typeof decoded !== "object" || decoded === null)
|
|
455
|
+
return false;
|
|
456
|
+
if ("typ" in decoded && decoded?.typ !== "JWT")
|
|
457
|
+
return false;
|
|
458
|
+
if (!decoded.alg)
|
|
459
|
+
return false;
|
|
460
|
+
if (alg && decoded.alg !== alg)
|
|
461
|
+
return false;
|
|
462
|
+
return true;
|
|
463
|
+
}
|
|
464
|
+
catch {
|
|
465
|
+
return false;
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
function isValidCidr(ip, version) {
|
|
469
|
+
if ((version === "v4" || !version) && ipv4CidrRegex.test(ip)) {
|
|
470
|
+
return true;
|
|
471
|
+
}
|
|
472
|
+
if ((version === "v6" || !version) && ipv6CidrRegex.test(ip)) {
|
|
473
|
+
return true;
|
|
474
|
+
}
|
|
475
|
+
return false;
|
|
476
|
+
}
|
|
477
|
+
export class ZodString extends ZodType {
|
|
943
478
|
_parse(input) {
|
|
944
479
|
if (this._def.coerce) {
|
|
945
480
|
input.data = String(input.data);
|
|
@@ -1097,7 +632,7 @@ class ZodString extends ZodType {
|
|
|
1097
632
|
try {
|
|
1098
633
|
new URL(input.data);
|
|
1099
634
|
}
|
|
1100
|
-
catch
|
|
635
|
+
catch {
|
|
1101
636
|
ctx = this._getOrReturnCtx(input, ctx);
|
|
1102
637
|
addIssueToContext(ctx, {
|
|
1103
638
|
validation: "url",
|
|
@@ -1220,6 +755,28 @@ class ZodString extends ZodType {
|
|
|
1220
755
|
status.dirty();
|
|
1221
756
|
}
|
|
1222
757
|
}
|
|
758
|
+
else if (check.kind === "jwt") {
|
|
759
|
+
if (!isValidJWT(input.data, check.alg)) {
|
|
760
|
+
ctx = this._getOrReturnCtx(input, ctx);
|
|
761
|
+
addIssueToContext(ctx, {
|
|
762
|
+
validation: "jwt",
|
|
763
|
+
code: ZodIssueCode.invalid_string,
|
|
764
|
+
message: check.message,
|
|
765
|
+
});
|
|
766
|
+
status.dirty();
|
|
767
|
+
}
|
|
768
|
+
}
|
|
769
|
+
else if (check.kind === "cidr") {
|
|
770
|
+
if (!isValidCidr(input.data, check.version)) {
|
|
771
|
+
ctx = this._getOrReturnCtx(input, ctx);
|
|
772
|
+
addIssueToContext(ctx, {
|
|
773
|
+
validation: "cidr",
|
|
774
|
+
code: ZodIssueCode.invalid_string,
|
|
775
|
+
message: check.message,
|
|
776
|
+
});
|
|
777
|
+
status.dirty();
|
|
778
|
+
}
|
|
779
|
+
}
|
|
1223
780
|
else if (check.kind === "base64") {
|
|
1224
781
|
if (!base64Regex.test(input.data)) {
|
|
1225
782
|
ctx = this._getOrReturnCtx(input, ctx);
|
|
@@ -1231,6 +788,17 @@ class ZodString extends ZodType {
|
|
|
1231
788
|
status.dirty();
|
|
1232
789
|
}
|
|
1233
790
|
}
|
|
791
|
+
else if (check.kind === "base64url") {
|
|
792
|
+
if (!base64urlRegex.test(input.data)) {
|
|
793
|
+
ctx = this._getOrReturnCtx(input, ctx);
|
|
794
|
+
addIssueToContext(ctx, {
|
|
795
|
+
validation: "base64url",
|
|
796
|
+
code: ZodIssueCode.invalid_string,
|
|
797
|
+
message: check.message,
|
|
798
|
+
});
|
|
799
|
+
status.dirty();
|
|
800
|
+
}
|
|
801
|
+
}
|
|
1234
802
|
else {
|
|
1235
803
|
util.assertNever(check);
|
|
1236
804
|
}
|
|
@@ -1277,11 +845,23 @@ class ZodString extends ZodType {
|
|
|
1277
845
|
base64(message) {
|
|
1278
846
|
return this._addCheck({ kind: "base64", ...errorUtil.errToObj(message) });
|
|
1279
847
|
}
|
|
848
|
+
base64url(message) {
|
|
849
|
+
// base64url encoding is a modification of base64 that can safely be used in URLs and filenames
|
|
850
|
+
return this._addCheck({
|
|
851
|
+
kind: "base64url",
|
|
852
|
+
...errorUtil.errToObj(message),
|
|
853
|
+
});
|
|
854
|
+
}
|
|
855
|
+
jwt(options) {
|
|
856
|
+
return this._addCheck({ kind: "jwt", ...errorUtil.errToObj(options) });
|
|
857
|
+
}
|
|
1280
858
|
ip(options) {
|
|
1281
859
|
return this._addCheck({ kind: "ip", ...errorUtil.errToObj(options) });
|
|
1282
860
|
}
|
|
861
|
+
cidr(options) {
|
|
862
|
+
return this._addCheck({ kind: "cidr", ...errorUtil.errToObj(options) });
|
|
863
|
+
}
|
|
1283
864
|
datetime(options) {
|
|
1284
|
-
var _a, _b;
|
|
1285
865
|
if (typeof options === "string") {
|
|
1286
866
|
return this._addCheck({
|
|
1287
867
|
kind: "datetime",
|
|
@@ -1293,10 +873,10 @@ class ZodString extends ZodType {
|
|
|
1293
873
|
}
|
|
1294
874
|
return this._addCheck({
|
|
1295
875
|
kind: "datetime",
|
|
1296
|
-
precision: typeof
|
|
1297
|
-
offset:
|
|
1298
|
-
local:
|
|
1299
|
-
...errorUtil.errToObj(options
|
|
876
|
+
precision: typeof options?.precision === "undefined" ? null : options?.precision,
|
|
877
|
+
offset: options?.offset ?? false,
|
|
878
|
+
local: options?.local ?? false,
|
|
879
|
+
...errorUtil.errToObj(options?.message),
|
|
1300
880
|
});
|
|
1301
881
|
}
|
|
1302
882
|
date(message) {
|
|
@@ -1312,8 +892,8 @@ class ZodString extends ZodType {
|
|
|
1312
892
|
}
|
|
1313
893
|
return this._addCheck({
|
|
1314
894
|
kind: "time",
|
|
1315
|
-
precision: typeof
|
|
1316
|
-
...errorUtil.errToObj(options
|
|
895
|
+
precision: typeof options?.precision === "undefined" ? null : options?.precision,
|
|
896
|
+
...errorUtil.errToObj(options?.message),
|
|
1317
897
|
});
|
|
1318
898
|
}
|
|
1319
899
|
duration(message) {
|
|
@@ -1330,8 +910,8 @@ class ZodString extends ZodType {
|
|
|
1330
910
|
return this._addCheck({
|
|
1331
911
|
kind: "includes",
|
|
1332
912
|
value: value,
|
|
1333
|
-
position: options
|
|
1334
|
-
...errorUtil.errToObj(options
|
|
913
|
+
position: options?.position,
|
|
914
|
+
...errorUtil.errToObj(options?.message),
|
|
1335
915
|
});
|
|
1336
916
|
}
|
|
1337
917
|
startsWith(value, message) {
|
|
@@ -1370,8 +950,7 @@ class ZodString extends ZodType {
|
|
|
1370
950
|
});
|
|
1371
951
|
}
|
|
1372
952
|
/**
|
|
1373
|
-
*
|
|
1374
|
-
* @see {@link ZodString.min}
|
|
953
|
+
* Equivalent to `.min(1)`
|
|
1375
954
|
*/
|
|
1376
955
|
nonempty(message) {
|
|
1377
956
|
return this.min(1, errorUtil.errToObj(message));
|
|
@@ -1433,9 +1012,16 @@ class ZodString extends ZodType {
|
|
|
1433
1012
|
get isIP() {
|
|
1434
1013
|
return !!this._def.checks.find((ch) => ch.kind === "ip");
|
|
1435
1014
|
}
|
|
1015
|
+
get isCIDR() {
|
|
1016
|
+
return !!this._def.checks.find((ch) => ch.kind === "cidr");
|
|
1017
|
+
}
|
|
1436
1018
|
get isBase64() {
|
|
1437
1019
|
return !!this._def.checks.find((ch) => ch.kind === "base64");
|
|
1438
1020
|
}
|
|
1021
|
+
get isBase64url() {
|
|
1022
|
+
// base64url encoding is a modification of base64 that can safely be used in URLs and filenames
|
|
1023
|
+
return !!this._def.checks.find((ch) => ch.kind === "base64url");
|
|
1024
|
+
}
|
|
1439
1025
|
get minLength() {
|
|
1440
1026
|
let min = null;
|
|
1441
1027
|
for (const ch of this._def.checks) {
|
|
@@ -1458,11 +1044,10 @@ class ZodString extends ZodType {
|
|
|
1458
1044
|
}
|
|
1459
1045
|
}
|
|
1460
1046
|
ZodString.create = (params) => {
|
|
1461
|
-
var _a;
|
|
1462
1047
|
return new ZodString({
|
|
1463
1048
|
checks: [],
|
|
1464
1049
|
typeName: ZodFirstPartyTypeKind.ZodString,
|
|
1465
|
-
coerce:
|
|
1050
|
+
coerce: params?.coerce ?? false,
|
|
1466
1051
|
...processCreateParams(params),
|
|
1467
1052
|
});
|
|
1468
1053
|
};
|
|
@@ -1471,11 +1056,11 @@ function floatSafeRemainder(val, step) {
|
|
|
1471
1056
|
const valDecCount = (val.toString().split(".")[1] || "").length;
|
|
1472
1057
|
const stepDecCount = (step.toString().split(".")[1] || "").length;
|
|
1473
1058
|
const decCount = valDecCount > stepDecCount ? valDecCount : stepDecCount;
|
|
1474
|
-
const valInt = parseInt(val.toFixed(decCount).replace(".", ""));
|
|
1475
|
-
const stepInt = parseInt(step.toFixed(decCount).replace(".", ""));
|
|
1476
|
-
return (valInt % stepInt) /
|
|
1059
|
+
const valInt = Number.parseInt(val.toFixed(decCount).replace(".", ""));
|
|
1060
|
+
const stepInt = Number.parseInt(step.toFixed(decCount).replace(".", ""));
|
|
1061
|
+
return (valInt % stepInt) / 10 ** decCount;
|
|
1477
1062
|
}
|
|
1478
|
-
class ZodNumber extends ZodType {
|
|
1063
|
+
export class ZodNumber extends ZodType {
|
|
1479
1064
|
constructor() {
|
|
1480
1065
|
super(...arguments);
|
|
1481
1066
|
this.min = this.gte;
|
|
@@ -1512,9 +1097,7 @@ class ZodNumber extends ZodType {
|
|
|
1512
1097
|
}
|
|
1513
1098
|
}
|
|
1514
1099
|
else if (check.kind === "min") {
|
|
1515
|
-
const tooSmall = check.inclusive
|
|
1516
|
-
? input.data < check.value
|
|
1517
|
-
: input.data <= check.value;
|
|
1100
|
+
const tooSmall = check.inclusive ? input.data < check.value : input.data <= check.value;
|
|
1518
1101
|
if (tooSmall) {
|
|
1519
1102
|
ctx = this._getOrReturnCtx(input, ctx);
|
|
1520
1103
|
addIssueToContext(ctx, {
|
|
@@ -1529,9 +1112,7 @@ class ZodNumber extends ZodType {
|
|
|
1529
1112
|
}
|
|
1530
1113
|
}
|
|
1531
1114
|
else if (check.kind === "max") {
|
|
1532
|
-
const tooBig = check.inclusive
|
|
1533
|
-
? input.data > check.value
|
|
1534
|
-
: input.data >= check.value;
|
|
1115
|
+
const tooBig = check.inclusive ? input.data > check.value : input.data >= check.value;
|
|
1535
1116
|
if (tooBig) {
|
|
1536
1117
|
ctx = this._getOrReturnCtx(input, ctx);
|
|
1537
1118
|
addIssueToContext(ctx, {
|
|
@@ -1689,15 +1270,13 @@ class ZodNumber extends ZodType {
|
|
|
1689
1270
|
return max;
|
|
1690
1271
|
}
|
|
1691
1272
|
get isInt() {
|
|
1692
|
-
return !!this._def.checks.find((ch) => ch.kind === "int" ||
|
|
1693
|
-
(ch.kind === "multipleOf" && util.isInteger(ch.value)));
|
|
1273
|
+
return !!this._def.checks.find((ch) => ch.kind === "int" || (ch.kind === "multipleOf" && util.isInteger(ch.value)));
|
|
1694
1274
|
}
|
|
1695
1275
|
get isFinite() {
|
|
1696
|
-
let max = null
|
|
1276
|
+
let max = null;
|
|
1277
|
+
let min = null;
|
|
1697
1278
|
for (const ch of this._def.checks) {
|
|
1698
|
-
if (ch.kind === "finite" ||
|
|
1699
|
-
ch.kind === "int" ||
|
|
1700
|
-
ch.kind === "multipleOf") {
|
|
1279
|
+
if (ch.kind === "finite" || ch.kind === "int" || ch.kind === "multipleOf") {
|
|
1701
1280
|
return true;
|
|
1702
1281
|
}
|
|
1703
1282
|
else if (ch.kind === "min") {
|
|
@@ -1716,11 +1295,11 @@ ZodNumber.create = (params) => {
|
|
|
1716
1295
|
return new ZodNumber({
|
|
1717
1296
|
checks: [],
|
|
1718
1297
|
typeName: ZodFirstPartyTypeKind.ZodNumber,
|
|
1719
|
-
coerce:
|
|
1298
|
+
coerce: params?.coerce || false,
|
|
1720
1299
|
...processCreateParams(params),
|
|
1721
1300
|
});
|
|
1722
1301
|
};
|
|
1723
|
-
class ZodBigInt extends ZodType {
|
|
1302
|
+
export class ZodBigInt extends ZodType {
|
|
1724
1303
|
constructor() {
|
|
1725
1304
|
super(...arguments);
|
|
1726
1305
|
this.min = this.gte;
|
|
@@ -1728,25 +1307,22 @@ class ZodBigInt extends ZodType {
|
|
|
1728
1307
|
}
|
|
1729
1308
|
_parse(input) {
|
|
1730
1309
|
if (this._def.coerce) {
|
|
1731
|
-
|
|
1310
|
+
try {
|
|
1311
|
+
input.data = BigInt(input.data);
|
|
1312
|
+
}
|
|
1313
|
+
catch {
|
|
1314
|
+
return this._getInvalidInput(input);
|
|
1315
|
+
}
|
|
1732
1316
|
}
|
|
1733
1317
|
const parsedType = this._getType(input);
|
|
1734
1318
|
if (parsedType !== ZodParsedType.bigint) {
|
|
1735
|
-
|
|
1736
|
-
addIssueToContext(ctx, {
|
|
1737
|
-
code: ZodIssueCode.invalid_type,
|
|
1738
|
-
expected: ZodParsedType.bigint,
|
|
1739
|
-
received: ctx.parsedType,
|
|
1740
|
-
});
|
|
1741
|
-
return INVALID;
|
|
1319
|
+
return this._getInvalidInput(input);
|
|
1742
1320
|
}
|
|
1743
1321
|
let ctx = undefined;
|
|
1744
1322
|
const status = new ParseStatus();
|
|
1745
1323
|
for (const check of this._def.checks) {
|
|
1746
1324
|
if (check.kind === "min") {
|
|
1747
|
-
const tooSmall = check.inclusive
|
|
1748
|
-
? input.data < check.value
|
|
1749
|
-
: input.data <= check.value;
|
|
1325
|
+
const tooSmall = check.inclusive ? input.data < check.value : input.data <= check.value;
|
|
1750
1326
|
if (tooSmall) {
|
|
1751
1327
|
ctx = this._getOrReturnCtx(input, ctx);
|
|
1752
1328
|
addIssueToContext(ctx, {
|
|
@@ -1760,9 +1336,7 @@ class ZodBigInt extends ZodType {
|
|
|
1760
1336
|
}
|
|
1761
1337
|
}
|
|
1762
1338
|
else if (check.kind === "max") {
|
|
1763
|
-
const tooBig = check.inclusive
|
|
1764
|
-
? input.data > check.value
|
|
1765
|
-
: input.data >= check.value;
|
|
1339
|
+
const tooBig = check.inclusive ? input.data > check.value : input.data >= check.value;
|
|
1766
1340
|
if (tooBig) {
|
|
1767
1341
|
ctx = this._getOrReturnCtx(input, ctx);
|
|
1768
1342
|
addIssueToContext(ctx, {
|
|
@@ -1792,6 +1366,15 @@ class ZodBigInt extends ZodType {
|
|
|
1792
1366
|
}
|
|
1793
1367
|
return { status: status.value, value: input.data };
|
|
1794
1368
|
}
|
|
1369
|
+
_getInvalidInput(input) {
|
|
1370
|
+
const ctx = this._getOrReturnCtx(input);
|
|
1371
|
+
addIssueToContext(ctx, {
|
|
1372
|
+
code: ZodIssueCode.invalid_type,
|
|
1373
|
+
expected: ZodParsedType.bigint,
|
|
1374
|
+
received: ctx.parsedType,
|
|
1375
|
+
});
|
|
1376
|
+
return INVALID;
|
|
1377
|
+
}
|
|
1795
1378
|
gte(value, message) {
|
|
1796
1379
|
return this.setLimit("min", value, true, errorUtil.toString(message));
|
|
1797
1380
|
}
|
|
@@ -1885,15 +1468,14 @@ class ZodBigInt extends ZodType {
|
|
|
1885
1468
|
}
|
|
1886
1469
|
}
|
|
1887
1470
|
ZodBigInt.create = (params) => {
|
|
1888
|
-
var _a;
|
|
1889
1471
|
return new ZodBigInt({
|
|
1890
1472
|
checks: [],
|
|
1891
1473
|
typeName: ZodFirstPartyTypeKind.ZodBigInt,
|
|
1892
|
-
coerce:
|
|
1474
|
+
coerce: params?.coerce ?? false,
|
|
1893
1475
|
...processCreateParams(params),
|
|
1894
1476
|
});
|
|
1895
1477
|
};
|
|
1896
|
-
class ZodBoolean extends ZodType {
|
|
1478
|
+
export class ZodBoolean extends ZodType {
|
|
1897
1479
|
_parse(input) {
|
|
1898
1480
|
if (this._def.coerce) {
|
|
1899
1481
|
input.data = Boolean(input.data);
|
|
@@ -1914,11 +1496,11 @@ class ZodBoolean extends ZodType {
|
|
|
1914
1496
|
ZodBoolean.create = (params) => {
|
|
1915
1497
|
return new ZodBoolean({
|
|
1916
1498
|
typeName: ZodFirstPartyTypeKind.ZodBoolean,
|
|
1917
|
-
coerce:
|
|
1499
|
+
coerce: params?.coerce || false,
|
|
1918
1500
|
...processCreateParams(params),
|
|
1919
1501
|
});
|
|
1920
1502
|
};
|
|
1921
|
-
class ZodDate extends ZodType {
|
|
1503
|
+
export class ZodDate extends ZodType {
|
|
1922
1504
|
_parse(input) {
|
|
1923
1505
|
if (this._def.coerce) {
|
|
1924
1506
|
input.data = new Date(input.data);
|
|
@@ -1933,7 +1515,7 @@ class ZodDate extends ZodType {
|
|
|
1933
1515
|
});
|
|
1934
1516
|
return INVALID;
|
|
1935
1517
|
}
|
|
1936
|
-
if (isNaN(input.data.getTime())) {
|
|
1518
|
+
if (Number.isNaN(input.data.getTime())) {
|
|
1937
1519
|
const ctx = this._getOrReturnCtx(input);
|
|
1938
1520
|
addIssueToContext(ctx, {
|
|
1939
1521
|
code: ZodIssueCode.invalid_date,
|
|
@@ -2024,12 +1606,12 @@ class ZodDate extends ZodType {
|
|
|
2024
1606
|
ZodDate.create = (params) => {
|
|
2025
1607
|
return new ZodDate({
|
|
2026
1608
|
checks: [],
|
|
2027
|
-
coerce:
|
|
1609
|
+
coerce: params?.coerce || false,
|
|
2028
1610
|
typeName: ZodFirstPartyTypeKind.ZodDate,
|
|
2029
1611
|
...processCreateParams(params),
|
|
2030
1612
|
});
|
|
2031
1613
|
};
|
|
2032
|
-
class ZodSymbol extends ZodType {
|
|
1614
|
+
export class ZodSymbol extends ZodType {
|
|
2033
1615
|
_parse(input) {
|
|
2034
1616
|
const parsedType = this._getType(input);
|
|
2035
1617
|
if (parsedType !== ZodParsedType.symbol) {
|
|
@@ -2050,7 +1632,7 @@ ZodSymbol.create = (params) => {
|
|
|
2050
1632
|
...processCreateParams(params),
|
|
2051
1633
|
});
|
|
2052
1634
|
};
|
|
2053
|
-
class ZodUndefined extends ZodType {
|
|
1635
|
+
export class ZodUndefined extends ZodType {
|
|
2054
1636
|
_parse(input) {
|
|
2055
1637
|
const parsedType = this._getType(input);
|
|
2056
1638
|
if (parsedType !== ZodParsedType.undefined) {
|
|
@@ -2071,7 +1653,7 @@ ZodUndefined.create = (params) => {
|
|
|
2071
1653
|
...processCreateParams(params),
|
|
2072
1654
|
});
|
|
2073
1655
|
};
|
|
2074
|
-
class ZodNull extends ZodType {
|
|
1656
|
+
export class ZodNull extends ZodType {
|
|
2075
1657
|
_parse(input) {
|
|
2076
1658
|
const parsedType = this._getType(input);
|
|
2077
1659
|
if (parsedType !== ZodParsedType.null) {
|
|
@@ -2092,7 +1674,7 @@ ZodNull.create = (params) => {
|
|
|
2092
1674
|
...processCreateParams(params),
|
|
2093
1675
|
});
|
|
2094
1676
|
};
|
|
2095
|
-
class ZodAny extends ZodType {
|
|
1677
|
+
export class ZodAny extends ZodType {
|
|
2096
1678
|
constructor() {
|
|
2097
1679
|
super(...arguments);
|
|
2098
1680
|
// to prevent instances of other classes from extending ZodAny. this causes issues with catchall in ZodObject.
|
|
@@ -2108,7 +1690,7 @@ ZodAny.create = (params) => {
|
|
|
2108
1690
|
...processCreateParams(params),
|
|
2109
1691
|
});
|
|
2110
1692
|
};
|
|
2111
|
-
class ZodUnknown extends ZodType {
|
|
1693
|
+
export class ZodUnknown extends ZodType {
|
|
2112
1694
|
constructor() {
|
|
2113
1695
|
super(...arguments);
|
|
2114
1696
|
// required
|
|
@@ -2124,7 +1706,7 @@ ZodUnknown.create = (params) => {
|
|
|
2124
1706
|
...processCreateParams(params),
|
|
2125
1707
|
});
|
|
2126
1708
|
};
|
|
2127
|
-
class ZodNever extends ZodType {
|
|
1709
|
+
export class ZodNever extends ZodType {
|
|
2128
1710
|
_parse(input) {
|
|
2129
1711
|
const ctx = this._getOrReturnCtx(input);
|
|
2130
1712
|
addIssueToContext(ctx, {
|
|
@@ -2141,7 +1723,7 @@ ZodNever.create = (params) => {
|
|
|
2141
1723
|
...processCreateParams(params),
|
|
2142
1724
|
});
|
|
2143
1725
|
};
|
|
2144
|
-
class ZodVoid extends ZodType {
|
|
1726
|
+
export class ZodVoid extends ZodType {
|
|
2145
1727
|
_parse(input) {
|
|
2146
1728
|
const parsedType = this._getType(input);
|
|
2147
1729
|
if (parsedType !== ZodParsedType.undefined) {
|
|
@@ -2162,7 +1744,7 @@ ZodVoid.create = (params) => {
|
|
|
2162
1744
|
...processCreateParams(params),
|
|
2163
1745
|
});
|
|
2164
1746
|
};
|
|
2165
|
-
class ZodArray extends ZodType {
|
|
1747
|
+
export class ZodArray extends ZodType {
|
|
2166
1748
|
_parse(input) {
|
|
2167
1749
|
const { ctx, status } = this._processInputParams(input);
|
|
2168
1750
|
const def = this._def;
|
|
@@ -2294,7 +1876,7 @@ function deepPartialify(schema) {
|
|
|
2294
1876
|
return schema;
|
|
2295
1877
|
}
|
|
2296
1878
|
}
|
|
2297
|
-
class ZodObject extends ZodType {
|
|
1879
|
+
export class ZodObject extends ZodType {
|
|
2298
1880
|
constructor() {
|
|
2299
1881
|
super(...arguments);
|
|
2300
1882
|
this._cached = null;
|
|
@@ -2346,7 +1928,8 @@ class ZodObject extends ZodType {
|
|
|
2346
1928
|
return this._cached;
|
|
2347
1929
|
const shape = this._def.shape();
|
|
2348
1930
|
const keys = util.objectKeys(shape);
|
|
2349
|
-
|
|
1931
|
+
this._cached = { shape, keys };
|
|
1932
|
+
return this._cached;
|
|
2350
1933
|
}
|
|
2351
1934
|
_parse(input) {
|
|
2352
1935
|
const parsedType = this._getType(input);
|
|
@@ -2362,8 +1945,7 @@ class ZodObject extends ZodType {
|
|
|
2362
1945
|
const { status, ctx } = this._processInputParams(input);
|
|
2363
1946
|
const { shape, keys: shapeKeys } = this._getCached();
|
|
2364
1947
|
const extraKeys = [];
|
|
2365
|
-
if (!(this._def.catchall instanceof ZodNever &&
|
|
2366
|
-
this._def.unknownKeys === "strip")) {
|
|
1948
|
+
if (!(this._def.catchall instanceof ZodNever && this._def.unknownKeys === "strip")) {
|
|
2367
1949
|
for (const key in ctx.data) {
|
|
2368
1950
|
if (!shapeKeys.includes(key)) {
|
|
2369
1951
|
extraKeys.push(key);
|
|
@@ -2399,7 +1981,8 @@ class ZodObject extends ZodType {
|
|
|
2399
1981
|
status.dirty();
|
|
2400
1982
|
}
|
|
2401
1983
|
}
|
|
2402
|
-
else if (unknownKeys === "strip")
|
|
1984
|
+
else if (unknownKeys === "strip") {
|
|
1985
|
+
}
|
|
2403
1986
|
else {
|
|
2404
1987
|
throw new Error(`Internal ZodObject error: invalid unknownKeys value.`);
|
|
2405
1988
|
}
|
|
@@ -2451,11 +2034,10 @@ class ZodObject extends ZodType {
|
|
|
2451
2034
|
...(message !== undefined
|
|
2452
2035
|
? {
|
|
2453
2036
|
errorMap: (issue, ctx) => {
|
|
2454
|
-
|
|
2455
|
-
const defaultError = (_c = (_b = (_a = this._def).errorMap) === null || _b === void 0 ? void 0 : _b.call(_a, issue, ctx).message) !== null && _c !== void 0 ? _c : ctx.defaultError;
|
|
2037
|
+
const defaultError = this._def.errorMap?.(issue, ctx).message ?? ctx.defaultError;
|
|
2456
2038
|
if (issue.code === "unrecognized_keys")
|
|
2457
2039
|
return {
|
|
2458
|
-
message:
|
|
2040
|
+
message: errorUtil.errToObj(message).message ?? defaultError,
|
|
2459
2041
|
};
|
|
2460
2042
|
return {
|
|
2461
2043
|
message: defaultError,
|
|
@@ -2587,11 +2169,11 @@ class ZodObject extends ZodType {
|
|
|
2587
2169
|
}
|
|
2588
2170
|
pick(mask) {
|
|
2589
2171
|
const shape = {};
|
|
2590
|
-
util.objectKeys(mask)
|
|
2172
|
+
for (const key of util.objectKeys(mask)) {
|
|
2591
2173
|
if (mask[key] && this.shape[key]) {
|
|
2592
2174
|
shape[key] = this.shape[key];
|
|
2593
2175
|
}
|
|
2594
|
-
}
|
|
2176
|
+
}
|
|
2595
2177
|
return new ZodObject({
|
|
2596
2178
|
...this._def,
|
|
2597
2179
|
shape: () => shape,
|
|
@@ -2599,11 +2181,11 @@ class ZodObject extends ZodType {
|
|
|
2599
2181
|
}
|
|
2600
2182
|
omit(mask) {
|
|
2601
2183
|
const shape = {};
|
|
2602
|
-
util.objectKeys(this.shape)
|
|
2184
|
+
for (const key of util.objectKeys(this.shape)) {
|
|
2603
2185
|
if (!mask[key]) {
|
|
2604
2186
|
shape[key] = this.shape[key];
|
|
2605
2187
|
}
|
|
2606
|
-
}
|
|
2188
|
+
}
|
|
2607
2189
|
return new ZodObject({
|
|
2608
2190
|
...this._def,
|
|
2609
2191
|
shape: () => shape,
|
|
@@ -2617,7 +2199,7 @@ class ZodObject extends ZodType {
|
|
|
2617
2199
|
}
|
|
2618
2200
|
partial(mask) {
|
|
2619
2201
|
const newShape = {};
|
|
2620
|
-
util.objectKeys(this.shape)
|
|
2202
|
+
for (const key of util.objectKeys(this.shape)) {
|
|
2621
2203
|
const fieldSchema = this.shape[key];
|
|
2622
2204
|
if (mask && !mask[key]) {
|
|
2623
2205
|
newShape[key] = fieldSchema;
|
|
@@ -2625,7 +2207,7 @@ class ZodObject extends ZodType {
|
|
|
2625
2207
|
else {
|
|
2626
2208
|
newShape[key] = fieldSchema.optional();
|
|
2627
2209
|
}
|
|
2628
|
-
}
|
|
2210
|
+
}
|
|
2629
2211
|
return new ZodObject({
|
|
2630
2212
|
...this._def,
|
|
2631
2213
|
shape: () => newShape,
|
|
@@ -2633,7 +2215,7 @@ class ZodObject extends ZodType {
|
|
|
2633
2215
|
}
|
|
2634
2216
|
required(mask) {
|
|
2635
2217
|
const newShape = {};
|
|
2636
|
-
util.objectKeys(this.shape)
|
|
2218
|
+
for (const key of util.objectKeys(this.shape)) {
|
|
2637
2219
|
if (mask && !mask[key]) {
|
|
2638
2220
|
newShape[key] = this.shape[key];
|
|
2639
2221
|
}
|
|
@@ -2645,7 +2227,7 @@ class ZodObject extends ZodType {
|
|
|
2645
2227
|
}
|
|
2646
2228
|
newShape[key] = newField;
|
|
2647
2229
|
}
|
|
2648
|
-
}
|
|
2230
|
+
}
|
|
2649
2231
|
return new ZodObject({
|
|
2650
2232
|
...this._def,
|
|
2651
2233
|
shape: () => newShape,
|
|
@@ -2682,7 +2264,7 @@ ZodObject.lazycreate = (shape, params) => {
|
|
|
2682
2264
|
...processCreateParams(params),
|
|
2683
2265
|
});
|
|
2684
2266
|
};
|
|
2685
|
-
class ZodUnion extends ZodType {
|
|
2267
|
+
export class ZodUnion extends ZodType {
|
|
2686
2268
|
_parse(input) {
|
|
2687
2269
|
const { ctx } = this._processInputParams(input);
|
|
2688
2270
|
const options = this._def.options;
|
|
@@ -2830,7 +2412,7 @@ const getDiscriminator = (type) => {
|
|
|
2830
2412
|
return [];
|
|
2831
2413
|
}
|
|
2832
2414
|
};
|
|
2833
|
-
class ZodDiscriminatedUnion extends ZodType {
|
|
2415
|
+
export class ZodDiscriminatedUnion extends ZodType {
|
|
2834
2416
|
_parse(input) {
|
|
2835
2417
|
const { ctx } = this._processInputParams(input);
|
|
2836
2418
|
if (ctx.parsedType !== ZodParsedType.object) {
|
|
@@ -2917,9 +2499,7 @@ function mergeValues(a, b) {
|
|
|
2917
2499
|
}
|
|
2918
2500
|
else if (aType === ZodParsedType.object && bType === ZodParsedType.object) {
|
|
2919
2501
|
const bKeys = util.objectKeys(b);
|
|
2920
|
-
const sharedKeys = util
|
|
2921
|
-
.objectKeys(a)
|
|
2922
|
-
.filter((key) => bKeys.indexOf(key) !== -1);
|
|
2502
|
+
const sharedKeys = util.objectKeys(a).filter((key) => bKeys.indexOf(key) !== -1);
|
|
2923
2503
|
const newObj = { ...a, ...b };
|
|
2924
2504
|
for (const key of sharedKeys) {
|
|
2925
2505
|
const sharedValue = mergeValues(a[key], b[key]);
|
|
@@ -2946,16 +2526,14 @@ function mergeValues(a, b) {
|
|
|
2946
2526
|
}
|
|
2947
2527
|
return { valid: true, data: newArray };
|
|
2948
2528
|
}
|
|
2949
|
-
else if (aType === ZodParsedType.date &&
|
|
2950
|
-
bType === ZodParsedType.date &&
|
|
2951
|
-
+a === +b) {
|
|
2529
|
+
else if (aType === ZodParsedType.date && bType === ZodParsedType.date && +a === +b) {
|
|
2952
2530
|
return { valid: true, data: a };
|
|
2953
2531
|
}
|
|
2954
2532
|
else {
|
|
2955
2533
|
return { valid: false };
|
|
2956
2534
|
}
|
|
2957
2535
|
}
|
|
2958
|
-
class ZodIntersection extends ZodType {
|
|
2536
|
+
export class ZodIntersection extends ZodType {
|
|
2959
2537
|
_parse(input) {
|
|
2960
2538
|
const { status, ctx } = this._processInputParams(input);
|
|
2961
2539
|
const handleParsed = (parsedLeft, parsedRight) => {
|
|
@@ -3009,7 +2587,8 @@ ZodIntersection.create = (left, right, params) => {
|
|
|
3009
2587
|
...processCreateParams(params),
|
|
3010
2588
|
});
|
|
3011
2589
|
};
|
|
3012
|
-
|
|
2590
|
+
// type ZodTupleItems = [ZodTypeAny, ...ZodTypeAny[]];
|
|
2591
|
+
export class ZodTuple extends ZodType {
|
|
3013
2592
|
_parse(input) {
|
|
3014
2593
|
const { status, ctx } = this._processInputParams(input);
|
|
3015
2594
|
if (ctx.parsedType !== ZodParsedType.array) {
|
|
@@ -3079,7 +2658,7 @@ ZodTuple.create = (schemas, params) => {
|
|
|
3079
2658
|
...processCreateParams(params),
|
|
3080
2659
|
});
|
|
3081
2660
|
};
|
|
3082
|
-
class ZodRecord extends ZodType {
|
|
2661
|
+
export class ZodRecord extends ZodType {
|
|
3083
2662
|
get keySchema() {
|
|
3084
2663
|
return this._def.keyType;
|
|
3085
2664
|
}
|
|
@@ -3133,7 +2712,7 @@ class ZodRecord extends ZodType {
|
|
|
3133
2712
|
});
|
|
3134
2713
|
}
|
|
3135
2714
|
}
|
|
3136
|
-
class ZodMap extends ZodType {
|
|
2715
|
+
export class ZodMap extends ZodType {
|
|
3137
2716
|
get keySchema() {
|
|
3138
2717
|
return this._def.keyType;
|
|
3139
2718
|
}
|
|
@@ -3200,7 +2779,7 @@ ZodMap.create = (keyType, valueType, params) => {
|
|
|
3200
2779
|
...processCreateParams(params),
|
|
3201
2780
|
});
|
|
3202
2781
|
};
|
|
3203
|
-
class ZodSet extends ZodType {
|
|
2782
|
+
export class ZodSet extends ZodType {
|
|
3204
2783
|
_parse(input) {
|
|
3205
2784
|
const { status, ctx } = this._processInputParams(input);
|
|
3206
2785
|
if (ctx.parsedType !== ZodParsedType.set) {
|
|
@@ -3286,7 +2865,7 @@ ZodSet.create = (valueType, params) => {
|
|
|
3286
2865
|
...processCreateParams(params),
|
|
3287
2866
|
});
|
|
3288
2867
|
};
|
|
3289
|
-
class ZodFunction extends ZodType {
|
|
2868
|
+
export class ZodFunction extends ZodType {
|
|
3290
2869
|
constructor() {
|
|
3291
2870
|
super(...arguments);
|
|
3292
2871
|
this.validate = this.implement;
|
|
@@ -3305,12 +2884,7 @@ class ZodFunction extends ZodType {
|
|
|
3305
2884
|
return makeIssue({
|
|
3306
2885
|
data: args,
|
|
3307
2886
|
path: ctx.path,
|
|
3308
|
-
errorMaps: [
|
|
3309
|
-
ctx.common.contextualErrorMap,
|
|
3310
|
-
ctx.schemaErrorMap,
|
|
3311
|
-
getErrorMap(),
|
|
3312
|
-
errorMap,
|
|
3313
|
-
].filter((x) => !!x),
|
|
2887
|
+
errorMaps: [ctx.common.contextualErrorMap, ctx.schemaErrorMap, getErrorMap(), defaultErrorMap].filter((x) => !!x),
|
|
3314
2888
|
issueData: {
|
|
3315
2889
|
code: ZodIssueCode.invalid_arguments,
|
|
3316
2890
|
argumentsError: error,
|
|
@@ -3321,12 +2895,7 @@ class ZodFunction extends ZodType {
|
|
|
3321
2895
|
return makeIssue({
|
|
3322
2896
|
data: returns,
|
|
3323
2897
|
path: ctx.path,
|
|
3324
|
-
errorMaps: [
|
|
3325
|
-
ctx.common.contextualErrorMap,
|
|
3326
|
-
ctx.schemaErrorMap,
|
|
3327
|
-
getErrorMap(),
|
|
3328
|
-
errorMap,
|
|
3329
|
-
].filter((x) => !!x),
|
|
2898
|
+
errorMaps: [ctx.common.contextualErrorMap, ctx.schemaErrorMap, getErrorMap(), defaultErrorMap].filter((x) => !!x),
|
|
3330
2899
|
issueData: {
|
|
3331
2900
|
code: ZodIssueCode.invalid_return_type,
|
|
3332
2901
|
returnTypeError: error,
|
|
@@ -3342,9 +2911,7 @@ class ZodFunction extends ZodType {
|
|
|
3342
2911
|
const me = this;
|
|
3343
2912
|
return OK(async function (...args) {
|
|
3344
2913
|
const error = new ZodError([]);
|
|
3345
|
-
const parsedArgs = await me._def.args
|
|
3346
|
-
.parseAsync(args, params)
|
|
3347
|
-
.catch((e) => {
|
|
2914
|
+
const parsedArgs = await me._def.args.parseAsync(args, params).catch((e) => {
|
|
3348
2915
|
error.addIssue(makeArgsIssue(args, e));
|
|
3349
2916
|
throw error;
|
|
3350
2917
|
});
|
|
@@ -3405,16 +2972,14 @@ class ZodFunction extends ZodType {
|
|
|
3405
2972
|
}
|
|
3406
2973
|
static create(args, returns, params) {
|
|
3407
2974
|
return new ZodFunction({
|
|
3408
|
-
args: (args
|
|
3409
|
-
? args
|
|
3410
|
-
: ZodTuple.create([]).rest(ZodUnknown.create())),
|
|
2975
|
+
args: (args ? args : ZodTuple.create([]).rest(ZodUnknown.create())),
|
|
3411
2976
|
returns: returns || ZodUnknown.create(),
|
|
3412
2977
|
typeName: ZodFirstPartyTypeKind.ZodFunction,
|
|
3413
2978
|
...processCreateParams(params),
|
|
3414
2979
|
});
|
|
3415
2980
|
}
|
|
3416
2981
|
}
|
|
3417
|
-
class ZodLazy extends ZodType {
|
|
2982
|
+
export class ZodLazy extends ZodType {
|
|
3418
2983
|
get schema() {
|
|
3419
2984
|
return this._def.getter();
|
|
3420
2985
|
}
|
|
@@ -3431,7 +2996,7 @@ ZodLazy.create = (getter, params) => {
|
|
|
3431
2996
|
...processCreateParams(params),
|
|
3432
2997
|
});
|
|
3433
2998
|
};
|
|
3434
|
-
class ZodLiteral extends ZodType {
|
|
2999
|
+
export class ZodLiteral extends ZodType {
|
|
3435
3000
|
_parse(input) {
|
|
3436
3001
|
if (input.data !== this._def.value) {
|
|
3437
3002
|
const ctx = this._getOrReturnCtx(input);
|
|
@@ -3462,11 +3027,7 @@ function createZodEnum(values, params) {
|
|
|
3462
3027
|
...processCreateParams(params),
|
|
3463
3028
|
});
|
|
3464
3029
|
}
|
|
3465
|
-
class ZodEnum extends ZodType {
|
|
3466
|
-
constructor() {
|
|
3467
|
-
super(...arguments);
|
|
3468
|
-
_ZodEnum_cache.set(this, void 0);
|
|
3469
|
-
}
|
|
3030
|
+
export class ZodEnum extends ZodType {
|
|
3470
3031
|
_parse(input) {
|
|
3471
3032
|
if (typeof input.data !== "string") {
|
|
3472
3033
|
const ctx = this._getOrReturnCtx(input);
|
|
@@ -3478,10 +3039,10 @@ class ZodEnum extends ZodType {
|
|
|
3478
3039
|
});
|
|
3479
3040
|
return INVALID;
|
|
3480
3041
|
}
|
|
3481
|
-
if (!
|
|
3482
|
-
|
|
3042
|
+
if (!this._cache) {
|
|
3043
|
+
this._cache = new Set(this._def.values);
|
|
3483
3044
|
}
|
|
3484
|
-
if (!
|
|
3045
|
+
if (!this._cache.has(input.data)) {
|
|
3485
3046
|
const ctx = this._getOrReturnCtx(input);
|
|
3486
3047
|
const expectedValues = this._def.values;
|
|
3487
3048
|
addIssueToContext(ctx, {
|
|
@@ -3530,18 +3091,12 @@ class ZodEnum extends ZodType {
|
|
|
3530
3091
|
});
|
|
3531
3092
|
}
|
|
3532
3093
|
}
|
|
3533
|
-
_ZodEnum_cache = new WeakMap();
|
|
3534
3094
|
ZodEnum.create = createZodEnum;
|
|
3535
|
-
class ZodNativeEnum extends ZodType {
|
|
3536
|
-
constructor() {
|
|
3537
|
-
super(...arguments);
|
|
3538
|
-
_ZodNativeEnum_cache.set(this, void 0);
|
|
3539
|
-
}
|
|
3095
|
+
export class ZodNativeEnum extends ZodType {
|
|
3540
3096
|
_parse(input) {
|
|
3541
3097
|
const nativeEnumValues = util.getValidEnumValues(this._def.values);
|
|
3542
3098
|
const ctx = this._getOrReturnCtx(input);
|
|
3543
|
-
if (ctx.parsedType !== ZodParsedType.string &&
|
|
3544
|
-
ctx.parsedType !== ZodParsedType.number) {
|
|
3099
|
+
if (ctx.parsedType !== ZodParsedType.string && ctx.parsedType !== ZodParsedType.number) {
|
|
3545
3100
|
const expectedValues = util.objectValues(nativeEnumValues);
|
|
3546
3101
|
addIssueToContext(ctx, {
|
|
3547
3102
|
expected: util.joinValues(expectedValues),
|
|
@@ -3550,10 +3105,10 @@ class ZodNativeEnum extends ZodType {
|
|
|
3550
3105
|
});
|
|
3551
3106
|
return INVALID;
|
|
3552
3107
|
}
|
|
3553
|
-
if (!
|
|
3554
|
-
|
|
3108
|
+
if (!this._cache) {
|
|
3109
|
+
this._cache = new Set(util.getValidEnumValues(this._def.values));
|
|
3555
3110
|
}
|
|
3556
|
-
if (!
|
|
3111
|
+
if (!this._cache.has(input.data)) {
|
|
3557
3112
|
const expectedValues = util.objectValues(nativeEnumValues);
|
|
3558
3113
|
addIssueToContext(ctx, {
|
|
3559
3114
|
received: ctx.data,
|
|
@@ -3568,7 +3123,6 @@ class ZodNativeEnum extends ZodType {
|
|
|
3568
3123
|
return this._def.values;
|
|
3569
3124
|
}
|
|
3570
3125
|
}
|
|
3571
|
-
_ZodNativeEnum_cache = new WeakMap();
|
|
3572
3126
|
ZodNativeEnum.create = (values, params) => {
|
|
3573
3127
|
return new ZodNativeEnum({
|
|
3574
3128
|
values: values,
|
|
@@ -3576,14 +3130,13 @@ ZodNativeEnum.create = (values, params) => {
|
|
|
3576
3130
|
...processCreateParams(params),
|
|
3577
3131
|
});
|
|
3578
3132
|
};
|
|
3579
|
-
class ZodPromise extends ZodType {
|
|
3133
|
+
export class ZodPromise extends ZodType {
|
|
3580
3134
|
unwrap() {
|
|
3581
3135
|
return this._def.type;
|
|
3582
3136
|
}
|
|
3583
3137
|
_parse(input) {
|
|
3584
3138
|
const { ctx } = this._processInputParams(input);
|
|
3585
|
-
if (ctx.parsedType !== ZodParsedType.promise &&
|
|
3586
|
-
ctx.common.async === false) {
|
|
3139
|
+
if (ctx.parsedType !== ZodParsedType.promise && ctx.common.async === false) {
|
|
3587
3140
|
addIssueToContext(ctx, {
|
|
3588
3141
|
code: ZodIssueCode.invalid_type,
|
|
3589
3142
|
expected: ZodParsedType.promise,
|
|
@@ -3591,9 +3144,7 @@ class ZodPromise extends ZodType {
|
|
|
3591
3144
|
});
|
|
3592
3145
|
return INVALID;
|
|
3593
3146
|
}
|
|
3594
|
-
const promisified = ctx.parsedType === ZodParsedType.promise
|
|
3595
|
-
? ctx.data
|
|
3596
|
-
: Promise.resolve(ctx.data);
|
|
3147
|
+
const promisified = ctx.parsedType === ZodParsedType.promise ? ctx.data : Promise.resolve(ctx.data);
|
|
3597
3148
|
return OK(promisified.then((data) => {
|
|
3598
3149
|
return this._def.type.parseAsync(data, {
|
|
3599
3150
|
path: ctx.path,
|
|
@@ -3609,7 +3160,7 @@ ZodPromise.create = (schema, params) => {
|
|
|
3609
3160
|
...processCreateParams(params),
|
|
3610
3161
|
});
|
|
3611
3162
|
};
|
|
3612
|
-
class ZodEffects extends ZodType {
|
|
3163
|
+
export class ZodEffects extends ZodType {
|
|
3613
3164
|
innerType() {
|
|
3614
3165
|
return this._def.schema;
|
|
3615
3166
|
}
|
|
@@ -3699,9 +3250,7 @@ class ZodEffects extends ZodType {
|
|
|
3699
3250
|
return { status: status.value, value: inner.value };
|
|
3700
3251
|
}
|
|
3701
3252
|
else {
|
|
3702
|
-
return this._def.schema
|
|
3703
|
-
._parseAsync({ data: ctx.data, path: ctx.path, parent: ctx })
|
|
3704
|
-
.then((inner) => {
|
|
3253
|
+
return this._def.schema._parseAsync({ data: ctx.data, path: ctx.path, parent: ctx }).then((inner) => {
|
|
3705
3254
|
if (inner.status === "aborted")
|
|
3706
3255
|
return INVALID;
|
|
3707
3256
|
if (inner.status === "dirty")
|
|
@@ -3720,7 +3269,7 @@ class ZodEffects extends ZodType {
|
|
|
3720
3269
|
parent: ctx,
|
|
3721
3270
|
});
|
|
3722
3271
|
if (!isValid(base))
|
|
3723
|
-
return
|
|
3272
|
+
return INVALID;
|
|
3724
3273
|
const result = effect.transform(base.value, checkCtx);
|
|
3725
3274
|
if (result instanceof Promise) {
|
|
3726
3275
|
throw new Error(`Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.`);
|
|
@@ -3728,12 +3277,13 @@ class ZodEffects extends ZodType {
|
|
|
3728
3277
|
return { status: status.value, value: result };
|
|
3729
3278
|
}
|
|
3730
3279
|
else {
|
|
3731
|
-
return this._def.schema
|
|
3732
|
-
._parseAsync({ data: ctx.data, path: ctx.path, parent: ctx })
|
|
3733
|
-
.then((base) => {
|
|
3280
|
+
return this._def.schema._parseAsync({ data: ctx.data, path: ctx.path, parent: ctx }).then((base) => {
|
|
3734
3281
|
if (!isValid(base))
|
|
3735
|
-
return
|
|
3736
|
-
return Promise.resolve(effect.transform(base.value, checkCtx)).then((result) => ({
|
|
3282
|
+
return INVALID;
|
|
3283
|
+
return Promise.resolve(effect.transform(base.value, checkCtx)).then((result) => ({
|
|
3284
|
+
status: status.value,
|
|
3285
|
+
value: result,
|
|
3286
|
+
}));
|
|
3737
3287
|
});
|
|
3738
3288
|
}
|
|
3739
3289
|
}
|
|
@@ -3756,7 +3306,8 @@ ZodEffects.createWithPreprocess = (preprocess, schema, params) => {
|
|
|
3756
3306
|
...processCreateParams(params),
|
|
3757
3307
|
});
|
|
3758
3308
|
};
|
|
3759
|
-
|
|
3309
|
+
export { ZodEffects as ZodTransformer };
|
|
3310
|
+
export class ZodOptional extends ZodType {
|
|
3760
3311
|
_parse(input) {
|
|
3761
3312
|
const parsedType = this._getType(input);
|
|
3762
3313
|
if (parsedType === ZodParsedType.undefined) {
|
|
@@ -3775,7 +3326,7 @@ ZodOptional.create = (type, params) => {
|
|
|
3775
3326
|
...processCreateParams(params),
|
|
3776
3327
|
});
|
|
3777
3328
|
};
|
|
3778
|
-
class ZodNullable extends ZodType {
|
|
3329
|
+
export class ZodNullable extends ZodType {
|
|
3779
3330
|
_parse(input) {
|
|
3780
3331
|
const parsedType = this._getType(input);
|
|
3781
3332
|
if (parsedType === ZodParsedType.null) {
|
|
@@ -3794,7 +3345,7 @@ ZodNullable.create = (type, params) => {
|
|
|
3794
3345
|
...processCreateParams(params),
|
|
3795
3346
|
});
|
|
3796
3347
|
};
|
|
3797
|
-
class ZodDefault extends ZodType {
|
|
3348
|
+
export class ZodDefault extends ZodType {
|
|
3798
3349
|
_parse(input) {
|
|
3799
3350
|
const { ctx } = this._processInputParams(input);
|
|
3800
3351
|
let data = ctx.data;
|
|
@@ -3815,13 +3366,11 @@ ZodDefault.create = (type, params) => {
|
|
|
3815
3366
|
return new ZodDefault({
|
|
3816
3367
|
innerType: type,
|
|
3817
3368
|
typeName: ZodFirstPartyTypeKind.ZodDefault,
|
|
3818
|
-
defaultValue: typeof params.default === "function"
|
|
3819
|
-
? params.default
|
|
3820
|
-
: () => params.default,
|
|
3369
|
+
defaultValue: typeof params.default === "function" ? params.default : () => params.default,
|
|
3821
3370
|
...processCreateParams(params),
|
|
3822
3371
|
});
|
|
3823
3372
|
};
|
|
3824
|
-
class ZodCatch extends ZodType {
|
|
3373
|
+
export class ZodCatch extends ZodType {
|
|
3825
3374
|
_parse(input) {
|
|
3826
3375
|
const { ctx } = this._processInputParams(input);
|
|
3827
3376
|
// newCtx is used to not collect issues from inner types in ctx
|
|
@@ -3880,7 +3429,7 @@ ZodCatch.create = (type, params) => {
|
|
|
3880
3429
|
...processCreateParams(params),
|
|
3881
3430
|
});
|
|
3882
3431
|
};
|
|
3883
|
-
class ZodNaN extends ZodType {
|
|
3432
|
+
export class ZodNaN extends ZodType {
|
|
3884
3433
|
_parse(input) {
|
|
3885
3434
|
const parsedType = this._getType(input);
|
|
3886
3435
|
if (parsedType !== ZodParsedType.nan) {
|
|
@@ -3901,8 +3450,8 @@ ZodNaN.create = (params) => {
|
|
|
3901
3450
|
...processCreateParams(params),
|
|
3902
3451
|
});
|
|
3903
3452
|
};
|
|
3904
|
-
const BRAND = Symbol("zod_brand");
|
|
3905
|
-
class ZodBranded extends ZodType {
|
|
3453
|
+
export const BRAND = Symbol("zod_brand");
|
|
3454
|
+
export class ZodBranded extends ZodType {
|
|
3906
3455
|
_parse(input) {
|
|
3907
3456
|
const { ctx } = this._processInputParams(input);
|
|
3908
3457
|
const data = ctx.data;
|
|
@@ -3916,7 +3465,7 @@ class ZodBranded extends ZodType {
|
|
|
3916
3465
|
return this._def.type;
|
|
3917
3466
|
}
|
|
3918
3467
|
}
|
|
3919
|
-
class ZodPipeline extends ZodType {
|
|
3468
|
+
export class ZodPipeline extends ZodType {
|
|
3920
3469
|
_parse(input) {
|
|
3921
3470
|
const { status, ctx } = this._processInputParams(input);
|
|
3922
3471
|
if (ctx.common.async) {
|
|
@@ -3974,7 +3523,7 @@ class ZodPipeline extends ZodType {
|
|
|
3974
3523
|
});
|
|
3975
3524
|
}
|
|
3976
3525
|
}
|
|
3977
|
-
class ZodReadonly extends ZodType {
|
|
3526
|
+
export class ZodReadonly extends ZodType {
|
|
3978
3527
|
_parse(input) {
|
|
3979
3528
|
const result = this._def.innerType._parse(input);
|
|
3980
3529
|
const freeze = (data) => {
|
|
@@ -3983,9 +3532,7 @@ class ZodReadonly extends ZodType {
|
|
|
3983
3532
|
}
|
|
3984
3533
|
return data;
|
|
3985
3534
|
};
|
|
3986
|
-
return isAsync(result)
|
|
3987
|
-
? result.then((data) => freeze(data))
|
|
3988
|
-
: freeze(result);
|
|
3535
|
+
return isAsync(result) ? result.then((data) => freeze(data)) : freeze(result);
|
|
3989
3536
|
}
|
|
3990
3537
|
unwrap() {
|
|
3991
3538
|
return this._def.innerType;
|
|
@@ -3998,7 +3545,19 @@ ZodReadonly.create = (type, params) => {
|
|
|
3998
3545
|
...processCreateParams(params),
|
|
3999
3546
|
});
|
|
4000
3547
|
};
|
|
4001
|
-
|
|
3548
|
+
////////////////////////////////////////
|
|
3549
|
+
////////////////////////////////////////
|
|
3550
|
+
////////// //////////
|
|
3551
|
+
////////// z.custom //////////
|
|
3552
|
+
////////// //////////
|
|
3553
|
+
////////////////////////////////////////
|
|
3554
|
+
////////////////////////////////////////
|
|
3555
|
+
function cleanParams(params, data) {
|
|
3556
|
+
const p = typeof params === "function" ? params(data) : typeof params === "string" ? { message: params } : params;
|
|
3557
|
+
const p2 = typeof p === "string" ? { message: p } : p;
|
|
3558
|
+
return p2;
|
|
3559
|
+
}
|
|
3560
|
+
export function custom(check, _params = {},
|
|
4002
3561
|
/**
|
|
4003
3562
|
* @deprecated
|
|
4004
3563
|
*
|
|
@@ -4012,24 +3571,30 @@ function custom(check, params = {},
|
|
|
4012
3571
|
fatal) {
|
|
4013
3572
|
if (check)
|
|
4014
3573
|
return ZodAny.create().superRefine((data, ctx) => {
|
|
4015
|
-
|
|
4016
|
-
if (
|
|
4017
|
-
|
|
4018
|
-
|
|
4019
|
-
|
|
4020
|
-
|
|
4021
|
-
: params;
|
|
4022
|
-
|
|
4023
|
-
|
|
4024
|
-
ctx.addIssue({ code: "custom", ...p2, fatal: _fatal });
|
|
3574
|
+
const r = check(data);
|
|
3575
|
+
if (r instanceof Promise) {
|
|
3576
|
+
return r.then((r) => {
|
|
3577
|
+
if (!r) {
|
|
3578
|
+
const params = cleanParams(_params, data);
|
|
3579
|
+
const _fatal = params.fatal ?? fatal ?? true;
|
|
3580
|
+
ctx.addIssue({ code: "custom", ...params, fatal: _fatal });
|
|
3581
|
+
}
|
|
3582
|
+
});
|
|
4025
3583
|
}
|
|
3584
|
+
if (!r) {
|
|
3585
|
+
const params = cleanParams(_params, data);
|
|
3586
|
+
const _fatal = params.fatal ?? fatal ?? true;
|
|
3587
|
+
ctx.addIssue({ code: "custom", ...params, fatal: _fatal });
|
|
3588
|
+
}
|
|
3589
|
+
return;
|
|
4026
3590
|
});
|
|
4027
3591
|
return ZodAny.create();
|
|
4028
3592
|
}
|
|
4029
|
-
|
|
3593
|
+
export { ZodType as Schema, ZodType as ZodSchema };
|
|
3594
|
+
export const late = {
|
|
4030
3595
|
object: ZodObject.lazycreate,
|
|
4031
3596
|
};
|
|
4032
|
-
var ZodFirstPartyTypeKind;
|
|
3597
|
+
export var ZodFirstPartyTypeKind;
|
|
4033
3598
|
(function (ZodFirstPartyTypeKind) {
|
|
4034
3599
|
ZodFirstPartyTypeKind["ZodString"] = "ZodString";
|
|
4035
3600
|
ZodFirstPartyTypeKind["ZodNumber"] = "ZodNumber";
|
|
@@ -4068,6 +3633,10 @@ var ZodFirstPartyTypeKind;
|
|
|
4068
3633
|
ZodFirstPartyTypeKind["ZodPipeline"] = "ZodPipeline";
|
|
4069
3634
|
ZodFirstPartyTypeKind["ZodReadonly"] = "ZodReadonly";
|
|
4070
3635
|
})(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
|
|
3636
|
+
// requires TS 4.4+
|
|
3637
|
+
class Class {
|
|
3638
|
+
constructor(..._) { }
|
|
3639
|
+
}
|
|
4071
3640
|
const instanceOfType = (
|
|
4072
3641
|
// const instanceOfType = <T extends new (...args: any[]) => any>(
|
|
4073
3642
|
cls, params = {
|
|
@@ -4110,7 +3679,7 @@ const pipelineType = ZodPipeline.create;
|
|
|
4110
3679
|
const ostring = () => stringType().optional();
|
|
4111
3680
|
const onumber = () => numberType().optional();
|
|
4112
3681
|
const oboolean = () => booleanType().optional();
|
|
4113
|
-
const coerce = {
|
|
3682
|
+
export const coerce = {
|
|
4114
3683
|
string: ((arg) => ZodString.create({ ...arg, coerce: true })),
|
|
4115
3684
|
number: ((arg) => ZodNumber.create({ ...arg, coerce: true })),
|
|
4116
3685
|
boolean: ((arg) => ZodBoolean.create({
|
|
@@ -4120,117 +3689,5 @@ const coerce = {
|
|
|
4120
3689
|
bigint: ((arg) => ZodBigInt.create({ ...arg, coerce: true })),
|
|
4121
3690
|
date: ((arg) => ZodDate.create({ ...arg, coerce: true })),
|
|
4122
3691
|
};
|
|
4123
|
-
|
|
4124
|
-
|
|
4125
|
-
var z = /*#__PURE__*/Object.freeze({
|
|
4126
|
-
__proto__: null,
|
|
4127
|
-
defaultErrorMap: errorMap,
|
|
4128
|
-
setErrorMap: setErrorMap,
|
|
4129
|
-
getErrorMap: getErrorMap,
|
|
4130
|
-
makeIssue: makeIssue,
|
|
4131
|
-
EMPTY_PATH: EMPTY_PATH,
|
|
4132
|
-
addIssueToContext: addIssueToContext,
|
|
4133
|
-
ParseStatus: ParseStatus,
|
|
4134
|
-
INVALID: INVALID,
|
|
4135
|
-
DIRTY: DIRTY,
|
|
4136
|
-
OK: OK,
|
|
4137
|
-
isAborted: isAborted,
|
|
4138
|
-
isDirty: isDirty,
|
|
4139
|
-
isValid: isValid,
|
|
4140
|
-
isAsync: isAsync,
|
|
4141
|
-
get util () { return util; },
|
|
4142
|
-
get objectUtil () { return objectUtil; },
|
|
4143
|
-
ZodParsedType: ZodParsedType,
|
|
4144
|
-
getParsedType: getParsedType,
|
|
4145
|
-
ZodType: ZodType,
|
|
4146
|
-
datetimeRegex: datetimeRegex,
|
|
4147
|
-
ZodString: ZodString,
|
|
4148
|
-
ZodNumber: ZodNumber,
|
|
4149
|
-
ZodBigInt: ZodBigInt,
|
|
4150
|
-
ZodBoolean: ZodBoolean,
|
|
4151
|
-
ZodDate: ZodDate,
|
|
4152
|
-
ZodSymbol: ZodSymbol,
|
|
4153
|
-
ZodUndefined: ZodUndefined,
|
|
4154
|
-
ZodNull: ZodNull,
|
|
4155
|
-
ZodAny: ZodAny,
|
|
4156
|
-
ZodUnknown: ZodUnknown,
|
|
4157
|
-
ZodNever: ZodNever,
|
|
4158
|
-
ZodVoid: ZodVoid,
|
|
4159
|
-
ZodArray: ZodArray,
|
|
4160
|
-
ZodObject: ZodObject,
|
|
4161
|
-
ZodUnion: ZodUnion,
|
|
4162
|
-
ZodDiscriminatedUnion: ZodDiscriminatedUnion,
|
|
4163
|
-
ZodIntersection: ZodIntersection,
|
|
4164
|
-
ZodTuple: ZodTuple,
|
|
4165
|
-
ZodRecord: ZodRecord,
|
|
4166
|
-
ZodMap: ZodMap,
|
|
4167
|
-
ZodSet: ZodSet,
|
|
4168
|
-
ZodFunction: ZodFunction,
|
|
4169
|
-
ZodLazy: ZodLazy,
|
|
4170
|
-
ZodLiteral: ZodLiteral,
|
|
4171
|
-
ZodEnum: ZodEnum,
|
|
4172
|
-
ZodNativeEnum: ZodNativeEnum,
|
|
4173
|
-
ZodPromise: ZodPromise,
|
|
4174
|
-
ZodEffects: ZodEffects,
|
|
4175
|
-
ZodTransformer: ZodEffects,
|
|
4176
|
-
ZodOptional: ZodOptional,
|
|
4177
|
-
ZodNullable: ZodNullable,
|
|
4178
|
-
ZodDefault: ZodDefault,
|
|
4179
|
-
ZodCatch: ZodCatch,
|
|
4180
|
-
ZodNaN: ZodNaN,
|
|
4181
|
-
BRAND: BRAND,
|
|
4182
|
-
ZodBranded: ZodBranded,
|
|
4183
|
-
ZodPipeline: ZodPipeline,
|
|
4184
|
-
ZodReadonly: ZodReadonly,
|
|
4185
|
-
custom: custom,
|
|
4186
|
-
Schema: ZodType,
|
|
4187
|
-
ZodSchema: ZodType,
|
|
4188
|
-
late: late,
|
|
4189
|
-
get ZodFirstPartyTypeKind () { return ZodFirstPartyTypeKind; },
|
|
4190
|
-
coerce: coerce,
|
|
4191
|
-
any: anyType,
|
|
4192
|
-
array: arrayType,
|
|
4193
|
-
bigint: bigIntType,
|
|
4194
|
-
boolean: booleanType,
|
|
4195
|
-
date: dateType,
|
|
4196
|
-
discriminatedUnion: discriminatedUnionType,
|
|
4197
|
-
effect: effectsType,
|
|
4198
|
-
'enum': enumType,
|
|
4199
|
-
'function': functionType,
|
|
4200
|
-
'instanceof': instanceOfType,
|
|
4201
|
-
intersection: intersectionType,
|
|
4202
|
-
lazy: lazyType,
|
|
4203
|
-
literal: literalType,
|
|
4204
|
-
map: mapType,
|
|
4205
|
-
nan: nanType,
|
|
4206
|
-
nativeEnum: nativeEnumType,
|
|
4207
|
-
never: neverType,
|
|
4208
|
-
'null': nullType,
|
|
4209
|
-
nullable: nullableType,
|
|
4210
|
-
number: numberType,
|
|
4211
|
-
object: objectType,
|
|
4212
|
-
oboolean: oboolean,
|
|
4213
|
-
onumber: onumber,
|
|
4214
|
-
optional: optionalType,
|
|
4215
|
-
ostring: ostring,
|
|
4216
|
-
pipeline: pipelineType,
|
|
4217
|
-
preprocess: preprocessType,
|
|
4218
|
-
promise: promiseType,
|
|
4219
|
-
record: recordType,
|
|
4220
|
-
set: setType,
|
|
4221
|
-
strictObject: strictObjectType,
|
|
4222
|
-
string: stringType,
|
|
4223
|
-
symbol: symbolType,
|
|
4224
|
-
transformer: effectsType,
|
|
4225
|
-
tuple: tupleType,
|
|
4226
|
-
'undefined': undefinedType,
|
|
4227
|
-
union: unionType,
|
|
4228
|
-
unknown: unknownType,
|
|
4229
|
-
'void': voidType,
|
|
4230
|
-
NEVER: NEVER,
|
|
4231
|
-
ZodIssueCode: ZodIssueCode,
|
|
4232
|
-
quotelessJson: quotelessJson,
|
|
4233
|
-
ZodError: ZodError
|
|
4234
|
-
});
|
|
4235
|
-
|
|
4236
|
-
export { BRAND, DIRTY, EMPTY_PATH, INVALID, NEVER, OK, ParseStatus, ZodType as Schema, ZodAny, ZodArray, ZodBigInt, ZodBoolean, ZodBranded, ZodCatch, ZodDate, ZodDefault, ZodDiscriminatedUnion, ZodEffects, ZodEnum, ZodError, ZodFirstPartyTypeKind, ZodFunction, ZodIntersection, ZodIssueCode, ZodLazy, ZodLiteral, ZodMap, ZodNaN, ZodNativeEnum, ZodNever, ZodNull, ZodNullable, ZodNumber, ZodObject, ZodOptional, ZodParsedType, ZodPipeline, ZodPromise, ZodReadonly, ZodRecord, ZodType as ZodSchema, ZodSet, ZodString, ZodSymbol, ZodEffects as ZodTransformer, ZodTuple, ZodType, ZodUndefined, ZodUnion, ZodUnknown, ZodVoid, addIssueToContext, anyType as any, arrayType as array, bigIntType as bigint, booleanType as boolean, coerce, custom, dateType as date, datetimeRegex, z as default, errorMap as defaultErrorMap, discriminatedUnionType as discriminatedUnion, effectsType as effect, enumType as enum, functionType as function, getErrorMap, getParsedType, instanceOfType as instanceof, intersectionType as intersection, isAborted, isAsync, isDirty, isValid, late, lazyType as lazy, literalType as literal, makeIssue, mapType as map, nanType as nan, nativeEnumType as nativeEnum, neverType as never, nullType as null, nullableType as nullable, numberType as number, objectType as object, objectUtil, oboolean, onumber, optionalType as optional, ostring, pipelineType as pipeline, preprocessType as preprocess, promiseType as promise, quotelessJson, recordType as record, setType as set, setErrorMap, strictObjectType as strictObject, stringType as string, symbolType as symbol, effectsType as transformer, tupleType as tuple, undefinedType as undefined, unionType as union, unknownType as unknown, util, voidType as void, z };
|
|
3692
|
+
export { anyType as any, arrayType as array, bigIntType as bigint, booleanType as boolean, dateType as date, discriminatedUnionType as discriminatedUnion, effectsType as effect, enumType as enum, functionType as function, instanceOfType as instanceof, intersectionType as intersection, lazyType as lazy, literalType as literal, mapType as map, nanType as nan, nativeEnumType as nativeEnum, neverType as never, nullType as null, nullableType as nullable, numberType as number, objectType as object, oboolean, onumber, optionalType as optional, ostring, pipelineType as pipeline, preprocessType as preprocess, promiseType as promise, recordType as record, setType as set, strictObjectType as strictObject, stringType as string, symbolType as symbol, effectsType as transformer, tupleType as tuple, undefinedType as undefined, unionType as union, unknownType as unknown, voidType as void, };
|
|
3693
|
+
export const NEVER = INVALID;
|