@teammy/server 0.0.3 → 0.0.5
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 +4 -4
- package/dist/main.js +28 -1
- package/dist/web/assets/Dashboard--f1vaGx8.js +1 -0
- package/dist/web/assets/Files-Bc00wOfT.js +1 -0
- package/dist/web/assets/{Markdown-CcCzS4DP.js → Markdown-BrmcIotb.js} +4 -4
- package/dist/web/assets/Sessions-Bmlb8Xay.js +1 -0
- package/dist/web/assets/index-CgsCXCcm.js +64 -0
- package/dist/web/assets/index-uXzN7fKr.css +1 -0
- package/dist/web/index.html +3 -3
- package/node_modules/@fastify/accept-negotiator/.gitattributes +2 -0
- package/node_modules/@fastify/accept-negotiator/.github/dependabot.yml +53 -0
- package/node_modules/@fastify/accept-negotiator/.github/workflows/ci.yml +33 -0
- package/node_modules/@fastify/accept-negotiator/.github/workflows/lock-threads.yml +19 -0
- package/node_modules/@fastify/accept-negotiator/.github/workflows/release.yml +24 -0
- package/node_modules/@fastify/accept-negotiator/.nycrc +15 -0
- package/node_modules/@fastify/accept-negotiator/LICENSE +21 -0
- package/node_modules/@fastify/accept-negotiator/README.md +52 -0
- package/node_modules/@fastify/accept-negotiator/benchmarks/Negotiator.js +20 -0
- package/node_modules/@fastify/accept-negotiator/benchmarks/benchCases.js +26 -0
- package/node_modules/@fastify/accept-negotiator/benchmarks/negotiate.js +24 -0
- package/node_modules/@fastify/accept-negotiator/eslint.config.js +6 -0
- package/node_modules/@fastify/accept-negotiator/index.js +170 -0
- package/node_modules/@fastify/accept-negotiator/package.json +70 -0
- package/node_modules/@fastify/accept-negotiator/test/Negotiator.test.js +28 -0
- package/node_modules/@fastify/accept-negotiator/test/negotiate.test.js +13 -0
- package/node_modules/@fastify/accept-negotiator/test/testCases.js +52 -0
- package/node_modules/@fastify/accept-negotiator/types/index.d.ts +26 -0
- package/node_modules/@fastify/accept-negotiator/types/index.tst.ts +31 -0
- package/node_modules/@fastify/ajv-compiler/.gitattributes +2 -0
- package/node_modules/@fastify/ajv-compiler/.github/dependabot.yml +53 -0
- package/node_modules/@fastify/ajv-compiler/.github/workflows/ci.yml +33 -0
- package/node_modules/@fastify/ajv-compiler/.github/workflows/lock-threads.yml +19 -0
- package/node_modules/@fastify/ajv-compiler/.github/workflows/release.yml +24 -0
- package/node_modules/@fastify/ajv-compiler/LICENSE +21 -0
- package/node_modules/@fastify/ajv-compiler/README.md +237 -0
- package/node_modules/@fastify/ajv-compiler/benchmark/small-object.mjs +37 -0
- package/node_modules/@fastify/ajv-compiler/eslint.config.js +6 -0
- package/node_modules/@fastify/ajv-compiler/index.js +53 -0
- package/node_modules/@fastify/ajv-compiler/lib/default-ajv-options.js +14 -0
- package/node_modules/@fastify/ajv-compiler/lib/serializer-compiler.js +27 -0
- package/node_modules/@fastify/ajv-compiler/lib/validator-compiler.js +58 -0
- package/node_modules/@fastify/ajv-compiler/package.json +84 -0
- package/node_modules/@fastify/ajv-compiler/standalone.js +44 -0
- package/node_modules/@fastify/ajv-compiler/test/.gitkeep +0 -0
- package/node_modules/@fastify/ajv-compiler/test/duplicated-id-compile.test.js +55 -0
- package/node_modules/@fastify/ajv-compiler/test/index.test.js +307 -0
- package/node_modules/@fastify/ajv-compiler/test/plugins.test.js +246 -0
- package/node_modules/@fastify/ajv-compiler/test/serialization.test.js +279 -0
- package/node_modules/@fastify/ajv-compiler/test/standalone.test.js +203 -0
- package/node_modules/@fastify/ajv-compiler/types/index.d.ts +87 -0
- package/node_modules/@fastify/ajv-compiler/types/index.tst.ts +344 -0
- package/node_modules/@fastify/deepmerge/.gitattributes +2 -0
- package/node_modules/@fastify/deepmerge/.github/dependabot.yml +53 -0
- package/node_modules/@fastify/deepmerge/.github/workflows/ci.yml +33 -0
- package/node_modules/@fastify/deepmerge/.github/workflows/lock-threads.yml +19 -0
- package/node_modules/@fastify/deepmerge/.github/workflows/release.yml +24 -0
- package/node_modules/@fastify/deepmerge/.taprc +5 -0
- package/node_modules/@fastify/deepmerge/LICENSE +21 -0
- package/node_modules/@fastify/deepmerge/README.md +193 -0
- package/node_modules/@fastify/deepmerge/benchmark/bench.all.js +53 -0
- package/node_modules/@fastify/deepmerge/benchmark/bench.compare.detailed.js +148 -0
- package/node_modules/@fastify/deepmerge/benchmark/bench.compare.js +94 -0
- package/node_modules/@fastify/deepmerge/benchmark/bench.js +53 -0
- package/node_modules/@fastify/deepmerge/benchmark/package.json +23 -0
- package/node_modules/@fastify/deepmerge/eslint.config.js +6 -0
- package/node_modules/@fastify/deepmerge/index.js +186 -0
- package/node_modules/@fastify/deepmerge/package.json +68 -0
- package/node_modules/@fastify/deepmerge/test/all.test.js +73 -0
- package/node_modules/@fastify/deepmerge/test/browser.test.js +21 -0
- package/node_modules/@fastify/deepmerge/test/index.test.js +605 -0
- package/node_modules/@fastify/deepmerge/test/is-mergeable-object.test.js +68 -0
- package/node_modules/@fastify/deepmerge/test/merge-proto-objects.test.js +128 -0
- package/node_modules/@fastify/deepmerge/test/mergearray.test.js +119 -0
- package/node_modules/@fastify/deepmerge/test/skipundefined.test.js +57 -0
- package/node_modules/@fastify/deepmerge/test/symbol.test.js +48 -0
- package/node_modules/@fastify/deepmerge/types/index.d.ts +196 -0
- package/node_modules/@fastify/deepmerge/types/index.tst.ts +139 -0
- package/node_modules/@fastify/error/.gitattributes +2 -0
- package/node_modules/@fastify/error/.github/dependabot.yml +53 -0
- package/node_modules/@fastify/error/.github/workflows/ci.yml +33 -0
- package/node_modules/@fastify/error/.github/workflows/lock-threads.yml +19 -0
- package/node_modules/@fastify/error/.github/workflows/release.yml +24 -0
- package/node_modules/@fastify/error/LICENSE +21 -0
- package/node_modules/@fastify/error/README.md +140 -0
- package/node_modules/@fastify/error/benchmarks/create.js +9 -0
- package/node_modules/@fastify/error/benchmarks/instantiate.js +18 -0
- package/node_modules/@fastify/error/benchmarks/no-stack.js +13 -0
- package/node_modules/@fastify/error/benchmarks/toString.js +11 -0
- package/node_modules/@fastify/error/eslint.config.js +6 -0
- package/node_modules/@fastify/error/index.js +100 -0
- package/node_modules/@fastify/error/package.json +70 -0
- package/node_modules/@fastify/error/test/index.test.js +232 -0
- package/node_modules/@fastify/error/test/instanceof.test.js +263 -0
- package/node_modules/@fastify/error/types/index.d.ts +49 -0
- package/node_modules/@fastify/error/types/index.tst.ts +153 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/.gitattributes +2 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/.github/dependabot.yml +53 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/.github/workflows/ci.yml +33 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/.github/workflows/lock-threads.yml +19 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/.github/workflows/release.yml +24 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/LICENSE +21 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/README.md +129 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/eslint.config.js +6 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/index.js +8 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/package.json +66 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/standalone.js +58 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/test/duplicate-schema.test.js +26 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/test/plugin.test.js +78 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/test/standalone.test.js +230 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/types/index.d.ts +41 -0
- package/node_modules/@fastify/fast-json-stringify-compiler/types/index.tst.ts +144 -0
- package/node_modules/@fastify/forwarded/.github/dependabot.yml +53 -0
- package/node_modules/@fastify/forwarded/.github/workflows/ci.yml +33 -0
- package/node_modules/@fastify/forwarded/.github/workflows/lock-threads.yml +19 -0
- package/node_modules/@fastify/forwarded/.github/workflows/release.yml +24 -0
- package/node_modules/@fastify/forwarded/LICENSE +22 -0
- package/node_modules/@fastify/forwarded/README.md +43 -0
- package/node_modules/@fastify/forwarded/benchmark/combined.js +30 -0
- package/node_modules/@fastify/forwarded/benchmark/index.js +26 -0
- package/node_modules/@fastify/forwarded/eslint.config.js +6 -0
- package/node_modules/@fastify/forwarded/index.js +59 -0
- package/node_modules/@fastify/forwarded/package.json +69 -0
- package/node_modules/@fastify/forwarded/test/test.js +148 -0
- package/node_modules/@fastify/forwarded/types/index.d.ts +14 -0
- package/node_modules/@fastify/forwarded/types/index.tst.ts +17 -0
- package/node_modules/@fastify/merge-json-schemas/.gitattributes +2 -0
- package/node_modules/@fastify/merge-json-schemas/.github/dependabot.yml +53 -0
- package/node_modules/@fastify/merge-json-schemas/.github/workflows/ci.yml +33 -0
- package/node_modules/@fastify/merge-json-schemas/.github/workflows/lock-threads.yml +19 -0
- package/node_modules/@fastify/merge-json-schemas/.github/workflows/release.yml +24 -0
- package/node_modules/@fastify/merge-json-schemas/LICENSE +21 -0
- package/node_modules/@fastify/merge-json-schemas/README.md +119 -0
- package/node_modules/@fastify/merge-json-schemas/eslint.config.js +6 -0
- package/node_modules/@fastify/merge-json-schemas/index.js +356 -0
- package/node_modules/@fastify/merge-json-schemas/lib/errors.js +36 -0
- package/node_modules/@fastify/merge-json-schemas/lib/resolvers.js +127 -0
- package/node_modules/@fastify/merge-json-schemas/package.json +66 -0
- package/node_modules/@fastify/merge-json-schemas/test/additional-items.test.js +164 -0
- package/node_modules/@fastify/merge-json-schemas/test/additional-properties.test.js +129 -0
- package/node_modules/@fastify/merge-json-schemas/test/all-of.test.js +43 -0
- package/node_modules/@fastify/merge-json-schemas/test/any-of.test.js +81 -0
- package/node_modules/@fastify/merge-json-schemas/test/const.test.js +58 -0
- package/node_modules/@fastify/merge-json-schemas/test/contains.test.js +55 -0
- package/node_modules/@fastify/merge-json-schemas/test/custom-resolvers.test.js +50 -0
- package/node_modules/@fastify/merge-json-schemas/test/default-resolver.test.js +111 -0
- package/node_modules/@fastify/merge-json-schemas/test/default.test.js +50 -0
- package/node_modules/@fastify/merge-json-schemas/test/definitions.test.js +46 -0
- package/node_modules/@fastify/merge-json-schemas/test/defs.test.js +46 -0
- package/node_modules/@fastify/merge-json-schemas/test/dependencies.test.js +75 -0
- package/node_modules/@fastify/merge-json-schemas/test/dependent-required.test.js +75 -0
- package/node_modules/@fastify/merge-json-schemas/test/dependent-schemas.test.js +76 -0
- package/node_modules/@fastify/merge-json-schemas/test/enum.test.js +44 -0
- package/node_modules/@fastify/merge-json-schemas/test/exclusive-maximum.test.js +30 -0
- package/node_modules/@fastify/merge-json-schemas/test/exclusive-minimum.test.js +30 -0
- package/node_modules/@fastify/merge-json-schemas/test/format.test.js +36 -0
- package/node_modules/@fastify/merge-json-schemas/test/id.test.js +22 -0
- package/node_modules/@fastify/merge-json-schemas/test/if-then-else.test.js +550 -0
- package/node_modules/@fastify/merge-json-schemas/test/items.test.js +152 -0
- package/node_modules/@fastify/merge-json-schemas/test/max-items.test.js +30 -0
- package/node_modules/@fastify/merge-json-schemas/test/max-length.test.js +30 -0
- package/node_modules/@fastify/merge-json-schemas/test/max-properties.test.js +30 -0
- package/node_modules/@fastify/merge-json-schemas/test/maximum.test.js +30 -0
- package/node_modules/@fastify/merge-json-schemas/test/merge-schema.test.js +29 -0
- package/node_modules/@fastify/merge-json-schemas/test/min-items.test.js +30 -0
- package/node_modules/@fastify/merge-json-schemas/test/min-length.test.js +30 -0
- package/node_modules/@fastify/merge-json-schemas/test/min-properties.test.js +30 -0
- package/node_modules/@fastify/merge-json-schemas/test/minimum.test.js +30 -0
- package/node_modules/@fastify/merge-json-schemas/test/multiple-of.test.js +36 -0
- package/node_modules/@fastify/merge-json-schemas/test/not.test.js +29 -0
- package/node_modules/@fastify/merge-json-schemas/test/nullable.test.js +30 -0
- package/node_modules/@fastify/merge-json-schemas/test/one-of.test.js +144 -0
- package/node_modules/@fastify/merge-json-schemas/test/properties.test.js +312 -0
- package/node_modules/@fastify/merge-json-schemas/test/property-names.test.js +49 -0
- package/node_modules/@fastify/merge-json-schemas/test/required.test.js +30 -0
- package/node_modules/@fastify/merge-json-schemas/test/type.test.js +52 -0
- package/node_modules/@fastify/merge-json-schemas/test/unique-items.test.js +38 -0
- package/node_modules/@fastify/merge-json-schemas/test/utils.js +9 -0
- package/node_modules/@fastify/merge-json-schemas/types/index.d.ts +61 -0
- package/node_modules/@fastify/merge-json-schemas/types/index.tst.ts +53 -0
- package/node_modules/@fastify/proxy-addr/.gitattributes +2 -0
- package/node_modules/@fastify/proxy-addr/.github/dependabot.yml +53 -0
- package/node_modules/@fastify/proxy-addr/.github/workflows/ci.yml +33 -0
- package/node_modules/@fastify/proxy-addr/.github/workflows/lock-threads.yml +19 -0
- package/node_modules/@fastify/proxy-addr/.github/workflows/release.yml +24 -0
- package/node_modules/@fastify/proxy-addr/LICENSE +22 -0
- package/node_modules/@fastify/proxy-addr/README.md +141 -0
- package/node_modules/@fastify/proxy-addr/benchmark/compiling.js +50 -0
- package/node_modules/@fastify/proxy-addr/benchmark/index.js +30 -0
- package/node_modules/@fastify/proxy-addr/benchmark/kind.js +57 -0
- package/node_modules/@fastify/proxy-addr/benchmark/matching.js +78 -0
- package/node_modules/@fastify/proxy-addr/eslint.config.js +6 -0
- package/node_modules/@fastify/proxy-addr/index.js +363 -0
- package/node_modules/@fastify/proxy-addr/package.json +73 -0
- package/node_modules/@fastify/proxy-addr/test/all.test.js +55 -0
- package/node_modules/@fastify/proxy-addr/test/base.test.js +400 -0
- package/node_modules/@fastify/proxy-addr/test/compile.test.js +58 -0
- package/node_modules/@fastify/proxy-addr/types/index.d.ts +18 -0
- package/node_modules/@fastify/proxy-addr/types/index.tst.ts +33 -0
- package/node_modules/@fastify/send/.gitattributes +2 -0
- package/node_modules/@fastify/send/.github/dependabot.yml +53 -0
- package/node_modules/@fastify/send/.github/workflows/ci.yml +33 -0
- package/node_modules/@fastify/send/.github/workflows/lock-threads.yml +19 -0
- package/node_modules/@fastify/send/.github/workflows/release.yml +24 -0
- package/node_modules/@fastify/send/HISTORY.md +521 -0
- package/node_modules/@fastify/send/LICENSE +23 -0
- package/node_modules/@fastify/send/README.md +318 -0
- package/node_modules/@fastify/send/benchmarks/collapseLeadingSlashes.js +13 -0
- package/node_modules/@fastify/send/benchmarks/containsDotFile.js +15 -0
- package/node_modules/@fastify/send/benchmarks/isUtf8MimeType.js +23 -0
- package/node_modules/@fastify/send/benchmarks/normalizeList.js +14 -0
- package/node_modules/@fastify/send/benchmarks/parseBytesRange.js +15 -0
- package/node_modules/@fastify/send/eslint.config.js +6 -0
- package/node_modules/@fastify/send/examples/index.html +1 -0
- package/node_modules/@fastify/send/examples/simple.js +15 -0
- package/node_modules/@fastify/send/index.js +28 -0
- package/node_modules/@fastify/send/lib/collapseLeadingSlashes.js +25 -0
- package/node_modules/@fastify/send/lib/containsDotFile.js +23 -0
- package/node_modules/@fastify/send/lib/contentRange.js +18 -0
- package/node_modules/@fastify/send/lib/createHtmlDocument.js +29 -0
- package/node_modules/@fastify/send/lib/createHttpError.js +23 -0
- package/node_modules/@fastify/send/lib/isUtf8MimeType.js +12 -0
- package/node_modules/@fastify/send/lib/normalizeList.js +28 -0
- package/node_modules/@fastify/send/lib/parseBytesRange.js +133 -0
- package/node_modules/@fastify/send/lib/parseTokenList.js +46 -0
- package/node_modules/@fastify/send/lib/send.js +742 -0
- package/node_modules/@fastify/send/package.json +76 -0
- package/node_modules/@fastify/send/test/collapseLeadingSlashes.test.js +22 -0
- package/node_modules/@fastify/send/test/containsDotFile.test.js +18 -0
- package/node_modules/@fastify/send/test/fixtures/.hidden.txt +1 -0
- package/node_modules/@fastify/send/test/fixtures/.mine/.hidden.txt +1 -0
- package/node_modules/@fastify/send/test/fixtures/.mine/name.txt +1 -0
- package/node_modules/@fastify/send/test/fixtures/do..ts.txt +1 -0
- package/node_modules/@fastify/send/test/fixtures/empty.txt +0 -0
- package/node_modules/@fastify/send/test/fixtures/images/node-js.png +0 -0
- package/node_modules/@fastify/send/test/fixtures/name.d/name.txt +1 -0
- package/node_modules/@fastify/send/test/fixtures/name.dir/name.txt +1 -0
- package/node_modules/@fastify/send/test/fixtures/name.html +1 -0
- package/node_modules/@fastify/send/test/fixtures/name.txt +1 -0
- package/node_modules/@fastify/send/test/fixtures/no_ext +1 -0
- package/node_modules/@fastify/send/test/fixtures/nums.txt +1 -0
- package/node_modules/@fastify/send/test/fixtures/pets/.hidden.txt +1 -0
- package/node_modules/@fastify/send/test/fixtures/pets/index.html +3 -0
- package/node_modules/@fastify/send/test/fixtures/snow /342/230/203/index.html +0 -0
- package/node_modules/@fastify/send/test/fixtures/some thing.txt +1 -0
- package/node_modules/@fastify/send/test/fixtures/thing.html.html +1 -0
- package/node_modules/@fastify/send/test/fixtures/tobi.html +1 -0
- package/node_modules/@fastify/send/test/isUtf8MimeType.test.js +22 -0
- package/node_modules/@fastify/send/test/mime.test.js +56 -0
- package/node_modules/@fastify/send/test/normalizeList.test.js +28 -0
- package/node_modules/@fastify/send/test/onFile.test.js +247 -0
- package/node_modules/@fastify/send/test/parseBytesRange.test.js +103 -0
- package/node_modules/@fastify/send/test/send.1.test.js +868 -0
- package/node_modules/@fastify/send/test/send.2.test.js +977 -0
- package/node_modules/@fastify/send/test/send.3.test.js +133 -0
- package/node_modules/@fastify/send/test/utils.js +36 -0
- package/node_modules/@fastify/send/types/index.d.ts +173 -0
- package/node_modules/@fastify/send/types/index.tst.ts +75 -0
- package/node_modules/@fastify/static/.gitattributes +2 -0
- package/node_modules/@fastify/static/.github/dependabot.yml +53 -0
- package/node_modules/@fastify/static/.github/workflows/ci.yml +33 -0
- package/node_modules/@fastify/static/.github/workflows/lock-threads.yml +19 -0
- package/node_modules/@fastify/static/.github/workflows/release.yml +24 -0
- package/node_modules/@fastify/static/LICENSE +21 -0
- package/node_modules/@fastify/static/README.md +571 -0
- package/node_modules/@fastify/static/eslint.config.js +7 -0
- package/node_modules/@fastify/static/example/public/.hidden/sample.json +1 -0
- package/node_modules/@fastify/static/example/public/images/sample.jpg +0 -0
- package/node_modules/@fastify/static/example/public/index.css +9 -0
- package/node_modules/@fastify/static/example/public/index.html +11 -0
- package/node_modules/@fastify/static/example/public/index.js +8 -0
- package/node_modules/@fastify/static/example/public2/test.css +4 -0
- package/node_modules/@fastify/static/example/public2/test.html +8 -0
- package/node_modules/@fastify/static/example/server-benchmark.js +39 -0
- package/node_modules/@fastify/static/example/server-compress.js +15 -0
- package/node_modules/@fastify/static/example/server-dir-list.js +38 -0
- package/node_modules/@fastify/static/example/server-hidden-file.js +15 -0
- package/node_modules/@fastify/static/example/server.js +13 -0
- package/node_modules/@fastify/static/index.js +1029 -0
- package/node_modules/@fastify/static/lib/dirList.js +232 -0
- package/node_modules/@fastify/static/lib/errors.js +30 -0
- package/node_modules/@fastify/static/package.json +87 -0
- package/node_modules/@fastify/static/test/content-type/binary +0 -0
- package/node_modules/@fastify/static/test/content-type/binary.br +1 -0
- package/node_modules/@fastify/static/test/content-type/index.css +0 -0
- package/node_modules/@fastify/static/test/content-type/index.css.br +1 -0
- package/node_modules/@fastify/static/test/content-type/index.html +5 -0
- package/node_modules/@fastify/static/test/content-type/index.html.br +0 -0
- package/node_modules/@fastify/static/test/content-type/sample.jpg +0 -0
- package/node_modules/@fastify/static/test/content-type/test.txt +0 -0
- package/node_modules/@fastify/static/test/content-type/test.txt.br +1 -0
- package/node_modules/@fastify/static/test/content-type.test.js +144 -0
- package/node_modules/@fastify/static/test/dir-list.test.js +884 -0
- package/node_modules/@fastify/static/test/static/.example +1 -0
- package/node_modules/@fastify/static/test/static/100%.txt +1 -0
- package/node_modules/@fastify/static/test/static/a .md +1 -0
- package/node_modules/@fastify/static/test/static/deep/path/for/test/index.html +5 -0
- package/node_modules/@fastify/static/test/static/deep/path/for/test/purpose/foo.html +5 -0
- package/node_modules/@fastify/static/test/static/foo.html +3 -0
- package/node_modules/@fastify/static/test/static/foobar.html +3 -0
- package/node_modules/@fastify/static/test/static/index.css +0 -0
- package/node_modules/@fastify/static/test/static/index.html +5 -0
- package/node_modules/@fastify/static/test/static/shallow/sample.jpg +0 -0
- package/node_modules/@fastify/static/test/static-allowed-path/private/secret.txt +1 -0
- package/node_modules/@fastify/static/test/static-allowed-path/public/index.html +1 -0
- package/node_modules/@fastify/static/test/static-dotfiles/.aaa +0 -0
- package/node_modules/@fastify/static/test/static-dotfiles/dir/index.html +0 -0
- package/node_modules/@fastify/static/test/static-dotfiles/test.txt +0 -0
- package/node_modules/@fastify/static/test/static-encode/[...]/a .md +1 -0
- package/node_modules/@fastify/static/test/static-filtered/bar.private +1 -0
- package/node_modules/@fastify/static/test/static-filtered/deep/path/to/baz.html +3 -0
- package/node_modules/@fastify/static/test/static-filtered/deep/path/to/baz.private +1 -0
- package/node_modules/@fastify/static/test/static-filtered/index.html +3 -0
- package/node_modules/@fastify/static/test/static-hidden/.hidden/sample.json +1 -0
- package/node_modules/@fastify/static/test/static-pre-compressed/all-three.html +5 -0
- package/node_modules/@fastify/static/test/static-pre-compressed/all-three.html.br +0 -0
- package/node_modules/@fastify/static/test/static-pre-compressed/all-three.html.deflate +0 -0
- package/node_modules/@fastify/static/test/static-pre-compressed/all-three.html.gz +0 -0
- package/node_modules/@fastify/static/test/static-pre-compressed/baz.json +3 -0
- package/node_modules/@fastify/static/test/static-pre-compressed/dir/index.html +5 -0
- package/node_modules/@fastify/static/test/static-pre-compressed/dir/index.html.br +0 -0
- package/node_modules/@fastify/static/test/static-pre-compressed/dir-gz/index.html +5 -0
- package/node_modules/@fastify/static/test/static-pre-compressed/dir-gz/index.html.gz +0 -0
- package/node_modules/@fastify/static/test/static-pre-compressed/empty/.gitkeep +0 -0
- package/node_modules/@fastify/static/test/static-pre-compressed/gzip-only.html +3 -0
- package/node_modules/@fastify/static/test/static-pre-compressed/gzip-only.html.gz +0 -0
- package/node_modules/@fastify/static/test/static-pre-compressed/index.html +5 -0
- package/node_modules/@fastify/static/test/static-pre-compressed/index.html.br +0 -0
- package/node_modules/@fastify/static/test/static-pre-compressed/sample.jpg +0 -0
- package/node_modules/@fastify/static/test/static-pre-compressed/sample.jpg.br +0 -0
- package/node_modules/@fastify/static/test/static-pre-compressed/uncompressed.html +3 -0
- package/node_modules/@fastify/static/test/static-symbolic-link/origin/subdir/subdir/index.html +3 -0
- package/node_modules/@fastify/static/test/static.test.js +5384 -0
- package/node_modules/@fastify/static/test/static2/bar.html +3 -0
- package/node_modules/@fastify/static/test/static2/index.html +3 -0
- package/node_modules/@fastify/static/types/index.d.ts +135 -0
- package/node_modules/@fastify/static/types/index.tst.ts +228 -0
- package/node_modules/@lukeed/ms/dist/index.js +37 -0
- package/node_modules/@lukeed/ms/dist/index.min.js +1 -0
- package/node_modules/@lukeed/ms/dist/index.mjs +34 -0
- package/node_modules/@lukeed/ms/index.d.ts +2 -0
- package/node_modules/@lukeed/ms/license +9 -0
- package/node_modules/@lukeed/ms/package.json +48 -0
- package/node_modules/@lukeed/ms/readme.md +133 -0
- package/node_modules/@pinojs/redact/.github/dependabot.yml +13 -0
- package/node_modules/@pinojs/redact/.github/workflows/ci.yml +48 -0
- package/node_modules/@pinojs/redact/.github/workflows/publish-release.yml +43 -0
- package/node_modules/@pinojs/redact/LICENSE +21 -0
- package/node_modules/@pinojs/redact/README.md +350 -0
- package/node_modules/@pinojs/redact/benchmarks/basic.js +184 -0
- package/node_modules/@pinojs/redact/eslint.config.js +1 -0
- package/node_modules/@pinojs/redact/index.d.ts +52 -0
- package/node_modules/@pinojs/redact/index.js +529 -0
- package/node_modules/@pinojs/redact/index.test-d.ts +22 -0
- package/node_modules/@pinojs/redact/package.json +37 -0
- package/node_modules/@pinojs/redact/scripts/sync-version.mjs +20 -0
- package/node_modules/@pinojs/redact/test/actual-redact-comparison.test.js +211 -0
- package/node_modules/@pinojs/redact/test/index.test.js +824 -0
- package/node_modules/@pinojs/redact/test/integration.test.js +390 -0
- package/node_modules/@pinojs/redact/test/multiple-wildcards.test.js +227 -0
- package/node_modules/@pinojs/redact/test/prototype-pollution.test.js +223 -0
- package/node_modules/@pinojs/redact/test/selective-clone.test.js +115 -0
- package/node_modules/@pinojs/redact/tsconfig.json +19 -0
- package/node_modules/abstract-logging/Readme.md +47 -0
- package/node_modules/abstract-logging/index.js +18 -0
- package/node_modules/abstract-logging/package.json +25 -0
- package/node_modules/abstract-logging/test.js +17 -0
- package/node_modules/ajv/.runkit_example.js +23 -0
- package/node_modules/ajv/LICENSE +22 -0
- package/node_modules/ajv/README.md +207 -0
- package/node_modules/ajv/dist/2019.d.ts +19 -0
- package/node_modules/ajv/dist/2019.js +61 -0
- package/node_modules/ajv/dist/2019.js.map +1 -0
- package/node_modules/ajv/dist/2020.d.ts +19 -0
- package/node_modules/ajv/dist/2020.js +55 -0
- package/node_modules/ajv/dist/2020.js.map +1 -0
- package/node_modules/ajv/dist/ajv.d.ts +18 -0
- package/node_modules/ajv/dist/ajv.js +50 -0
- package/node_modules/ajv/dist/ajv.js.map +1 -0
- package/node_modules/ajv/dist/compile/codegen/code.d.ts +40 -0
- package/node_modules/ajv/dist/compile/codegen/code.js +156 -0
- package/node_modules/ajv/dist/compile/codegen/code.js.map +1 -0
- package/node_modules/ajv/dist/compile/codegen/index.d.ts +79 -0
- package/node_modules/ajv/dist/compile/codegen/index.js +697 -0
- package/node_modules/ajv/dist/compile/codegen/index.js.map +1 -0
- package/node_modules/ajv/dist/compile/codegen/scope.d.ts +79 -0
- package/node_modules/ajv/dist/compile/codegen/scope.js +143 -0
- package/node_modules/ajv/dist/compile/codegen/scope.js.map +1 -0
- package/node_modules/ajv/dist/compile/errors.d.ts +13 -0
- package/node_modules/ajv/dist/compile/errors.js +123 -0
- package/node_modules/ajv/dist/compile/errors.js.map +1 -0
- package/node_modules/ajv/dist/compile/index.d.ts +80 -0
- package/node_modules/ajv/dist/compile/index.js +242 -0
- package/node_modules/ajv/dist/compile/index.js.map +1 -0
- package/node_modules/ajv/dist/compile/jtd/parse.d.ts +4 -0
- package/node_modules/ajv/dist/compile/jtd/parse.js +350 -0
- package/node_modules/ajv/dist/compile/jtd/parse.js.map +1 -0
- package/node_modules/ajv/dist/compile/jtd/serialize.d.ts +4 -0
- package/node_modules/ajv/dist/compile/jtd/serialize.js +236 -0
- package/node_modules/ajv/dist/compile/jtd/serialize.js.map +1 -0
- package/node_modules/ajv/dist/compile/jtd/types.d.ts +6 -0
- package/node_modules/ajv/dist/compile/jtd/types.js +14 -0
- package/node_modules/ajv/dist/compile/jtd/types.js.map +1 -0
- package/node_modules/ajv/dist/compile/names.d.ts +20 -0
- package/node_modules/ajv/dist/compile/names.js +28 -0
- package/node_modules/ajv/dist/compile/names.js.map +1 -0
- package/node_modules/ajv/dist/compile/ref_error.d.ts +6 -0
- package/node_modules/ajv/dist/compile/ref_error.js +12 -0
- package/node_modules/ajv/dist/compile/ref_error.js.map +1 -0
- package/node_modules/ajv/dist/compile/resolve.d.ts +12 -0
- package/node_modules/ajv/dist/compile/resolve.js +155 -0
- package/node_modules/ajv/dist/compile/resolve.js.map +1 -0
- package/node_modules/ajv/dist/compile/rules.d.ts +28 -0
- package/node_modules/ajv/dist/compile/rules.js +26 -0
- package/node_modules/ajv/dist/compile/rules.js.map +1 -0
- package/node_modules/ajv/dist/compile/util.d.ts +40 -0
- package/node_modules/ajv/dist/compile/util.js +178 -0
- package/node_modules/ajv/dist/compile/util.js.map +1 -0
- package/node_modules/ajv/dist/compile/validate/applicability.d.ts +6 -0
- package/node_modules/ajv/dist/compile/validate/applicability.js +19 -0
- package/node_modules/ajv/dist/compile/validate/applicability.js.map +1 -0
- package/node_modules/ajv/dist/compile/validate/boolSchema.d.ts +4 -0
- package/node_modules/ajv/dist/compile/validate/boolSchema.js +50 -0
- package/node_modules/ajv/dist/compile/validate/boolSchema.js.map +1 -0
- package/node_modules/ajv/dist/compile/validate/dataType.d.ts +17 -0
- package/node_modules/ajv/dist/compile/validate/dataType.js +203 -0
- package/node_modules/ajv/dist/compile/validate/dataType.js.map +1 -0
- package/node_modules/ajv/dist/compile/validate/defaults.d.ts +2 -0
- package/node_modules/ajv/dist/compile/validate/defaults.js +35 -0
- package/node_modules/ajv/dist/compile/validate/defaults.js.map +1 -0
- package/node_modules/ajv/dist/compile/validate/index.d.ts +42 -0
- package/node_modules/ajv/dist/compile/validate/index.js +520 -0
- package/node_modules/ajv/dist/compile/validate/index.js.map +1 -0
- package/node_modules/ajv/dist/compile/validate/keyword.d.ts +8 -0
- package/node_modules/ajv/dist/compile/validate/keyword.js +124 -0
- package/node_modules/ajv/dist/compile/validate/keyword.js.map +1 -0
- package/node_modules/ajv/dist/compile/validate/subschema.d.ts +47 -0
- package/node_modules/ajv/dist/compile/validate/subschema.js +81 -0
- package/node_modules/ajv/dist/compile/validate/subschema.js.map +1 -0
- package/node_modules/ajv/dist/core.d.ts +174 -0
- package/node_modules/ajv/dist/core.js +618 -0
- package/node_modules/ajv/dist/core.js.map +1 -0
- package/node_modules/ajv/dist/jtd.d.ts +47 -0
- package/node_modules/ajv/dist/jtd.js +72 -0
- package/node_modules/ajv/dist/jtd.js.map +1 -0
- package/node_modules/ajv/dist/refs/data.json +13 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/index.d.ts +2 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/index.js +28 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/index.js.map +1 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/applicator.json +53 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/content.json +17 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/core.json +57 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/format.json +14 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/meta-data.json +37 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/validation.json +90 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/schema.json +39 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/index.d.ts +2 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/index.js +30 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/index.js.map +1 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/applicator.json +48 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/content.json +17 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/core.json +51 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json +14 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json +37 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json +15 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/validation.json +90 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/schema.json +55 -0
- package/node_modules/ajv/dist/refs/json-schema-draft-06.json +137 -0
- package/node_modules/ajv/dist/refs/json-schema-draft-07.json +151 -0
- package/node_modules/ajv/dist/refs/json-schema-secure.json +88 -0
- package/node_modules/ajv/dist/refs/jtd-schema.d.ts +3 -0
- package/node_modules/ajv/dist/refs/jtd-schema.js +118 -0
- package/node_modules/ajv/dist/refs/jtd-schema.js.map +1 -0
- package/node_modules/ajv/dist/runtime/equal.d.ts +6 -0
- package/node_modules/ajv/dist/runtime/equal.js +7 -0
- package/node_modules/ajv/dist/runtime/equal.js.map +1 -0
- package/node_modules/ajv/dist/runtime/parseJson.d.ts +18 -0
- package/node_modules/ajv/dist/runtime/parseJson.js +185 -0
- package/node_modules/ajv/dist/runtime/parseJson.js.map +1 -0
- package/node_modules/ajv/dist/runtime/quote.d.ts +5 -0
- package/node_modules/ajv/dist/runtime/quote.js +30 -0
- package/node_modules/ajv/dist/runtime/quote.js.map +1 -0
- package/node_modules/ajv/dist/runtime/re2.d.ts +6 -0
- package/node_modules/ajv/dist/runtime/re2.js +6 -0
- package/node_modules/ajv/dist/runtime/re2.js.map +1 -0
- package/node_modules/ajv/dist/runtime/timestamp.d.ts +5 -0
- package/node_modules/ajv/dist/runtime/timestamp.js +42 -0
- package/node_modules/ajv/dist/runtime/timestamp.js.map +1 -0
- package/node_modules/ajv/dist/runtime/ucs2length.d.ts +5 -0
- package/node_modules/ajv/dist/runtime/ucs2length.js +24 -0
- package/node_modules/ajv/dist/runtime/ucs2length.js.map +1 -0
- package/node_modules/ajv/dist/runtime/uri.d.ts +6 -0
- package/node_modules/ajv/dist/runtime/uri.js +6 -0
- package/node_modules/ajv/dist/runtime/uri.js.map +1 -0
- package/node_modules/ajv/dist/runtime/validation_error.d.ts +7 -0
- package/node_modules/ajv/dist/runtime/validation_error.js +11 -0
- package/node_modules/ajv/dist/runtime/validation_error.js.map +1 -0
- package/node_modules/ajv/dist/standalone/index.d.ts +6 -0
- package/node_modules/ajv/dist/standalone/index.js +90 -0
- package/node_modules/ajv/dist/standalone/index.js.map +1 -0
- package/node_modules/ajv/dist/standalone/instance.d.ts +12 -0
- package/node_modules/ajv/dist/standalone/instance.js +35 -0
- package/node_modules/ajv/dist/standalone/instance.js.map +1 -0
- package/node_modules/ajv/dist/types/index.d.ts +183 -0
- package/node_modules/ajv/dist/types/index.js +3 -0
- package/node_modules/ajv/dist/types/index.js.map +1 -0
- package/node_modules/ajv/dist/types/json-schema.d.ts +125 -0
- package/node_modules/ajv/dist/types/json-schema.js +3 -0
- package/node_modules/ajv/dist/types/json-schema.js.map +1 -0
- package/node_modules/ajv/dist/types/jtd-schema.d.ts +174 -0
- package/node_modules/ajv/dist/types/jtd-schema.js +3 -0
- package/node_modules/ajv/dist/types/jtd-schema.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/additionalItems.d.ts +8 -0
- package/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js +49 -0
- package/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js +106 -0
- package/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/allOf.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/applicator/allOf.js +23 -0
- package/node_modules/ajv/dist/vocabularies/applicator/allOf.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/anyOf.d.ts +4 -0
- package/node_modules/ajv/dist/vocabularies/applicator/anyOf.js +12 -0
- package/node_modules/ajv/dist/vocabularies/applicator/anyOf.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/contains.d.ts +7 -0
- package/node_modules/ajv/dist/vocabularies/applicator/contains.js +95 -0
- package/node_modules/ajv/dist/vocabularies/applicator/contains.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/dependencies.d.ts +21 -0
- package/node_modules/ajv/dist/vocabularies/applicator/dependencies.js +85 -0
- package/node_modules/ajv/dist/vocabularies/applicator/dependencies.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js +11 -0
- package/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/if.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/applicator/if.js +66 -0
- package/node_modules/ajv/dist/vocabularies/applicator/if.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/index.d.ts +13 -0
- package/node_modules/ajv/dist/vocabularies/applicator/index.js +44 -0
- package/node_modules/ajv/dist/vocabularies/applicator/index.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/items.d.ts +5 -0
- package/node_modules/ajv/dist/vocabularies/applicator/items.js +52 -0
- package/node_modules/ajv/dist/vocabularies/applicator/items.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/items2020.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/applicator/items2020.js +30 -0
- package/node_modules/ajv/dist/vocabularies/applicator/items2020.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/not.d.ts +4 -0
- package/node_modules/ajv/dist/vocabularies/applicator/not.js +26 -0
- package/node_modules/ajv/dist/vocabularies/applicator/not.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/oneOf.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/applicator/oneOf.js +60 -0
- package/node_modules/ajv/dist/vocabularies/applicator/oneOf.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/patternProperties.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js +75 -0
- package/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/prefixItems.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js +12 -0
- package/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/properties.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/applicator/properties.js +54 -0
- package/node_modules/ajv/dist/vocabularies/applicator/properties.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/propertyNames.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js +38 -0
- package/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/applicator/thenElse.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/applicator/thenElse.js +13 -0
- package/node_modules/ajv/dist/vocabularies/applicator/thenElse.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/code.d.ts +17 -0
- package/node_modules/ajv/dist/vocabularies/code.js +131 -0
- package/node_modules/ajv/dist/vocabularies/code.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/core/id.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/core/id.js +10 -0
- package/node_modules/ajv/dist/vocabularies/core/id.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/core/index.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/core/index.js +16 -0
- package/node_modules/ajv/dist/vocabularies/core/index.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/core/ref.d.ts +8 -0
- package/node_modules/ajv/dist/vocabularies/core/ref.js +122 -0
- package/node_modules/ajv/dist/vocabularies/core/ref.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/discriminator/index.d.ts +5 -0
- package/node_modules/ajv/dist/vocabularies/discriminator/index.js +104 -0
- package/node_modules/ajv/dist/vocabularies/discriminator/index.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/discriminator/types.d.ts +10 -0
- package/node_modules/ajv/dist/vocabularies/discriminator/types.js +9 -0
- package/node_modules/ajv/dist/vocabularies/discriminator/types.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/draft2020.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/draft2020.js +23 -0
- package/node_modules/ajv/dist/vocabularies/draft2020.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/draft7.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/draft7.js +17 -0
- package/node_modules/ajv/dist/vocabularies/draft7.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.d.ts +5 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js +30 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.d.ts +5 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js +51 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/index.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/index.js +9 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/index.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js +16 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js +10 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/errors.d.ts +9 -0
- package/node_modules/ajv/dist/vocabularies/errors.js +3 -0
- package/node_modules/ajv/dist/vocabularies/errors.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/format/format.d.ts +8 -0
- package/node_modules/ajv/dist/vocabularies/format/format.js +92 -0
- package/node_modules/ajv/dist/vocabularies/format/format.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/format/index.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/format/index.js +6 -0
- package/node_modules/ajv/dist/vocabularies/format/index.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/discriminator.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/jtd/discriminator.js +71 -0
- package/node_modules/ajv/dist/vocabularies/jtd/discriminator.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/elements.d.ts +5 -0
- package/node_modules/ajv/dist/vocabularies/jtd/elements.js +24 -0
- package/node_modules/ajv/dist/vocabularies/jtd/elements.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/enum.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/jtd/enum.js +43 -0
- package/node_modules/ajv/dist/vocabularies/jtd/enum.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/error.d.ts +9 -0
- package/node_modules/ajv/dist/vocabularies/jtd/error.js +20 -0
- package/node_modules/ajv/dist/vocabularies/jtd/error.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/index.d.ts +10 -0
- package/node_modules/ajv/dist/vocabularies/jtd/index.js +29 -0
- package/node_modules/ajv/dist/vocabularies/jtd/index.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/metadata.d.ts +5 -0
- package/node_modules/ajv/dist/vocabularies/jtd/metadata.js +25 -0
- package/node_modules/ajv/dist/vocabularies/jtd/metadata.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/nullable.d.ts +4 -0
- package/node_modules/ajv/dist/vocabularies/jtd/nullable.js +22 -0
- package/node_modules/ajv/dist/vocabularies/jtd/nullable.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js +15 -0
- package/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/properties.d.ts +22 -0
- package/node_modules/ajv/dist/vocabularies/jtd/properties.js +149 -0
- package/node_modules/ajv/dist/vocabularies/jtd/properties.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/ref.d.ts +4 -0
- package/node_modules/ajv/dist/vocabularies/jtd/ref.js +67 -0
- package/node_modules/ajv/dist/vocabularies/jtd/ref.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/type.d.ts +10 -0
- package/node_modules/ajv/dist/vocabularies/jtd/type.js +69 -0
- package/node_modules/ajv/dist/vocabularies/jtd/type.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/union.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/jtd/union.js +12 -0
- package/node_modules/ajv/dist/vocabularies/jtd/union.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/jtd/values.d.ts +5 -0
- package/node_modules/ajv/dist/vocabularies/jtd/values.js +51 -0
- package/node_modules/ajv/dist/vocabularies/jtd/values.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/metadata.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/metadata.js +18 -0
- package/node_modules/ajv/dist/vocabularies/metadata.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/next.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/next.js +8 -0
- package/node_modules/ajv/dist/vocabularies/next.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/index.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/index.js +7 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/index.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js +40 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js +65 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/const.d.ts +6 -0
- package/node_modules/ajv/dist/vocabularies/validation/const.js +25 -0
- package/node_modules/ajv/dist/vocabularies/validation/const.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/dependentRequired.d.ts +5 -0
- package/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js +12 -0
- package/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/enum.d.ts +8 -0
- package/node_modules/ajv/dist/vocabularies/validation/enum.js +48 -0
- package/node_modules/ajv/dist/vocabularies/validation/enum.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/index.d.ts +16 -0
- package/node_modules/ajv/dist/vocabularies/validation/index.js +33 -0
- package/node_modules/ajv/dist/vocabularies/validation/index.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitContains.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitContains.js +15 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitContains.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitItems.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitItems.js +24 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitItems.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitLength.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitLength.js +27 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitLength.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitNumber.d.ts +11 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitNumber.js +27 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitNumber.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitProperties.d.ts +3 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitProperties.js +24 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitProperties.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/multipleOf.d.ts +8 -0
- package/node_modules/ajv/dist/vocabularies/validation/multipleOf.js +26 -0
- package/node_modules/ajv/dist/vocabularies/validation/multipleOf.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/pattern.d.ts +8 -0
- package/node_modules/ajv/dist/vocabularies/validation/pattern.js +33 -0
- package/node_modules/ajv/dist/vocabularies/validation/pattern.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/required.d.ts +8 -0
- package/node_modules/ajv/dist/vocabularies/validation/required.js +79 -0
- package/node_modules/ajv/dist/vocabularies/validation/required.js.map +1 -0
- package/node_modules/ajv/dist/vocabularies/validation/uniqueItems.d.ts +9 -0
- package/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js +64 -0
- package/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js.map +1 -0
- package/node_modules/ajv/lib/2019.ts +81 -0
- package/node_modules/ajv/lib/2020.ts +75 -0
- package/node_modules/ajv/lib/ajv.ts +70 -0
- package/node_modules/ajv/lib/compile/codegen/code.ts +169 -0
- package/node_modules/ajv/lib/compile/codegen/index.ts +852 -0
- package/node_modules/ajv/lib/compile/codegen/scope.ts +215 -0
- package/node_modules/ajv/lib/compile/errors.ts +184 -0
- package/node_modules/ajv/lib/compile/index.ts +324 -0
- package/node_modules/ajv/lib/compile/jtd/parse.ts +411 -0
- package/node_modules/ajv/lib/compile/jtd/serialize.ts +277 -0
- package/node_modules/ajv/lib/compile/jtd/types.ts +16 -0
- package/node_modules/ajv/lib/compile/names.ts +27 -0
- package/node_modules/ajv/lib/compile/ref_error.ts +13 -0
- package/node_modules/ajv/lib/compile/resolve.ts +149 -0
- package/node_modules/ajv/lib/compile/rules.ts +50 -0
- package/node_modules/ajv/lib/compile/util.ts +213 -0
- package/node_modules/ajv/lib/compile/validate/applicability.ts +22 -0
- package/node_modules/ajv/lib/compile/validate/boolSchema.ts +47 -0
- package/node_modules/ajv/lib/compile/validate/dataType.ts +230 -0
- package/node_modules/ajv/lib/compile/validate/defaults.ts +32 -0
- package/node_modules/ajv/lib/compile/validate/index.ts +582 -0
- package/node_modules/ajv/lib/compile/validate/keyword.ts +171 -0
- package/node_modules/ajv/lib/compile/validate/subschema.ts +135 -0
- package/node_modules/ajv/lib/core.ts +892 -0
- package/node_modules/ajv/lib/jtd.ts +132 -0
- package/node_modules/ajv/lib/refs/data.json +13 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/index.ts +28 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/applicator.json +53 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/content.json +17 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/core.json +57 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/format.json +14 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/meta-data.json +37 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/validation.json +90 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/schema.json +39 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/index.ts +30 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/applicator.json +48 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/content.json +17 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/core.json +51 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/format-annotation.json +14 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/meta-data.json +37 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/unevaluated.json +15 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/validation.json +90 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/schema.json +55 -0
- package/node_modules/ajv/lib/refs/json-schema-draft-06.json +137 -0
- package/node_modules/ajv/lib/refs/json-schema-draft-07.json +151 -0
- package/node_modules/ajv/lib/refs/json-schema-secure.json +88 -0
- package/node_modules/ajv/lib/refs/jtd-schema.ts +130 -0
- package/node_modules/ajv/lib/runtime/equal.ts +7 -0
- package/node_modules/ajv/lib/runtime/parseJson.ts +177 -0
- package/node_modules/ajv/lib/runtime/quote.ts +31 -0
- package/node_modules/ajv/lib/runtime/re2.ts +6 -0
- package/node_modules/ajv/lib/runtime/timestamp.ts +46 -0
- package/node_modules/ajv/lib/runtime/ucs2length.ts +20 -0
- package/node_modules/ajv/lib/runtime/uri.ts +6 -0
- package/node_modules/ajv/lib/runtime/validation_error.ts +13 -0
- package/node_modules/ajv/lib/standalone/index.ts +100 -0
- package/node_modules/ajv/lib/standalone/instance.ts +36 -0
- package/node_modules/ajv/lib/types/index.ts +244 -0
- package/node_modules/ajv/lib/types/json-schema.ts +187 -0
- package/node_modules/ajv/lib/types/jtd-schema.ts +273 -0
- package/node_modules/ajv/lib/vocabularies/applicator/additionalItems.ts +56 -0
- package/node_modules/ajv/lib/vocabularies/applicator/additionalProperties.ts +118 -0
- package/node_modules/ajv/lib/vocabularies/applicator/allOf.ts +22 -0
- package/node_modules/ajv/lib/vocabularies/applicator/anyOf.ts +14 -0
- package/node_modules/ajv/lib/vocabularies/applicator/contains.ts +109 -0
- package/node_modules/ajv/lib/vocabularies/applicator/dependencies.ts +112 -0
- package/node_modules/ajv/lib/vocabularies/applicator/dependentSchemas.ts +11 -0
- package/node_modules/ajv/lib/vocabularies/applicator/if.ts +80 -0
- package/node_modules/ajv/lib/vocabularies/applicator/index.ts +53 -0
- package/node_modules/ajv/lib/vocabularies/applicator/items.ts +59 -0
- package/node_modules/ajv/lib/vocabularies/applicator/items2020.ts +36 -0
- package/node_modules/ajv/lib/vocabularies/applicator/not.ts +38 -0
- package/node_modules/ajv/lib/vocabularies/applicator/oneOf.ts +82 -0
- package/node_modules/ajv/lib/vocabularies/applicator/patternProperties.ts +91 -0
- package/node_modules/ajv/lib/vocabularies/applicator/prefixItems.ts +12 -0
- package/node_modules/ajv/lib/vocabularies/applicator/properties.ts +57 -0
- package/node_modules/ajv/lib/vocabularies/applicator/propertyNames.ts +50 -0
- package/node_modules/ajv/lib/vocabularies/applicator/thenElse.ts +13 -0
- package/node_modules/ajv/lib/vocabularies/code.ts +168 -0
- package/node_modules/ajv/lib/vocabularies/core/id.ts +10 -0
- package/node_modules/ajv/lib/vocabularies/core/index.ts +16 -0
- package/node_modules/ajv/lib/vocabularies/core/ref.ts +129 -0
- package/node_modules/ajv/lib/vocabularies/discriminator/index.ts +113 -0
- package/node_modules/ajv/lib/vocabularies/discriminator/types.ts +12 -0
- package/node_modules/ajv/lib/vocabularies/draft2020.ts +23 -0
- package/node_modules/ajv/lib/vocabularies/draft7.ts +17 -0
- package/node_modules/ajv/lib/vocabularies/dynamic/dynamicAnchor.ts +31 -0
- package/node_modules/ajv/lib/vocabularies/dynamic/dynamicRef.ts +51 -0
- package/node_modules/ajv/lib/vocabularies/dynamic/index.ts +9 -0
- package/node_modules/ajv/lib/vocabularies/dynamic/recursiveAnchor.ts +14 -0
- package/node_modules/ajv/lib/vocabularies/dynamic/recursiveRef.ts +10 -0
- package/node_modules/ajv/lib/vocabularies/errors.ts +18 -0
- package/node_modules/ajv/lib/vocabularies/format/format.ts +120 -0
- package/node_modules/ajv/lib/vocabularies/format/index.ts +6 -0
- package/node_modules/ajv/lib/vocabularies/jtd/discriminator.ts +89 -0
- package/node_modules/ajv/lib/vocabularies/jtd/elements.ts +32 -0
- package/node_modules/ajv/lib/vocabularies/jtd/enum.ts +45 -0
- package/node_modules/ajv/lib/vocabularies/jtd/error.ts +23 -0
- package/node_modules/ajv/lib/vocabularies/jtd/index.ts +37 -0
- package/node_modules/ajv/lib/vocabularies/jtd/metadata.ts +24 -0
- package/node_modules/ajv/lib/vocabularies/jtd/nullable.ts +21 -0
- package/node_modules/ajv/lib/vocabularies/jtd/optionalProperties.ts +15 -0
- package/node_modules/ajv/lib/vocabularies/jtd/properties.ts +184 -0
- package/node_modules/ajv/lib/vocabularies/jtd/ref.ts +76 -0
- package/node_modules/ajv/lib/vocabularies/jtd/type.ts +75 -0
- package/node_modules/ajv/lib/vocabularies/jtd/union.ts +12 -0
- package/node_modules/ajv/lib/vocabularies/jtd/values.ts +58 -0
- package/node_modules/ajv/lib/vocabularies/metadata.ts +17 -0
- package/node_modules/ajv/lib/vocabularies/next.ts +8 -0
- package/node_modules/ajv/lib/vocabularies/unevaluated/index.ts +7 -0
- package/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedItems.ts +47 -0
- package/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedProperties.ts +85 -0
- package/node_modules/ajv/lib/vocabularies/validation/const.ts +28 -0
- package/node_modules/ajv/lib/vocabularies/validation/dependentRequired.ts +23 -0
- package/node_modules/ajv/lib/vocabularies/validation/enum.ts +54 -0
- package/node_modules/ajv/lib/vocabularies/validation/index.ts +49 -0
- package/node_modules/ajv/lib/vocabularies/validation/limitContains.ts +16 -0
- package/node_modules/ajv/lib/vocabularies/validation/limitItems.ts +26 -0
- package/node_modules/ajv/lib/vocabularies/validation/limitLength.ts +30 -0
- package/node_modules/ajv/lib/vocabularies/validation/limitNumber.ts +42 -0
- package/node_modules/ajv/lib/vocabularies/validation/limitProperties.ts +26 -0
- package/node_modules/ajv/lib/vocabularies/validation/multipleOf.ts +34 -0
- package/node_modules/ajv/lib/vocabularies/validation/pattern.ts +39 -0
- package/node_modules/ajv/lib/vocabularies/validation/required.ts +98 -0
- package/node_modules/ajv/lib/vocabularies/validation/uniqueItems.ts +79 -0
- package/node_modules/ajv/node_modules/fast-uri/.gitattributes +2 -0
- package/node_modules/ajv/node_modules/fast-uri/.github/dependabot.yml +13 -0
- package/node_modules/ajv/node_modules/fast-uri/.github/workflows/ci.yml +106 -0
- package/node_modules/ajv/node_modules/fast-uri/.github/workflows/lock-threads.yml +19 -0
- package/node_modules/ajv/node_modules/fast-uri/.github/workflows/package-manager-ci.yml +24 -0
- package/node_modules/ajv/node_modules/fast-uri/.github/workflows/release.yml +35 -0
- package/node_modules/ajv/node_modules/fast-uri/LICENSE +30 -0
- package/node_modules/ajv/node_modules/fast-uri/README.md +160 -0
- package/node_modules/ajv/node_modules/fast-uri/benchmark/benchmark.mjs +159 -0
- package/node_modules/ajv/node_modules/fast-uri/benchmark/equal.mjs +51 -0
- package/node_modules/ajv/node_modules/fast-uri/benchmark/non-simple-domain.mjs +22 -0
- package/node_modules/ajv/node_modules/fast-uri/benchmark/package.json +17 -0
- package/node_modules/ajv/node_modules/fast-uri/benchmark/string-array-to-hex-stripped.mjs +24 -0
- package/node_modules/ajv/node_modules/fast-uri/benchmark/ws-is-secure.mjs +65 -0
- package/node_modules/ajv/node_modules/fast-uri/eslint.config.js +6 -0
- package/node_modules/ajv/node_modules/fast-uri/index.js +711 -0
- package/node_modules/ajv/node_modules/fast-uri/lib/schemes.js +272 -0
- package/node_modules/ajv/node_modules/fast-uri/lib/utils.js +799 -0
- package/node_modules/ajv/node_modules/fast-uri/package.json +68 -0
- package/node_modules/ajv/node_modules/fast-uri/test/ajv.test.js +43 -0
- package/node_modules/ajv/node_modules/fast-uri/test/component-safe-serialization.test.js +163 -0
- package/node_modules/ajv/node_modules/fast-uri/test/equal.test.js +145 -0
- package/node_modules/ajv/node_modules/fast-uri/test/fixtures/uri-js-parse.json +503 -0
- package/node_modules/ajv/node_modules/fast-uri/test/fixtures/uri-js-serialize.json +120 -0
- package/node_modules/ajv/node_modules/fast-uri/test/host-delimiter-security.test.js +94 -0
- package/node_modules/ajv/node_modules/fast-uri/test/ipv6-canonical.test.js +34 -0
- package/node_modules/ajv/node_modules/fast-uri/test/ipv6-validation.test.js +124 -0
- package/node_modules/ajv/node_modules/fast-uri/test/malformed-percent.test.js +77 -0
- package/node_modules/ajv/node_modules/fast-uri/test/malformed-urn.test.js +61 -0
- package/node_modules/ajv/node_modules/fast-uri/test/parse.test.js +327 -0
- package/node_modules/ajv/node_modules/fast-uri/test/query-fragment-normalization.test.js +33 -0
- package/node_modules/ajv/node_modules/fast-uri/test/relative-normalization-security.test.js +156 -0
- package/node_modules/ajv/node_modules/fast-uri/test/reserved-path-normalization.test.js +137 -0
- package/node_modules/ajv/node_modules/fast-uri/test/resolve.test.js +87 -0
- package/node_modules/ajv/node_modules/fast-uri/test/rfc-3986.test.js +90 -0
- package/node_modules/ajv/node_modules/fast-uri/test/scheme-validation.test.js +163 -0
- package/node_modules/ajv/node_modules/fast-uri/test/security-normalization.test.js +178 -0
- package/node_modules/ajv/node_modules/fast-uri/test/security.test.js +431 -0
- package/node_modules/ajv/node_modules/fast-uri/test/serialize.test.js +151 -0
- package/node_modules/ajv/node_modules/fast-uri/test/uri-js-compatibility.test.js +33 -0
- package/node_modules/ajv/node_modules/fast-uri/test/uri-js.test.js +912 -0
- package/node_modules/ajv/node_modules/fast-uri/test/urn-full-input.test.js +29 -0
- package/node_modules/ajv/node_modules/fast-uri/test/util.test.js +38 -0
- package/node_modules/ajv/node_modules/fast-uri/test/websocket-query-preservation.test.js +24 -0
- package/node_modules/ajv/node_modules/fast-uri/tsconfig.json +9 -0
- package/node_modules/ajv/node_modules/fast-uri/types/index.d.ts +60 -0
- package/node_modules/ajv/node_modules/fast-uri/types/index.test-d.ts +17 -0
- package/node_modules/ajv/package.json +126 -0
- package/node_modules/ajv-formats/LICENSE +21 -0
- package/node_modules/ajv-formats/README.md +125 -0
- package/node_modules/ajv-formats/dist/formats.d.ts +9 -0
- package/node_modules/ajv-formats/dist/formats.js +208 -0
- package/node_modules/ajv-formats/dist/formats.js.map +1 -0
- package/node_modules/ajv-formats/dist/index.d.ts +15 -0
- package/node_modules/ajv-formats/dist/index.js +37 -0
- package/node_modules/ajv-formats/dist/index.js.map +1 -0
- package/node_modules/ajv-formats/dist/limit.d.ts +10 -0
- package/node_modules/ajv-formats/dist/limit.js +69 -0
- package/node_modules/ajv-formats/dist/limit.js.map +1 -0
- package/node_modules/ajv-formats/package.json +74 -0
- package/node_modules/ajv-formats/src/formats.ts +269 -0
- package/node_modules/ajv-formats/src/index.ts +62 -0
- package/node_modules/ajv-formats/src/limit.ts +99 -0
- package/node_modules/atomic-sleep/.travis.yml +11 -0
- package/node_modules/atomic-sleep/LICENSE +22 -0
- package/node_modules/atomic-sleep/index.js +38 -0
- package/node_modules/atomic-sleep/package.json +37 -0
- package/node_modules/atomic-sleep/readme.md +58 -0
- package/node_modules/atomic-sleep/test.js +47 -0
- package/node_modules/avvio/.borp.yaml +2 -0
- package/node_modules/avvio/.gitattributes +2 -0
- package/node_modules/avvio/.github/dependabot.yml +54 -0
- package/node_modules/avvio/.github/release-drafter.yml +4 -0
- package/node_modules/avvio/.github/workflows/ci.yml +33 -0
- package/node_modules/avvio/.github/workflows/lock-threads.yml +19 -0
- package/node_modules/avvio/.github/workflows/release.yml +24 -0
- package/node_modules/avvio/LICENSE +22 -0
- package/node_modules/avvio/README.md +1246 -0
- package/node_modules/avvio/eslint.config.js +6 -0
- package/node_modules/avvio/examples/example.js +72 -0
- package/node_modules/avvio/index.d.ts +95 -0
- package/node_modules/avvio/index.js +630 -0
- package/node_modules/avvio/lib/create-promise.js +45 -0
- package/node_modules/avvio/lib/debug.js +19 -0
- package/node_modules/avvio/lib/errors.js +38 -0
- package/node_modules/avvio/lib/execute-with-thenable.js +36 -0
- package/node_modules/avvio/lib/get-plugin-name.js +34 -0
- package/node_modules/avvio/lib/is-bundled-or-typescript-plugin.js +23 -0
- package/node_modules/avvio/lib/is-promise-like.js +17 -0
- package/node_modules/avvio/lib/plugin.js +292 -0
- package/node_modules/avvio/lib/symbols.js +26 -0
- package/node_modules/avvio/lib/thenify.js +60 -0
- package/node_modules/avvio/lib/time-tree.js +200 -0
- package/node_modules/avvio/lib/validate-plugin.js +26 -0
- package/node_modules/avvio/package.json +74 -0
- package/node_modules/avvio/test/after-and-ready.test.js +913 -0
- package/node_modules/avvio/test/after-pass-through.test.js +33 -0
- package/node_modules/avvio/test/after-self-promise.test.js +20 -0
- package/node_modules/avvio/test/after-throw.test.js +60 -0
- package/node_modules/avvio/test/after-use-after.test.js +87 -0
- package/node_modules/avvio/test/async-await.test.js +334 -0
- package/node_modules/avvio/test/await-after.test.js +448 -0
- package/node_modules/avvio/test/await-self.test.js +31 -0
- package/node_modules/avvio/test/await-use.test.js +295 -0
- package/node_modules/avvio/test/basic.test.js +601 -0
- package/node_modules/avvio/test/callbacks.test.js +116 -0
- package/node_modules/avvio/test/catch-override-exception.test.js +27 -0
- package/node_modules/avvio/test/chainable.test.js +99 -0
- package/node_modules/avvio/test/close.test.js +831 -0
- package/node_modules/avvio/test/errors.test.js +59 -0
- package/node_modules/avvio/test/esm.mjs +12 -0
- package/node_modules/avvio/test/esm.test.js +8 -0
- package/node_modules/avvio/test/events-listeners.test.js +59 -0
- package/node_modules/avvio/test/expose.test.js +192 -0
- package/node_modules/avvio/test/fixtures/dummy.txt +1 -0
- package/node_modules/avvio/test/fixtures/esm-named.mjs +3 -0
- package/node_modules/avvio/test/fixtures/esm-no-next.mjs +3 -0
- package/node_modules/avvio/test/fixtures/esm-plugin-meta.mjs +8 -0
- package/node_modules/avvio/test/fixtures/esm.mjs +3 -0
- package/node_modules/avvio/test/fixtures/plugin-no-next.js +5 -0
- package/node_modules/avvio/test/gh-issues/bug-205.test.js +17 -0
- package/node_modules/avvio/test/gh-issues/fastify-6843.test.js +48 -0
- package/node_modules/avvio/test/lib/create-promise.test.js +56 -0
- package/node_modules/avvio/test/lib/execute-with-thenable.test.js +86 -0
- package/node_modules/avvio/test/lib/get-plugin-name.test.js +67 -0
- package/node_modules/avvio/test/lib/is-bundled-or-typescript-plugin.test.js +20 -0
- package/node_modules/avvio/test/lib/is-promise-like.test.js +20 -0
- package/node_modules/avvio/test/lib/thenify.test.js +140 -0
- package/node_modules/avvio/test/lib/time-tree.test.js +391 -0
- package/node_modules/avvio/test/lib/validate-plugin.test.js +19 -0
- package/node_modules/avvio/test/load-plugin.test.js +132 -0
- package/node_modules/avvio/test/no-done.test.js +19 -0
- package/node_modules/avvio/test/on-ready-timeout-await.test.js +33 -0
- package/node_modules/avvio/test/override.test.js +395 -0
- package/node_modules/avvio/test/plugin-loaded-so-far.test.js +81 -0
- package/node_modules/avvio/test/plugin-name.test.js +94 -0
- package/node_modules/avvio/test/plugin-timeout-await.test.js +33 -0
- package/node_modules/avvio/test/plugin-timeout.test.js +242 -0
- package/node_modules/avvio/test/plugin.test.js +254 -0
- package/node_modules/avvio/test/pretty-print.test.js +76 -0
- package/node_modules/avvio/test/reentrant.test.js +126 -0
- package/node_modules/avvio/test/symbol-async-dispose.test.js +49 -0
- package/node_modules/avvio/test/to-json.test.js +130 -0
- package/node_modules/avvio/test/twice-done.test.js +23 -0
- package/node_modules/avvio/test/types/index.ts +412 -0
- package/node_modules/avvio/test/types/tsconfig.json +12 -0
- package/node_modules/content-disposition/LICENSE +22 -0
- package/node_modules/content-disposition/README.md +211 -0
- package/node_modules/content-disposition/dist/index.d.ts +72 -0
- package/node_modules/content-disposition/dist/index.js +392 -0
- package/node_modules/content-disposition/dist/index.js.map +1 -0
- package/node_modules/content-disposition/package.json +52 -0
- package/node_modules/cookie/LICENSE +24 -0
- package/node_modules/cookie/README.md +295 -0
- package/node_modules/cookie/dist/index.d.ts +143 -0
- package/node_modules/cookie/dist/index.js +355 -0
- package/node_modules/cookie/dist/index.js.map +1 -0
- package/node_modules/cookie/package.json +57 -0
- package/node_modules/depd/History.md +103 -0
- package/node_modules/depd/LICENSE +22 -0
- package/node_modules/depd/Readme.md +280 -0
- package/node_modules/depd/index.js +538 -0
- package/node_modules/depd/lib/browser/index.js +77 -0
- package/node_modules/depd/package.json +45 -0
- package/node_modules/dequal/dist/index.js +86 -0
- package/node_modules/dequal/dist/index.min.js +1 -0
- package/node_modules/dequal/dist/index.mjs +84 -0
- package/node_modules/dequal/index.d.ts +1 -0
- package/node_modules/dequal/license +21 -0
- package/node_modules/dequal/lite/index.d.ts +1 -0
- package/node_modules/dequal/lite/index.js +31 -0
- package/node_modules/dequal/lite/index.min.js +1 -0
- package/node_modules/dequal/lite/index.mjs +29 -0
- package/node_modules/dequal/package.json +57 -0
- package/node_modules/dequal/readme.md +112 -0
- package/node_modules/escape-html/LICENSE +24 -0
- package/node_modules/escape-html/Readme.md +43 -0
- package/node_modules/escape-html/index.js +78 -0
- package/node_modules/escape-html/package.json +24 -0
- package/node_modules/fast-decode-uri-component/.travis.yml +12 -0
- package/node_modules/fast-decode-uri-component/LICENSE +23 -0
- package/node_modules/fast-decode-uri-component/README.md +43 -0
- package/node_modules/fast-decode-uri-component/bench.js +35 -0
- package/node_modules/fast-decode-uri-component/index.js +115 -0
- package/node_modules/fast-decode-uri-component/package.json +33 -0
- package/node_modules/fast-decode-uri-component/test.js +32 -0
- package/node_modules/fast-deep-equal/LICENSE +21 -0
- package/node_modules/fast-deep-equal/README.md +96 -0
- package/node_modules/fast-deep-equal/es6/index.d.ts +2 -0
- package/node_modules/fast-deep-equal/es6/index.js +72 -0
- package/node_modules/fast-deep-equal/es6/react.d.ts +2 -0
- package/node_modules/fast-deep-equal/es6/react.js +79 -0
- package/node_modules/fast-deep-equal/index.d.ts +4 -0
- package/node_modules/fast-deep-equal/index.js +46 -0
- package/node_modules/fast-deep-equal/package.json +61 -0
- package/node_modules/fast-deep-equal/react.d.ts +2 -0
- package/node_modules/fast-deep-equal/react.js +53 -0
- package/node_modules/fast-json-stringify/.gitattributes +2 -0
- package/node_modules/fast-json-stringify/.github/dependabot.yml +54 -0
- package/node_modules/fast-json-stringify/.github/workflows/ci.yml +33 -0
- package/node_modules/fast-json-stringify/.github/workflows/lock-threads.yml +19 -0
- package/node_modules/fast-json-stringify/.github/workflows/release.yml +24 -0
- package/node_modules/fast-json-stringify/LICENSE +22 -0
- package/node_modules/fast-json-stringify/README.md +795 -0
- package/node_modules/fast-json-stringify/benchmark/bench-cmp-branch.js +116 -0
- package/node_modules/fast-json-stringify/benchmark/bench-cmp-lib.js +364 -0
- package/node_modules/fast-json-stringify/benchmark/bench-fixtures.js +54 -0
- package/node_modules/fast-json-stringify/benchmark/bench-large-array.js +64 -0
- package/node_modules/fast-json-stringify/benchmark/bench-thread.js +39 -0
- package/node_modules/fast-json-stringify/benchmark/bench-utils.js +41 -0
- package/node_modules/fast-json-stringify/benchmark/bench.js +477 -0
- package/node_modules/fast-json-stringify/benchmark/fixtures/api-responses.js +266 -0
- package/node_modules/fast-json-stringify/build/build-schema-validator.js +26 -0
- package/node_modules/fast-json-stringify/eslint.config.js +9 -0
- package/node_modules/fast-json-stringify/examples/example.js +81 -0
- package/node_modules/fast-json-stringify/examples/server.js +42 -0
- package/node_modules/fast-json-stringify/index.js +1769 -0
- package/node_modules/fast-json-stringify/lib/location.js +27 -0
- package/node_modules/fast-json-stringify/lib/merge-schemas.js +9 -0
- package/node_modules/fast-json-stringify/lib/schema-validator.js +1134 -0
- package/node_modules/fast-json-stringify/lib/serializer.js +181 -0
- package/node_modules/fast-json-stringify/lib/standalone.js +53 -0
- package/node_modules/fast-json-stringify/lib/validator.js +115 -0
- package/node_modules/fast-json-stringify/package.json +88 -0
- package/node_modules/fast-json-stringify/test/additionalProperties.test.js +419 -0
- package/node_modules/fast-json-stringify/test/allof.test.js +802 -0
- package/node_modules/fast-json-stringify/test/any.test.js +231 -0
- package/node_modules/fast-json-stringify/test/anyof.test.js +854 -0
- package/node_modules/fast-json-stringify/test/array.test.js +835 -0
- package/node_modules/fast-json-stringify/test/asNumber.test.js +13 -0
- package/node_modules/fast-json-stringify/test/basic.test.js +400 -0
- package/node_modules/fast-json-stringify/test/bigint.test.js +76 -0
- package/node_modules/fast-json-stringify/test/clean-cache.test.js +47 -0
- package/node_modules/fast-json-stringify/test/code-generation-fallbacks.test.js +158 -0
- package/node_modules/fast-json-stringify/test/compile-validators.test.js +110 -0
- package/node_modules/fast-json-stringify/test/const.test.js +335 -0
- package/node_modules/fast-json-stringify/test/date.test.js +666 -0
- package/node_modules/fast-json-stringify/test/debug-mode.test.js +138 -0
- package/node_modules/fast-json-stringify/test/defaults.test.js +376 -0
- package/node_modules/fast-json-stringify/test/deopt.test.js +251 -0
- package/node_modules/fast-json-stringify/test/enum.test.js +37 -0
- package/node_modules/fast-json-stringify/test/fix-604.test.js +25 -0
- package/node_modules/fast-json-stringify/test/fixtures/.keep +0 -0
- package/node_modules/fast-json-stringify/test/if-then-else.test.js +685 -0
- package/node_modules/fast-json-stringify/test/inferType.test.js +92 -0
- package/node_modules/fast-json-stringify/test/infinity.test.js +55 -0
- package/node_modules/fast-json-stringify/test/integer.test.js +194 -0
- package/node_modules/fast-json-stringify/test/invalidSchema.test.js +38 -0
- package/node_modules/fast-json-stringify/test/issue-479.test.js +57 -0
- package/node_modules/fast-json-stringify/test/issue-793.test.js +107 -0
- package/node_modules/fast-json-stringify/test/issue-794.test.js +177 -0
- package/node_modules/fast-json-stringify/test/issue-836.test.js +183 -0
- package/node_modules/fast-json-stringify/test/json-add-comma.test.js +57 -0
- package/node_modules/fast-json-stringify/test/json-schema-test-suite/README.md +10 -0
- package/node_modules/fast-json-stringify/test/json-schema-test-suite/draft4/required.json +54 -0
- package/node_modules/fast-json-stringify/test/json-schema-test-suite/draft4.test.js +12 -0
- package/node_modules/fast-json-stringify/test/json-schema-test-suite/draft6/required.json +70 -0
- package/node_modules/fast-json-stringify/test/json-schema-test-suite/draft6.test.js +12 -0
- package/node_modules/fast-json-stringify/test/json-schema-test-suite/draft7/required.json +70 -0
- package/node_modules/fast-json-stringify/test/json-schema-test-suite/draft7.test.js +12 -0
- package/node_modules/fast-json-stringify/test/json-schema-test-suite/util.js +31 -0
- package/node_modules/fast-json-stringify/test/missing-values.test.js +88 -0
- package/node_modules/fast-json-stringify/test/multi-type-serializer.test.js +19 -0
- package/node_modules/fast-json-stringify/test/nestedObjects.test.js +63 -0
- package/node_modules/fast-json-stringify/test/nullable.test.js +543 -0
- package/node_modules/fast-json-stringify/test/oneof.test.js +752 -0
- package/node_modules/fast-json-stringify/test/optional-property-prefix.test.js +119 -0
- package/node_modules/fast-json-stringify/test/patternProperties.test.js +192 -0
- package/node_modules/fast-json-stringify/test/primitive-array-prototype.test.js +51 -0
- package/node_modules/fast-json-stringify/test/property-names.test.js +41 -0
- package/node_modules/fast-json-stringify/test/recursion.test.js +245 -0
- package/node_modules/fast-json-stringify/test/ref.json +12 -0
- package/node_modules/fast-json-stringify/test/ref.test.js +2077 -0
- package/node_modules/fast-json-stringify/test/regex.test.js +32 -0
- package/node_modules/fast-json-stringify/test/required.test.js +204 -0
- package/node_modules/fast-json-stringify/test/requiresAjv.test.js +50 -0
- package/node_modules/fast-json-stringify/test/sanitize.test.js +141 -0
- package/node_modules/fast-json-stringify/test/sanitize2.test.js +18 -0
- package/node_modules/fast-json-stringify/test/sanitize3.test.js +17 -0
- package/node_modules/fast-json-stringify/test/sanitize4.test.js +16 -0
- package/node_modules/fast-json-stringify/test/sanitize5.test.js +16 -0
- package/node_modules/fast-json-stringify/test/sanitize6.test.js +22 -0
- package/node_modules/fast-json-stringify/test/sanitize7.test.js +68 -0
- package/node_modules/fast-json-stringify/test/schema-depth.test.js +239 -0
- package/node_modules/fast-json-stringify/test/side-effect.test.js +196 -0
- package/node_modules/fast-json-stringify/test/standalone-mode.test.js +358 -0
- package/node_modules/fast-json-stringify/test/strict-schema.test.js +55 -0
- package/node_modules/fast-json-stringify/test/string.test.js +92 -0
- package/node_modules/fast-json-stringify/test/surrogate.test.js +67 -0
- package/node_modules/fast-json-stringify/test/toJSON.test.js +203 -0
- package/node_modules/fast-json-stringify/test/typebox.test.js +36 -0
- package/node_modules/fast-json-stringify/test/typesArray.test.js +609 -0
- package/node_modules/fast-json-stringify/test/unknownFormats.test.js +27 -0
- package/node_modules/fast-json-stringify/test/utils/validator.js +20 -0
- package/node_modules/fast-json-stringify/test/webpack.test.js +50 -0
- package/node_modules/fast-json-stringify/types/index.d.ts +239 -0
- package/node_modules/fast-json-stringify/types/index.tst.ts +272 -0
- package/node_modules/fast-querystring/LICENSE +25 -0
- package/node_modules/fast-querystring/README.md +114 -0
- package/node_modules/fast-querystring/lib/index.d.ts +14 -0
- package/node_modules/fast-querystring/lib/index.js +20 -0
- package/node_modules/fast-querystring/lib/internals/querystring.js +96 -0
- package/node_modules/fast-querystring/lib/parse.js +126 -0
- package/node_modules/fast-querystring/lib/stringify.js +69 -0
- package/node_modules/fast-querystring/package.json +56 -0
- package/node_modules/fast-uri/.gitattributes +2 -0
- package/node_modules/fast-uri/.github/dependabot.yml +53 -0
- package/node_modules/fast-uri/.github/workflows/ci.yml +154 -0
- package/node_modules/fast-uri/.github/workflows/lock-threads.yml +19 -0
- package/node_modules/fast-uri/.github/workflows/ossf-scorecard.yml +45 -0
- package/node_modules/fast-uri/.github/workflows/release.yml +34 -0
- package/node_modules/fast-uri/LICENSE +30 -0
- package/node_modules/fast-uri/README.md +162 -0
- package/node_modules/fast-uri/SECURITY.md +222 -0
- package/node_modules/fast-uri/benchmark/benchmark.mjs +230 -0
- package/node_modules/fast-uri/benchmark/encoder.mjs +54 -0
- package/node_modules/fast-uri/benchmark/equal.mjs +51 -0
- package/node_modules/fast-uri/benchmark/non-simple-domain.mjs +22 -0
- package/node_modules/fast-uri/benchmark/package.json +17 -0
- package/node_modules/fast-uri/benchmark/string-array-to-hex-stripped.mjs +24 -0
- package/node_modules/fast-uri/benchmark/ws-is-secure.mjs +65 -0
- package/node_modules/fast-uri/eslint.config.js +6 -0
- package/node_modules/fast-uri/index.js +785 -0
- package/node_modules/fast-uri/lib/schemes.js +707 -0
- package/node_modules/fast-uri/lib/utils.js +916 -0
- package/node_modules/fast-uri/package.json +68 -0
- package/node_modules/fast-uri/test/ajv.test.js +43 -0
- package/node_modules/fast-uri/test/c0-reference-security.test.js +137 -0
- package/node_modules/fast-uri/test/component-safe-serialization.test.js +163 -0
- package/node_modules/fast-uri/test/equal.test.js +208 -0
- package/node_modules/fast-uri/test/fixtures/uri-js-parse.json +525 -0
- package/node_modules/fast-uri/test/fixtures/uri-js-serialize.json +142 -0
- package/node_modules/fast-uri/test/host-delimiter-security.test.js +94 -0
- package/node_modules/fast-uri/test/host-encoding.test.js +60 -0
- package/node_modules/fast-uri/test/ipv6-canonical.test.js +34 -0
- package/node_modules/fast-uri/test/ipv6-validation.test.js +284 -0
- package/node_modules/fast-uri/test/mailto-authority-security.test.js +125 -0
- package/node_modules/fast-uri/test/mailto-field-name-security.test.js +151 -0
- package/node_modules/fast-uri/test/malformed-percent.test.js +77 -0
- package/node_modules/fast-uri/test/malformed-urn.test.js +61 -0
- package/node_modules/fast-uri/test/parse.test.js +472 -0
- package/node_modules/fast-uri/test/query-fragment-normalization.test.js +33 -0
- package/node_modules/fast-uri/test/relative-normalization-security.test.js +152 -0
- package/node_modules/fast-uri/test/reserved-path-normalization.test.js +137 -0
- package/node_modules/fast-uri/test/resolve.test.js +87 -0
- package/node_modules/fast-uri/test/rfc-3986.test.js +90 -0
- package/node_modules/fast-uri/test/scheme-normalization.test.js +16 -0
- package/node_modules/fast-uri/test/scheme-validation.test.js +161 -0
- package/node_modules/fast-uri/test/security-normalization.test.js +178 -0
- package/node_modules/fast-uri/test/security-utf8-encoding.test.js +0 -0
- package/node_modules/fast-uri/test/security.test.js +431 -0
- package/node_modules/fast-uri/test/serialize.test.js +295 -0
- package/node_modules/fast-uri/test/uri-js-compatibility.test.js +30 -0
- package/node_modules/fast-uri/test/uri-js.test.js +914 -0
- package/node_modules/fast-uri/test/urn-full-input.test.js +47 -0
- package/node_modules/fast-uri/test/util.test.js +47 -0
- package/node_modules/fast-uri/test/websocket-query-preservation.test.js +24 -0
- package/node_modules/fast-uri/tsconfig.json +10 -0
- package/node_modules/fast-uri/types/index.d.ts +71 -0
- package/node_modules/fast-uri/types/index.tst.ts +31 -0
- package/node_modules/fastify/.borp.yaml +3 -0
- package/node_modules/fastify/.markdownlint-cli2.yaml +22 -0
- package/node_modules/fastify/.prettierignore +1 -0
- package/node_modules/fastify/GOVERNANCE.md +4 -0
- package/node_modules/fastify/LICENSE +21 -0
- package/node_modules/fastify/PROJECT_CHARTER.md +126 -0
- package/node_modules/fastify/README.md +420 -0
- package/node_modules/fastify/SECURITY.md +220 -0
- package/node_modules/fastify/SPONSORS.md +28 -0
- package/node_modules/fastify/build/build-error-serializer.js +35 -0
- package/node_modules/fastify/build/build-validation.js +169 -0
- package/node_modules/fastify/build/sync-version.js +11 -0
- package/node_modules/fastify/docs/Guides/Benchmarking.md +60 -0
- package/node_modules/fastify/docs/Guides/Database.md +293 -0
- package/node_modules/fastify/docs/Guides/Delay-Accepting-Requests.md +608 -0
- package/node_modules/fastify/docs/Guides/Detecting-When-Clients-Abort.md +172 -0
- package/node_modules/fastify/docs/Guides/Ecosystem.md +744 -0
- package/node_modules/fastify/docs/Guides/Fluent-Schema.md +127 -0
- package/node_modules/fastify/docs/Guides/Getting-Started.md +620 -0
- package/node_modules/fastify/docs/Guides/Index.md +43 -0
- package/node_modules/fastify/docs/Guides/Migration-Guide-V3.md +287 -0
- package/node_modules/fastify/docs/Guides/Migration-Guide-V4.md +267 -0
- package/node_modules/fastify/docs/Guides/Migration-Guide-V5.md +727 -0
- package/node_modules/fastify/docs/Guides/Plugins-Guide.md +520 -0
- package/node_modules/fastify/docs/Guides/Prototype-Poisoning.md +383 -0
- package/node_modules/fastify/docs/Guides/Recommendations.md +378 -0
- package/node_modules/fastify/docs/Guides/Serverless.md +629 -0
- package/node_modules/fastify/docs/Guides/Style-Guide.md +246 -0
- package/node_modules/fastify/docs/Guides/Testing.md +481 -0
- package/node_modules/fastify/docs/Guides/Write-Plugin.md +103 -0
- package/node_modules/fastify/docs/Guides/Write-Type-Provider.md +34 -0
- package/node_modules/fastify/docs/Reference/ContentTypeParser.md +271 -0
- package/node_modules/fastify/docs/Reference/Decorators.md +436 -0
- package/node_modules/fastify/docs/Reference/Encapsulation.md +224 -0
- package/node_modules/fastify/docs/Reference/Errors.md +462 -0
- package/node_modules/fastify/docs/Reference/HTTP2.md +94 -0
- package/node_modules/fastify/docs/Reference/Hooks.md +958 -0
- package/node_modules/fastify/docs/Reference/Index.md +71 -0
- package/node_modules/fastify/docs/Reference/LTS.md +85 -0
- package/node_modules/fastify/docs/Reference/Lifecycle.md +100 -0
- package/node_modules/fastify/docs/Reference/Logging.md +276 -0
- package/node_modules/fastify/docs/Reference/Middleware.md +75 -0
- package/node_modules/fastify/docs/Reference/Plugins.md +245 -0
- package/node_modules/fastify/docs/Reference/Principles.md +73 -0
- package/node_modules/fastify/docs/Reference/Reply.md +1021 -0
- package/node_modules/fastify/docs/Reference/Request.md +318 -0
- package/node_modules/fastify/docs/Reference/Routes.md +822 -0
- package/node_modules/fastify/docs/Reference/Server.md +2538 -0
- package/node_modules/fastify/docs/Reference/Type-Providers.md +300 -0
- package/node_modules/fastify/docs/Reference/TypeScript.md +1727 -0
- package/node_modules/fastify/docs/Reference/Validation-and-Serialization.md +1181 -0
- package/node_modules/fastify/docs/Reference/Warnings.md +77 -0
- package/node_modules/fastify/docs/index.md +24 -0
- package/node_modules/fastify/docs/resources/encapsulation_context.drawio +1 -0
- package/node_modules/fastify/docs/resources/encapsulation_context.svg +3 -0
- package/node_modules/fastify/eslint.config.js +40 -0
- package/node_modules/fastify/examples/asyncawait.js +38 -0
- package/node_modules/fastify/examples/benchmark/body.json +3 -0
- package/node_modules/fastify/examples/benchmark/hooks-benchmark-async-await.js +44 -0
- package/node_modules/fastify/examples/benchmark/hooks-benchmark.js +52 -0
- package/node_modules/fastify/examples/benchmark/parser.js +47 -0
- package/node_modules/fastify/examples/benchmark/simple.js +30 -0
- package/node_modules/fastify/examples/benchmark/webstream.js +27 -0
- package/node_modules/fastify/examples/hooks.js +91 -0
- package/node_modules/fastify/examples/http2.js +39 -0
- package/node_modules/fastify/examples/https.js +38 -0
- package/node_modules/fastify/examples/parser.js +53 -0
- package/node_modules/fastify/examples/plugin.js +12 -0
- package/node_modules/fastify/examples/route-prefix.js +38 -0
- package/node_modules/fastify/examples/shared-schema.js +38 -0
- package/node_modules/fastify/examples/simple-stream.js +20 -0
- package/node_modules/fastify/examples/simple.js +32 -0
- package/node_modules/fastify/examples/simple.mjs +27 -0
- package/node_modules/fastify/examples/typescript-server.ts +79 -0
- package/node_modules/fastify/examples/use-plugin.js +29 -0
- package/node_modules/fastify/fastify.d.ts +307 -0
- package/node_modules/fastify/fastify.js +1026 -0
- package/node_modules/fastify/integration/server.js +29 -0
- package/node_modules/fastify/integration/test.sh +23 -0
- package/node_modules/fastify/lib/config-validator.js +1266 -0
- package/node_modules/fastify/lib/content-type-parser.js +434 -0
- package/node_modules/fastify/lib/content-type.js +214 -0
- package/node_modules/fastify/lib/context.js +95 -0
- package/node_modules/fastify/lib/decorate.js +160 -0
- package/node_modules/fastify/lib/error-handler.js +155 -0
- package/node_modules/fastify/lib/error-serializer.js +134 -0
- package/node_modules/fastify/lib/error-status.js +14 -0
- package/node_modules/fastify/lib/errors.js +549 -0
- package/node_modules/fastify/lib/four-oh-four.js +181 -0
- package/node_modules/fastify/lib/handle-request.js +217 -0
- package/node_modules/fastify/lib/head-route.js +45 -0
- package/node_modules/fastify/lib/hooks.js +433 -0
- package/node_modules/fastify/lib/initial-config-validation.js +37 -0
- package/node_modules/fastify/lib/log-controller.js +169 -0
- package/node_modules/fastify/lib/logger-factory.js +157 -0
- package/node_modules/fastify/lib/logger-pino.js +68 -0
- package/node_modules/fastify/lib/noop-set.js +10 -0
- package/node_modules/fastify/lib/plugin-override.js +91 -0
- package/node_modules/fastify/lib/plugin-utils.js +169 -0
- package/node_modules/fastify/lib/promise.js +23 -0
- package/node_modules/fastify/lib/reply.js +1097 -0
- package/node_modules/fastify/lib/req-id-gen-factory.js +55 -0
- package/node_modules/fastify/lib/request.js +398 -0
- package/node_modules/fastify/lib/route.js +700 -0
- package/node_modules/fastify/lib/schema-controller.js +164 -0
- package/node_modules/fastify/lib/schemas.js +217 -0
- package/node_modules/fastify/lib/server.js +441 -0
- package/node_modules/fastify/lib/symbols.js +73 -0
- package/node_modules/fastify/lib/validation.js +518 -0
- package/node_modules/fastify/lib/warnings.js +102 -0
- package/node_modules/fastify/lib/wrap-thenable.js +84 -0
- package/node_modules/fastify/package.json +222 -0
- package/node_modules/fastify/scripts/validate-ecosystem-links.js +180 -0
- package/node_modules/fastify/test/404s.test.js +2133 -0
- package/node_modules/fastify/test/500s.test.js +422 -0
- package/node_modules/fastify/test/allow-unsafe-regex.test.js +92 -0
- package/node_modules/fastify/test/als.test.js +65 -0
- package/node_modules/fastify/test/async-await.test.js +705 -0
- package/node_modules/fastify/test/async-dispose.test.js +20 -0
- package/node_modules/fastify/test/async_hooks.test.js +52 -0
- package/node_modules/fastify/test/body-limit.test.js +224 -0
- package/node_modules/fastify/test/buffer.test.js +74 -0
- package/node_modules/fastify/test/build/error-serializer.test.js +36 -0
- package/node_modules/fastify/test/build/version.test.js +14 -0
- package/node_modules/fastify/test/build-certificate.js +109 -0
- package/node_modules/fastify/test/bundler/README.md +29 -0
- package/node_modules/fastify/test/bundler/esbuild/bundler-test.js +32 -0
- package/node_modules/fastify/test/bundler/esbuild/package.json +10 -0
- package/node_modules/fastify/test/bundler/esbuild/src/fail-plugin-version.js +14 -0
- package/node_modules/fastify/test/bundler/esbuild/src/index.js +9 -0
- package/node_modules/fastify/test/bundler/webpack/bundler-test.js +32 -0
- package/node_modules/fastify/test/bundler/webpack/package.json +11 -0
- package/node_modules/fastify/test/bundler/webpack/src/fail-plugin-version.js +14 -0
- package/node_modules/fastify/test/bundler/webpack/src/index.js +9 -0
- package/node_modules/fastify/test/bundler/webpack/webpack.config.js +15 -0
- package/node_modules/fastify/test/case-insensitive.test.js +102 -0
- package/node_modules/fastify/test/chainable.test.js +40 -0
- package/node_modules/fastify/test/child-logger-factory.test.js +153 -0
- package/node_modules/fastify/test/client-timeout.test.js +38 -0
- package/node_modules/fastify/test/close-pipelining.test.js +77 -0
- package/node_modules/fastify/test/close.test.js +779 -0
- package/node_modules/fastify/test/conditional-pino.test.js +47 -0
- package/node_modules/fastify/test/connection-timeout.test.js +42 -0
- package/node_modules/fastify/test/constrained-routes.test.js +1138 -0
- package/node_modules/fastify/test/content-length.test.js +174 -0
- package/node_modules/fastify/test/content-parser.test.js +829 -0
- package/node_modules/fastify/test/content-type-parser-async-context.test.js +76 -0
- package/node_modules/fastify/test/content-type.test.js +232 -0
- package/node_modules/fastify/test/context-config.test.js +164 -0
- package/node_modules/fastify/test/custom-http-server.test.js +156 -0
- package/node_modules/fastify/test/custom-parser-async.test.js +59 -0
- package/node_modules/fastify/test/custom-parser.0.test.js +701 -0
- package/node_modules/fastify/test/custom-parser.1.test.js +266 -0
- package/node_modules/fastify/test/custom-parser.2.test.js +91 -0
- package/node_modules/fastify/test/custom-parser.3.test.js +208 -0
- package/node_modules/fastify/test/custom-parser.4.test.js +258 -0
- package/node_modules/fastify/test/custom-parser.5.test.js +130 -0
- package/node_modules/fastify/test/custom-querystring-parser.test.js +129 -0
- package/node_modules/fastify/test/decorator-instance-properties.test.js +112 -0
- package/node_modules/fastify/test/decorator.test.js +1330 -0
- package/node_modules/fastify/test/delete.test.js +344 -0
- package/node_modules/fastify/test/diagnostics-channel/404.test.js +49 -0
- package/node_modules/fastify/test/diagnostics-channel/async-delay-request.test.js +65 -0
- package/node_modules/fastify/test/diagnostics-channel/async-error-handler.test.js +74 -0
- package/node_modules/fastify/test/diagnostics-channel/async-request.test.js +64 -0
- package/node_modules/fastify/test/diagnostics-channel/error-before-handler.test.js +35 -0
- package/node_modules/fastify/test/diagnostics-channel/error-request.test.js +53 -0
- package/node_modules/fastify/test/diagnostics-channel/error-status.test.js +123 -0
- package/node_modules/fastify/test/diagnostics-channel/init.test.js +50 -0
- package/node_modules/fastify/test/diagnostics-channel/sync-delay-request.test.js +49 -0
- package/node_modules/fastify/test/diagnostics-channel/sync-request-reply.test.js +51 -0
- package/node_modules/fastify/test/diagnostics-channel/sync-request.test.js +54 -0
- package/node_modules/fastify/test/encapsulated-child-logger-factory.test.js +69 -0
- package/node_modules/fastify/test/encapsulated-error-handler.test.js +237 -0
- package/node_modules/fastify/test/esm/errorCodes.test.mjs +10 -0
- package/node_modules/fastify/test/esm/esm.test.mjs +13 -0
- package/node_modules/fastify/test/esm/index.test.js +8 -0
- package/node_modules/fastify/test/esm/named-exports.mjs +14 -0
- package/node_modules/fastify/test/esm/other.mjs +8 -0
- package/node_modules/fastify/test/esm/plugin.mjs +8 -0
- package/node_modules/fastify/test/fastify-instance.test.js +300 -0
- package/node_modules/fastify/test/find-route.test.js +187 -0
- package/node_modules/fastify/test/fix-6411.test.js +65 -0
- package/node_modules/fastify/test/fix-root-primitive-coercion.test.js +35 -0
- package/node_modules/fastify/test/fluent-schema.test.js +209 -0
- package/node_modules/fastify/test/genReqId.test.js +450 -0
- package/node_modules/fastify/test/handler-context.test.js +45 -0
- package/node_modules/fastify/test/handler-timeout.test.js +367 -0
- package/node_modules/fastify/test/has-route.test.js +88 -0
- package/node_modules/fastify/test/header-overflow.test.js +55 -0
- package/node_modules/fastify/test/helper.js +568 -0
- package/node_modules/fastify/test/hooks-async.test.js +1098 -0
- package/node_modules/fastify/test/hooks.on-listen.test.js +1162 -0
- package/node_modules/fastify/test/hooks.on-ready.test.js +421 -0
- package/node_modules/fastify/test/hooks.test.js +3671 -0
- package/node_modules/fastify/test/http-methods/copy.test.js +35 -0
- package/node_modules/fastify/test/http-methods/custom-http-methods.test.js +175 -0
- package/node_modules/fastify/test/http-methods/get.test.js +412 -0
- package/node_modules/fastify/test/http-methods/head.test.js +263 -0
- package/node_modules/fastify/test/http-methods/lock.test.js +108 -0
- package/node_modules/fastify/test/http-methods/mkcalendar.test.js +143 -0
- package/node_modules/fastify/test/http-methods/mkcol.test.js +35 -0
- package/node_modules/fastify/test/http-methods/move.test.js +42 -0
- package/node_modules/fastify/test/http-methods/propfind.test.js +136 -0
- package/node_modules/fastify/test/http-methods/proppatch.test.js +105 -0
- package/node_modules/fastify/test/http-methods/report.test.js +142 -0
- package/node_modules/fastify/test/http-methods/search.test.js +233 -0
- package/node_modules/fastify/test/http-methods/trace.test.js +21 -0
- package/node_modules/fastify/test/http-methods/unlock.test.js +38 -0
- package/node_modules/fastify/test/http2/closing.test.js +270 -0
- package/node_modules/fastify/test/http2/constraint.test.js +109 -0
- package/node_modules/fastify/test/http2/head.test.js +34 -0
- package/node_modules/fastify/test/http2/plain.test.js +248 -0
- package/node_modules/fastify/test/http2/secure-with-fallback.test.js +113 -0
- package/node_modules/fastify/test/http2/secure.test.js +67 -0
- package/node_modules/fastify/test/http2/unknown-http-method.test.js +34 -0
- package/node_modules/fastify/test/https/custom-https-server.test.js +58 -0
- package/node_modules/fastify/test/https/https.test.js +135 -0
- package/node_modules/fastify/test/imports.test.js +17 -0
- package/node_modules/fastify/test/inject.test.js +502 -0
- package/node_modules/fastify/test/input-validation.js +335 -0
- package/node_modules/fastify/test/internals/all.test.js +39 -0
- package/node_modules/fastify/test/internals/content-type-parser.test.js +111 -0
- package/node_modules/fastify/test/internals/context.test.js +31 -0
- package/node_modules/fastify/test/internals/decorator.test.js +156 -0
- package/node_modules/fastify/test/internals/errors.test.js +1032 -0
- package/node_modules/fastify/test/internals/handle-request.test.js +270 -0
- package/node_modules/fastify/test/internals/hook-runner.test.js +449 -0
- package/node_modules/fastify/test/internals/hooks.test.js +96 -0
- package/node_modules/fastify/test/internals/initial-config.test.js +383 -0
- package/node_modules/fastify/test/internals/logger.test.js +485 -0
- package/node_modules/fastify/test/internals/plugin.test.js +172 -0
- package/node_modules/fastify/test/internals/promise.test.js +63 -0
- package/node_modules/fastify/test/internals/reply-serialize.test.js +714 -0
- package/node_modules/fastify/test/internals/reply.test.js +2077 -0
- package/node_modules/fastify/test/internals/req-id-gen-factory.test.js +133 -0
- package/node_modules/fastify/test/internals/request-validate.test.js +1402 -0
- package/node_modules/fastify/test/internals/request.test.js +533 -0
- package/node_modules/fastify/test/internals/schema-controller-perf.test.js +73 -0
- package/node_modules/fastify/test/internals/server.test.js +91 -0
- package/node_modules/fastify/test/internals/validation.test.js +418 -0
- package/node_modules/fastify/test/issue-4959.test.js +118 -0
- package/node_modules/fastify/test/keep-alive-timeout.test.js +42 -0
- package/node_modules/fastify/test/listen.1.test.js +119 -0
- package/node_modules/fastify/test/listen.2.test.js +113 -0
- package/node_modules/fastify/test/listen.3.test.js +83 -0
- package/node_modules/fastify/test/listen.4.test.js +168 -0
- package/node_modules/fastify/test/listen.5.test.js +119 -0
- package/node_modules/fastify/test/logger/instantiation.test.js +341 -0
- package/node_modules/fastify/test/logger/logger-test-utils.js +47 -0
- package/node_modules/fastify/test/logger/logging.test.js +516 -0
- package/node_modules/fastify/test/logger/options.test.js +616 -0
- package/node_modules/fastify/test/logger/request.test.js +292 -0
- package/node_modules/fastify/test/logger/response.test.js +183 -0
- package/node_modules/fastify/test/logger/tap-parallel-not-ok +0 -0
- package/node_modules/fastify/test/max-requests-per-socket.test.js +113 -0
- package/node_modules/fastify/test/middleware.test.js +37 -0
- package/node_modules/fastify/test/noop-set.test.js +19 -0
- package/node_modules/fastify/test/nullable-validation.test.js +187 -0
- package/node_modules/fastify/test/options.error-handler.test.js +5 -0
- package/node_modules/fastify/test/options.test.js +5 -0
- package/node_modules/fastify/test/output-validation.test.js +140 -0
- package/node_modules/fastify/test/patch.error-handler.test.js +5 -0
- package/node_modules/fastify/test/patch.test.js +5 -0
- package/node_modules/fastify/test/plugin.1.test.js +230 -0
- package/node_modules/fastify/test/plugin.2.test.js +314 -0
- package/node_modules/fastify/test/plugin.3.test.js +287 -0
- package/node_modules/fastify/test/plugin.4.test.js +505 -0
- package/node_modules/fastify/test/plugin.helper.js +8 -0
- package/node_modules/fastify/test/plugin.name.display.js +10 -0
- package/node_modules/fastify/test/post-empty-body.test.js +38 -0
- package/node_modules/fastify/test/pretty-print.test.js +366 -0
- package/node_modules/fastify/test/promises.test.js +125 -0
- package/node_modules/fastify/test/proto-poisoning.test.js +145 -0
- package/node_modules/fastify/test/put.error-handler.test.js +5 -0
- package/node_modules/fastify/test/put.test.js +5 -0
- package/node_modules/fastify/test/register.test.js +184 -0
- package/node_modules/fastify/test/reply-code.test.js +148 -0
- package/node_modules/fastify/test/reply-early-hints.test.js +100 -0
- package/node_modules/fastify/test/reply-error.test.js +850 -0
- package/node_modules/fastify/test/reply-media-type.test.js +188 -0
- package/node_modules/fastify/test/reply-trailers.test.js +603 -0
- package/node_modules/fastify/test/reply-web-stream-locked.test.js +37 -0
- package/node_modules/fastify/test/request-error.test.js +624 -0
- package/node_modules/fastify/test/request-header-host.test.js +339 -0
- package/node_modules/fastify/test/request-id.test.js +118 -0
- package/node_modules/fastify/test/request-media-type.test.js +105 -0
- package/node_modules/fastify/test/request-port.test.js +72 -0
- package/node_modules/fastify/test/request-timeout.test.js +53 -0
- package/node_modules/fastify/test/rfc-10008.test.js +144 -0
- package/node_modules/fastify/test/route-hooks.test.js +635 -0
- package/node_modules/fastify/test/route-prefix.test.js +970 -0
- package/node_modules/fastify/test/route-shorthand.test.js +58 -0
- package/node_modules/fastify/test/route.1.test.js +259 -0
- package/node_modules/fastify/test/route.2.test.js +100 -0
- package/node_modules/fastify/test/route.3.test.js +213 -0
- package/node_modules/fastify/test/route.4.test.js +127 -0
- package/node_modules/fastify/test/route.5.test.js +211 -0
- package/node_modules/fastify/test/route.6.test.js +299 -0
- package/node_modules/fastify/test/route.7.test.js +406 -0
- package/node_modules/fastify/test/route.8.test.js +225 -0
- package/node_modules/fastify/test/router-options.test.js +1343 -0
- package/node_modules/fastify/test/same-shape.test.js +124 -0
- package/node_modules/fastify/test/schema-examples.test.js +661 -0
- package/node_modules/fastify/test/schema-feature.test.js +2327 -0
- package/node_modules/fastify/test/schema-serialization.test.js +1312 -0
- package/node_modules/fastify/test/schema-special-usage.test.js +1429 -0
- package/node_modules/fastify/test/schema-validation.test.js +2245 -0
- package/node_modules/fastify/test/scripts/validate-ecosystem-links.test.js +322 -0
- package/node_modules/fastify/test/serialize-response.test.js +186 -0
- package/node_modules/fastify/test/server.test.js +347 -0
- package/node_modules/fastify/test/set-error-handler.test.js +69 -0
- package/node_modules/fastify/test/skip-reply-send.test.js +317 -0
- package/node_modules/fastify/test/stream-serializers.test.js +40 -0
- package/node_modules/fastify/test/stream.1.test.js +94 -0
- package/node_modules/fastify/test/stream.2.test.js +129 -0
- package/node_modules/fastify/test/stream.3.test.js +198 -0
- package/node_modules/fastify/test/stream.4.test.js +176 -0
- package/node_modules/fastify/test/stream.5.test.js +188 -0
- package/node_modules/fastify/test/sync-routes.test.js +32 -0
- package/node_modules/fastify/test/throw.test.js +373 -0
- package/node_modules/fastify/test/trust-proxy.test.js +320 -0
- package/node_modules/fastify/test/type-provider.test.js +22 -0
- package/node_modules/fastify/test/types/content-type-parser.tst.ts +70 -0
- package/node_modules/fastify/test/types/decorate-request-reply.tst.ts +18 -0
- package/node_modules/fastify/test/types/dummy-plugin.mts +9 -0
- package/node_modules/fastify/test/types/errors.tst.ts +93 -0
- package/node_modules/fastify/test/types/fastify.tst.ts +364 -0
- package/node_modules/fastify/test/types/hooks.tst.ts +578 -0
- package/node_modules/fastify/test/types/instance.tst.ts +599 -0
- package/node_modules/fastify/test/types/logger.tst.ts +276 -0
- package/node_modules/fastify/test/types/plugin.tst.ts +96 -0
- package/node_modules/fastify/test/types/register.tst.ts +245 -0
- package/node_modules/fastify/test/types/reply.tst.ts +297 -0
- package/node_modules/fastify/test/types/request.tst.ts +199 -0
- package/node_modules/fastify/test/types/route.tst.ts +588 -0
- package/node_modules/fastify/test/types/schema.tst.ts +135 -0
- package/node_modules/fastify/test/types/serverFactory.tst.ts +37 -0
- package/node_modules/fastify/test/types/tsconfig.json +9 -0
- package/node_modules/fastify/test/types/type-provider.tst.ts +1219 -0
- package/node_modules/fastify/test/types/using.tst.ts +14 -0
- package/node_modules/fastify/test/upgrade.test.js +52 -0
- package/node_modules/fastify/test/url-rewriting.test.js +122 -0
- package/node_modules/fastify/test/use-semicolon-delimiter.test.js +168 -0
- package/node_modules/fastify/test/validation-error-handling.test.js +934 -0
- package/node_modules/fastify/test/versioned-routes.test.js +603 -0
- package/node_modules/fastify/test/web-api.test.js +616 -0
- package/node_modules/fastify/test/wrap-thenable.test.js +30 -0
- package/node_modules/fastify/types/content-type-parser.d.ts +95 -0
- package/node_modules/fastify/types/context.d.ts +22 -0
- package/node_modules/fastify/types/errors.d.ts +98 -0
- package/node_modules/fastify/types/hooks.d.ts +936 -0
- package/node_modules/fastify/types/instance.d.ts +717 -0
- package/node_modules/fastify/types/logger.d.ts +162 -0
- package/node_modules/fastify/types/plugin.d.ts +48 -0
- package/node_modules/fastify/types/register.d.ts +85 -0
- package/node_modules/fastify/types/reply.d.ts +129 -0
- package/node_modules/fastify/types/request.d.ts +116 -0
- package/node_modules/fastify/types/route.d.ts +233 -0
- package/node_modules/fastify/types/schema.d.ts +61 -0
- package/node_modules/fastify/types/server-factory.d.ts +19 -0
- package/node_modules/fastify/types/type-provider.d.ts +151 -0
- package/node_modules/fastify/types/utils.d.ts +98 -0
- package/node_modules/fastify-plugin/.gitattributes +2 -0
- package/node_modules/fastify-plugin/.github/dependabot.yml +53 -0
- package/node_modules/fastify-plugin/.github/workflows/ci.yml +33 -0
- package/node_modules/fastify-plugin/.github/workflows/lock-threads.yml +19 -0
- package/node_modules/fastify-plugin/.github/workflows/release.yml +24 -0
- package/node_modules/fastify-plugin/LICENSE +21 -0
- package/node_modules/fastify-plugin/README.md +191 -0
- package/node_modules/fastify-plugin/eslint.config.js +6 -0
- package/node_modules/fastify-plugin/index.js +77 -0
- package/node_modules/fastify-plugin/lib/getPluginName.js +29 -0
- package/node_modules/fastify-plugin/lib/toCamelCase.js +14 -0
- package/node_modules/fastify-plugin/package.json +70 -0
- package/node_modules/fastify-plugin/test/bundlers.test.js +110 -0
- package/node_modules/fastify-plugin/test/checkVersion.test.js +67 -0
- package/node_modules/fastify-plugin/test/composite.test.js +14 -0
- package/node_modules/fastify-plugin/test/esm/esm.test.mjs +11 -0
- package/node_modules/fastify-plugin/test/extractPluginName.test.js +54 -0
- package/node_modules/fastify-plugin/test/mu1tip1e.composite.test.js +15 -0
- package/node_modules/fastify-plugin/test/test.js +468 -0
- package/node_modules/fastify-plugin/test/toCamelCase.test.js +24 -0
- package/node_modules/fastify-plugin/types/example-async.tst.ts +19 -0
- package/node_modules/fastify-plugin/types/example-callback.tst.ts +19 -0
- package/node_modules/fastify-plugin/types/index.d.ts +54 -0
- package/node_modules/fastify-plugin/types/index.tst.ts +249 -0
- package/node_modules/fastq/LICENSE +13 -0
- package/node_modules/fastq/README.md +310 -0
- package/node_modules/fastq/SECURITY.md +15 -0
- package/node_modules/fastq/bench.js +66 -0
- package/node_modules/fastq/eslint.config.js +11 -0
- package/node_modules/fastq/example.js +14 -0
- package/node_modules/fastq/example.mjs +9 -0
- package/node_modules/fastq/index.d.ts +59 -0
- package/node_modules/fastq/package.json +49 -0
- package/node_modules/fastq/queue.js +348 -0
- package/node_modules/fastq/test/example.ts +83 -0
- package/node_modules/fastq/test/promise.js +356 -0
- package/node_modules/fastq/test/test.js +808 -0
- package/node_modules/fastq/test/tsconfig.json +11 -0
- package/node_modules/find-my-way/.github/dependabot.yml +34 -0
- package/node_modules/find-my-way/.github/workflows/node.js.yml +75 -0
- package/node_modules/find-my-way/LICENSE +21 -0
- package/node_modules/find-my-way/README.md +913 -0
- package/node_modules/find-my-way/benchmark/bench-thread.js +35 -0
- package/node_modules/find-my-way/benchmark/bench.js +156 -0
- package/node_modules/find-my-way/benchmark/compare-branches.js +113 -0
- package/node_modules/find-my-way/benchmark/compile-mode.js +171 -0
- package/node_modules/find-my-way/benchmark/uri-decoding.js +55 -0
- package/node_modules/find-my-way/eslint.config.js +3 -0
- package/node_modules/find-my-way/example.js +29 -0
- package/node_modules/find-my-way/index.d.ts +254 -0
- package/node_modules/find-my-way/index.js +1102 -0
- package/node_modules/find-my-way/lib/compiler.js +647 -0
- package/node_modules/find-my-way/lib/constrainer.js +177 -0
- package/node_modules/find-my-way/lib/handler-storage.js +179 -0
- package/node_modules/find-my-way/lib/http-methods.js +13 -0
- package/node_modules/find-my-way/lib/node.js +250 -0
- package/node_modules/find-my-way/lib/null-object.js +8 -0
- package/node_modules/find-my-way/lib/pretty-print.js +176 -0
- package/node_modules/find-my-way/lib/strategies/accept-host.js +56 -0
- package/node_modules/find-my-way/lib/strategies/accept-version.js +64 -0
- package/node_modules/find-my-way/lib/strategies/http-method.js +15 -0
- package/node_modules/find-my-way/lib/url-sanitizer.js +196 -0
- package/node_modules/find-my-way/package.json +55 -0
- package/node_modules/find-my-way/test/case-insensitive.test.js +230 -0
- package/node_modules/find-my-way/test/compile.test.js +298 -0
- package/node_modules/find-my-way/test/constraint-globals.test.js +22 -0
- package/node_modules/find-my-way/test/constraint.custom-versioning.test.js +130 -0
- package/node_modules/find-my-way/test/constraint.custom.async.test.js +155 -0
- package/node_modules/find-my-way/test/constraint.custom.test.js +273 -0
- package/node_modules/find-my-way/test/constraint.default-versioning.test.js +289 -0
- package/node_modules/find-my-way/test/constraint.host.test.js +104 -0
- package/node_modules/find-my-way/test/constraints.test.js +108 -0
- package/node_modules/find-my-way/test/custom-querystring-parser.test.js +46 -0
- package/node_modules/find-my-way/test/errors.test.js +484 -0
- package/node_modules/find-my-way/test/fastify-issue-3129.test.js +34 -0
- package/node_modules/find-my-way/test/fastify-issue-3957.test.js +23 -0
- package/node_modules/find-my-way/test/find-route.test.js +324 -0
- package/node_modules/find-my-way/test/find.test.js +16 -0
- package/node_modules/find-my-way/test/for-in-loop.test.js +39 -0
- package/node_modules/find-my-way/test/full-url.test.js +143 -0
- package/node_modules/find-my-way/test/has-route.test.js +218 -0
- package/node_modules/find-my-way/test/helpers/compiled-lookup-preload.js +29 -0
- package/node_modules/find-my-way/test/host-storage.test.js +79 -0
- package/node_modules/find-my-way/test/http2/constraint.host.test.js +66 -0
- package/node_modules/find-my-way/test/issue-101.test.js +31 -0
- package/node_modules/find-my-way/test/issue-104.test.js +206 -0
- package/node_modules/find-my-way/test/issue-110.test.js +31 -0
- package/node_modules/find-my-way/test/issue-132.test.js +80 -0
- package/node_modules/find-my-way/test/issue-145.test.js +24 -0
- package/node_modules/find-my-way/test/issue-149.test.js +21 -0
- package/node_modules/find-my-way/test/issue-151.test.js +54 -0
- package/node_modules/find-my-way/test/issue-154.test.js +21 -0
- package/node_modules/find-my-way/test/issue-161.test.js +88 -0
- package/node_modules/find-my-way/test/issue-17.test.js +397 -0
- package/node_modules/find-my-way/test/issue-175.test.js +80 -0
- package/node_modules/find-my-way/test/issue-182.test.js +18 -0
- package/node_modules/find-my-way/test/issue-190.test.js +44 -0
- package/node_modules/find-my-way/test/issue-20.test.js +79 -0
- package/node_modules/find-my-way/test/issue-206.test.js +121 -0
- package/node_modules/find-my-way/test/issue-221.test.js +50 -0
- package/node_modules/find-my-way/test/issue-234.test.js +94 -0
- package/node_modules/find-my-way/test/issue-238.test.js +119 -0
- package/node_modules/find-my-way/test/issue-240.test.js +46 -0
- package/node_modules/find-my-way/test/issue-241.test.js +32 -0
- package/node_modules/find-my-way/test/issue-247.test.js +51 -0
- package/node_modules/find-my-way/test/issue-254.test.js +31 -0
- package/node_modules/find-my-way/test/issue-28.test.js +618 -0
- package/node_modules/find-my-way/test/issue-280.test.js +14 -0
- package/node_modules/find-my-way/test/issue-285.test.js +37 -0
- package/node_modules/find-my-way/test/issue-330.test.js +220 -0
- package/node_modules/find-my-way/test/issue-369.test.js +73 -0
- package/node_modules/find-my-way/test/issue-44.test.js +149 -0
- package/node_modules/find-my-way/test/issue-46.test.js +75 -0
- package/node_modules/find-my-way/test/issue-49.test.js +108 -0
- package/node_modules/find-my-way/test/issue-59.test.js +131 -0
- package/node_modules/find-my-way/test/issue-62.test.js +28 -0
- package/node_modules/find-my-way/test/issue-63.test.js +23 -0
- package/node_modules/find-my-way/test/issue-67.test.js +50 -0
- package/node_modules/find-my-way/test/issue-6700.test.js +27 -0
- package/node_modules/find-my-way/test/issue-93.test.js +19 -0
- package/node_modules/find-my-way/test/lookup-async.test.js +29 -0
- package/node_modules/find-my-way/test/lookup.test.js +58 -0
- package/node_modules/find-my-way/test/many-params.test.js +71 -0
- package/node_modules/find-my-way/test/matching-order.test.js +17 -0
- package/node_modules/find-my-way/test/max-param-length.test.js +44 -0
- package/node_modules/find-my-way/test/methods.test.js +854 -0
- package/node_modules/find-my-way/test/null-object.test.js +36 -0
- package/node_modules/find-my-way/test/on-bad-url.test.js +109 -0
- package/node_modules/find-my-way/test/optional-params.test.js +231 -0
- package/node_modules/find-my-way/test/params-collisions.test.js +126 -0
- package/node_modules/find-my-way/test/path-params-match.test.js +53 -0
- package/node_modules/find-my-way/test/path-utils.test.js +68 -0
- package/node_modules/find-my-way/test/pretty-print-tree.test.js +596 -0
- package/node_modules/find-my-way/test/pretty-print.test.js +726 -0
- package/node_modules/find-my-way/test/querystring.test.js +54 -0
- package/node_modules/find-my-way/test/regex.test.js +282 -0
- package/node_modules/find-my-way/test/repro-issue-414.test.js +57 -0
- package/node_modules/find-my-way/test/routes-registered.test.js +45 -0
- package/node_modules/find-my-way/test/server.test.js +368 -0
- package/node_modules/find-my-way/test/shorthands.test.js +44 -0
- package/node_modules/find-my-way/test/store.test.js +49 -0
- package/node_modules/find-my-way/test/types/router.tst.ts +273 -0
- package/node_modules/find-my-way/test/url-sanitizer.test.js +87 -0
- package/node_modules/glob/LICENSE.md +63 -0
- package/node_modules/glob/README.md +1203 -0
- package/node_modules/glob/dist/commonjs/glob.d.ts +396 -0
- package/node_modules/glob/dist/commonjs/glob.d.ts.map +1 -0
- package/node_modules/glob/dist/commonjs/glob.js +248 -0
- package/node_modules/glob/dist/commonjs/glob.js.map +1 -0
- package/node_modules/glob/dist/commonjs/has-magic.d.ts +14 -0
- package/node_modules/glob/dist/commonjs/has-magic.d.ts.map +1 -0
- package/node_modules/glob/dist/commonjs/has-magic.js +27 -0
- package/node_modules/glob/dist/commonjs/has-magic.js.map +1 -0
- package/node_modules/glob/dist/commonjs/ignore.d.ts +24 -0
- package/node_modules/glob/dist/commonjs/ignore.d.ts.map +1 -0
- package/node_modules/glob/dist/commonjs/ignore.js +119 -0
- package/node_modules/glob/dist/commonjs/ignore.js.map +1 -0
- package/node_modules/glob/dist/commonjs/index.d.ts +97 -0
- package/node_modules/glob/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/glob/dist/commonjs/index.js +68 -0
- package/node_modules/glob/dist/commonjs/index.js.map +1 -0
- package/node_modules/glob/dist/commonjs/index.min.js +4 -0
- package/node_modules/glob/dist/commonjs/index.min.js.map +7 -0
- package/node_modules/glob/dist/commonjs/package.json +3 -0
- package/node_modules/glob/dist/commonjs/pattern.d.ts +79 -0
- package/node_modules/glob/dist/commonjs/pattern.d.ts.map +1 -0
- package/node_modules/glob/dist/commonjs/pattern.js +223 -0
- package/node_modules/glob/dist/commonjs/pattern.js.map +1 -0
- package/node_modules/glob/dist/commonjs/processor.d.ts +59 -0
- package/node_modules/glob/dist/commonjs/processor.d.ts.map +1 -0
- package/node_modules/glob/dist/commonjs/processor.js +301 -0
- package/node_modules/glob/dist/commonjs/processor.js.map +1 -0
- package/node_modules/glob/dist/commonjs/walker.d.ts +97 -0
- package/node_modules/glob/dist/commonjs/walker.d.ts.map +1 -0
- package/node_modules/glob/dist/commonjs/walker.js +387 -0
- package/node_modules/glob/dist/commonjs/walker.js.map +1 -0
- package/node_modules/glob/dist/esm/glob.d.ts +396 -0
- package/node_modules/glob/dist/esm/glob.d.ts.map +1 -0
- package/node_modules/glob/dist/esm/glob.js +244 -0
- package/node_modules/glob/dist/esm/glob.js.map +1 -0
- package/node_modules/glob/dist/esm/has-magic.d.ts +14 -0
- package/node_modules/glob/dist/esm/has-magic.d.ts.map +1 -0
- package/node_modules/glob/dist/esm/has-magic.js +23 -0
- package/node_modules/glob/dist/esm/has-magic.js.map +1 -0
- package/node_modules/glob/dist/esm/ignore.d.ts +24 -0
- package/node_modules/glob/dist/esm/ignore.d.ts.map +1 -0
- package/node_modules/glob/dist/esm/ignore.js +115 -0
- package/node_modules/glob/dist/esm/ignore.js.map +1 -0
- package/node_modules/glob/dist/esm/index.d.ts +97 -0
- package/node_modules/glob/dist/esm/index.d.ts.map +1 -0
- package/node_modules/glob/dist/esm/index.js +55 -0
- package/node_modules/glob/dist/esm/index.js.map +1 -0
- package/node_modules/glob/dist/esm/index.min.js +4 -0
- package/node_modules/glob/dist/esm/index.min.js.map +7 -0
- package/node_modules/glob/dist/esm/package.json +3 -0
- package/node_modules/glob/dist/esm/pattern.d.ts +79 -0
- package/node_modules/glob/dist/esm/pattern.d.ts.map +1 -0
- package/node_modules/glob/dist/esm/pattern.js +219 -0
- package/node_modules/glob/dist/esm/pattern.js.map +1 -0
- package/node_modules/glob/dist/esm/processor.d.ts +59 -0
- package/node_modules/glob/dist/esm/processor.d.ts.map +1 -0
- package/node_modules/glob/dist/esm/processor.js +294 -0
- package/node_modules/glob/dist/esm/processor.js.map +1 -0
- package/node_modules/glob/dist/esm/walker.d.ts +97 -0
- package/node_modules/glob/dist/esm/walker.d.ts.map +1 -0
- package/node_modules/glob/dist/esm/walker.js +381 -0
- package/node_modules/glob/dist/esm/walker.js.map +1 -0
- package/node_modules/glob/package.json +98 -0
- package/node_modules/http-errors/HISTORY.md +186 -0
- package/node_modules/http-errors/LICENSE +23 -0
- package/node_modules/http-errors/README.md +169 -0
- package/node_modules/http-errors/index.js +290 -0
- package/node_modules/http-errors/package.json +54 -0
- package/node_modules/inherits/LICENSE +16 -0
- package/node_modules/inherits/README.md +42 -0
- package/node_modules/inherits/inherits.js +9 -0
- package/node_modules/inherits/inherits_browser.js +27 -0
- package/node_modules/inherits/package.json +29 -0
- package/node_modules/ipaddr.js/LICENSE +19 -0
- package/node_modules/ipaddr.js/README.md +632 -0
- package/node_modules/ipaddr.js/lib/ipaddr.d.ts +72 -0
- package/node_modules/ipaddr.js/lib/ipaddr.js +1098 -0
- package/node_modules/ipaddr.js/package.json +39 -0
- package/node_modules/json-schema-ref-resolver/.gitattributes +2 -0
- package/node_modules/json-schema-ref-resolver/.github/dependabot.yml +53 -0
- package/node_modules/json-schema-ref-resolver/.github/workflows/ci.yml +33 -0
- package/node_modules/json-schema-ref-resolver/.github/workflows/lock-threads.yml +19 -0
- package/node_modules/json-schema-ref-resolver/.github/workflows/release.yml +24 -0
- package/node_modules/json-schema-ref-resolver/LICENSE +21 -0
- package/node_modules/json-schema-ref-resolver/README.md +406 -0
- package/node_modules/json-schema-ref-resolver/eslint.config.js +6 -0
- package/node_modules/json-schema-ref-resolver/index.js +284 -0
- package/node_modules/json-schema-ref-resolver/package.json +71 -0
- package/node_modules/json-schema-ref-resolver/test/anchor.test.js +56 -0
- package/node_modules/json-schema-ref-resolver/test/collisions.test.js +199 -0
- package/node_modules/json-schema-ref-resolver/test/deref-schema.test.js +287 -0
- package/node_modules/json-schema-ref-resolver/test/get-deref-schema.test.js +363 -0
- package/node_modules/json-schema-ref-resolver/test/get-schema-dependencies.test.js +158 -0
- package/node_modules/json-schema-ref-resolver/test/get-schema-refs.test.js +87 -0
- package/node_modules/json-schema-ref-resolver/test/get-schema.test.js +222 -0
- package/node_modules/json-schema-ref-resolver/test/has-schema.test.js +28 -0
- package/node_modules/json-schema-ref-resolver/types/index.d.ts +67 -0
- package/node_modules/json-schema-ref-resolver/types/index.tst.ts +23 -0
- package/node_modules/json-schema-traverse/.eslintrc.yml +27 -0
- package/node_modules/json-schema-traverse/.github/FUNDING.yml +2 -0
- package/node_modules/json-schema-traverse/.github/workflows/build.yml +28 -0
- package/node_modules/json-schema-traverse/.github/workflows/publish.yml +27 -0
- package/node_modules/json-schema-traverse/LICENSE +21 -0
- package/node_modules/json-schema-traverse/README.md +95 -0
- package/node_modules/json-schema-traverse/index.d.ts +40 -0
- package/node_modules/json-schema-traverse/index.js +93 -0
- package/node_modules/json-schema-traverse/package.json +43 -0
- package/node_modules/json-schema-traverse/spec/.eslintrc.yml +6 -0
- package/node_modules/json-schema-traverse/spec/fixtures/schema.js +125 -0
- package/node_modules/json-schema-traverse/spec/index.spec.js +171 -0
- package/node_modules/light-my-request/.gitattributes +2 -0
- package/node_modules/light-my-request/.github/dependabot.yml +53 -0
- package/node_modules/light-my-request/.github/workflows/ci.yml +34 -0
- package/node_modules/light-my-request/.github/workflows/lock-threads.yml +19 -0
- package/node_modules/light-my-request/.github/workflows/release.yml +24 -0
- package/node_modules/light-my-request/LICENSE +32 -0
- package/node_modules/light-my-request/README.md +342 -0
- package/node_modules/light-my-request/benchmark/benchmark.js +164 -0
- package/node_modules/light-my-request/build/build-validation.js +116 -0
- package/node_modules/light-my-request/docs/cookies.md +32 -0
- package/node_modules/light-my-request/eslint.config.js +9 -0
- package/node_modules/light-my-request/index.js +209 -0
- package/node_modules/light-my-request/lib/config-validator.js +1083 -0
- package/node_modules/light-my-request/lib/cookies.js +66 -0
- package/node_modules/light-my-request/lib/form-data.js +79 -0
- package/node_modules/light-my-request/lib/parse-url.js +47 -0
- package/node_modules/light-my-request/lib/request.js +357 -0
- package/node_modules/light-my-request/lib/response.js +242 -0
- package/node_modules/light-my-request/package.json +84 -0
- package/node_modules/light-my-request/test/async-await.test.js +55 -0
- package/node_modules/light-my-request/test/bind-inject.test.js +296 -0
- package/node_modules/light-my-request/test/index.test.js +2520 -0
- package/node_modules/light-my-request/test/request.test.js +29 -0
- package/node_modules/light-my-request/test/response.test.js +29 -0
- package/node_modules/light-my-request/test/stream.test.js +359 -0
- package/node_modules/light-my-request/types/index.d.ts +143 -0
- package/node_modules/light-my-request/types/index.tst.ts +195 -0
- package/node_modules/mime/CHANGELOG.md +312 -0
- package/node_modules/mime/LICENSE +21 -0
- package/node_modules/mime/Mime.js +97 -0
- package/node_modules/mime/README.md +178 -0
- package/node_modules/mime/cli.js +46 -0
- package/node_modules/mime/index.js +4 -0
- package/node_modules/mime/lite.js +4 -0
- package/node_modules/mime/package.json +52 -0
- package/node_modules/mime/types/other.js +1 -0
- package/node_modules/mime/types/standard.js +1 -0
- package/node_modules/minipass/LICENSE.md +55 -0
- package/node_modules/minipass/README.md +825 -0
- package/node_modules/minipass/dist/commonjs/index.d.ts +545 -0
- package/node_modules/minipass/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/minipass/dist/commonjs/index.js +1038 -0
- package/node_modules/minipass/dist/commonjs/index.js.map +1 -0
- package/node_modules/minipass/dist/commonjs/package.json +3 -0
- package/node_modules/minipass/dist/esm/index.d.ts +545 -0
- package/node_modules/minipass/dist/esm/index.d.ts.map +1 -0
- package/node_modules/minipass/dist/esm/index.js +1020 -0
- package/node_modules/minipass/dist/esm/index.js.map +1 -0
- package/node_modules/minipass/dist/esm/package.json +3 -0
- package/node_modules/minipass/package.json +77 -0
- package/node_modules/on-exit-leak-free/.github/dependabot.yml +12 -0
- package/node_modules/on-exit-leak-free/.github/workflows/ci.yml +46 -0
- package/node_modules/on-exit-leak-free/LICENSE +21 -0
- package/node_modules/on-exit-leak-free/README.md +54 -0
- package/node_modules/on-exit-leak-free/index.js +108 -0
- package/node_modules/on-exit-leak-free/package.json +37 -0
- package/node_modules/on-exit-leak-free/test/base.test.js +30 -0
- package/node_modules/on-exit-leak-free/test/event-emitter-leak.test.js +23 -0
- package/node_modules/on-exit-leak-free/test/fixtures/beforeExit.js +33 -0
- package/node_modules/on-exit-leak-free/test/fixtures/close.js +21 -0
- package/node_modules/on-exit-leak-free/test/fixtures/gc-not-close.js +24 -0
- package/node_modules/on-exit-leak-free/test/fixtures/unregister.js +24 -0
- package/node_modules/path-scurry/LICENSE.md +55 -0
- package/node_modules/path-scurry/README.md +636 -0
- package/node_modules/path-scurry/dist/commonjs/index.d.ts +1115 -0
- package/node_modules/path-scurry/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/path-scurry/dist/commonjs/index.js +2018 -0
- package/node_modules/path-scurry/dist/commonjs/index.js.map +1 -0
- package/node_modules/path-scurry/dist/commonjs/package.json +3 -0
- package/node_modules/path-scurry/dist/esm/index.d.ts +1115 -0
- package/node_modules/path-scurry/dist/esm/index.d.ts.map +1 -0
- package/node_modules/path-scurry/dist/esm/index.js +1983 -0
- package/node_modules/path-scurry/dist/esm/index.js.map +1 -0
- package/node_modules/path-scurry/dist/esm/package.json +3 -0
- package/node_modules/path-scurry/package.json +72 -0
- package/node_modules/pino/.nojekyll +0 -0
- package/node_modules/pino/.prettierignore +1 -0
- package/node_modules/pino/CNAME +1 -0
- package/node_modules/pino/CONTRIBUTING.md +34 -0
- package/node_modules/pino/LICENSE +21 -0
- package/node_modules/pino/README.md +177 -0
- package/node_modules/pino/SECURITY.md +103 -0
- package/node_modules/pino/benchmarks/basic.bench.js +95 -0
- package/node_modules/pino/benchmarks/child-child.bench.js +52 -0
- package/node_modules/pino/benchmarks/child-creation.bench.js +73 -0
- package/node_modules/pino/benchmarks/child.bench.js +62 -0
- package/node_modules/pino/benchmarks/deep-object.bench.js +88 -0
- package/node_modules/pino/benchmarks/formatters.bench.js +50 -0
- package/node_modules/pino/benchmarks/internal/custom-levels.js +67 -0
- package/node_modules/pino/benchmarks/internal/just-pino-heavy.bench.js +76 -0
- package/node_modules/pino/benchmarks/internal/just-pino.bench.js +182 -0
- package/node_modules/pino/benchmarks/internal/parent-vs-child.bench.js +75 -0
- package/node_modules/pino/benchmarks/internal/redact.bench.js +86 -0
- package/node_modules/pino/benchmarks/long-string.bench.js +81 -0
- package/node_modules/pino/benchmarks/multi-arg.bench.js +193 -0
- package/node_modules/pino/benchmarks/multistream.js +98 -0
- package/node_modules/pino/benchmarks/object.bench.js +82 -0
- package/node_modules/pino/benchmarks/utils/generate-benchmark-doc.js +36 -0
- package/node_modules/pino/benchmarks/utils/runbench.js +138 -0
- package/node_modules/pino/benchmarks/utils/wrap-log-level.js +55 -0
- package/node_modules/pino/bin.js +6 -0
- package/node_modules/pino/browser.js +607 -0
- package/node_modules/pino/build/sync-version.js +25 -0
- package/node_modules/pino/docs/api.md +1664 -0
- package/node_modules/pino/docs/asynchronous.md +55 -0
- package/node_modules/pino/docs/benchmarks.md +55 -0
- package/node_modules/pino/docs/browser.md +341 -0
- package/node_modules/pino/docs/bundling.md +40 -0
- package/node_modules/pino/docs/child-loggers.md +116 -0
- package/node_modules/pino/docs/diagnostics.md +16 -0
- package/node_modules/pino/docs/ecosystem.md +87 -0
- package/node_modules/pino/docs/help.md +353 -0
- package/node_modules/pino/docs/lts.md +93 -0
- package/node_modules/pino/docs/pretty.md +38 -0
- package/node_modules/pino/docs/redaction.md +130 -0
- package/node_modules/pino/docs/transports.md +1447 -0
- package/node_modules/pino/docs/web.md +306 -0
- package/node_modules/pino/eslint.config.js +36 -0
- package/node_modules/pino/examples/basic.js +43 -0
- package/node_modules/pino/examples/transport.js +68 -0
- package/node_modules/pino/favicon.ico +0 -0
- package/node_modules/pino/file.js +12 -0
- package/node_modules/pino/inc-version.sh +42 -0
- package/node_modules/pino/index.html +55 -0
- package/node_modules/pino/lib/caller.js +40 -0
- package/node_modules/pino/lib/constants.js +28 -0
- package/node_modules/pino/lib/deprecations.js +8 -0
- package/node_modules/pino/lib/levels.js +241 -0
- package/node_modules/pino/lib/meta.js +3 -0
- package/node_modules/pino/lib/multistream.js +211 -0
- package/node_modules/pino/lib/proto.js +256 -0
- package/node_modules/pino/lib/redaction.js +119 -0
- package/node_modules/pino/lib/symbols.js +76 -0
- package/node_modules/pino/lib/time.js +39 -0
- package/node_modules/pino/lib/tools.js +427 -0
- package/node_modules/pino/lib/transport-stream.js +56 -0
- package/node_modules/pino/lib/transport.js +302 -0
- package/node_modules/pino/lib/worker.js +197 -0
- package/node_modules/pino/package.json +112 -0
- package/node_modules/pino/pino.d.ts +881 -0
- package/node_modules/pino/pino.js +259 -0
- package/node_modules/pino/test/basic.test.js +952 -0
- package/node_modules/pino/test/broken-pipe.test.js +59 -0
- package/node_modules/pino/test/browser-bindings.test.js +114 -0
- package/node_modules/pino/test/browser-child.test.js +132 -0
- package/node_modules/pino/test/browser-disabled.test.js +87 -0
- package/node_modules/pino/test/browser-early-console-freeze.test.js +12 -0
- package/node_modules/pino/test/browser-is-level-enabled.test.js +101 -0
- package/node_modules/pino/test/browser-levels.test.js +241 -0
- package/node_modules/pino/test/browser-redaction.test.js +264 -0
- package/node_modules/pino/test/browser-serializers.test.js +352 -0
- package/node_modules/pino/test/browser-set-bindings.test.js +99 -0
- package/node_modules/pino/test/browser-timestamp.test.js +88 -0
- package/node_modules/pino/test/browser-transmit.test.js +417 -0
- package/node_modules/pino/test/browser.test.js +698 -0
- package/node_modules/pino/test/caller.test.js +20 -0
- package/node_modules/pino/test/complex-objects.test.js +36 -0
- package/node_modules/pino/test/crlf.test.js +34 -0
- package/node_modules/pino/test/custom-levels.test.js +267 -0
- package/node_modules/pino/test/diagnostics.test.js +107 -0
- package/node_modules/pino/test/error-key.test.js +37 -0
- package/node_modules/pino/test/error.test.js +403 -0
- package/node_modules/pino/test/escaping.test.js +110 -0
- package/node_modules/pino/test/esm/esm.mjs +14 -0
- package/node_modules/pino/test/esm/index.test.js +21 -0
- package/node_modules/pino/test/esm/named-exports.mjs +29 -0
- package/node_modules/pino/test/exit.test.js +79 -0
- package/node_modules/pino/test/fixtures/broken-pipe/basic.js +9 -0
- package/node_modules/pino/test/fixtures/broken-pipe/destination.js +10 -0
- package/node_modules/pino/test/fixtures/broken-pipe/syncfalse.js +12 -0
- package/node_modules/pino/test/fixtures/caller-loop.js +6 -0
- package/node_modules/pino/test/fixtures/console-transport.js +13 -0
- package/node_modules/pino/test/fixtures/crashing-transport.js +13 -0
- package/node_modules/pino/test/fixtures/default-exit.js +8 -0
- package/node_modules/pino/test/fixtures/destination-exit.js +8 -0
- package/node_modules/pino/test/fixtures/eval/index.js +13 -0
- package/node_modules/pino/test/fixtures/eval/node_modules/14-files.js +3 -0
- package/node_modules/pino/test/fixtures/eval/node_modules/2-files.js +3 -0
- package/node_modules/pino/test/fixtures/eval/node_modules/file1.js +5 -0
- package/node_modules/pino/test/fixtures/eval/node_modules/file10.js +5 -0
- package/node_modules/pino/test/fixtures/eval/node_modules/file11.js +5 -0
- package/node_modules/pino/test/fixtures/eval/node_modules/file12.js +5 -0
- package/node_modules/pino/test/fixtures/eval/node_modules/file13.js +5 -0
- package/node_modules/pino/test/fixtures/eval/node_modules/file14.js +11 -0
- package/node_modules/pino/test/fixtures/eval/node_modules/file2.js +5 -0
- package/node_modules/pino/test/fixtures/eval/node_modules/file3.js +5 -0
- package/node_modules/pino/test/fixtures/eval/node_modules/file4.js +5 -0
- package/node_modules/pino/test/fixtures/eval/node_modules/file5.js +5 -0
- package/node_modules/pino/test/fixtures/eval/node_modules/file6.js +5 -0
- package/node_modules/pino/test/fixtures/eval/node_modules/file7.js +5 -0
- package/node_modules/pino/test/fixtures/eval/node_modules/file8.js +5 -0
- package/node_modules/pino/test/fixtures/eval/node_modules/file9.js +5 -0
- package/node_modules/pino/test/fixtures/noop-transport.js +10 -0
- package/node_modules/pino/test/fixtures/pretty/null-prototype.js +8 -0
- package/node_modules/pino/test/fixtures/stdout-hack-protection.js +11 -0
- package/node_modules/pino/test/fixtures/syncfalse-child.js +6 -0
- package/node_modules/pino/test/fixtures/syncfalse-exit.js +9 -0
- package/node_modules/pino/test/fixtures/syncfalse-flush-exit.js +10 -0
- package/node_modules/pino/test/fixtures/syncfalse.js +6 -0
- package/node_modules/pino/test/fixtures/syntax-error-esm.mjs +2 -0
- package/node_modules/pino/test/fixtures/to-file-transport-with-transform.js +20 -0
- package/node_modules/pino/test/fixtures/to-file-transport.js +13 -0
- package/node_modules/pino/test/fixtures/to-file-transport.mjs +8 -0
- package/node_modules/pino/test/fixtures/transport/index.js +12 -0
- package/node_modules/pino/test/fixtures/transport/package.json +5 -0
- package/node_modules/pino/test/fixtures/transport-exit-immediately-with-async-dest.js +16 -0
- package/node_modules/pino/test/fixtures/transport-exit-immediately.js +11 -0
- package/node_modules/pino/test/fixtures/transport-exit-on-ready.js +12 -0
- package/node_modules/pino/test/fixtures/transport-invalid-node-options.js +26 -0
- package/node_modules/pino/test/fixtures/transport-main.js +9 -0
- package/node_modules/pino/test/fixtures/transport-many-lines.js +29 -0
- package/node_modules/pino/test/fixtures/transport-preload-main.mjs +13 -0
- package/node_modules/pino/test/fixtures/transport-preload.mjs +13 -0
- package/node_modules/pino/test/fixtures/transport-string-stdout.js +9 -0
- package/node_modules/pino/test/fixtures/transport-transform.js +21 -0
- package/node_modules/pino/test/fixtures/transport-uses-pino-config.js +33 -0
- package/node_modules/pino/test/fixtures/transport-with-on-exit.js +12 -0
- package/node_modules/pino/test/fixtures/transport-worker-data.js +19 -0
- package/node_modules/pino/test/fixtures/transport-worker-name.js +24 -0
- package/node_modules/pino/test/fixtures/transport-worker.js +15 -0
- package/node_modules/pino/test/fixtures/transport-wrong-export-type.js +3 -0
- package/node_modules/pino/test/fixtures/ts/to-file-transport-native.mts +15 -0
- package/node_modules/pino/test/fixtures/ts/to-file-transport-with-transform.ts +18 -0
- package/node_modules/pino/test/fixtures/ts/to-file-transport.ts +11 -0
- package/node_modules/pino/test/fixtures/ts/transpile.cjs +36 -0
- package/node_modules/pino/test/fixtures/ts/transport-exit-immediately-with-async-dest.ts +15 -0
- package/node_modules/pino/test/fixtures/ts/transport-exit-immediately.ts +10 -0
- package/node_modules/pino/test/fixtures/ts/transport-exit-on-ready.ts +11 -0
- package/node_modules/pino/test/fixtures/ts/transport-main.ts +8 -0
- package/node_modules/pino/test/fixtures/ts/transport-string-stdout.ts +8 -0
- package/node_modules/pino/test/fixtures/ts/transport-worker.ts +14 -0
- package/node_modules/pino/test/formatters.test.js +364 -0
- package/node_modules/pino/test/helper.d.ts +4 -0
- package/node_modules/pino/test/helper.js +159 -0
- package/node_modules/pino/test/hooks.test.js +114 -0
- package/node_modules/pino/test/http.test.js +214 -0
- package/node_modules/pino/test/internals/version.test.js +17 -0
- package/node_modules/pino/test/is-level-enabled.test.js +179 -0
- package/node_modules/pino/test/jest/basic.spec.js +10 -0
- package/node_modules/pino/test/levels.test.js +810 -0
- package/node_modules/pino/test/metadata.test.js +120 -0
- package/node_modules/pino/test/mixin-merge-strategy.test.js +57 -0
- package/node_modules/pino/test/mixin.test.js +241 -0
- package/node_modules/pino/test/multistream.test.js +793 -0
- package/node_modules/pino/test/redact.test.js +923 -0
- package/node_modules/pino/test/serializers.test.js +257 -0
- package/node_modules/pino/test/smoke.js +59 -0
- package/node_modules/pino/test/stdout-protection.test.js +41 -0
- package/node_modules/pino/test/syncfalse.test.js +186 -0
- package/node_modules/pino/test/timestamp-nano.test.js +37 -0
- package/node_modules/pino/test/timestamp.test.js +124 -0
- package/node_modules/pino/test/transport/big.test.js +42 -0
- package/node_modules/pino/test/transport/bundlers-support.test.js +99 -0
- package/node_modules/pino/test/transport/caller.test.js +24 -0
- package/node_modules/pino/test/transport/core.test.js +818 -0
- package/node_modules/pino/test/transport/core.transpiled.test.ts +114 -0
- package/node_modules/pino/test/transport/crash.test.js +36 -0
- package/node_modules/pino/test/transport/module-link.test.js +241 -0
- package/node_modules/pino/test/transport/native-type-stripping.test.mjs +151 -0
- package/node_modules/pino/test/transport/node-options.test.js +116 -0
- package/node_modules/pino/test/transport/pipeline.test.js +137 -0
- package/node_modules/pino/test/transport/preload.test.js +54 -0
- package/node_modules/pino/test/transport/repl.test.js +15 -0
- package/node_modules/pino/test/transport/sync-false.test.js +79 -0
- package/node_modules/pino/test/transport/sync-true.test.js +57 -0
- package/node_modules/pino/test/transport/targets.test.js +48 -0
- package/node_modules/pino/test/transport/uses-pino-config.test.js +166 -0
- package/node_modules/pino/test/transport-stream.test.js +40 -0
- package/node_modules/pino/test/types/pino-import.tst.cts +30 -0
- package/node_modules/pino/test/types/pino-import.tst.js +73 -0
- package/node_modules/pino/test/types/pino-multistream.tst.ts +49 -0
- package/node_modules/pino/test/types/pino-top-export.tst.ts +32 -0
- package/node_modules/pino/test/types/pino-transport.tst.ts +171 -0
- package/node_modules/pino/test/types/pino-type-only.tst.ts +77 -0
- package/node_modules/pino/test/types/pino.ts +98 -0
- package/node_modules/pino/test/types/pino.tst.ts +681 -0
- package/node_modules/pino/test/types/tsconfig.json +10 -0
- package/node_modules/pino/tsconfig.json +14 -0
- package/node_modules/pino-abstract-transport/.github/dependabot.yml +13 -0
- package/node_modules/pino-abstract-transport/.github/workflows/ci.yml +80 -0
- package/node_modules/pino-abstract-transport/.husky/pre-commit +4 -0
- package/node_modules/pino-abstract-transport/LICENSE +21 -0
- package/node_modules/pino-abstract-transport/README.md +171 -0
- package/node_modules/pino-abstract-transport/index.d.ts +122 -0
- package/node_modules/pino-abstract-transport/index.js +128 -0
- package/node_modules/pino-abstract-transport/package.json +41 -0
- package/node_modules/pino-abstract-transport/test/base.test.js +473 -0
- package/node_modules/pino-abstract-transport/test/fixtures/transport-async-iteration.js +22 -0
- package/node_modules/pino-abstract-transport/test/fixtures/transport-on-data.js +22 -0
- package/node_modules/pino-abstract-transport/test/fixtures/transport-transform.js +24 -0
- package/node_modules/pino-abstract-transport/test/fixtures/worker-pipeline.js +15 -0
- package/node_modules/pino-abstract-transport/test/match.js +24 -0
- package/node_modules/pino-abstract-transport/test/types/index.test-d.ts +31 -0
- package/node_modules/pino-abstract-transport/test/worker.test.js +372 -0
- package/node_modules/pino-std-serializers/.editorconfig +13 -0
- package/node_modules/pino-std-serializers/.github/dependabot.yml +13 -0
- package/node_modules/pino-std-serializers/.github/workflows/ci.yml +81 -0
- package/node_modules/pino-std-serializers/LICENSE +7 -0
- package/node_modules/pino-std-serializers/Readme.md +182 -0
- package/node_modules/pino-std-serializers/eslint.config.js +7 -0
- package/node_modules/pino-std-serializers/index.d.ts +145 -0
- package/node_modules/pino-std-serializers/index.js +36 -0
- package/node_modules/pino-std-serializers/lib/err-helpers.js +118 -0
- package/node_modules/pino-std-serializers/lib/err-proto.js +48 -0
- package/node_modules/pino-std-serializers/lib/err-with-cause.js +48 -0
- package/node_modules/pino-std-serializers/lib/err.js +45 -0
- package/node_modules/pino-std-serializers/lib/req.js +100 -0
- package/node_modules/pino-std-serializers/lib/res.js +47 -0
- package/node_modules/pino-std-serializers/package.json +42 -0
- package/node_modules/pino-std-serializers/test/err-with-cause.test.js +187 -0
- package/node_modules/pino-std-serializers/test/err.test.js +200 -0
- package/node_modules/pino-std-serializers/test/req.test.js +477 -0
- package/node_modules/pino-std-serializers/test/res.test.js +120 -0
- package/node_modules/pino-std-serializers/test/types/index.test-d.ts +71 -0
- package/node_modules/pino-std-serializers/tsconfig.json +13 -0
- package/node_modules/process-warning/.gitattributes +2 -0
- package/node_modules/process-warning/.github/dependabot.yml +53 -0
- package/node_modules/process-warning/.github/workflows/ci.yml +33 -0
- package/node_modules/process-warning/.github/workflows/lock-threads.yml +19 -0
- package/node_modules/process-warning/.github/workflows/release.yml +24 -0
- package/node_modules/process-warning/LICENSE +21 -0
- package/node_modules/process-warning/README.md +157 -0
- package/node_modules/process-warning/benchmarks/warn.js +25 -0
- package/node_modules/process-warning/eslint.config.js +6 -0
- package/node_modules/process-warning/examples/example.js +11 -0
- package/node_modules/process-warning/index.js +192 -0
- package/node_modules/process-warning/package.json +72 -0
- package/node_modules/process-warning/test/emit-interpolated-string.test.js +34 -0
- package/node_modules/process-warning/test/emit-once-only.test.js +33 -0
- package/node_modules/process-warning/test/emit-reset.test.js +40 -0
- package/node_modules/process-warning/test/emit-set.test.js +35 -0
- package/node_modules/process-warning/test/emit-unlimited.test.js +42 -0
- package/node_modules/process-warning/test/index.test.js +99 -0
- package/node_modules/process-warning/test/issue-88.test.js +38 -0
- package/node_modules/process-warning/test/jest.test.js +24 -0
- package/node_modules/process-warning/test/no-warnings.test.js +80 -0
- package/node_modules/process-warning/test/promise.js +10 -0
- package/node_modules/process-warning/test/spy-warning.test.js +143 -0
- package/node_modules/process-warning/types/index.d.ts +51 -0
- package/node_modules/process-warning/types/index.tst.ts +48 -0
- package/node_modules/quick-format-unescaped/.github/workflows/ci.yml +21 -0
- package/node_modules/quick-format-unescaped/LICENSE +21 -0
- package/node_modules/quick-format-unescaped/benchmark.js +24 -0
- package/node_modules/quick-format-unescaped/index.js +109 -0
- package/node_modules/quick-format-unescaped/package.json +29 -0
- package/node_modules/quick-format-unescaped/readme.md +66 -0
- package/node_modules/quick-format-unescaped/test/index.js +136 -0
- package/node_modules/real-require/LICENSE.md +21 -0
- package/node_modules/real-require/README.md +51 -0
- package/node_modules/real-require/package.json +38 -0
- package/node_modules/real-require/src/index.js +14 -0
- package/node_modules/require-from-string/index.js +34 -0
- package/node_modules/require-from-string/license +21 -0
- package/node_modules/require-from-string/package.json +28 -0
- package/node_modules/require-from-string/readme.md +56 -0
- package/node_modules/ret/LICENSE +21 -0
- package/node_modules/ret/README.md +540 -0
- package/node_modules/ret/dist/index.d.ts +7 -0
- package/node_modules/ret/dist/index.js +30 -0
- package/node_modules/ret/dist/index.js.map +1 -0
- package/node_modules/ret/dist/reconstruct.d.ts +2 -0
- package/node_modules/ret/dist/reconstruct.js +78 -0
- package/node_modules/ret/dist/reconstruct.js.map +1 -0
- package/node_modules/ret/dist/sets-lookup.d.ts +5 -0
- package/node_modules/ret/dist/sets-lookup.js +65 -0
- package/node_modules/ret/dist/sets-lookup.js.map +1 -0
- package/node_modules/ret/dist/sets.d.ts +9 -0
- package/node_modules/ret/dist/sets.js +50 -0
- package/node_modules/ret/dist/sets.js.map +1 -0
- package/node_modules/ret/dist/tokenizer.d.ts +8 -0
- package/node_modules/ret/dist/tokenizer.js +372 -0
- package/node_modules/ret/dist/tokenizer.js.map +1 -0
- package/node_modules/ret/dist/types/index.d.ts +3 -0
- package/node_modules/ret/dist/types/index.js +20 -0
- package/node_modules/ret/dist/types/index.js.map +1 -0
- package/node_modules/ret/dist/types/set-lookup.d.ts +8 -0
- package/node_modules/ret/dist/types/set-lookup.js +3 -0
- package/node_modules/ret/dist/types/set-lookup.js.map +1 -0
- package/node_modules/ret/dist/types/tokens.d.ts +42 -0
- package/node_modules/ret/dist/types/tokens.js +3 -0
- package/node_modules/ret/dist/types/tokens.js.map +1 -0
- package/node_modules/ret/dist/types/types.d.ts +10 -0
- package/node_modules/ret/dist/types/types.js +15 -0
- package/node_modules/ret/dist/types/types.js.map +1 -0
- package/node_modules/ret/dist/util.d.ts +18 -0
- package/node_modules/ret/dist/util.js +98 -0
- package/node_modules/ret/dist/util.js.map +1 -0
- package/node_modules/ret/dist/write-set-tokens.d.ts +14 -0
- package/node_modules/ret/dist/write-set-tokens.js +121 -0
- package/node_modules/ret/dist/write-set-tokens.js.map +1 -0
- package/node_modules/ret/package.json +44 -0
- package/node_modules/reusify/.github/dependabot.yml +7 -0
- package/node_modules/reusify/.github/workflows/ci.yml +96 -0
- package/node_modules/reusify/LICENSE +22 -0
- package/node_modules/reusify/README.md +139 -0
- package/node_modules/reusify/SECURITY.md +15 -0
- package/node_modules/reusify/benchmarks/createNoCodeFunction.js +30 -0
- package/node_modules/reusify/benchmarks/fib.js +13 -0
- package/node_modules/reusify/benchmarks/reuseNoCodeFunction.js +38 -0
- package/node_modules/reusify/eslint.config.js +14 -0
- package/node_modules/reusify/package.json +50 -0
- package/node_modules/reusify/reusify.d.ts +14 -0
- package/node_modules/reusify/reusify.js +33 -0
- package/node_modules/reusify/test.js +66 -0
- package/node_modules/reusify/tsconfig.json +11 -0
- package/node_modules/rfdc/.github/workflows/ci.yml +21 -0
- package/node_modules/rfdc/LICENSE +15 -0
- package/node_modules/rfdc/default.js +3 -0
- package/node_modules/rfdc/index.d.ts +13 -0
- package/node_modules/rfdc/index.js +198 -0
- package/node_modules/rfdc/index.test-d.ts +13 -0
- package/node_modules/rfdc/package.json +73 -0
- package/node_modules/rfdc/readme.md +181 -0
- package/node_modules/rfdc/test/index.js +306 -0
- package/node_modules/safe-regex2/.gitattributes +2 -0
- package/node_modules/safe-regex2/.github/dependabot.yml +53 -0
- package/node_modules/safe-regex2/.github/workflows/ci.yml +33 -0
- package/node_modules/safe-regex2/.github/workflows/lock-threads.yml +19 -0
- package/node_modules/safe-regex2/.github/workflows/release.yml +24 -0
- package/node_modules/safe-regex2/LICENSE +21 -0
- package/node_modules/safe-regex2/README.md +68 -0
- package/node_modules/safe-regex2/bin/safe-regex2.js +58 -0
- package/node_modules/safe-regex2/eslint.config.js +6 -0
- package/node_modules/safe-regex2/example/safe.js +5 -0
- package/node_modules/safe-regex2/index.js +76 -0
- package/node_modules/safe-regex2/package.json +78 -0
- package/node_modules/safe-regex2/test/regex.test.js +58 -0
- package/node_modules/safe-regex2/types/index.d.ts +9 -0
- package/node_modules/safe-regex2/types/index.tst.ts +12 -0
- package/node_modules/safe-stable-stringify/LICENSE +21 -0
- package/node_modules/safe-stable-stringify/esm/package.json +4 -0
- package/node_modules/safe-stable-stringify/esm/wrapper.d.ts +4 -0
- package/node_modules/safe-stable-stringify/esm/wrapper.js +6 -0
- package/node_modules/safe-stable-stringify/index.d.ts +22 -0
- package/node_modules/safe-stable-stringify/index.js +625 -0
- package/node_modules/safe-stable-stringify/package.json +65 -0
- package/node_modules/safe-stable-stringify/readme.md +179 -0
- package/node_modules/secure-json-parse/.airtap.yml +7 -0
- package/node_modules/secure-json-parse/.gitattributes +2 -0
- package/node_modules/secure-json-parse/.github/dependabot.yml +53 -0
- package/node_modules/secure-json-parse/.github/workflows/ci.yml +124 -0
- package/node_modules/secure-json-parse/.github/workflows/lock-threads.yml +19 -0
- package/node_modules/secure-json-parse/.github/workflows/release.yml +24 -0
- package/node_modules/secure-json-parse/LICENSE +17 -0
- package/node_modules/secure-json-parse/README.md +172 -0
- package/node_modules/secure-json-parse/benchmarks/ignore.js +37 -0
- package/node_modules/secure-json-parse/benchmarks/no__proto__.js +42 -0
- package/node_modules/secure-json-parse/benchmarks/package.json +15 -0
- package/node_modules/secure-json-parse/benchmarks/remove.js +41 -0
- package/node_modules/secure-json-parse/benchmarks/throw.js +51 -0
- package/node_modules/secure-json-parse/benchmarks/valid.js +51 -0
- package/node_modules/secure-json-parse/eslint.config.js +6 -0
- package/node_modules/secure-json-parse/index.js +163 -0
- package/node_modules/secure-json-parse/package.json +74 -0
- package/node_modules/secure-json-parse/test/index.test.js +651 -0
- package/node_modules/secure-json-parse/types/index.d.ts +60 -0
- package/node_modules/secure-json-parse/types/index.tst.ts +45 -0
- package/node_modules/set-cookie-parser/LICENSE +21 -0
- package/node_modules/set-cookie-parser/README.md +189 -0
- package/node_modules/set-cookie-parser/dist/.eslintrc.cjs +16 -0
- package/node_modules/set-cookie-parser/dist/set-cookie.cjs +306 -0
- package/node_modules/set-cookie-parser/lib/set-cookie.d.ts +119 -0
- package/node_modules/set-cookie-parser/lib/set-cookie.js +311 -0
- package/node_modules/set-cookie-parser/package.json +61 -0
- package/node_modules/setprototypeof/LICENSE +13 -0
- package/node_modules/setprototypeof/README.md +31 -0
- package/node_modules/setprototypeof/index.d.ts +2 -0
- package/node_modules/setprototypeof/index.js +17 -0
- package/node_modules/setprototypeof/package.json +38 -0
- package/node_modules/setprototypeof/test/index.js +24 -0
- package/node_modules/sonic-boom/.eslintignore +2 -0
- package/node_modules/sonic-boom/.taprc +3 -0
- package/node_modules/sonic-boom/LICENSE +21 -0
- package/node_modules/sonic-boom/README.md +153 -0
- package/node_modules/sonic-boom/bench.js +98 -0
- package/node_modules/sonic-boom/check.js +18 -0
- package/node_modules/sonic-boom/example.js +8 -0
- package/node_modules/sonic-boom/fixtures/firehose.js +22 -0
- package/node_modules/sonic-boom/index.js +733 -0
- package/node_modules/sonic-boom/package.json +52 -0
- package/node_modules/sonic-boom/test/destroy.test.js +49 -0
- package/node_modules/sonic-boom/test/end.test.js +98 -0
- package/node_modules/sonic-boom/test/flush-sync.test.js +140 -0
- package/node_modules/sonic-boom/test/flush.test.js +419 -0
- package/node_modules/sonic-boom/test/fsync.test.js +63 -0
- package/node_modules/sonic-boom/test/helper.js +42 -0
- package/node_modules/sonic-boom/test/minlength.test.js +35 -0
- package/node_modules/sonic-boom/test/mode.test.js +116 -0
- package/node_modules/sonic-boom/test/periodicflush.test.js +61 -0
- package/node_modules/sonic-boom/test/reopen.test.js +239 -0
- package/node_modules/sonic-boom/test/retry.test.js +414 -0
- package/node_modules/sonic-boom/test/sync.test.js +261 -0
- package/node_modules/sonic-boom/test/write.test.js +515 -0
- package/node_modules/sonic-boom/types/index.d.ts +63 -0
- package/node_modules/sonic-boom/types/tests/test.ts +4 -0
- package/node_modules/split2/LICENSE +13 -0
- package/node_modules/split2/README.md +85 -0
- package/node_modules/split2/bench.js +27 -0
- package/node_modules/split2/index.js +141 -0
- package/node_modules/split2/package.json +39 -0
- package/node_modules/split2/test.js +409 -0
- package/node_modules/statuses/HISTORY.md +87 -0
- package/node_modules/statuses/LICENSE +23 -0
- package/node_modules/statuses/README.md +139 -0
- package/node_modules/statuses/codes.json +65 -0
- package/node_modules/statuses/index.js +146 -0
- package/node_modules/statuses/package.json +49 -0
- package/node_modules/thread-stream/.claude/settings.local.json +15 -0
- package/node_modules/thread-stream/.github/dependabot.yml +13 -0
- package/node_modules/thread-stream/.github/workflows/ci.yml +74 -0
- package/node_modules/thread-stream/LICENSE +21 -0
- package/node_modules/thread-stream/README.md +138 -0
- package/node_modules/thread-stream/bench.js +85 -0
- package/node_modules/thread-stream/eslint.config.js +10 -0
- package/node_modules/thread-stream/index.d.ts +99 -0
- package/node_modules/thread-stream/index.js +645 -0
- package/node_modules/thread-stream/lib/indexes.js +11 -0
- package/node_modules/thread-stream/lib/wait.js +77 -0
- package/node_modules/thread-stream/lib/worker.js +298 -0
- package/node_modules/thread-stream/package.json +50 -0
- package/node_modules/thread-stream/test/base.test.js +259 -0
- package/node_modules/thread-stream/test/bench.test.js +38 -0
- package/node_modules/thread-stream/test/bundlers.test.js +59 -0
- package/node_modules/thread-stream/test/close-on-gc.js +37 -0
- package/node_modules/thread-stream/test/commonjs-fallback.test.js +75 -0
- package/node_modules/thread-stream/test/context.test.js +21 -0
- package/node_modules/thread-stream/test/create-and-exit.js +16 -0
- package/node_modules/thread-stream/test/custom-worker.js +9 -0
- package/node_modules/thread-stream/test/dir with spaces/test-package.zip +0 -0
- package/node_modules/thread-stream/test/emit-event.js +22 -0
- package/node_modules/thread-stream/test/end.test.js +56 -0
- package/node_modules/thread-stream/test/error.js +14 -0
- package/node_modules/thread-stream/test/esm.test.mjs +46 -0
- package/node_modules/thread-stream/test/event.test.js +24 -0
- package/node_modules/thread-stream/test/exit.js +14 -0
- package/node_modules/thread-stream/test/flush-worker.js +68 -0
- package/node_modules/thread-stream/test/flush.test.js +112 -0
- package/node_modules/thread-stream/test/get-context.js +22 -0
- package/node_modules/thread-stream/test/helper.d.ts +1 -0
- package/node_modules/thread-stream/test/helper.js +26 -0
- package/node_modules/thread-stream/test/indexes.test.js +11 -0
- package/node_modules/thread-stream/test/message-without-code.js +19 -0
- package/node_modules/thread-stream/test/multibyte-chars.test.mjs +75 -0
- package/node_modules/thread-stream/test/multibyte-overrun.test.mjs +33 -0
- package/node_modules/thread-stream/test/on-message.js +18 -0
- package/node_modules/thread-stream/test/pkg/index.js +37 -0
- package/node_modules/thread-stream/test/pkg/pkg.config.json +14 -0
- package/node_modules/thread-stream/test/pkg/pkg.test.js +45 -0
- package/node_modules/thread-stream/test/port.js +16 -0
- package/node_modules/thread-stream/test/post-message.test.js +23 -0
- package/node_modules/thread-stream/test/report-thread-name.js +16 -0
- package/node_modules/thread-stream/test/string-limit-2.test.js +35 -0
- package/node_modules/thread-stream/test/string-limit.test.js +37 -0
- package/node_modules/thread-stream/test/syntax-error.mjs +2 -0
- package/node_modules/thread-stream/test/thread-management.test.js +150 -0
- package/node_modules/thread-stream/test/to-file-on-destroy.js +23 -0
- package/node_modules/thread-stream/test/to-file-on-final.js +24 -0
- package/node_modules/thread-stream/test/to-file.js +12 -0
- package/node_modules/thread-stream/test/to-file.mjs +8 -0
- package/node_modules/thread-stream/test/to-next.js +9 -0
- package/node_modules/thread-stream/test/transpiled.test.js +29 -0
- package/node_modules/thread-stream/test/ts/to-file.ts +10 -0
- package/node_modules/thread-stream/test/ts/transpile.sh +19 -0
- package/node_modules/thread-stream/test/ts-commonjs-default-export.zip +0 -0
- package/node_modules/thread-stream/test/ts-native.test.mjs +35 -0
- package/node_modules/thread-stream/test/ts-node-fallback.test.js +35 -0
- package/node_modules/thread-stream/test/uncaughtException.js +21 -0
- package/node_modules/thread-stream/test/unhandledRejection.js +21 -0
- package/node_modules/thread-stream/test/watch-mode.test.js +30 -0
- package/node_modules/thread-stream/test/worker-name.test.js +43 -0
- package/node_modules/thread-stream/test/yarnrc.yml +7 -0
- package/node_modules/thread-stream/tsconfig.json +8 -0
- package/node_modules/toad-cache/LICENSE +21 -0
- package/node_modules/toad-cache/README.md +266 -0
- package/node_modules/toad-cache/dist/toad-cache.cjs +878 -0
- package/node_modules/toad-cache/dist/toad-cache.mjs +848 -0
- package/node_modules/toad-cache/package.json +84 -0
- package/node_modules/toad-cache/toad-cache.d.cts +144 -0
- package/node_modules/toad-cache/toad-cache.d.ts +132 -0
- package/node_modules/toidentifier/HISTORY.md +9 -0
- package/node_modules/toidentifier/LICENSE +21 -0
- package/node_modules/toidentifier/README.md +61 -0
- package/node_modules/toidentifier/index.js +32 -0
- package/node_modules/toidentifier/package.json +38 -0
- package/node_modules/zod/LICENSE +21 -0
- package/node_modules/zod/README.md +218 -0
- package/node_modules/zod/compile.cjs +96 -0
- package/node_modules/zod/compile.d.cts +1 -0
- package/node_modules/zod/compile.d.ts +1 -0
- package/node_modules/zod/compile.js +52 -0
- package/node_modules/zod/index.cjs +52 -0
- package/node_modules/zod/index.d.cts +3 -0
- package/node_modules/zod/index.d.ts +3 -0
- package/node_modules/zod/index.js +7 -0
- package/node_modules/zod/locales/index.cjs +36 -0
- package/node_modules/zod/locales/index.d.cts +1 -0
- package/node_modules/zod/locales/index.d.ts +1 -0
- package/node_modules/zod/locales/index.js +1 -0
- package/node_modules/zod/locales/package.json +7 -0
- package/node_modules/zod/mini/index.cjs +51 -0
- package/node_modules/zod/mini/index.d.cts +3 -0
- package/node_modules/zod/mini/index.d.ts +3 -0
- package/node_modules/zod/mini/index.js +3 -0
- package/node_modules/zod/mini/package.json +7 -0
- package/node_modules/zod/package.json +147 -0
- package/node_modules/zod/src/compile.ts +56 -0
- package/node_modules/zod/src/index.ts +7 -0
- package/node_modules/zod/src/locales/index.ts +1 -0
- package/node_modules/zod/src/mini/index.ts +3 -0
- package/node_modules/zod/src/v3/ZodError.ts +340 -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 +70 -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 +586 -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 +261 -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 +128 -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 +206 -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 +24 -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 +431 -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 +114 -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 +922 -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 +5138 -0
- package/node_modules/zod/src/v4/classic/checks.ts +33 -0
- package/node_modules/zod/src/v4/classic/coerce.ts +27 -0
- package/node_modules/zod/src/v4/classic/compat.ts +78 -0
- package/node_modules/zod/src/v4/classic/deep-partial.ts +76 -0
- package/node_modules/zod/src/v4/classic/errors.ts +97 -0
- package/node_modules/zod/src/v4/classic/external.ts +57 -0
- package/node_modules/zod/src/v4/classic/from-json-schema.ts +944 -0
- package/node_modules/zod/src/v4/classic/in-out.ts +45 -0
- package/node_modules/zod/src/v4/classic/index.ts +5 -0
- package/node_modules/zod/src/v4/classic/iso.ts +20 -0
- package/node_modules/zod/src/v4/classic/parse.ts +88 -0
- package/node_modules/zod/src/v4/classic/schemas.ts +2937 -0
- package/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +26 -0
- package/node_modules/zod/src/v4/classic/tests/apply.test.ts +86 -0
- package/node_modules/zod/src/v4/classic/tests/array.test.ts +291 -0
- package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +402 -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 +89 -0
- package/node_modules/zod/src/v4/classic/tests/brand.test.ts +106 -0
- package/node_modules/zod/src/v4/classic/tests/catch.test.ts +604 -0
- package/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +20 -0
- package/node_modules/zod/src/v4/classic/tests/codec-examples.test.ts +572 -0
- package/node_modules/zod/src/v4/classic/tests/codec.test.ts +704 -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 +374 -0
- package/node_modules/zod/src/v4/classic/tests/credit-card.test.ts +76 -0
- package/node_modules/zod/src/v4/classic/tests/custom.test.ts +40 -0
- package/node_modules/zod/src/v4/classic/tests/cyclic-data.test.ts +985 -0
- package/node_modules/zod/src/v4/classic/tests/date.test.ts +92 -0
- package/node_modules/zod/src/v4/classic/tests/datetime.test.ts +316 -0
- package/node_modules/zod/src/v4/classic/tests/deep-partial.test.ts +380 -0
- package/node_modules/zod/src/v4/classic/tests/default-locale.test.ts +32 -0
- package/node_modules/zod/src/v4/classic/tests/default.test.ts +455 -0
- package/node_modules/zod/src/v4/classic/tests/describe-meta-checks.test.ts +27 -0
- package/node_modules/zod/src/v4/classic/tests/description.test.ts +32 -0
- package/node_modules/zod/src/v4/classic/tests/detached-methods.test.ts +221 -0
- package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +942 -0
- package/node_modules/zod/src/v4/classic/tests/enum.test.ts +305 -0
- package/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +917 -0
- package/node_modules/zod/src/v4/classic/tests/error.test.ts +1108 -0
- package/node_modules/zod/src/v4/classic/tests/file.test.ts +96 -0
- package/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +179 -0
- package/node_modules/zod/src/v4/classic/tests/fix-json-issue.test.ts +26 -0
- package/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +1467 -0
- package/node_modules/zod/src/v4/classic/tests/function.test.ts +391 -0
- package/node_modules/zod/src/v4/classic/tests/generics.test.ts +72 -0
- package/node_modules/zod/src/v4/classic/tests/global-config.test.ts +32 -0
- package/node_modules/zod/src/v4/classic/tests/hash.test.ts +67 -0
- package/node_modules/zod/src/v4/classic/tests/iban.test.ts +81 -0
- package/node_modules/zod/src/v4/classic/tests/in-out.test.ts +159 -0
- package/node_modules/zod/src/v4/classic/tests/index.test.ts +958 -0
- package/node_modules/zod/src/v4/classic/tests/instance-footprint.test.ts +319 -0
- package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +127 -0
- package/node_modules/zod/src/v4/classic/tests/intersection.test.ts +334 -0
- package/node_modules/zod/src/v4/classic/tests/issue-schema.test.ts +215 -0
- package/node_modules/zod/src/v4/classic/tests/jitless-allows-eval.test.ts +39 -0
- package/node_modules/zod/src/v4/classic/tests/json.test.ts +109 -0
- package/node_modules/zod/src/v4/classic/tests/lazy.test.ts +262 -0
- package/node_modules/zod/src/v4/classic/tests/literal.test.ts +128 -0
- package/node_modules/zod/src/v4/classic/tests/locales_ka.test.ts +29 -0
- package/node_modules/zod/src/v4/classic/tests/locales_ro.test.ts +24 -0
- package/node_modules/zod/src/v4/classic/tests/map.test.ts +349 -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 +101 -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 +401 -0
- package/node_modules/zod/src/v4/classic/tests/object.test.ts +1006 -0
- package/node_modules/zod/src/v4/classic/tests/optin-ladder.test.ts +235 -0
- package/node_modules/zod/src/v4/classic/tests/optional.test.ts +366 -0
- package/node_modules/zod/src/v4/classic/tests/partial.test.ts +497 -0
- package/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +211 -0
- package/node_modules/zod/src/v4/classic/tests/pipe.test.ts +101 -0
- package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +144 -0
- package/node_modules/zod/src/v4/classic/tests/preprocess-types.test.ts +44 -0
- package/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +351 -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/properties.test.ts +141 -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 +184 -0
- package/node_modules/zod/src/v4/classic/tests/record.test.ts +885 -0
- package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +707 -0
- package/node_modules/zod/src/v4/classic/tests/redos.test.ts +68 -0
- package/node_modules/zod/src/v4/classic/tests/refine.test.ts +693 -0
- package/node_modules/zod/src/v4/classic/tests/registries.test.ts +243 -0
- package/node_modules/zod/src/v4/classic/tests/set.test.ts +196 -0
- package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +153 -0
- package/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +125 -0
- package/node_modules/zod/src/v4/classic/tests/string.test.ts +1440 -0
- package/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +124 -0
- package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +812 -0
- package/node_modules/zod/src/v4/classic/tests/to-json-schema-methods.test.ts +438 -0
- package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +4733 -0
- package/node_modules/zod/src/v4/classic/tests/transform.test.ts +378 -0
- package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +511 -0
- package/node_modules/zod/src/v4/classic/tests/union.test.ts +310 -0
- package/node_modules/zod/src/v4/classic/tests/url.test.ts +13 -0
- package/node_modules/zod/src/v4/classic/tests/validate.test.ts +645 -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 +1875 -0
- package/node_modules/zod/src/v4/core/checks.ts +1266 -0
- package/node_modules/zod/src/v4/core/compile.ts +2322 -0
- package/node_modules/zod/src/v4/core/core.ts +230 -0
- package/node_modules/zod/src/v4/core/doc.ts +52 -0
- package/node_modules/zod/src/v4/core/errors.ts +543 -0
- package/node_modules/zod/src/v4/core/index.ts +19 -0
- package/node_modules/zod/src/v4/core/json-schema-generator.ts +131 -0
- package/node_modules/zod/src/v4/core/json-schema-processors.ts +934 -0
- package/node_modules/zod/src/v4/core/json-schema.ts +148 -0
- package/node_modules/zod/src/v4/core/memoizer.ts +331 -0
- package/node_modules/zod/src/v4/core/parse.ts +309 -0
- package/node_modules/zod/src/v4/core/regexes.ts +217 -0
- package/node_modules/zod/src/v4/core/registries.ts +105 -0
- package/node_modules/zod/src/v4/core/schemas.ts +5226 -0
- package/node_modules/zod/src/v4/core/standard-schema.ts +159 -0
- package/node_modules/zod/src/v4/core/tests/cached.test.ts +54 -0
- package/node_modules/zod/src/v4/core/tests/compile-differential.test.ts +1004 -0
- package/node_modules/zod/src/v4/core/tests/compile-generative.test.ts +445 -0
- package/node_modules/zod/src/v4/core/tests/compile-global.test.ts +89 -0
- package/node_modules/zod/src/v4/core/tests/compile-off-by-default.test.ts +26 -0
- package/node_modules/zod/src/v4/core/tests/compile-stats.test.ts +34 -0
- package/node_modules/zod/src/v4/core/tests/compile.test.ts +2036 -0
- package/node_modules/zod/src/v4/core/tests/email-regex.test.ts +140 -0
- package/node_modules/zod/src/v4/core/tests/extend.test.ts +59 -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/el.test.ts +214 -0
- package/node_modules/zod/src/v4/core/tests/locales/en.test.ts +22 -0
- package/node_modules/zod/src/v4/core/tests/locales/es.test.ts +180 -0
- package/node_modules/zod/src/v4/core/tests/locales/fr.test.ts +72 -0
- package/node_modules/zod/src/v4/core/tests/locales/he.test.ts +379 -0
- package/node_modules/zod/src/v4/core/tests/locales/hr.test.ts +163 -0
- package/node_modules/zod/src/v4/core/tests/locales/nl.test.ts +46 -0
- package/node_modules/zod/src/v4/core/tests/locales/parity.test.ts +42 -0
- package/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +128 -0
- package/node_modules/zod/src/v4/core/tests/locales/tg.test.ts +85 -0
- package/node_modules/zod/src/v4/core/tests/locales/tk.test.ts +69 -0
- package/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +69 -0
- package/node_modules/zod/src/v4/core/tests/locales/uz.test.ts +105 -0
- package/node_modules/zod/src/v4/core/tests/polyfill-collision.test.ts +46 -0
- package/node_modules/zod/src/v4/core/tests/record-constructor.test.ts +125 -0
- package/node_modules/zod/src/v4/core/tests/recursive-tuples.test.ts +45 -0
- package/node_modules/zod/src/v4/core/tests/treeshake.test.ts +51 -0
- package/node_modules/zod/src/v4/core/tests/url-no-canparse.test.ts +133 -0
- package/node_modules/zod/src/v4/core/to-json-schema.ts +857 -0
- package/node_modules/zod/src/v4/core/util.ts +1293 -0
- package/node_modules/zod/src/v4/core/versions.ts +5 -0
- package/node_modules/zod/src/v4/core/visit.ts +193 -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 +120 -0
- package/node_modules/zod/src/v4/locales/az.ts +116 -0
- package/node_modules/zod/src/v4/locales/be.ts +188 -0
- package/node_modules/zod/src/v4/locales/bg.ts +133 -0
- package/node_modules/zod/src/v4/locales/bn.ts +123 -0
- package/node_modules/zod/src/v4/locales/ca.ts +121 -0
- package/node_modules/zod/src/v4/locales/ckb.ts +140 -0
- package/node_modules/zod/src/v4/locales/cs.ts +123 -0
- package/node_modules/zod/src/v4/locales/da.ts +128 -0
- package/node_modules/zod/src/v4/locales/de.ts +121 -0
- package/node_modules/zod/src/v4/locales/el.ts +124 -0
- package/node_modules/zod/src/v4/locales/en.ts +136 -0
- package/node_modules/zod/src/v4/locales/eo.ts +123 -0
- package/node_modules/zod/src/v4/locales/es.ts +145 -0
- package/node_modules/zod/src/v4/locales/fa.ts +131 -0
- package/node_modules/zod/src/v4/locales/fi.ts +126 -0
- package/node_modules/zod/src/v4/locales/fr-CA.ts +121 -0
- package/node_modules/zod/src/v4/locales/fr.ts +139 -0
- package/node_modules/zod/src/v4/locales/gu.ts +123 -0
- package/node_modules/zod/src/v4/locales/he.ts +253 -0
- package/node_modules/zod/src/v4/locales/hi.ts +126 -0
- package/node_modules/zod/src/v4/locales/hr.ts +135 -0
- package/node_modules/zod/src/v4/locales/hu.ts +122 -0
- package/node_modules/zod/src/v4/locales/hy.ts +175 -0
- package/node_modules/zod/src/v4/locales/id.ts +120 -0
- package/node_modules/zod/src/v4/locales/index.ts +63 -0
- package/node_modules/zod/src/v4/locales/is.ts +124 -0
- package/node_modules/zod/src/v4/locales/it.ts +121 -0
- package/node_modules/zod/src/v4/locales/ja.ts +119 -0
- package/node_modules/zod/src/v4/locales/ka.ts +128 -0
- package/node_modules/zod/src/v4/locales/kh.ts +7 -0
- package/node_modules/zod/src/v4/locales/km.ts +124 -0
- package/node_modules/zod/src/v4/locales/kn.ts +126 -0
- package/node_modules/zod/src/v4/locales/ko.ts +126 -0
- package/node_modules/zod/src/v4/locales/lt.ts +243 -0
- package/node_modules/zod/src/v4/locales/mk.ts +123 -0
- package/node_modules/zod/src/v4/locales/ms.ts +120 -0
- package/node_modules/zod/src/v4/locales/ne.ts +128 -0
- package/node_modules/zod/src/v4/locales/nl.ts +126 -0
- package/node_modules/zod/src/v4/locales/nn.ts +121 -0
- package/node_modules/zod/src/v4/locales/no.ts +121 -0
- package/node_modules/zod/src/v4/locales/ota.ts +122 -0
- package/node_modules/zod/src/v4/locales/pl.ts +123 -0
- package/node_modules/zod/src/v4/locales/ps.ts +131 -0
- package/node_modules/zod/src/v4/locales/pt-BR.ts +161 -0
- package/node_modules/zod/src/v4/locales/pt.ts +159 -0
- package/node_modules/zod/src/v4/locales/ro.ts +132 -0
- package/node_modules/zod/src/v4/locales/ru.ts +188 -0
- package/node_modules/zod/src/v4/locales/sk.ts +123 -0
- package/node_modules/zod/src/v4/locales/sl.ts +123 -0
- package/node_modules/zod/src/v4/locales/sv.ts +124 -0
- package/node_modules/zod/src/v4/locales/ta.ts +123 -0
- package/node_modules/zod/src/v4/locales/tg.ts +135 -0
- package/node_modules/zod/src/v4/locales/th.ts +124 -0
- package/node_modules/zod/src/v4/locales/tk.ts +113 -0
- package/node_modules/zod/src/v4/locales/tr.ts +116 -0
- package/node_modules/zod/src/v4/locales/ua.ts +7 -0
- package/node_modules/zod/src/v4/locales/uk.ts +122 -0
- package/node_modules/zod/src/v4/locales/ur.ts +124 -0
- package/node_modules/zod/src/v4/locales/uz.ts +120 -0
- package/node_modules/zod/src/v4/locales/vi.ts +122 -0
- package/node_modules/zod/src/v4/locales/yo.ts +129 -0
- package/node_modules/zod/src/v4/locales/zh-CN.ts +121 -0
- package/node_modules/zod/src/v4/locales/zh-TW.ts +120 -0
- package/node_modules/zod/src/v4/mini/checks.ts +33 -0
- package/node_modules/zod/src/v4/mini/coerce.ts +27 -0
- package/node_modules/zod/src/v4/mini/deep-partial.ts +73 -0
- package/node_modules/zod/src/v4/mini/external.ts +52 -0
- package/node_modules/zod/src/v4/mini/in-out.ts +45 -0
- package/node_modules/zod/src/v4/mini/index.ts +3 -0
- package/node_modules/zod/src/v4/mini/iso.ts +66 -0
- package/node_modules/zod/src/v4/mini/parse.ts +16 -0
- package/node_modules/zod/src/v4/mini/schemas.ts +2051 -0
- package/node_modules/zod/src/v4/mini/tests/apply.test.ts +57 -0
- package/node_modules/zod/src/v4/mini/tests/assignability.test.ts +190 -0
- package/node_modules/zod/src/v4/mini/tests/brand.test.ts +94 -0
- package/node_modules/zod/src/v4/mini/tests/checks.test.ts +158 -0
- package/node_modules/zod/src/v4/mini/tests/codec.test.ts +582 -0
- package/node_modules/zod/src/v4/mini/tests/computed.test.ts +30 -0
- package/node_modules/zod/src/v4/mini/tests/cyclic-data.test.ts +84 -0
- package/node_modules/zod/src/v4/mini/tests/deep-partial.test.ts +54 -0
- package/node_modules/zod/src/v4/mini/tests/error.test.ts +41 -0
- package/node_modules/zod/src/v4/mini/tests/functions.test.ts +14 -0
- package/node_modules/zod/src/v4/mini/tests/index.test.ts +1146 -0
- package/node_modules/zod/src/v4/mini/tests/number.test.ts +109 -0
- package/node_modules/zod/src/v4/mini/tests/object.test.ts +292 -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 +341 -0
- package/node_modules/zod/src/v4/mini/tests/standard-schema.test.ts +50 -0
- package/node_modules/zod/src/v4/mini/tests/string.test.ts +396 -0
- package/node_modules/zod/src/v4-mini/index.ts +3 -0
- package/node_modules/zod/v3/ZodError.cjs +167 -0
- package/node_modules/zod/v3/ZodError.d.cts +164 -0
- package/node_modules/zod/v3/ZodError.d.ts +164 -0
- package/node_modules/zod/v3/ZodError.js +143 -0
- package/node_modules/zod/v3/errors.cjs +36 -0
- package/node_modules/zod/v3/errors.d.cts +5 -0
- package/node_modules/zod/v3/errors.d.ts +5 -0
- package/node_modules/zod/v3/errors.js +9 -0
- package/node_modules/zod/v3/external.cjs +41 -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.cjs +21 -0
- package/node_modules/zod/v3/helpers/enumUtil.d.cts +8 -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/v3/helpers/errorUtil.cjs +28 -0
- 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/v3/helpers/parseUtil.cjs +143 -0
- package/node_modules/zod/v3/helpers/parseUtil.d.cts +78 -0
- package/node_modules/zod/v3/helpers/parseUtil.d.ts +78 -0
- package/node_modules/zod/v3/helpers/parseUtil.js +109 -0
- package/node_modules/zod/v3/helpers/partialUtil.cjs +21 -0
- package/node_modules/zod/v3/helpers/partialUtil.d.cts +8 -0
- package/node_modules/zod/v3/helpers/partialUtil.d.ts +8 -0
- package/node_modules/zod/v3/helpers/partialUtil.js +1 -0
- package/node_modules/zod/v3/helpers/typeAliases.cjs +21 -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/v3/helpers/util.cjs +156 -0
- package/node_modules/zod/v3/helpers/util.d.cts +85 -0
- package/node_modules/zod/v3/helpers/util.d.ts +85 -0
- package/node_modules/zod/v3/helpers/util.js +133 -0
- package/node_modules/zod/v3/index.cjs +52 -0
- 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/v3/locales/en.cjs +112 -0
- package/node_modules/zod/v3/locales/en.d.cts +3 -0
- package/node_modules/zod/v3/locales/en.d.ts +3 -0
- package/node_modules/zod/v3/locales/en.js +109 -0
- package/node_modules/zod/v3/package.json +7 -0
- package/node_modules/zod/v3/standard-schema.cjs +21 -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/v3/types.cjs +3798 -0
- package/node_modules/zod/v3/types.d.cts +1034 -0
- package/node_modules/zod/v3/types.d.ts +1034 -0
- package/node_modules/zod/v3/types.js +3697 -0
- package/node_modules/zod/v4/classic/checks.cjs +53 -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 +66 -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 +80 -0
- package/node_modules/zod/v4/classic/compat.d.cts +48 -0
- package/node_modules/zod/v4/classic/compat.d.ts +48 -0
- package/node_modules/zod/v4/classic/compat.js +31 -0
- package/node_modules/zod/v4/classic/deep-partial.cjs +58 -0
- package/node_modules/zod/v4/classic/deep-partial.d.cts +14 -0
- package/node_modules/zod/v4/classic/deep-partial.d.ts +14 -0
- package/node_modules/zod/v4/classic/deep-partial.js +13 -0
- package/node_modules/zod/v4/classic/errors.cjs +102 -0
- package/node_modules/zod/v4/classic/errors.d.cts +29 -0
- package/node_modules/zod/v4/classic/errors.d.ts +29 -0
- package/node_modules/zod/v4/classic/errors.js +57 -0
- package/node_modules/zod/v4/classic/external.cjs +97 -0
- package/node_modules/zod/v4/classic/external.d.cts +19 -0
- package/node_modules/zod/v4/classic/external.d.ts +19 -0
- package/node_modules/zod/v4/classic/external.js +17 -0
- package/node_modules/zod/v4/classic/from-json-schema.cjs +926 -0
- package/node_modules/zod/v4/classic/from-json-schema.d.cts +12 -0
- package/node_modules/zod/v4/classic/from-json-schema.d.ts +12 -0
- package/node_modules/zod/v4/classic/from-json-schema.js +881 -0
- package/node_modules/zod/v4/classic/in-out.cjs +82 -0
- package/node_modules/zod/v4/classic/in-out.d.cts +8 -0
- package/node_modules/zod/v4/classic/in-out.d.ts +8 -0
- package/node_modules/zod/v4/classic/in-out.js +36 -0
- package/node_modules/zod/v4/classic/index.cjs +52 -0
- package/node_modules/zod/v4/classic/index.d.cts +3 -0
- package/node_modules/zod/v4/classic/index.d.ts +3 -0
- package/node_modules/zod/v4/classic/index.js +4 -0
- package/node_modules/zod/v4/classic/iso.cjs +68 -0
- package/node_modules/zod/v4/classic/iso.d.cts +7 -0
- package/node_modules/zod/v4/classic/iso.d.ts +7 -0
- package/node_modules/zod/v4/classic/iso.js +15 -0
- package/node_modules/zod/v4/classic/package.json +7 -0
- package/node_modules/zod/v4/classic/parse.cjs +63 -0
- package/node_modules/zod/v4/classic/parse.d.cts +44 -0
- package/node_modules/zod/v4/classic/parse.d.ts +44 -0
- package/node_modules/zod/v4/classic/parse.js +16 -0
- package/node_modules/zod/v4/classic/schemas.cjs +1676 -0
- package/node_modules/zod/v4/classic/schemas.d.cts +816 -0
- package/node_modules/zod/v4/classic/schemas.d.ts +816 -0
- package/node_modules/zod/v4/classic/schemas.js +1535 -0
- package/node_modules/zod/v4/core/api.cjs +1269 -0
- package/node_modules/zod/v4/core/api.d.cts +335 -0
- package/node_modules/zod/v4/core/api.d.ts +335 -0
- package/node_modules/zod/v4/core/api.js +1107 -0
- package/node_modules/zod/v4/core/checks.cjs +561 -0
- package/node_modules/zod/v4/core/checks.d.cts +294 -0
- package/node_modules/zod/v4/core/checks.d.ts +294 -0
- package/node_modules/zod/v4/core/checks.js +516 -0
- package/node_modules/zod/v4/core/compile.cjs +1916 -0
- package/node_modules/zod/v4/core/compile.d.cts +65 -0
- package/node_modules/zod/v4/core/compile.d.ts +65 -0
- package/node_modules/zod/v4/core/compile.js +1866 -0
- package/node_modules/zod/v4/core/core.cjs +167 -0
- package/node_modules/zod/v4/core/core.d.cts +82 -0
- package/node_modules/zod/v4/core/core.d.ts +82 -0
- package/node_modules/zod/v4/core/core.js +141 -0
- package/node_modules/zod/v4/core/doc.cjs +61 -0
- package/node_modules/zod/v4/core/doc.d.cts +16 -0
- package/node_modules/zod/v4/core/doc.d.ts +16 -0
- package/node_modules/zod/v4/core/doc.js +38 -0
- package/node_modules/zod/v4/core/errors.cjs +317 -0
- package/node_modules/zod/v4/core/errors.d.cts +225 -0
- package/node_modules/zod/v4/core/errors.d.ts +225 -0
- package/node_modules/zod/v4/core/errors.js +267 -0
- package/node_modules/zod/v4/core/index.cjs +70 -0
- package/node_modules/zod/v4/core/index.d.cts +19 -0
- package/node_modules/zod/v4/core/index.d.ts +19 -0
- package/node_modules/zod/v4/core/index.js +19 -0
- package/node_modules/zod/v4/core/json-schema-generator.cjs +122 -0
- package/node_modules/zod/v4/core/json-schema-generator.d.cts +65 -0
- package/node_modules/zod/v4/core/json-schema-generator.d.ts +65 -0
- package/node_modules/zod/v4/core/json-schema-generator.js +99 -0
- package/node_modules/zod/v4/core/json-schema-processors.cjs +929 -0
- package/node_modules/zod/v4/core/json-schema-processors.d.cts +65 -0
- package/node_modules/zod/v4/core/json-schema-processors.d.ts +65 -0
- package/node_modules/zod/v4/core/json-schema-processors.js +843 -0
- package/node_modules/zod/v4/core/json-schema.cjs +21 -0
- package/node_modules/zod/v4/core/json-schema.d.cts +89 -0
- package/node_modules/zod/v4/core/json-schema.d.ts +89 -0
- package/node_modules/zod/v4/core/json-schema.js +1 -0
- package/node_modules/zod/v4/core/memoizer.cjs +360 -0
- package/node_modules/zod/v4/core/memoizer.d.cts +15 -0
- package/node_modules/zod/v4/core/memoizer.d.ts +15 -0
- package/node_modules/zod/v4/core/memoizer.js +311 -0
- package/node_modules/zod/v4/core/package.json +7 -0
- package/node_modules/zod/v4/core/parse.cjs +233 -0
- package/node_modules/zod/v4/core/parse.d.cts +52 -0
- package/node_modules/zod/v4/core/parse.d.ts +52 -0
- package/node_modules/zod/v4/core/parse.js +175 -0
- package/node_modules/zod/v4/core/regexes.cjs +209 -0
- package/node_modules/zod/v4/core/regexes.d.cts +90 -0
- package/node_modules/zod/v4/core/regexes.d.ts +90 -0
- package/node_modules/zod/v4/core/regexes.js +156 -0
- package/node_modules/zod/v4/core/registries.cjs +75 -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 +2699 -0
- package/node_modules/zod/v4/core/schemas.d.cts +1275 -0
- package/node_modules/zod/v4/core/schemas.d.ts +1275 -0
- package/node_modules/zod/v4/core/schemas.js +2636 -0
- package/node_modules/zod/v4/core/standard-schema.cjs +21 -0
- package/node_modules/zod/v4/core/standard-schema.d.cts +126 -0
- package/node_modules/zod/v4/core/standard-schema.d.ts +126 -0
- package/node_modules/zod/v4/core/standard-schema.js +1 -0
- package/node_modules/zod/v4/core/to-json-schema.cjs +681 -0
- package/node_modules/zod/v4/core/to-json-schema.d.cts +154 -0
- package/node_modules/zod/v4/core/to-json-schema.d.ts +154 -0
- package/node_modules/zod/v4/core/to-json-schema.js +651 -0
- package/node_modules/zod/v4/core/util.cjs +964 -0
- package/node_modules/zod/v4/core/util.d.cts +280 -0
- package/node_modules/zod/v4/core/util.d.ts +280 -0
- package/node_modules/zod/v4/core/util.js +873 -0
- package/node_modules/zod/v4/core/versions.cjs +27 -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/core/visit.cjs +214 -0
- package/node_modules/zod/v4/core/visit.d.cts +30 -0
- package/node_modules/zod/v4/core/visit.d.ts +30 -0
- package/node_modules/zod/v4/core/visit.js +169 -0
- package/node_modules/zod/v4/index.cjs +51 -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 +4 -0
- package/node_modules/zod/v4/locales/ar.cjs +138 -0
- package/node_modules/zod/v4/locales/ar.d.cts +5 -0
- package/node_modules/zod/v4/locales/ar.d.ts +4 -0
- package/node_modules/zod/v4/locales/ar.js +111 -0
- package/node_modules/zod/v4/locales/az.cjs +137 -0
- package/node_modules/zod/v4/locales/az.d.cts +5 -0
- package/node_modules/zod/v4/locales/az.d.ts +4 -0
- package/node_modules/zod/v4/locales/az.js +110 -0
- package/node_modules/zod/v4/locales/be.cjs +195 -0
- package/node_modules/zod/v4/locales/be.d.cts +5 -0
- package/node_modules/zod/v4/locales/be.d.ts +4 -0
- package/node_modules/zod/v4/locales/be.js +168 -0
- package/node_modules/zod/v4/locales/bg.cjs +152 -0
- package/node_modules/zod/v4/locales/bg.d.cts +5 -0
- package/node_modules/zod/v4/locales/bg.d.ts +4 -0
- package/node_modules/zod/v4/locales/bg.js +125 -0
- package/node_modules/zod/v4/locales/bn.cjs +140 -0
- package/node_modules/zod/v4/locales/bn.d.cts +5 -0
- package/node_modules/zod/v4/locales/bn.d.ts +4 -0
- package/node_modules/zod/v4/locales/bn.js +113 -0
- package/node_modules/zod/v4/locales/ca.cjs +139 -0
- package/node_modules/zod/v4/locales/ca.d.cts +5 -0
- package/node_modules/zod/v4/locales/ca.d.ts +4 -0
- package/node_modules/zod/v4/locales/ca.js +112 -0
- package/node_modules/zod/v4/locales/ckb.cjs +160 -0
- package/node_modules/zod/v4/locales/ckb.d.cts +5 -0
- package/node_modules/zod/v4/locales/ckb.d.ts +4 -0
- package/node_modules/zod/v4/locales/ckb.js +133 -0
- package/node_modules/zod/v4/locales/cs.cjs +143 -0
- package/node_modules/zod/v4/locales/cs.d.cts +5 -0
- package/node_modules/zod/v4/locales/cs.d.ts +4 -0
- package/node_modules/zod/v4/locales/cs.js +116 -0
- package/node_modules/zod/v4/locales/da.cjs +147 -0
- package/node_modules/zod/v4/locales/da.d.cts +5 -0
- package/node_modules/zod/v4/locales/da.d.ts +4 -0
- package/node_modules/zod/v4/locales/da.js +120 -0
- package/node_modules/zod/v4/locales/de.cjs +140 -0
- package/node_modules/zod/v4/locales/de.d.cts +5 -0
- package/node_modules/zod/v4/locales/de.d.ts +4 -0
- package/node_modules/zod/v4/locales/de.js +113 -0
- package/node_modules/zod/v4/locales/el.cjs +139 -0
- package/node_modules/zod/v4/locales/el.d.cts +5 -0
- package/node_modules/zod/v4/locales/el.d.ts +4 -0
- package/node_modules/zod/v4/locales/el.js +112 -0
- package/node_modules/zod/v4/locales/en.cjs +152 -0
- package/node_modules/zod/v4/locales/en.d.cts +5 -0
- package/node_modules/zod/v4/locales/en.d.ts +4 -0
- package/node_modules/zod/v4/locales/en.js +125 -0
- package/node_modules/zod/v4/locales/eo.cjs +141 -0
- package/node_modules/zod/v4/locales/eo.d.cts +5 -0
- package/node_modules/zod/v4/locales/eo.d.ts +4 -0
- package/node_modules/zod/v4/locales/eo.js +114 -0
- package/node_modules/zod/v4/locales/es.cjs +163 -0
- package/node_modules/zod/v4/locales/es.d.cts +5 -0
- package/node_modules/zod/v4/locales/es.d.ts +4 -0
- package/node_modules/zod/v4/locales/es.js +136 -0
- package/node_modules/zod/v4/locales/fa.cjs +146 -0
- package/node_modules/zod/v4/locales/fa.d.cts +5 -0
- package/node_modules/zod/v4/locales/fa.d.ts +4 -0
- package/node_modules/zod/v4/locales/fa.js +119 -0
- package/node_modules/zod/v4/locales/fi.cjs +144 -0
- package/node_modules/zod/v4/locales/fi.d.cts +5 -0
- package/node_modules/zod/v4/locales/fi.d.ts +4 -0
- package/node_modules/zod/v4/locales/fi.js +117 -0
- package/node_modules/zod/v4/locales/fr-CA.cjs +139 -0
- package/node_modules/zod/v4/locales/fr-CA.d.cts +5 -0
- package/node_modules/zod/v4/locales/fr-CA.d.ts +4 -0
- package/node_modules/zod/v4/locales/fr-CA.js +112 -0
- package/node_modules/zod/v4/locales/fr.cjs +156 -0
- package/node_modules/zod/v4/locales/fr.d.cts +5 -0
- package/node_modules/zod/v4/locales/fr.d.ts +4 -0
- package/node_modules/zod/v4/locales/fr.js +129 -0
- package/node_modules/zod/v4/locales/gu.cjs +140 -0
- package/node_modules/zod/v4/locales/gu.d.cts +5 -0
- package/node_modules/zod/v4/locales/gu.d.ts +4 -0
- package/node_modules/zod/v4/locales/gu.js +113 -0
- package/node_modules/zod/v4/locales/he.cjs +248 -0
- package/node_modules/zod/v4/locales/he.d.cts +5 -0
- package/node_modules/zod/v4/locales/he.d.ts +4 -0
- package/node_modules/zod/v4/locales/he.js +221 -0
- package/node_modules/zod/v4/locales/hi.cjs +138 -0
- package/node_modules/zod/v4/locales/hi.d.cts +5 -0
- package/node_modules/zod/v4/locales/hi.d.ts +4 -0
- package/node_modules/zod/v4/locales/hi.js +111 -0
- package/node_modules/zod/v4/locales/hr.cjs +153 -0
- package/node_modules/zod/v4/locales/hr.d.cts +5 -0
- package/node_modules/zod/v4/locales/hr.d.ts +4 -0
- package/node_modules/zod/v4/locales/hr.js +126 -0
- package/node_modules/zod/v4/locales/hu.cjs +140 -0
- package/node_modules/zod/v4/locales/hu.d.cts +5 -0
- package/node_modules/zod/v4/locales/hu.d.ts +4 -0
- package/node_modules/zod/v4/locales/hu.js +113 -0
- package/node_modules/zod/v4/locales/hy.cjs +185 -0
- package/node_modules/zod/v4/locales/hy.d.cts +5 -0
- package/node_modules/zod/v4/locales/hy.d.ts +4 -0
- package/node_modules/zod/v4/locales/hy.js +158 -0
- package/node_modules/zod/v4/locales/id.cjs +138 -0
- package/node_modules/zod/v4/locales/id.d.cts +5 -0
- package/node_modules/zod/v4/locales/id.d.ts +4 -0
- package/node_modules/zod/v4/locales/id.js +111 -0
- package/node_modules/zod/v4/locales/index.cjs +152 -0
- package/node_modules/zod/v4/locales/index.d.cts +63 -0
- package/node_modules/zod/v4/locales/index.d.ts +63 -0
- package/node_modules/zod/v4/locales/index.js +63 -0
- package/node_modules/zod/v4/locales/is.cjs +141 -0
- package/node_modules/zod/v4/locales/is.d.cts +5 -0
- package/node_modules/zod/v4/locales/is.d.ts +4 -0
- package/node_modules/zod/v4/locales/is.js +114 -0
- package/node_modules/zod/v4/locales/it.cjs +140 -0
- package/node_modules/zod/v4/locales/it.d.cts +5 -0
- package/node_modules/zod/v4/locales/it.d.ts +4 -0
- package/node_modules/zod/v4/locales/it.js +113 -0
- package/node_modules/zod/v4/locales/ja.cjs +139 -0
- package/node_modules/zod/v4/locales/ja.d.cts +5 -0
- package/node_modules/zod/v4/locales/ja.d.ts +4 -0
- package/node_modules/zod/v4/locales/ja.js +112 -0
- package/node_modules/zod/v4/locales/ka.cjs +144 -0
- package/node_modules/zod/v4/locales/ka.d.cts +5 -0
- package/node_modules/zod/v4/locales/ka.d.ts +4 -0
- package/node_modules/zod/v4/locales/ka.js +117 -0
- package/node_modules/zod/v4/locales/kh.cjs +12 -0
- package/node_modules/zod/v4/locales/kh.d.cts +5 -0
- package/node_modules/zod/v4/locales/kh.d.ts +5 -0
- package/node_modules/zod/v4/locales/kh.js +5 -0
- package/node_modules/zod/v4/locales/km.cjs +142 -0
- package/node_modules/zod/v4/locales/km.d.cts +5 -0
- package/node_modules/zod/v4/locales/km.d.ts +4 -0
- package/node_modules/zod/v4/locales/km.js +115 -0
- package/node_modules/zod/v4/locales/kn.cjs +143 -0
- package/node_modules/zod/v4/locales/kn.d.cts +5 -0
- package/node_modules/zod/v4/locales/kn.d.ts +4 -0
- package/node_modules/zod/v4/locales/kn.js +116 -0
- package/node_modules/zod/v4/locales/ko.cjs +143 -0
- package/node_modules/zod/v4/locales/ko.d.cts +5 -0
- package/node_modules/zod/v4/locales/ko.d.ts +4 -0
- package/node_modules/zod/v4/locales/ko.js +116 -0
- package/node_modules/zod/v4/locales/lt.cjs +234 -0
- package/node_modules/zod/v4/locales/lt.d.cts +5 -0
- package/node_modules/zod/v4/locales/lt.d.ts +4 -0
- package/node_modules/zod/v4/locales/lt.js +207 -0
- package/node_modules/zod/v4/locales/mk.cjs +141 -0
- package/node_modules/zod/v4/locales/mk.d.cts +5 -0
- package/node_modules/zod/v4/locales/mk.d.ts +4 -0
- package/node_modules/zod/v4/locales/mk.js +114 -0
- package/node_modules/zod/v4/locales/ms.cjs +139 -0
- package/node_modules/zod/v4/locales/ms.d.cts +5 -0
- package/node_modules/zod/v4/locales/ms.d.ts +4 -0
- package/node_modules/zod/v4/locales/ms.js +112 -0
- package/node_modules/zod/v4/locales/ne.cjs +138 -0
- package/node_modules/zod/v4/locales/ne.d.cts +5 -0
- package/node_modules/zod/v4/locales/ne.d.ts +4 -0
- package/node_modules/zod/v4/locales/ne.js +111 -0
- package/node_modules/zod/v4/locales/nl.cjs +142 -0
- package/node_modules/zod/v4/locales/nl.d.cts +5 -0
- package/node_modules/zod/v4/locales/nl.d.ts +4 -0
- package/node_modules/zod/v4/locales/nl.js +115 -0
- package/node_modules/zod/v4/locales/nn.cjs +140 -0
- package/node_modules/zod/v4/locales/nn.d.cts +5 -0
- package/node_modules/zod/v4/locales/nn.d.ts +4 -0
- package/node_modules/zod/v4/locales/nn.js +113 -0
- package/node_modules/zod/v4/locales/no.cjs +140 -0
- package/node_modules/zod/v4/locales/no.d.cts +5 -0
- package/node_modules/zod/v4/locales/no.d.ts +4 -0
- package/node_modules/zod/v4/locales/no.js +113 -0
- package/node_modules/zod/v4/locales/ota.cjs +141 -0
- package/node_modules/zod/v4/locales/ota.d.cts +5 -0
- package/node_modules/zod/v4/locales/ota.d.ts +4 -0
- package/node_modules/zod/v4/locales/ota.js +114 -0
- package/node_modules/zod/v4/locales/package.json +7 -0
- package/node_modules/zod/v4/locales/pl.cjs +141 -0
- package/node_modules/zod/v4/locales/pl.d.cts +5 -0
- package/node_modules/zod/v4/locales/pl.d.ts +4 -0
- package/node_modules/zod/v4/locales/pl.js +114 -0
- package/node_modules/zod/v4/locales/ps.cjs +146 -0
- package/node_modules/zod/v4/locales/ps.d.cts +5 -0
- package/node_modules/zod/v4/locales/ps.d.ts +4 -0
- package/node_modules/zod/v4/locales/ps.js +119 -0
- package/node_modules/zod/v4/locales/pt-BR.cjs +170 -0
- package/node_modules/zod/v4/locales/pt-BR.d.cts +5 -0
- package/node_modules/zod/v4/locales/pt-BR.d.ts +4 -0
- package/node_modules/zod/v4/locales/pt-BR.js +143 -0
- package/node_modules/zod/v4/locales/pt.cjs +169 -0
- package/node_modules/zod/v4/locales/pt.d.cts +5 -0
- package/node_modules/zod/v4/locales/pt.d.ts +4 -0
- package/node_modules/zod/v4/locales/pt.js +142 -0
- package/node_modules/zod/v4/locales/ro.cjs +149 -0
- package/node_modules/zod/v4/locales/ro.d.cts +5 -0
- package/node_modules/zod/v4/locales/ro.d.ts +4 -0
- package/node_modules/zod/v4/locales/ro.js +122 -0
- package/node_modules/zod/v4/locales/ru.cjs +195 -0
- package/node_modules/zod/v4/locales/ru.d.cts +5 -0
- package/node_modules/zod/v4/locales/ru.d.ts +4 -0
- package/node_modules/zod/v4/locales/ru.js +168 -0
- package/node_modules/zod/v4/locales/sk.cjs +143 -0
- package/node_modules/zod/v4/locales/sk.d.cts +5 -0
- package/node_modules/zod/v4/locales/sk.d.ts +4 -0
- package/node_modules/zod/v4/locales/sk.js +116 -0
- package/node_modules/zod/v4/locales/sl.cjs +141 -0
- package/node_modules/zod/v4/locales/sl.d.cts +5 -0
- package/node_modules/zod/v4/locales/sl.d.ts +4 -0
- package/node_modules/zod/v4/locales/sl.js +114 -0
- package/node_modules/zod/v4/locales/sv.cjs +142 -0
- package/node_modules/zod/v4/locales/sv.d.cts +5 -0
- package/node_modules/zod/v4/locales/sv.d.ts +4 -0
- package/node_modules/zod/v4/locales/sv.js +115 -0
- package/node_modules/zod/v4/locales/ta.cjs +142 -0
- package/node_modules/zod/v4/locales/ta.d.cts +5 -0
- package/node_modules/zod/v4/locales/ta.d.ts +4 -0
- package/node_modules/zod/v4/locales/ta.js +115 -0
- package/node_modules/zod/v4/locales/tg.cjs +144 -0
- package/node_modules/zod/v4/locales/tg.d.cts +5 -0
- package/node_modules/zod/v4/locales/tg.d.ts +4 -0
- package/node_modules/zod/v4/locales/tg.js +117 -0
- package/node_modules/zod/v4/locales/th.cjs +142 -0
- package/node_modules/zod/v4/locales/th.d.cts +5 -0
- package/node_modules/zod/v4/locales/th.d.ts +4 -0
- package/node_modules/zod/v4/locales/th.js +115 -0
- package/node_modules/zod/v4/locales/tk.cjs +134 -0
- package/node_modules/zod/v4/locales/tk.d.cts +5 -0
- package/node_modules/zod/v4/locales/tk.d.ts +4 -0
- package/node_modules/zod/v4/locales/tk.js +107 -0
- package/node_modules/zod/v4/locales/tr.cjs +137 -0
- package/node_modules/zod/v4/locales/tr.d.cts +5 -0
- package/node_modules/zod/v4/locales/tr.d.ts +4 -0
- package/node_modules/zod/v4/locales/tr.js +110 -0
- package/node_modules/zod/v4/locales/ua.cjs +12 -0
- package/node_modules/zod/v4/locales/ua.d.cts +5 -0
- package/node_modules/zod/v4/locales/ua.d.ts +5 -0
- package/node_modules/zod/v4/locales/ua.js +5 -0
- package/node_modules/zod/v4/locales/uk.cjs +140 -0
- package/node_modules/zod/v4/locales/uk.d.cts +5 -0
- package/node_modules/zod/v4/locales/uk.d.ts +4 -0
- package/node_modules/zod/v4/locales/uk.js +113 -0
- package/node_modules/zod/v4/locales/ur.cjs +142 -0
- package/node_modules/zod/v4/locales/ur.d.cts +5 -0
- package/node_modules/zod/v4/locales/ur.d.ts +4 -0
- package/node_modules/zod/v4/locales/ur.js +115 -0
- package/node_modules/zod/v4/locales/uz.cjs +140 -0
- package/node_modules/zod/v4/locales/uz.d.cts +5 -0
- package/node_modules/zod/v4/locales/uz.d.ts +4 -0
- package/node_modules/zod/v4/locales/uz.js +113 -0
- package/node_modules/zod/v4/locales/vi.cjs +140 -0
- package/node_modules/zod/v4/locales/vi.d.cts +5 -0
- package/node_modules/zod/v4/locales/vi.d.ts +4 -0
- package/node_modules/zod/v4/locales/vi.js +113 -0
- package/node_modules/zod/v4/locales/yo.cjs +139 -0
- package/node_modules/zod/v4/locales/yo.d.cts +5 -0
- package/node_modules/zod/v4/locales/yo.d.ts +4 -0
- package/node_modules/zod/v4/locales/yo.js +112 -0
- package/node_modules/zod/v4/locales/zh-CN.cjs +141 -0
- package/node_modules/zod/v4/locales/zh-CN.d.cts +5 -0
- package/node_modules/zod/v4/locales/zh-CN.d.ts +4 -0
- package/node_modules/zod/v4/locales/zh-CN.js +114 -0
- package/node_modules/zod/v4/locales/zh-TW.cjs +139 -0
- package/node_modules/zod/v4/locales/zh-TW.d.cts +5 -0
- package/node_modules/zod/v4/locales/zh-TW.d.ts +4 -0
- package/node_modules/zod/v4/locales/zh-TW.js +112 -0
- package/node_modules/zod/v4/mini/checks.cjs +54 -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 +71 -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 +22 -0
- package/node_modules/zod/v4/mini/deep-partial.cjs +58 -0
- package/node_modules/zod/v4/mini/deep-partial.d.cts +14 -0
- package/node_modules/zod/v4/mini/deep-partial.d.ts +14 -0
- package/node_modules/zod/v4/mini/deep-partial.js +13 -0
- package/node_modules/zod/v4/mini/external.cjs +95 -0
- package/node_modules/zod/v4/mini/external.d.cts +16 -0
- package/node_modules/zod/v4/mini/external.d.ts +16 -0
- package/node_modules/zod/v4/mini/external.js +16 -0
- package/node_modules/zod/v4/mini/in-out.cjs +82 -0
- package/node_modules/zod/v4/mini/in-out.d.cts +8 -0
- package/node_modules/zod/v4/mini/in-out.d.ts +8 -0
- package/node_modules/zod/v4/mini/in-out.js +36 -0
- package/node_modules/zod/v4/mini/index.cjs +51 -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 +83 -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 +34 -0
- package/node_modules/zod/v4/mini/package.json +7 -0
- package/node_modules/zod/v4/mini/parse.cjs +37 -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 +1147 -0
- package/node_modules/zod/v4/mini/schemas.d.cts +480 -0
- package/node_modules/zod/v4/mini/schemas.d.ts +480 -0
- package/node_modules/zod/v4/mini/schemas.js +1002 -0
- package/node_modules/zod/v4/package.json +7 -0
- package/node_modules/zod/v4-mini/index.cjs +51 -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/package.json +7 -0
- package/package.json +2 -4
- package/dist/web/assets/Dashboard-CfMDmukc.js +0 -1
- package/dist/web/assets/Files-DvK_N3lO.js +0 -1
- package/dist/web/assets/Sessions-DTLr1cTK.js +0 -1
- package/dist/web/assets/file-links-BAMah1K6.js +0 -1
- package/dist/web/assets/index-CeGPJ_an.css +0 -1
- package/dist/web/assets/index-l1r3Ekhs.js +0 -64
|
@@ -0,0 +1,2051 @@
|
|
|
1
|
+
import * as core from "../core/index.js";
|
|
2
|
+
import type { $ZodBigIntFormats } from "../core/index.js";
|
|
3
|
+
import * as regexes from "../core/regexes.js";
|
|
4
|
+
import * as util from "../core/util.js";
|
|
5
|
+
import * as parse from "./parse.js";
|
|
6
|
+
|
|
7
|
+
type SomeType = core.SomeType;
|
|
8
|
+
|
|
9
|
+
export interface ZodMiniType<
|
|
10
|
+
out Output = unknown,
|
|
11
|
+
out Input = unknown,
|
|
12
|
+
out Internals extends core.$ZodTypeInternals<Output, Input> = core.$ZodTypeInternals<Output, Input>,
|
|
13
|
+
> extends core.$ZodType<Output, Input, Internals> {
|
|
14
|
+
type: Internals["def"]["type"];
|
|
15
|
+
check(...checks: (core.CheckFn<core.output<this>> | core.$ZodCheck<core.output<this>>)[]): this;
|
|
16
|
+
with(...checks: (core.CheckFn<core.output<this>> | core.$ZodCheck<core.output<this>>)[]): this;
|
|
17
|
+
clone(def?: Internals["def"], params?: { parent: boolean }): this;
|
|
18
|
+
register<R extends core.$ZodRegistry>(
|
|
19
|
+
registry: R,
|
|
20
|
+
...meta: this extends R["_schema"]
|
|
21
|
+
? undefined extends R["_meta"]
|
|
22
|
+
? [core.$replace<R["_meta"], this>?]
|
|
23
|
+
: [core.$replace<R["_meta"], this>]
|
|
24
|
+
: ["Incompatible schema"]
|
|
25
|
+
): this;
|
|
26
|
+
brand<T extends PropertyKey = PropertyKey, Dir extends "in" | "out" | "inout" = "out">(
|
|
27
|
+
value?: T
|
|
28
|
+
): PropertyKey extends T ? this : core.$ZodBranded<this, T, Dir>;
|
|
29
|
+
|
|
30
|
+
def: Internals["def"];
|
|
31
|
+
|
|
32
|
+
parse(data: unknown, params?: core.ParseContext<core.$ZodIssue>): core.output<this>;
|
|
33
|
+
safeParse(data: unknown, params?: core.ParseContext<core.$ZodIssue>): util.SafeParseResult<core.output<this>>;
|
|
34
|
+
parseAsync(data: unknown, params?: core.ParseContext<core.$ZodIssue>): Promise<core.output<this>>;
|
|
35
|
+
safeParseAsync(
|
|
36
|
+
data: unknown,
|
|
37
|
+
params?: core.ParseContext<core.$ZodIssue>
|
|
38
|
+
): Promise<util.SafeParseResult<core.output<this>>>;
|
|
39
|
+
apply<T, TArgs extends unknown[] = []>(fn: (schema: this, ...args: TArgs) => T, ...args: TArgs): T;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
interface _ZodMiniType<out Internals extends core.$ZodTypeInternals = core.$ZodTypeInternals>
|
|
43
|
+
extends ZodMiniType<any, any, Internals> {}
|
|
44
|
+
|
|
45
|
+
export const ZodMiniType: core.$constructor<ZodMiniType> = /*@__PURE__*/ core.$constructor<ZodMiniType>(
|
|
46
|
+
"ZodMiniType",
|
|
47
|
+
(inst, def) => {
|
|
48
|
+
if (!inst._zod) throw new Error("Uninitialized schema in ZodMiniType.");
|
|
49
|
+
|
|
50
|
+
core.$ZodType.init(inst, def);
|
|
51
|
+
|
|
52
|
+
inst.def = def;
|
|
53
|
+
inst.type = def.type;
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
// `with` is an alias for `check`: the same function object, not a wrapper.
|
|
57
|
+
get with(): ZodMiniType["check"] {
|
|
58
|
+
return this.check;
|
|
59
|
+
},
|
|
60
|
+
set with(value: ZodMiniType["check"]) {
|
|
61
|
+
util.own(this, "with", value);
|
|
62
|
+
},
|
|
63
|
+
parse(data, params) {
|
|
64
|
+
return parse.parse(this, data, params, { callee: this.parse });
|
|
65
|
+
},
|
|
66
|
+
parseAsync(data, params) {
|
|
67
|
+
return parse.parseAsync(this, data, params, { callee: this.parseAsync });
|
|
68
|
+
},
|
|
69
|
+
safeParse(data, params) {
|
|
70
|
+
return parse.safeParse(this, data, params);
|
|
71
|
+
},
|
|
72
|
+
safeParseAsync(data, params) {
|
|
73
|
+
return parse.safeParseAsync(this, data, params);
|
|
74
|
+
},
|
|
75
|
+
check(...checks) {
|
|
76
|
+
const def = this.def;
|
|
77
|
+
return this.clone(
|
|
78
|
+
{
|
|
79
|
+
...def,
|
|
80
|
+
checks: [
|
|
81
|
+
...(def.checks ?? []),
|
|
82
|
+
...checks.map((ch) =>
|
|
83
|
+
typeof ch === "function" ? { _zod: { check: ch, def: { check: "custom" }, onattach: [] } } : ch
|
|
84
|
+
),
|
|
85
|
+
],
|
|
86
|
+
},
|
|
87
|
+
{ parent: true }
|
|
88
|
+
);
|
|
89
|
+
},
|
|
90
|
+
clone(_def, params) {
|
|
91
|
+
return core.clone(this, _def, params);
|
|
92
|
+
},
|
|
93
|
+
brand() {
|
|
94
|
+
return this as any;
|
|
95
|
+
},
|
|
96
|
+
register(reg: any, meta: any): any {
|
|
97
|
+
reg.add(this, meta);
|
|
98
|
+
return this;
|
|
99
|
+
},
|
|
100
|
+
apply(fn: any, ...args: any[]) {
|
|
101
|
+
return args.length === 0 ? fn(this) : fn(this, ...args);
|
|
102
|
+
},
|
|
103
|
+
}
|
|
104
|
+
);
|
|
105
|
+
|
|
106
|
+
export interface _ZodMiniString<T extends core.$ZodStringInternals<unknown> = core.$ZodStringInternals<unknown>>
|
|
107
|
+
extends _ZodMiniType<T>,
|
|
108
|
+
core.$ZodString<T["input"]> {
|
|
109
|
+
_zod: T;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
// ZodMiniString
|
|
113
|
+
export interface ZodMiniString<Input = unknown>
|
|
114
|
+
extends _ZodMiniString<core.$ZodStringInternals<Input>>,
|
|
115
|
+
core.$ZodString<Input> {}
|
|
116
|
+
export const ZodMiniString: core.$constructor<ZodMiniString> = /*@__PURE__*/ core.$constructor(
|
|
117
|
+
"ZodMiniString",
|
|
118
|
+
(inst, def) => {
|
|
119
|
+
core.$ZodString.init(inst, def);
|
|
120
|
+
ZodMiniType.init(inst, def);
|
|
121
|
+
}
|
|
122
|
+
);
|
|
123
|
+
|
|
124
|
+
// @__NO_SIDE_EFFECTS__
|
|
125
|
+
export function string(params?: string | core.$ZodStringParams): ZodMiniString<string> {
|
|
126
|
+
return core._string(ZodMiniString, params) as any;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
// ZodMiniStringFormat
|
|
130
|
+
export interface ZodMiniStringFormat<Format extends string = string>
|
|
131
|
+
extends _ZodMiniString<core.$ZodStringFormatInternals<Format>>,
|
|
132
|
+
core.$ZodStringFormat<Format> {
|
|
133
|
+
// _zod: core.$ZodStringFormatInternals<Format>;
|
|
134
|
+
}
|
|
135
|
+
export const ZodMiniStringFormat: core.$constructor<ZodMiniStringFormat> = /*@__PURE__*/ core.$constructor(
|
|
136
|
+
"ZodMiniStringFormat",
|
|
137
|
+
(inst, def) => {
|
|
138
|
+
core.$ZodStringFormat.init(inst, def);
|
|
139
|
+
ZodMiniString.init(inst, def);
|
|
140
|
+
}
|
|
141
|
+
);
|
|
142
|
+
|
|
143
|
+
// ZodMiniEmail
|
|
144
|
+
export interface ZodMiniEmail extends _ZodMiniString<core.$ZodEmailInternals> {}
|
|
145
|
+
export const ZodMiniEmail: core.$constructor<ZodMiniEmail> = /*@__PURE__*/ core.$constructor(
|
|
146
|
+
"ZodMiniEmail",
|
|
147
|
+
(inst, def) => {
|
|
148
|
+
core.$ZodEmail.init(inst, def);
|
|
149
|
+
ZodMiniStringFormat.init(inst, def);
|
|
150
|
+
}
|
|
151
|
+
);
|
|
152
|
+
|
|
153
|
+
// @__NO_SIDE_EFFECTS__
|
|
154
|
+
export function email(params?: string | core.$ZodEmailParams): ZodMiniEmail {
|
|
155
|
+
return core._email(ZodMiniEmail, params);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
// ZodMiniGUID
|
|
159
|
+
export interface ZodMiniGUID extends _ZodMiniString<core.$ZodGUIDInternals> {
|
|
160
|
+
// _zod: core.$ZodGUIDInternals;
|
|
161
|
+
}
|
|
162
|
+
export const ZodMiniGUID: core.$constructor<ZodMiniGUID> = /*@__PURE__*/ core.$constructor(
|
|
163
|
+
"ZodMiniGUID",
|
|
164
|
+
(inst, def) => {
|
|
165
|
+
core.$ZodGUID.init(inst, def);
|
|
166
|
+
ZodMiniStringFormat.init(inst, def);
|
|
167
|
+
}
|
|
168
|
+
);
|
|
169
|
+
|
|
170
|
+
// @__NO_SIDE_EFFECTS__
|
|
171
|
+
export function guid(params?: string | core.$ZodGUIDParams): ZodMiniGUID {
|
|
172
|
+
return core._guid(ZodMiniGUID, params);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
// ZodMiniUUID
|
|
176
|
+
export interface ZodMiniUUID extends _ZodMiniString<core.$ZodUUIDInternals> {
|
|
177
|
+
// _zod: core.$ZodUUIDInternals;
|
|
178
|
+
}
|
|
179
|
+
export const ZodMiniUUID: core.$constructor<ZodMiniUUID> = /*@__PURE__*/ core.$constructor(
|
|
180
|
+
"ZodMiniUUID",
|
|
181
|
+
(inst, def) => {
|
|
182
|
+
core.$ZodUUID.init(inst, def);
|
|
183
|
+
ZodMiniStringFormat.init(inst, def);
|
|
184
|
+
}
|
|
185
|
+
);
|
|
186
|
+
|
|
187
|
+
// @__NO_SIDE_EFFECTS__
|
|
188
|
+
export function uuid(params?: string | core.$ZodUUIDParams): ZodMiniUUID {
|
|
189
|
+
return core._uuid(ZodMiniUUID, params);
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
// @__NO_SIDE_EFFECTS__
|
|
193
|
+
export function uuidv4(params?: string | core.$ZodUUIDv4Params): ZodMiniUUID {
|
|
194
|
+
return core._uuidv4(ZodMiniUUID, params);
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
// ZodMiniUUIDv6
|
|
198
|
+
|
|
199
|
+
// @__NO_SIDE_EFFECTS__
|
|
200
|
+
export function uuidv6(params?: string | core.$ZodUUIDv6Params): ZodMiniUUID {
|
|
201
|
+
return core._uuidv6(ZodMiniUUID, params);
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
// ZodMiniUUIDv7
|
|
205
|
+
|
|
206
|
+
// @__NO_SIDE_EFFECTS__
|
|
207
|
+
export function uuidv7(params?: string | core.$ZodUUIDv7Params): ZodMiniUUID {
|
|
208
|
+
return core._uuidv7(ZodMiniUUID, params);
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
// ZodMiniURL
|
|
212
|
+
export interface ZodMiniURL extends _ZodMiniString<core.$ZodURLInternals> {
|
|
213
|
+
// _zod: core.$ZodURLInternals;
|
|
214
|
+
}
|
|
215
|
+
export const ZodMiniURL: core.$constructor<ZodMiniURL> = /*@__PURE__*/ core.$constructor("ZodMiniURL", (inst, def) => {
|
|
216
|
+
core.$ZodURL.init(inst, def);
|
|
217
|
+
ZodMiniStringFormat.init(inst, def);
|
|
218
|
+
});
|
|
219
|
+
|
|
220
|
+
// @__NO_SIDE_EFFECTS__
|
|
221
|
+
export function url(params?: string | core.$ZodURLParams): ZodMiniURL {
|
|
222
|
+
return core._url(ZodMiniURL, params);
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
// @__NO_SIDE_EFFECTS__
|
|
226
|
+
export function httpUrl(params?: string | Omit<core.$ZodURLParams, "protocol" | "hostname">): ZodMiniURL {
|
|
227
|
+
return core._url(ZodMiniURL, {
|
|
228
|
+
protocol: regexes.httpProtocol,
|
|
229
|
+
hostname: regexes.domain,
|
|
230
|
+
...util.normalizeParams(params),
|
|
231
|
+
});
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
// ZodMiniEmoji
|
|
235
|
+
export interface ZodMiniEmoji extends _ZodMiniString<core.$ZodEmojiInternals> {
|
|
236
|
+
// _zod: core.$ZodEmojiInternals;
|
|
237
|
+
}
|
|
238
|
+
export const ZodMiniEmoji: core.$constructor<ZodMiniEmoji> = /*@__PURE__*/ core.$constructor(
|
|
239
|
+
"ZodMiniEmoji",
|
|
240
|
+
(inst, def) => {
|
|
241
|
+
core.$ZodEmoji.init(inst, def);
|
|
242
|
+
ZodMiniStringFormat.init(inst, def);
|
|
243
|
+
}
|
|
244
|
+
);
|
|
245
|
+
|
|
246
|
+
// @__NO_SIDE_EFFECTS__
|
|
247
|
+
export function emoji(params?: string | core.$ZodEmojiParams): ZodMiniEmoji {
|
|
248
|
+
return core._emoji(ZodMiniEmoji, params);
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
// ZodMiniNanoID
|
|
252
|
+
export interface ZodMiniNanoID extends _ZodMiniString<core.$ZodNanoIDInternals> {
|
|
253
|
+
// _zod: core.$ZodNanoIDInternals;
|
|
254
|
+
}
|
|
255
|
+
export const ZodMiniNanoID: core.$constructor<ZodMiniNanoID> = /*@__PURE__*/ core.$constructor(
|
|
256
|
+
"ZodMiniNanoID",
|
|
257
|
+
(inst, def) => {
|
|
258
|
+
core.$ZodNanoID.init(inst, def);
|
|
259
|
+
ZodMiniStringFormat.init(inst, def);
|
|
260
|
+
}
|
|
261
|
+
);
|
|
262
|
+
|
|
263
|
+
// @__NO_SIDE_EFFECTS__
|
|
264
|
+
export function nanoid(params?: string | core.$ZodNanoIDParams): ZodMiniNanoID {
|
|
265
|
+
return core._nanoid(ZodMiniNanoID, params);
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
// ZodMiniCUID
|
|
269
|
+
/**
|
|
270
|
+
* @deprecated CUID v1 is deprecated by its authors due to information leakage
|
|
271
|
+
* (timestamps embedded in the id). Use {@link ZodMiniCUID2} instead.
|
|
272
|
+
* See https://github.com/paralleldrive/cuid.
|
|
273
|
+
*/
|
|
274
|
+
export interface ZodMiniCUID extends _ZodMiniString<core.$ZodCUIDInternals> {
|
|
275
|
+
// _zod: core.$ZodCUIDInternals;
|
|
276
|
+
}
|
|
277
|
+
/**
|
|
278
|
+
* @deprecated CUID v1 is deprecated by its authors due to information leakage
|
|
279
|
+
* (timestamps embedded in the id). Use {@link ZodMiniCUID2} instead.
|
|
280
|
+
* See https://github.com/paralleldrive/cuid.
|
|
281
|
+
*/
|
|
282
|
+
export const ZodMiniCUID: core.$constructor<ZodMiniCUID> = /*@__PURE__*/ core.$constructor(
|
|
283
|
+
"ZodMiniCUID",
|
|
284
|
+
(inst, def) => {
|
|
285
|
+
core.$ZodCUID.init(inst, def);
|
|
286
|
+
ZodMiniStringFormat.init(inst, def);
|
|
287
|
+
}
|
|
288
|
+
);
|
|
289
|
+
|
|
290
|
+
/**
|
|
291
|
+
* Validates a CUID v1 string.
|
|
292
|
+
*
|
|
293
|
+
* @deprecated CUID v1 is deprecated by its authors due to information leakage
|
|
294
|
+
* (timestamps embedded in the id). Use {@link cuid2 | `z.cuid2()`} instead.
|
|
295
|
+
* See https://github.com/paralleldrive/cuid.
|
|
296
|
+
*/
|
|
297
|
+
// @__NO_SIDE_EFFECTS__
|
|
298
|
+
export function cuid(params?: string | core.$ZodCUIDParams): ZodMiniCUID {
|
|
299
|
+
return core._cuid(ZodMiniCUID, params);
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
// ZodMiniCUID2
|
|
303
|
+
export interface ZodMiniCUID2 extends _ZodMiniString<core.$ZodCUID2Internals> {
|
|
304
|
+
// _zod: core.$ZodCUID2Internals;
|
|
305
|
+
}
|
|
306
|
+
export const ZodMiniCUID2: core.$constructor<ZodMiniCUID2> = /*@__PURE__*/ core.$constructor(
|
|
307
|
+
"ZodMiniCUID2",
|
|
308
|
+
(inst, def) => {
|
|
309
|
+
core.$ZodCUID2.init(inst, def);
|
|
310
|
+
ZodMiniStringFormat.init(inst, def);
|
|
311
|
+
}
|
|
312
|
+
);
|
|
313
|
+
|
|
314
|
+
// @__NO_SIDE_EFFECTS__
|
|
315
|
+
export function cuid2(params?: string | core.$ZodCUID2Params): ZodMiniCUID2 {
|
|
316
|
+
return core._cuid2(ZodMiniCUID2, params);
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
// ZodMiniULID
|
|
320
|
+
export interface ZodMiniULID extends _ZodMiniString<core.$ZodULIDInternals> {
|
|
321
|
+
// _zod: core.$ZodULIDInternals;
|
|
322
|
+
}
|
|
323
|
+
export const ZodMiniULID: core.$constructor<ZodMiniULID> = /*@__PURE__*/ core.$constructor(
|
|
324
|
+
"ZodMiniULID",
|
|
325
|
+
(inst, def) => {
|
|
326
|
+
core.$ZodULID.init(inst, def);
|
|
327
|
+
ZodMiniStringFormat.init(inst, def);
|
|
328
|
+
}
|
|
329
|
+
);
|
|
330
|
+
|
|
331
|
+
// @__NO_SIDE_EFFECTS__
|
|
332
|
+
export function ulid(params?: string | core.$ZodULIDParams): ZodMiniULID {
|
|
333
|
+
return core._ulid(ZodMiniULID, params);
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
// ZodMiniXID
|
|
337
|
+
export interface ZodMiniXID extends _ZodMiniString<core.$ZodXIDInternals> {
|
|
338
|
+
// _zod: core.$ZodXIDInternals;
|
|
339
|
+
}
|
|
340
|
+
export const ZodMiniXID: core.$constructor<ZodMiniXID> = /*@__PURE__*/ core.$constructor("ZodMiniXID", (inst, def) => {
|
|
341
|
+
core.$ZodXID.init(inst, def);
|
|
342
|
+
ZodMiniStringFormat.init(inst, def);
|
|
343
|
+
});
|
|
344
|
+
|
|
345
|
+
// @__NO_SIDE_EFFECTS__
|
|
346
|
+
export function xid(params?: string | core.$ZodXIDParams): ZodMiniXID {
|
|
347
|
+
return core._xid(ZodMiniXID, params);
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
// ZodMiniKSUID
|
|
351
|
+
export interface ZodMiniKSUID extends _ZodMiniString<core.$ZodKSUIDInternals> {
|
|
352
|
+
// _zod: core.$ZodKSUIDInternals;
|
|
353
|
+
}
|
|
354
|
+
export const ZodMiniKSUID: core.$constructor<ZodMiniKSUID> = /*@__PURE__*/ core.$constructor(
|
|
355
|
+
"ZodMiniKSUID",
|
|
356
|
+
(inst, def) => {
|
|
357
|
+
core.$ZodKSUID.init(inst, def);
|
|
358
|
+
ZodMiniStringFormat.init(inst, def);
|
|
359
|
+
}
|
|
360
|
+
);
|
|
361
|
+
|
|
362
|
+
// @__NO_SIDE_EFFECTS__
|
|
363
|
+
export function ksuid(params?: string | core.$ZodKSUIDParams): ZodMiniKSUID {
|
|
364
|
+
return core._ksuid(ZodMiniKSUID, params);
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
// ZodMiniIPv4
|
|
368
|
+
export interface ZodMiniIPv4 extends _ZodMiniString<core.$ZodIPv4Internals> {
|
|
369
|
+
// _zod: core.$ZodIPv4Internals;
|
|
370
|
+
}
|
|
371
|
+
export const ZodMiniIPv4: core.$constructor<ZodMiniIPv4> = /*@__PURE__*/ core.$constructor(
|
|
372
|
+
"ZodMiniIPv4",
|
|
373
|
+
(inst, def) => {
|
|
374
|
+
core.$ZodIPv4.init(inst, def);
|
|
375
|
+
ZodMiniStringFormat.init(inst, def);
|
|
376
|
+
}
|
|
377
|
+
);
|
|
378
|
+
|
|
379
|
+
// @__NO_SIDE_EFFECTS__
|
|
380
|
+
export function ipv4(params?: string | core.$ZodIPv4Params): ZodMiniIPv4 {
|
|
381
|
+
return core._ipv4(ZodMiniIPv4, params);
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
// ZodMiniIPv6
|
|
385
|
+
export interface ZodMiniIPv6 extends _ZodMiniString<core.$ZodIPv6Internals> {
|
|
386
|
+
// _zod: core.$ZodIPv6Internals;
|
|
387
|
+
}
|
|
388
|
+
export const ZodMiniIPv6: core.$constructor<ZodMiniIPv6> = /*@__PURE__*/ core.$constructor(
|
|
389
|
+
"ZodMiniIPv6",
|
|
390
|
+
(inst, def) => {
|
|
391
|
+
core.$ZodIPv6.init(inst, def);
|
|
392
|
+
ZodMiniStringFormat.init(inst, def);
|
|
393
|
+
}
|
|
394
|
+
);
|
|
395
|
+
|
|
396
|
+
// @__NO_SIDE_EFFECTS__
|
|
397
|
+
export function ipv6(params?: string | core.$ZodIPv6Params): ZodMiniIPv6 {
|
|
398
|
+
return core._ipv6(ZodMiniIPv6, params);
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
// ZodMiniCIDRv4
|
|
402
|
+
export interface ZodMiniCIDRv4 extends _ZodMiniString<core.$ZodCIDRv4Internals> {
|
|
403
|
+
// _zod: core.$ZodCIDRv4Internals;
|
|
404
|
+
}
|
|
405
|
+
export const ZodMiniCIDRv4: core.$constructor<ZodMiniCIDRv4> = /*@__PURE__*/ core.$constructor(
|
|
406
|
+
"ZodMiniCIDRv4",
|
|
407
|
+
(inst, def) => {
|
|
408
|
+
core.$ZodCIDRv4.init(inst, def);
|
|
409
|
+
ZodMiniStringFormat.init(inst, def);
|
|
410
|
+
}
|
|
411
|
+
);
|
|
412
|
+
|
|
413
|
+
// @__NO_SIDE_EFFECTS__
|
|
414
|
+
export function cidrv4(params?: string | core.$ZodCIDRv4Params): ZodMiniCIDRv4 {
|
|
415
|
+
return core._cidrv4(ZodMiniCIDRv4, params);
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
// ZodMiniCIDRv6
|
|
419
|
+
export interface ZodMiniCIDRv6 extends _ZodMiniString<core.$ZodCIDRv6Internals> {
|
|
420
|
+
// _zod: core.$ZodCIDRv6Internals;
|
|
421
|
+
}
|
|
422
|
+
export const ZodMiniCIDRv6: core.$constructor<ZodMiniCIDRv6> = /*@__PURE__*/ core.$constructor(
|
|
423
|
+
"ZodMiniCIDRv6",
|
|
424
|
+
(inst, def) => {
|
|
425
|
+
core.$ZodCIDRv6.init(inst, def);
|
|
426
|
+
ZodMiniStringFormat.init(inst, def);
|
|
427
|
+
}
|
|
428
|
+
);
|
|
429
|
+
|
|
430
|
+
// @__NO_SIDE_EFFECTS__
|
|
431
|
+
export function cidrv6(params?: string | core.$ZodCIDRv6Params): ZodMiniCIDRv6 {
|
|
432
|
+
return core._cidrv6(ZodMiniCIDRv6, params);
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
// ZodMiniMAC
|
|
436
|
+
export interface ZodMiniMAC extends _ZodMiniString<core.$ZodMACInternals> {
|
|
437
|
+
// _zod: core.$ZodMACInternals;
|
|
438
|
+
}
|
|
439
|
+
export const ZodMiniMAC: core.$constructor<ZodMiniMAC> = /*@__PURE__*/ core.$constructor("ZodMiniMAC", (inst, def) => {
|
|
440
|
+
core.$ZodMAC.init(inst, def);
|
|
441
|
+
ZodMiniStringFormat.init(inst, def);
|
|
442
|
+
});
|
|
443
|
+
|
|
444
|
+
// @__NO_SIDE_EFFECTS__
|
|
445
|
+
export function mac(params?: string | core.$ZodMACParams): ZodMiniMAC {
|
|
446
|
+
return core._mac(ZodMiniMAC, params);
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
// ZodMiniBase64
|
|
450
|
+
export interface ZodMiniBase64 extends _ZodMiniString<core.$ZodBase64Internals> {
|
|
451
|
+
// _zod: core.$ZodBase64Internals;
|
|
452
|
+
}
|
|
453
|
+
export const ZodMiniBase64: core.$constructor<ZodMiniBase64> = /*@__PURE__*/ core.$constructor(
|
|
454
|
+
"ZodMiniBase64",
|
|
455
|
+
(inst, def) => {
|
|
456
|
+
core.$ZodBase64.init(inst, def);
|
|
457
|
+
ZodMiniStringFormat.init(inst, def);
|
|
458
|
+
}
|
|
459
|
+
);
|
|
460
|
+
// @__NO_SIDE_EFFECTS__
|
|
461
|
+
export function base64(params?: string | core.$ZodBase64Params): ZodMiniBase64 {
|
|
462
|
+
return core._base64(ZodMiniBase64, params);
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
// ZodMiniBase64URL
|
|
466
|
+
export interface ZodMiniBase64URL extends _ZodMiniString<core.$ZodBase64URLInternals> {
|
|
467
|
+
// _zod: core.$ZodBase64URLInternals;
|
|
468
|
+
}
|
|
469
|
+
export const ZodMiniBase64URL: core.$constructor<ZodMiniBase64URL> = /*@__PURE__*/ core.$constructor(
|
|
470
|
+
"ZodMiniBase64URL",
|
|
471
|
+
(inst, def) => {
|
|
472
|
+
core.$ZodBase64URL.init(inst, def);
|
|
473
|
+
ZodMiniStringFormat.init(inst, def);
|
|
474
|
+
}
|
|
475
|
+
);
|
|
476
|
+
// @__NO_SIDE_EFFECTS__
|
|
477
|
+
export function base64url(params?: string | core.$ZodBase64URLParams): ZodMiniBase64URL {
|
|
478
|
+
return core._base64url(ZodMiniBase64URL, params);
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
// ZodMiniE164
|
|
482
|
+
export interface ZodMiniE164 extends _ZodMiniString<core.$ZodE164Internals> {
|
|
483
|
+
// _zod: core.$ZodE164Internals;
|
|
484
|
+
}
|
|
485
|
+
export const ZodMiniE164: core.$constructor<ZodMiniE164> = /*@__PURE__*/ core.$constructor(
|
|
486
|
+
"ZodMiniE164",
|
|
487
|
+
(inst, def) => {
|
|
488
|
+
core.$ZodE164.init(inst, def);
|
|
489
|
+
ZodMiniStringFormat.init(inst, def);
|
|
490
|
+
}
|
|
491
|
+
);
|
|
492
|
+
|
|
493
|
+
// @__NO_SIDE_EFFECTS__
|
|
494
|
+
export function e164(params?: string | core.$ZodE164Params): ZodMiniE164 {
|
|
495
|
+
return core._e164(ZodMiniE164, params);
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
// ZodMiniCreditCard
|
|
499
|
+
export interface ZodMiniCreditCard extends _ZodMiniString<core.$ZodCreditCardInternals> {}
|
|
500
|
+
export const ZodMiniCreditCard: core.$constructor<ZodMiniCreditCard> = /*@__PURE__*/ core.$constructor(
|
|
501
|
+
"ZodMiniCreditCard",
|
|
502
|
+
(inst, def) => {
|
|
503
|
+
core.$ZodCreditCard.init(inst, def);
|
|
504
|
+
ZodMiniStringFormat.init(inst, def);
|
|
505
|
+
}
|
|
506
|
+
);
|
|
507
|
+
|
|
508
|
+
// @__NO_SIDE_EFFECTS__
|
|
509
|
+
export function creditCard(params?: string | core.$ZodCreditCardParams): ZodMiniCreditCard {
|
|
510
|
+
return core._creditCard(ZodMiniCreditCard, params);
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
// ZodMiniIBAN
|
|
514
|
+
export interface ZodMiniIBAN extends _ZodMiniString<core.$ZodIBANInternals> {}
|
|
515
|
+
export const ZodMiniIBAN: core.$constructor<ZodMiniIBAN> = /*@__PURE__*/ core.$constructor(
|
|
516
|
+
"ZodMiniIBAN",
|
|
517
|
+
(inst, def) => {
|
|
518
|
+
core.$ZodIBAN.init(inst, def);
|
|
519
|
+
ZodMiniStringFormat.init(inst, def);
|
|
520
|
+
}
|
|
521
|
+
);
|
|
522
|
+
|
|
523
|
+
// @__NO_SIDE_EFFECTS__
|
|
524
|
+
export function iban(params?: string | core.$ZodIBANParams): ZodMiniIBAN {
|
|
525
|
+
return core._iban(ZodMiniIBAN, params);
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
// ZodMiniJWT
|
|
529
|
+
export interface ZodMiniJWT extends _ZodMiniString<core.$ZodJWTInternals> {
|
|
530
|
+
// _zod: core.$ZodJWTInternals;
|
|
531
|
+
}
|
|
532
|
+
export const ZodMiniJWT: core.$constructor<ZodMiniJWT> = /*@__PURE__*/ core.$constructor("ZodMiniJWT", (inst, def) => {
|
|
533
|
+
core.$ZodJWT.init(inst, def);
|
|
534
|
+
ZodMiniStringFormat.init(inst, def);
|
|
535
|
+
});
|
|
536
|
+
|
|
537
|
+
// @__NO_SIDE_EFFECTS__
|
|
538
|
+
export function jwt(params?: string | core.$ZodJWTParams): ZodMiniJWT {
|
|
539
|
+
return core._jwt(ZodMiniJWT, params);
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
// ZodMiniCustomStringFormat
|
|
543
|
+
export interface ZodMiniCustomStringFormat<Format extends string = string>
|
|
544
|
+
extends ZodMiniStringFormat<Format>,
|
|
545
|
+
core.$ZodCustomStringFormat<Format> {
|
|
546
|
+
_zod: core.$ZodCustomStringFormatInternals<Format>;
|
|
547
|
+
}
|
|
548
|
+
export const ZodMiniCustomStringFormat: core.$constructor<ZodMiniCustomStringFormat> = /*@__PURE__*/ core.$constructor(
|
|
549
|
+
"ZodMiniCustomStringFormat",
|
|
550
|
+
(inst, def) => {
|
|
551
|
+
core.$ZodCustomStringFormat.init(inst, def);
|
|
552
|
+
ZodMiniStringFormat.init(inst, def);
|
|
553
|
+
}
|
|
554
|
+
);
|
|
555
|
+
|
|
556
|
+
// @__NO_SIDE_EFFECTS__
|
|
557
|
+
export function stringFormat<Format extends string>(
|
|
558
|
+
format: Format,
|
|
559
|
+
fnOrRegex: ((arg: string) => util.MaybeAsync<unknown>) | RegExp,
|
|
560
|
+
_params: string | core.$ZodStringFormatParams = {}
|
|
561
|
+
): ZodMiniCustomStringFormat<Format> {
|
|
562
|
+
return core._stringFormat(ZodMiniCustomStringFormat, format, fnOrRegex, _params) as any;
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
// @__NO_SIDE_EFFECTS__
|
|
566
|
+
export function hostname(_params?: string | core.$ZodStringFormatParams): ZodMiniCustomStringFormat<"hostname"> {
|
|
567
|
+
return core._stringFormat(ZodMiniCustomStringFormat, "hostname", regexes.hostname, _params) as any;
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
// @__NO_SIDE_EFFECTS__
|
|
571
|
+
export function hex(_params?: string | core.$ZodStringFormatParams): ZodMiniCustomStringFormat<"hex"> {
|
|
572
|
+
return core._stringFormat(ZodMiniCustomStringFormat, "hex", regexes.hex, _params) as any;
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
// @__NO_SIDE_EFFECTS__
|
|
576
|
+
export function currencyCode(
|
|
577
|
+
_params?: string | core.$ZodStringFormatParams
|
|
578
|
+
): ZodMiniCustomStringFormat<"currency_code"> {
|
|
579
|
+
return core._stringFormat(ZodMiniCustomStringFormat, "currency_code", regexes.currencyCode, _params) as any;
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
// @__NO_SIDE_EFFECTS__
|
|
583
|
+
export function hash<Alg extends util.HashAlgorithm, Enc extends util.HashEncoding = "hex">(
|
|
584
|
+
alg: Alg,
|
|
585
|
+
params?: {
|
|
586
|
+
enc?: Enc;
|
|
587
|
+
} & core.$ZodStringFormatParams
|
|
588
|
+
): ZodMiniCustomStringFormat<`${Alg}_${Enc}`> {
|
|
589
|
+
const enc = params?.enc ?? "hex";
|
|
590
|
+
const format = `${alg}_${enc}` as const;
|
|
591
|
+
const regex = core.regexes[format as keyof typeof core.regexes] as RegExp;
|
|
592
|
+
// check for unrecognized format
|
|
593
|
+
if (!regex) throw new Error(`Unrecognized hash format: ${format}`);
|
|
594
|
+
return core._stringFormat(ZodMiniCustomStringFormat, format, regex, params) as any;
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
// ZodMiniNumber
|
|
598
|
+
interface _ZodMiniNumber<T extends core.$ZodNumberInternals<unknown> = core.$ZodNumberInternals<unknown>>
|
|
599
|
+
extends _ZodMiniType<T>,
|
|
600
|
+
core.$ZodNumber<T["input"]> {
|
|
601
|
+
_zod: T;
|
|
602
|
+
}
|
|
603
|
+
export interface ZodMiniNumber<Input = unknown>
|
|
604
|
+
extends _ZodMiniNumber<core.$ZodNumberInternals<Input>>,
|
|
605
|
+
core.$ZodNumber<Input> {}
|
|
606
|
+
export const ZodMiniNumber: core.$constructor<ZodMiniNumber> = /*@__PURE__*/ core.$constructor(
|
|
607
|
+
"ZodMiniNumber",
|
|
608
|
+
(inst, def) => {
|
|
609
|
+
core.$ZodNumber.init(inst, def);
|
|
610
|
+
ZodMiniType.init(inst, def);
|
|
611
|
+
}
|
|
612
|
+
);
|
|
613
|
+
|
|
614
|
+
// @__NO_SIDE_EFFECTS__
|
|
615
|
+
export function number(params?: string | core.$ZodNumberParams): ZodMiniNumber<number> {
|
|
616
|
+
return core._number(ZodMiniNumber, params) as any;
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
// ZodMiniNumberFormat
|
|
620
|
+
export interface ZodMiniNumberFormat<Format extends core.$ZodNumberFormats = core.$ZodNumberFormats>
|
|
621
|
+
extends _ZodMiniNumber<core.$ZodNumberFormatInternals<Format>>,
|
|
622
|
+
core.$ZodNumberFormat<Format> {}
|
|
623
|
+
export const ZodMiniNumberFormat: core.$constructor<ZodMiniNumberFormat> = /*@__PURE__*/ core.$constructor(
|
|
624
|
+
"ZodMiniNumberFormat",
|
|
625
|
+
(inst, def) => {
|
|
626
|
+
core.$ZodNumberFormat.init(inst, def);
|
|
627
|
+
ZodMiniNumber.init(inst, def);
|
|
628
|
+
}
|
|
629
|
+
);
|
|
630
|
+
|
|
631
|
+
// int
|
|
632
|
+
|
|
633
|
+
// @__NO_SIDE_EFFECTS__
|
|
634
|
+
export interface ZodMiniInt extends ZodMiniNumberFormat<"safeint"> {}
|
|
635
|
+
export function int(params?: string | core.$ZodCheckNumberFormatParams): ZodMiniInt {
|
|
636
|
+
return core._int(ZodMiniNumberFormat, params) as ZodMiniInt;
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
// float32
|
|
640
|
+
|
|
641
|
+
// @__NO_SIDE_EFFECTS__
|
|
642
|
+
export interface ZodMiniFloat32 extends ZodMiniNumberFormat<"float32"> {}
|
|
643
|
+
export function float32(params?: string | core.$ZodCheckNumberFormatParams): ZodMiniFloat32 {
|
|
644
|
+
return core._float32(ZodMiniNumberFormat, params) as ZodMiniFloat32;
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
// float64
|
|
648
|
+
|
|
649
|
+
// @__NO_SIDE_EFFECTS__
|
|
650
|
+
export interface ZodMiniFloat64 extends ZodMiniNumberFormat<"float64"> {}
|
|
651
|
+
export function float64(params?: string | core.$ZodCheckNumberFormatParams): ZodMiniFloat64 {
|
|
652
|
+
return core._float64(ZodMiniNumberFormat, params) as ZodMiniFloat64;
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
// int32
|
|
656
|
+
|
|
657
|
+
// @__NO_SIDE_EFFECTS__
|
|
658
|
+
export interface ZodMiniInt32 extends ZodMiniNumberFormat<"int32"> {}
|
|
659
|
+
export function int32(params?: string | core.$ZodCheckNumberFormatParams): ZodMiniInt32 {
|
|
660
|
+
return core._int32(ZodMiniNumberFormat, params) as ZodMiniInt32;
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
// uint32
|
|
664
|
+
|
|
665
|
+
// @__NO_SIDE_EFFECTS__
|
|
666
|
+
export interface ZodMiniUInt32 extends ZodMiniNumberFormat<"uint32"> {}
|
|
667
|
+
export function uint32(params?: string | core.$ZodCheckNumberFormatParams): ZodMiniUInt32 {
|
|
668
|
+
return core._uint32(ZodMiniNumberFormat, params) as ZodMiniUInt32;
|
|
669
|
+
}
|
|
670
|
+
|
|
671
|
+
// ZodMiniBoolean
|
|
672
|
+
export interface ZodMiniBoolean<T = unknown> extends _ZodMiniType<core.$ZodBooleanInternals<T>> {
|
|
673
|
+
// _zod: core.$ZodBooleanInternals<T>;
|
|
674
|
+
}
|
|
675
|
+
export const ZodMiniBoolean: core.$constructor<ZodMiniBoolean> = /*@__PURE__*/ core.$constructor(
|
|
676
|
+
"ZodMiniBoolean",
|
|
677
|
+
(inst, def) => {
|
|
678
|
+
core.$ZodBoolean.init(inst, def);
|
|
679
|
+
ZodMiniType.init(inst, def);
|
|
680
|
+
}
|
|
681
|
+
);
|
|
682
|
+
|
|
683
|
+
// @__NO_SIDE_EFFECTS__
|
|
684
|
+
export function boolean(params?: string | core.$ZodBooleanParams): ZodMiniBoolean<boolean> {
|
|
685
|
+
return core._boolean(ZodMiniBoolean, params) as any;
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
// ZodMiniBigInt
|
|
689
|
+
export interface ZodMiniBigInt<T = unknown> extends _ZodMiniType<core.$ZodBigIntInternals<T>>, core.$ZodBigInt<T> {
|
|
690
|
+
// _zod: core.$ZodBigIntInternals<T>;
|
|
691
|
+
}
|
|
692
|
+
export const ZodMiniBigInt: core.$constructor<ZodMiniBigInt> = /*@__PURE__*/ core.$constructor(
|
|
693
|
+
"ZodMiniBigInt",
|
|
694
|
+
(inst, def) => {
|
|
695
|
+
core.$ZodBigInt.init(inst, def);
|
|
696
|
+
ZodMiniType.init(inst, def);
|
|
697
|
+
}
|
|
698
|
+
);
|
|
699
|
+
|
|
700
|
+
// @__NO_SIDE_EFFECTS__
|
|
701
|
+
export function bigint(params?: string | core.$ZodBigIntParams): ZodMiniBigInt<bigint> {
|
|
702
|
+
return core._bigint(ZodMiniBigInt, params) as any;
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
// bigint formats
|
|
706
|
+
|
|
707
|
+
// ZodMiniBigIntFormat
|
|
708
|
+
export interface ZodMiniBigIntFormat<Format extends $ZodBigIntFormats = $ZodBigIntFormats>
|
|
709
|
+
extends _ZodMiniType<core.$ZodBigIntFormatInternals<Format>> {
|
|
710
|
+
// _zod: core.$ZodBigIntFormatInternals<Format>;
|
|
711
|
+
}
|
|
712
|
+
export const ZodMiniBigIntFormat: core.$constructor<ZodMiniBigIntFormat> = /*@__PURE__*/ core.$constructor(
|
|
713
|
+
"ZodMiniBigIntFormat",
|
|
714
|
+
(inst, def) => {
|
|
715
|
+
core.$ZodBigIntFormat.init(inst, def);
|
|
716
|
+
ZodMiniBigInt.init(inst, def);
|
|
717
|
+
}
|
|
718
|
+
);
|
|
719
|
+
|
|
720
|
+
// int64
|
|
721
|
+
|
|
722
|
+
// @__NO_SIDE_EFFECTS__
|
|
723
|
+
export interface ZodMiniInt64 extends ZodMiniBigIntFormat<"int64"> {}
|
|
724
|
+
export function int64(params?: string | core.$ZodBigIntFormatParams): ZodMiniInt64 {
|
|
725
|
+
return core._int64(ZodMiniBigIntFormat, params) as ZodMiniInt64;
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
// uint64
|
|
729
|
+
|
|
730
|
+
// @__NO_SIDE_EFFECTS__
|
|
731
|
+
export interface ZodMiniUInt64 extends ZodMiniBigIntFormat<"uint64"> {}
|
|
732
|
+
export function uint64(params?: string | core.$ZodBigIntFormatParams): ZodMiniUInt64 {
|
|
733
|
+
return core._uint64(ZodMiniBigIntFormat, params) as ZodMiniUInt64;
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
// ZodMiniSymbol
|
|
737
|
+
export interface ZodMiniSymbol extends _ZodMiniType<core.$ZodSymbolInternals> {
|
|
738
|
+
// _zod: core.$ZodSymbolInternals;
|
|
739
|
+
}
|
|
740
|
+
export const ZodMiniSymbol: core.$constructor<ZodMiniSymbol> = /*@__PURE__*/ core.$constructor(
|
|
741
|
+
"ZodMiniSymbol",
|
|
742
|
+
(inst, def) => {
|
|
743
|
+
core.$ZodSymbol.init(inst, def);
|
|
744
|
+
ZodMiniType.init(inst, def);
|
|
745
|
+
}
|
|
746
|
+
);
|
|
747
|
+
|
|
748
|
+
// @__NO_SIDE_EFFECTS__
|
|
749
|
+
export function symbol(params?: string | core.$ZodSymbolParams): ZodMiniSymbol {
|
|
750
|
+
return core._symbol(ZodMiniSymbol, params) as any;
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
// ZodMiniUndefined
|
|
754
|
+
export interface ZodMiniUndefined extends _ZodMiniType<core.$ZodUndefinedInternals> {
|
|
755
|
+
// _zod: core.$ZodUndefinedInternals;
|
|
756
|
+
}
|
|
757
|
+
export const ZodMiniUndefined: core.$constructor<ZodMiniUndefined> = /*@__PURE__*/ core.$constructor(
|
|
758
|
+
"ZodMiniUndefined",
|
|
759
|
+
(inst, def) => {
|
|
760
|
+
core.$ZodUndefined.init(inst, def);
|
|
761
|
+
ZodMiniType.init(inst, def);
|
|
762
|
+
}
|
|
763
|
+
);
|
|
764
|
+
|
|
765
|
+
// @__NO_SIDE_EFFECTS__
|
|
766
|
+
function _undefined(params?: string | core.$ZodUndefinedParams): ZodMiniUndefined {
|
|
767
|
+
return core._undefined(ZodMiniUndefined, params) as any;
|
|
768
|
+
}
|
|
769
|
+
export { _undefined as undefined };
|
|
770
|
+
|
|
771
|
+
// ZodMiniNull
|
|
772
|
+
export interface ZodMiniNull extends _ZodMiniType<core.$ZodNullInternals> {
|
|
773
|
+
// _zod: core.$ZodNullInternals;
|
|
774
|
+
}
|
|
775
|
+
export const ZodMiniNull: core.$constructor<ZodMiniNull> = /*@__PURE__*/ core.$constructor(
|
|
776
|
+
"ZodMiniNull",
|
|
777
|
+
(inst, def) => {
|
|
778
|
+
core.$ZodNull.init(inst, def);
|
|
779
|
+
ZodMiniType.init(inst, def);
|
|
780
|
+
}
|
|
781
|
+
);
|
|
782
|
+
|
|
783
|
+
// @__NO_SIDE_EFFECTS__
|
|
784
|
+
function _null(params?: string | core.$ZodNullParams): ZodMiniNull {
|
|
785
|
+
return core._null(ZodMiniNull, params) as any;
|
|
786
|
+
}
|
|
787
|
+
export { _null as null };
|
|
788
|
+
|
|
789
|
+
// ZodMiniAny
|
|
790
|
+
export interface ZodMiniAny extends _ZodMiniType<core.$ZodAnyInternals> {
|
|
791
|
+
// _zod: core.$ZodAnyInternals;
|
|
792
|
+
}
|
|
793
|
+
export const ZodMiniAny: core.$constructor<ZodMiniAny> = /*@__PURE__*/ core.$constructor("ZodMiniAny", (inst, def) => {
|
|
794
|
+
core.$ZodAny.init(inst, def);
|
|
795
|
+
ZodMiniType.init(inst, def);
|
|
796
|
+
});
|
|
797
|
+
|
|
798
|
+
// @__NO_SIDE_EFFECTS__
|
|
799
|
+
export function any(): ZodMiniAny {
|
|
800
|
+
return core._any(ZodMiniAny) as any;
|
|
801
|
+
}
|
|
802
|
+
|
|
803
|
+
// ZodMiniUnknown
|
|
804
|
+
export interface ZodMiniUnknown extends _ZodMiniType<core.$ZodUnknownInternals> {
|
|
805
|
+
// _zod: core.$ZodUnknownInternals;
|
|
806
|
+
}
|
|
807
|
+
export const ZodMiniUnknown: core.$constructor<ZodMiniUnknown> = /*@__PURE__*/ core.$constructor(
|
|
808
|
+
"ZodMiniUnknown",
|
|
809
|
+
(inst, def) => {
|
|
810
|
+
core.$ZodUnknown.init(inst, def);
|
|
811
|
+
ZodMiniType.init(inst, def);
|
|
812
|
+
}
|
|
813
|
+
);
|
|
814
|
+
|
|
815
|
+
// @__NO_SIDE_EFFECTS__
|
|
816
|
+
export function unknown(): ZodMiniUnknown {
|
|
817
|
+
return core._unknown(ZodMiniUnknown) as any;
|
|
818
|
+
}
|
|
819
|
+
|
|
820
|
+
// ZodMiniNever
|
|
821
|
+
export interface ZodMiniNever extends _ZodMiniType<core.$ZodNeverInternals> {
|
|
822
|
+
// _zod: core.$ZodNeverInternals;
|
|
823
|
+
}
|
|
824
|
+
export const ZodMiniNever: core.$constructor<ZodMiniNever> = /*@__PURE__*/ core.$constructor(
|
|
825
|
+
"ZodMiniNever",
|
|
826
|
+
(inst, def) => {
|
|
827
|
+
core.$ZodNever.init(inst, def);
|
|
828
|
+
ZodMiniType.init(inst, def);
|
|
829
|
+
}
|
|
830
|
+
);
|
|
831
|
+
|
|
832
|
+
// @__NO_SIDE_EFFECTS__
|
|
833
|
+
export function never(params?: string | core.$ZodNeverParams): ZodMiniNever {
|
|
834
|
+
return core._never(ZodMiniNever, params) as any;
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
// ZodMiniVoid
|
|
838
|
+
export interface ZodMiniVoid extends _ZodMiniType<core.$ZodVoidInternals> {
|
|
839
|
+
// _zod: core.$ZodVoidInternals;
|
|
840
|
+
}
|
|
841
|
+
export const ZodMiniVoid: core.$constructor<ZodMiniVoid> = /*@__PURE__*/ core.$constructor(
|
|
842
|
+
"ZodMiniVoid",
|
|
843
|
+
(inst, def) => {
|
|
844
|
+
core.$ZodVoid.init(inst, def);
|
|
845
|
+
ZodMiniType.init(inst, def);
|
|
846
|
+
}
|
|
847
|
+
);
|
|
848
|
+
|
|
849
|
+
// @__NO_SIDE_EFFECTS__
|
|
850
|
+
function _void(params?: string | core.$ZodVoidParams): ZodMiniVoid {
|
|
851
|
+
return core._void(ZodMiniVoid, params) as any;
|
|
852
|
+
}
|
|
853
|
+
export { _void as void };
|
|
854
|
+
|
|
855
|
+
// ZodMiniDate
|
|
856
|
+
export interface ZodMiniDate<T = unknown> extends _ZodMiniType<core.$ZodDateInternals<T>> {
|
|
857
|
+
// _zod: core.$ZodDateInternals<T>;
|
|
858
|
+
}
|
|
859
|
+
|
|
860
|
+
export const ZodMiniDate: core.$constructor<ZodMiniDate> = /*@__PURE__*/ core.$constructor(
|
|
861
|
+
"ZodMiniDate",
|
|
862
|
+
(inst, def) => {
|
|
863
|
+
core.$ZodDate.init(inst, def);
|
|
864
|
+
ZodMiniType.init(inst, def);
|
|
865
|
+
}
|
|
866
|
+
);
|
|
867
|
+
|
|
868
|
+
// @__NO_SIDE_EFFECTS__
|
|
869
|
+
export function date(params?: string | core.$ZodDateParams): ZodMiniDate<Date> {
|
|
870
|
+
return core._date(ZodMiniDate, params) as any;
|
|
871
|
+
}
|
|
872
|
+
|
|
873
|
+
// ZodMiniArray
|
|
874
|
+
export interface ZodMiniArray<T extends SomeType = core.$ZodType>
|
|
875
|
+
extends _ZodMiniType<core.$ZodArrayInternals<T>>,
|
|
876
|
+
core.$ZodArray<T> {
|
|
877
|
+
// _zod: core.$ZodArrayInternals<T>;
|
|
878
|
+
}
|
|
879
|
+
export const ZodMiniArray: core.$constructor<ZodMiniArray> = /*@__PURE__*/ core.$constructor(
|
|
880
|
+
"ZodMiniArray",
|
|
881
|
+
(inst, def) => {
|
|
882
|
+
core.$ZodArray.init(inst, def);
|
|
883
|
+
ZodMiniType.init(inst, def);
|
|
884
|
+
}
|
|
885
|
+
);
|
|
886
|
+
|
|
887
|
+
export function array<T extends SomeType>(element: T, params?: string | core.$ZodArrayParams): ZodMiniArray<T>;
|
|
888
|
+
// @__NO_SIDE_EFFECTS__
|
|
889
|
+
export function array<T extends SomeType>(element: SomeType, params?: any): ZodMiniArray<T> {
|
|
890
|
+
return new ZodMiniArray({
|
|
891
|
+
type: "array",
|
|
892
|
+
element: element as core.$ZodType,
|
|
893
|
+
...util.normalizeParams(params),
|
|
894
|
+
}) as any;
|
|
895
|
+
}
|
|
896
|
+
|
|
897
|
+
// .keyof
|
|
898
|
+
// @__NO_SIDE_EFFECTS__
|
|
899
|
+
export function keyof<T extends ZodMiniObject>(schema: T): ZodMiniEnum<util.KeysEnum<T["shape"]>> {
|
|
900
|
+
const shape = schema._zod.def.shape;
|
|
901
|
+
return _enum(Object.keys(shape)) as any;
|
|
902
|
+
}
|
|
903
|
+
|
|
904
|
+
// ZodMiniObject
|
|
905
|
+
export interface ZodMiniObject<
|
|
906
|
+
/** @ts-ignore Cast variance */
|
|
907
|
+
out Shape extends core.$ZodShape = core.$ZodShape,
|
|
908
|
+
out Config extends core.$ZodObjectConfig = core.$strip,
|
|
909
|
+
> extends ZodMiniType<any, any, core.$ZodObjectInternals<Shape, Config>>,
|
|
910
|
+
core.$ZodObject<Shape, Config> {
|
|
911
|
+
shape: Shape;
|
|
912
|
+
}
|
|
913
|
+
export const ZodMiniObject: core.$constructor<ZodMiniObject> = /*@__PURE__*/ core.$constructor(
|
|
914
|
+
"ZodMiniObject",
|
|
915
|
+
(inst, def) => {
|
|
916
|
+
core.$ZodObject.init(inst, def);
|
|
917
|
+
ZodMiniType.init(inst, def);
|
|
918
|
+
util.installLazyProp(inst, "shape", (self) => self._zod.def.shape, false);
|
|
919
|
+
}
|
|
920
|
+
);
|
|
921
|
+
// @__NO_SIDE_EFFECTS__
|
|
922
|
+
export function object<T extends core.$ZodLooseShape = Record<never, SomeType>>(
|
|
923
|
+
shape?: T,
|
|
924
|
+
params?: string | core.$ZodObjectParams
|
|
925
|
+
): ZodMiniObject<util.Writeable<T>, core.$strip> {
|
|
926
|
+
const def: core.$ZodObjectDef = {
|
|
927
|
+
type: "object",
|
|
928
|
+
shape: shape ?? {},
|
|
929
|
+
...util.normalizeParams(params),
|
|
930
|
+
};
|
|
931
|
+
return new ZodMiniObject(def) as any;
|
|
932
|
+
}
|
|
933
|
+
|
|
934
|
+
// strictObject
|
|
935
|
+
// @__NO_SIDE_EFFECTS__
|
|
936
|
+
export function strictObject<T extends core.$ZodLooseShape>(
|
|
937
|
+
shape: T,
|
|
938
|
+
params?: string | core.$ZodObjectParams
|
|
939
|
+
): ZodMiniObject<util.Writeable<T>, core.$strict> {
|
|
940
|
+
return new ZodMiniObject({
|
|
941
|
+
type: "object",
|
|
942
|
+
shape,
|
|
943
|
+
catchall: never(),
|
|
944
|
+
...util.normalizeParams(params),
|
|
945
|
+
}) as any;
|
|
946
|
+
}
|
|
947
|
+
|
|
948
|
+
// looseObject
|
|
949
|
+
// @__NO_SIDE_EFFECTS__
|
|
950
|
+
export function looseObject<T extends core.$ZodLooseShape>(
|
|
951
|
+
shape: T,
|
|
952
|
+
params?: string | core.$ZodObjectParams
|
|
953
|
+
): ZodMiniObject<util.Writeable<T>, core.$loose> {
|
|
954
|
+
return new ZodMiniObject({
|
|
955
|
+
type: "object",
|
|
956
|
+
shape,
|
|
957
|
+
catchall: unknown(),
|
|
958
|
+
...util.normalizeParams(params),
|
|
959
|
+
}) as any;
|
|
960
|
+
}
|
|
961
|
+
|
|
962
|
+
// object methods
|
|
963
|
+
// @__NO_SIDE_EFFECTS__
|
|
964
|
+
export function extend<T extends ZodMiniObject, U extends core.$ZodLooseShape>(
|
|
965
|
+
schema: T,
|
|
966
|
+
shape: U
|
|
967
|
+
): ZodMiniObject<util.Extend<T["shape"], util.Writeable<U>>, T["_zod"]["config"]> {
|
|
968
|
+
return util.extend(schema, shape);
|
|
969
|
+
}
|
|
970
|
+
|
|
971
|
+
export type SafeExtendShape<Base extends core.$ZodShape, Ext extends core.$ZodLooseShape> = {
|
|
972
|
+
[K in keyof Ext]: K extends keyof Base
|
|
973
|
+
? core.output<Ext[K]> extends core.output<Base[K]>
|
|
974
|
+
? core.input<Ext[K]> extends core.input<Base[K]>
|
|
975
|
+
? Ext[K]
|
|
976
|
+
: never
|
|
977
|
+
: never
|
|
978
|
+
: Ext[K];
|
|
979
|
+
};
|
|
980
|
+
|
|
981
|
+
// @__NO_SIDE_EFFECTS__
|
|
982
|
+
export function safeExtend<T extends ZodMiniObject, U extends core.$ZodLooseShape>(
|
|
983
|
+
schema: T,
|
|
984
|
+
shape: SafeExtendShape<T["shape"], U>
|
|
985
|
+
): ZodMiniObject<util.Extend<T["shape"], util.Writeable<U>>, T["_zod"]["config"]> {
|
|
986
|
+
return util.safeExtend(schema, shape as any);
|
|
987
|
+
}
|
|
988
|
+
|
|
989
|
+
/**
|
|
990
|
+
* @deprecated Use [`z.extend(A, B.shape)`](https://zod.dev/api?id=extend) instead.
|
|
991
|
+
*/
|
|
992
|
+
// @__NO_SIDE_EFFECTS__
|
|
993
|
+
export function merge<T extends ZodMiniObject, U extends ZodMiniObject>(
|
|
994
|
+
a: T,
|
|
995
|
+
b: U
|
|
996
|
+
): ZodMiniObject<util.Extend<T["shape"], U["shape"]>, U["_zod"]["config"]> {
|
|
997
|
+
return util.merge(a, b) as any;
|
|
998
|
+
}
|
|
999
|
+
|
|
1000
|
+
// @__NO_SIDE_EFFECTS__
|
|
1001
|
+
export function pick<T extends ZodMiniObject, M extends util.Mask<keyof T["shape"]>>(
|
|
1002
|
+
schema: T,
|
|
1003
|
+
mask: M & Record<Exclude<keyof M, keyof T["shape"]>, never>
|
|
1004
|
+
): ZodMiniObject<util.Flatten<Pick<T["shape"], keyof T["shape"] & keyof M>>, T["_zod"]["config"]> {
|
|
1005
|
+
return util.pick(schema, mask as any);
|
|
1006
|
+
}
|
|
1007
|
+
|
|
1008
|
+
// .omit
|
|
1009
|
+
|
|
1010
|
+
// @__NO_SIDE_EFFECTS__
|
|
1011
|
+
export function omit<T extends ZodMiniObject, M extends util.Mask<keyof T["shape"]>>(
|
|
1012
|
+
schema: T,
|
|
1013
|
+
mask: M & Record<Exclude<keyof M, keyof T["shape"]>, never>
|
|
1014
|
+
): ZodMiniObject<util.Flatten<Omit<T["shape"], keyof M>>, T["_zod"]["config"]> {
|
|
1015
|
+
return util.omit(schema, mask);
|
|
1016
|
+
}
|
|
1017
|
+
|
|
1018
|
+
// @__NO_SIDE_EFFECTS__
|
|
1019
|
+
export function partial<T extends ZodMiniObject>(
|
|
1020
|
+
schema: T
|
|
1021
|
+
): ZodMiniObject<
|
|
1022
|
+
{
|
|
1023
|
+
-readonly [k in keyof T["shape"]]: ZodMiniOptional<T["shape"][k]>;
|
|
1024
|
+
},
|
|
1025
|
+
T["_zod"]["config"]
|
|
1026
|
+
>;
|
|
1027
|
+
// @__NO_SIDE_EFFECTS__
|
|
1028
|
+
export function partial<T extends ZodMiniObject, M extends util.Mask<keyof T["shape"]>>(
|
|
1029
|
+
schema: T,
|
|
1030
|
+
mask: M & Record<Exclude<keyof M, keyof T["shape"]>, never>
|
|
1031
|
+
): ZodMiniObject<
|
|
1032
|
+
{
|
|
1033
|
+
-readonly [k in keyof T["shape"]]: k extends keyof M ? ZodMiniOptional<T["shape"][k]> : T["shape"][k];
|
|
1034
|
+
},
|
|
1035
|
+
T["_zod"]["config"]
|
|
1036
|
+
>;
|
|
1037
|
+
// @__NO_SIDE_EFFECTS__
|
|
1038
|
+
export function partial<T extends util.TupleItems, Rest extends SomeType | null>(
|
|
1039
|
+
schema: ZodMiniTuple<T, Rest>
|
|
1040
|
+
): ZodMiniTuple<{ -readonly [k in keyof T]: ZodMiniOptional<T[k]> }, Rest>;
|
|
1041
|
+
// @__NO_SIDE_EFFECTS__
|
|
1042
|
+
export function partial(schema: ZodMiniObject | ZodMiniTuple, mask?: object) {
|
|
1043
|
+
const def = schema._zod.def;
|
|
1044
|
+
if (def.type !== "tuple") return util.partial(ZodMiniOptional, schema as ZodMiniObject, mask);
|
|
1045
|
+
// a refinement was authored against the full arity; partialing would run it on a shorter array
|
|
1046
|
+
if (def.checks?.length) throw new Error(".partial() cannot be used on tuple schemas containing refinements");
|
|
1047
|
+
return util.clone(schema, {
|
|
1048
|
+
...def,
|
|
1049
|
+
items: def.items.map((item) => new ZodMiniOptional({ type: "optional", innerType: item as core.$ZodType })),
|
|
1050
|
+
});
|
|
1051
|
+
}
|
|
1052
|
+
|
|
1053
|
+
// @__NO_SIDE_EFFECTS__
|
|
1054
|
+
export function exactPartial<T extends ZodMiniObject>(
|
|
1055
|
+
schema: T
|
|
1056
|
+
): ZodMiniObject<
|
|
1057
|
+
{
|
|
1058
|
+
-readonly [k in keyof T["shape"]]: ZodMiniExactOptional<T["shape"][k]>;
|
|
1059
|
+
},
|
|
1060
|
+
T["_zod"]["config"]
|
|
1061
|
+
>;
|
|
1062
|
+
// @__NO_SIDE_EFFECTS__
|
|
1063
|
+
export function exactPartial<T extends ZodMiniObject, M extends util.Mask<keyof T["shape"]>>(
|
|
1064
|
+
schema: T,
|
|
1065
|
+
mask: M & Record<Exclude<keyof M, keyof T["shape"]>, never>
|
|
1066
|
+
): ZodMiniObject<
|
|
1067
|
+
{
|
|
1068
|
+
-readonly [k in keyof T["shape"]]: k extends keyof M ? ZodMiniExactOptional<T["shape"][k]> : T["shape"][k];
|
|
1069
|
+
},
|
|
1070
|
+
T["_zod"]["config"]
|
|
1071
|
+
>;
|
|
1072
|
+
// @__NO_SIDE_EFFECTS__
|
|
1073
|
+
export function exactPartial(schema: ZodMiniObject, mask?: object) {
|
|
1074
|
+
return util.partial(ZodMiniExactOptional, schema, mask, "exactPartial");
|
|
1075
|
+
}
|
|
1076
|
+
|
|
1077
|
+
export type RequiredInterfaceShape<
|
|
1078
|
+
Shape extends core.$ZodLooseShape,
|
|
1079
|
+
Keys extends PropertyKey = keyof Shape,
|
|
1080
|
+
> = util.Identity<
|
|
1081
|
+
{
|
|
1082
|
+
[k in keyof Shape as k extends Keys ? k : never]: ZodMiniNonOptional<Shape[k]>;
|
|
1083
|
+
} & {
|
|
1084
|
+
[k in keyof Shape as k extends Keys ? never : k]: Shape[k];
|
|
1085
|
+
}
|
|
1086
|
+
>;
|
|
1087
|
+
|
|
1088
|
+
// @__NO_SIDE_EFFECTS__
|
|
1089
|
+
export function required<T extends ZodMiniObject>(
|
|
1090
|
+
schema: T
|
|
1091
|
+
): ZodMiniObject<
|
|
1092
|
+
{
|
|
1093
|
+
-readonly [k in keyof T["shape"]]: ZodMiniNonOptional<T["shape"][k]>;
|
|
1094
|
+
},
|
|
1095
|
+
T["_zod"]["config"]
|
|
1096
|
+
>;
|
|
1097
|
+
// @__NO_SIDE_EFFECTS__
|
|
1098
|
+
export function required<T extends ZodMiniObject, M extends util.Mask<keyof T["shape"]>>(
|
|
1099
|
+
schema: T,
|
|
1100
|
+
mask: M & Record<Exclude<keyof M, keyof T["shape"]>, never>
|
|
1101
|
+
): ZodMiniObject<
|
|
1102
|
+
util.Extend<
|
|
1103
|
+
T["shape"],
|
|
1104
|
+
{
|
|
1105
|
+
[k in keyof M & keyof T["shape"]]: ZodMiniNonOptional<T["shape"][k]>;
|
|
1106
|
+
}
|
|
1107
|
+
>,
|
|
1108
|
+
T["_zod"]["config"]
|
|
1109
|
+
>;
|
|
1110
|
+
// @__NO_SIDE_EFFECTS__
|
|
1111
|
+
export function required(schema: ZodMiniObject, mask?: object) {
|
|
1112
|
+
return util.required(ZodMiniNonOptional, schema, mask);
|
|
1113
|
+
}
|
|
1114
|
+
|
|
1115
|
+
// @__NO_SIDE_EFFECTS__
|
|
1116
|
+
export function catchall<T extends ZodMiniObject, U extends SomeType>(
|
|
1117
|
+
inst: T,
|
|
1118
|
+
catchall: U
|
|
1119
|
+
): ZodMiniObject<T["shape"], core.$catchall<U>> {
|
|
1120
|
+
// `mergeDefs` rather than a spread: spreading reads `shape`, and resolving it can mint a whole fresh subtree
|
|
1121
|
+
return inst.clone(util.mergeDefs(inst._zod.def, { catchall: catchall as any })) as any;
|
|
1122
|
+
}
|
|
1123
|
+
|
|
1124
|
+
// ZodMiniUnion
|
|
1125
|
+
export interface ZodMiniUnion<T extends readonly SomeType[] = readonly core.$ZodType[]>
|
|
1126
|
+
extends _ZodMiniType<core.$ZodUnionInternals<T>> {
|
|
1127
|
+
// _zod: core.$ZodUnionInternals<T>;
|
|
1128
|
+
}
|
|
1129
|
+
export const ZodMiniUnion: core.$constructor<ZodMiniUnion> = /*@__PURE__*/ core.$constructor(
|
|
1130
|
+
"ZodMiniUnion",
|
|
1131
|
+
(inst, def) => {
|
|
1132
|
+
core.$ZodUnion.init(inst, def);
|
|
1133
|
+
ZodMiniType.init(inst, def);
|
|
1134
|
+
}
|
|
1135
|
+
);
|
|
1136
|
+
|
|
1137
|
+
// @__NO_SIDE_EFFECTS__
|
|
1138
|
+
export function union<const T extends readonly SomeType[]>(
|
|
1139
|
+
options: T,
|
|
1140
|
+
params?: string | core.$ZodUnionParams
|
|
1141
|
+
): ZodMiniUnion<T> {
|
|
1142
|
+
return new ZodMiniUnion({
|
|
1143
|
+
type: "union",
|
|
1144
|
+
options: options as any as core.$ZodType[],
|
|
1145
|
+
...util.normalizeParams(params),
|
|
1146
|
+
}) as any;
|
|
1147
|
+
}
|
|
1148
|
+
|
|
1149
|
+
// ZodMiniXor
|
|
1150
|
+
export interface ZodMiniXor<T extends readonly SomeType[] = readonly core.$ZodType[]>
|
|
1151
|
+
extends _ZodMiniType<core.$ZodXorInternals<T>> {
|
|
1152
|
+
// _zod: core.$ZodXorInternals<T>;
|
|
1153
|
+
}
|
|
1154
|
+
export const ZodMiniXor: core.$constructor<ZodMiniXor> = /*@__PURE__*/ core.$constructor("ZodMiniXor", (inst, def) => {
|
|
1155
|
+
ZodMiniUnion.init(inst, def);
|
|
1156
|
+
core.$ZodXor.init(inst, def);
|
|
1157
|
+
});
|
|
1158
|
+
|
|
1159
|
+
/** Creates an exclusive union (XOR) where exactly one option must match.
|
|
1160
|
+
* Unlike regular unions that succeed when any option matches, xor fails if
|
|
1161
|
+
* zero or more than one option matches the input. */
|
|
1162
|
+
export function xor<const T extends readonly SomeType[]>(
|
|
1163
|
+
options: T,
|
|
1164
|
+
params?: string | core.$ZodXorParams
|
|
1165
|
+
): ZodMiniXor<T> {
|
|
1166
|
+
return new ZodMiniXor({
|
|
1167
|
+
type: "union",
|
|
1168
|
+
options: options as any as core.$ZodType[],
|
|
1169
|
+
inclusive: false,
|
|
1170
|
+
...util.normalizeParams(params),
|
|
1171
|
+
}) as any;
|
|
1172
|
+
}
|
|
1173
|
+
|
|
1174
|
+
// ZodMiniDiscriminatedUnion
|
|
1175
|
+
export interface ZodMiniDiscriminatedUnion<
|
|
1176
|
+
Options extends readonly SomeType[] = readonly core.$ZodType[],
|
|
1177
|
+
Disc extends string = string,
|
|
1178
|
+
> extends ZodMiniUnion<Options> {
|
|
1179
|
+
_zod: core.$ZodDiscriminatedUnionInternals<Options, Disc>;
|
|
1180
|
+
}
|
|
1181
|
+
export const ZodMiniDiscriminatedUnion: core.$constructor<ZodMiniDiscriminatedUnion> = /*@__PURE__*/ core.$constructor(
|
|
1182
|
+
"ZodMiniDiscriminatedUnion",
|
|
1183
|
+
(inst, def) => {
|
|
1184
|
+
core.$ZodDiscriminatedUnion.init(inst, def);
|
|
1185
|
+
ZodMiniType.init(inst, def);
|
|
1186
|
+
}
|
|
1187
|
+
);
|
|
1188
|
+
|
|
1189
|
+
// @__NO_SIDE_EFFECTS__
|
|
1190
|
+
export function discriminatedUnion<
|
|
1191
|
+
Types extends readonly [core.$ZodTypeDiscriminable, ...core.$ZodTypeDiscriminable[]],
|
|
1192
|
+
Disc extends string,
|
|
1193
|
+
>(
|
|
1194
|
+
discriminator: Disc,
|
|
1195
|
+
options: Types,
|
|
1196
|
+
params?: string | core.$ZodDiscriminatedUnionParams
|
|
1197
|
+
): ZodMiniDiscriminatedUnion<Types, Disc> {
|
|
1198
|
+
return new ZodMiniDiscriminatedUnion({
|
|
1199
|
+
type: "union",
|
|
1200
|
+
options: options as any as core.$ZodType[],
|
|
1201
|
+
discriminator,
|
|
1202
|
+
...util.normalizeParams(params),
|
|
1203
|
+
}) as any as ZodMiniDiscriminatedUnion<Types, Disc>;
|
|
1204
|
+
}
|
|
1205
|
+
|
|
1206
|
+
// ZodMiniIntersection
|
|
1207
|
+
export interface ZodMiniIntersection<A extends SomeType = core.$ZodType, B extends SomeType = core.$ZodType>
|
|
1208
|
+
extends _ZodMiniType<core.$ZodIntersectionInternals<A, B>> {
|
|
1209
|
+
// _zod: core.$ZodIntersectionInternals<A, B>;
|
|
1210
|
+
}
|
|
1211
|
+
export const ZodMiniIntersection: core.$constructor<ZodMiniIntersection> = /*@__PURE__*/ core.$constructor(
|
|
1212
|
+
"ZodMiniIntersection",
|
|
1213
|
+
(inst, def) => {
|
|
1214
|
+
core.$ZodIntersection.init(inst, def);
|
|
1215
|
+
ZodMiniType.init(inst, def);
|
|
1216
|
+
}
|
|
1217
|
+
);
|
|
1218
|
+
|
|
1219
|
+
// @__NO_SIDE_EFFECTS__
|
|
1220
|
+
export function intersection<T extends SomeType, U extends SomeType>(left: T, right: U): ZodMiniIntersection<T, U> {
|
|
1221
|
+
return new ZodMiniIntersection({
|
|
1222
|
+
type: "intersection",
|
|
1223
|
+
left: left as any as core.$ZodType,
|
|
1224
|
+
right: right as any as core.$ZodType,
|
|
1225
|
+
}) as any;
|
|
1226
|
+
}
|
|
1227
|
+
|
|
1228
|
+
// ZodMiniTuple
|
|
1229
|
+
export interface ZodMiniTuple<
|
|
1230
|
+
T extends util.TupleItems = readonly core.$ZodType[],
|
|
1231
|
+
Rest extends SomeType | null = core.$ZodType | null,
|
|
1232
|
+
> extends _ZodMiniType<core.$ZodTupleInternals<T, Rest>> {
|
|
1233
|
+
// _zod: core.$ZodTupleInternals<T, Rest>;
|
|
1234
|
+
}
|
|
1235
|
+
export const ZodMiniTuple: core.$constructor<ZodMiniTuple> = /*@__PURE__*/ core.$constructor(
|
|
1236
|
+
"ZodMiniTuple",
|
|
1237
|
+
(inst, def) => {
|
|
1238
|
+
core.$ZodTuple.init(inst, def);
|
|
1239
|
+
ZodMiniType.init(inst, def);
|
|
1240
|
+
}
|
|
1241
|
+
);
|
|
1242
|
+
|
|
1243
|
+
export function tuple<const T extends readonly [SomeType, ...SomeType[]]>(
|
|
1244
|
+
items: T,
|
|
1245
|
+
params?: string | core.$ZodTupleParams
|
|
1246
|
+
): ZodMiniTuple<T, null>;
|
|
1247
|
+
export function tuple<const T extends readonly [SomeType, ...SomeType[]], Rest extends SomeType>(
|
|
1248
|
+
items: T,
|
|
1249
|
+
rest: Rest,
|
|
1250
|
+
params?: string | core.$ZodTupleParams
|
|
1251
|
+
): ZodMiniTuple<T, Rest>;
|
|
1252
|
+
export function tuple(items: [], params?: string | core.$ZodTupleParams): ZodMiniTuple<[], null>;
|
|
1253
|
+
// @__NO_SIDE_EFFECTS__
|
|
1254
|
+
export function tuple(
|
|
1255
|
+
items: SomeType[],
|
|
1256
|
+
_paramsOrRest?: string | core.$ZodTupleParams | SomeType,
|
|
1257
|
+
_params?: string | core.$ZodTupleParams
|
|
1258
|
+
) {
|
|
1259
|
+
const hasRest = _paramsOrRest instanceof core.$ZodType;
|
|
1260
|
+
const params = hasRest ? _params : _paramsOrRest;
|
|
1261
|
+
const rest = hasRest ? _paramsOrRest : null;
|
|
1262
|
+
return new ZodMiniTuple({
|
|
1263
|
+
type: "tuple",
|
|
1264
|
+
items: items as any as core.$ZodType[],
|
|
1265
|
+
rest,
|
|
1266
|
+
...util.normalizeParams(params),
|
|
1267
|
+
});
|
|
1268
|
+
}
|
|
1269
|
+
|
|
1270
|
+
// ZodMiniRecord
|
|
1271
|
+
export interface ZodMiniRecord<
|
|
1272
|
+
Key extends core.$ZodRecordKey = core.$ZodRecordKey,
|
|
1273
|
+
Value extends SomeType = core.$ZodType,
|
|
1274
|
+
> extends _ZodMiniType<core.$ZodRecordInternals<Key, Value>> {
|
|
1275
|
+
// _zod: core.$ZodRecordInternals<Key, Value>;
|
|
1276
|
+
}
|
|
1277
|
+
export const ZodMiniRecord: core.$constructor<ZodMiniRecord> = /*@__PURE__*/ core.$constructor(
|
|
1278
|
+
"ZodMiniRecord",
|
|
1279
|
+
(inst, def) => {
|
|
1280
|
+
core.$ZodRecord.init(inst, def);
|
|
1281
|
+
ZodMiniType.init(inst, def);
|
|
1282
|
+
}
|
|
1283
|
+
);
|
|
1284
|
+
|
|
1285
|
+
// @__NO_SIDE_EFFECTS__
|
|
1286
|
+
export function record<Key extends core.$ZodRecordKey, Value extends SomeType>(
|
|
1287
|
+
keyType: Key,
|
|
1288
|
+
valueType: Value,
|
|
1289
|
+
params?: string | core.$ZodRecordParams
|
|
1290
|
+
): ZodMiniRecord<Key, Value> {
|
|
1291
|
+
// v3-compat: z.record(valueType, params?) — defaults keyType to z.string()
|
|
1292
|
+
if (!valueType || !(valueType as any)._zod) {
|
|
1293
|
+
return new ZodMiniRecord({
|
|
1294
|
+
type: "record",
|
|
1295
|
+
keyType: string() as any,
|
|
1296
|
+
valueType: keyType as any as core.$ZodType,
|
|
1297
|
+
...util.normalizeParams(valueType as string | core.$ZodRecordParams | undefined),
|
|
1298
|
+
}) as any;
|
|
1299
|
+
}
|
|
1300
|
+
return new ZodMiniRecord({
|
|
1301
|
+
type: "record",
|
|
1302
|
+
keyType,
|
|
1303
|
+
valueType: valueType as any as core.$ZodType,
|
|
1304
|
+
...util.normalizeParams(params),
|
|
1305
|
+
}) as any;
|
|
1306
|
+
}
|
|
1307
|
+
// @__NO_SIDE_EFFECTS__
|
|
1308
|
+
export function partialRecord<Key extends core.$ZodRecordKey, Value extends SomeType>(
|
|
1309
|
+
keyType: Key,
|
|
1310
|
+
valueType: Value,
|
|
1311
|
+
params?: string | core.$ZodRecordParams
|
|
1312
|
+
): ZodMiniRecord<Key & core.$partial, Value> {
|
|
1313
|
+
return new ZodMiniRecord({
|
|
1314
|
+
type: "record",
|
|
1315
|
+
keyType,
|
|
1316
|
+
valueType: valueType as any,
|
|
1317
|
+
...util.normalizeParams(params),
|
|
1318
|
+
partial: true,
|
|
1319
|
+
}) as any;
|
|
1320
|
+
}
|
|
1321
|
+
|
|
1322
|
+
export function looseRecord<Key extends core.$ZodRecordKey, Value extends SomeType>(
|
|
1323
|
+
keyType: Key,
|
|
1324
|
+
valueType: Value,
|
|
1325
|
+
params?: string | core.$ZodRecordParams
|
|
1326
|
+
): ZodMiniRecord<Key, Value> {
|
|
1327
|
+
return new ZodMiniRecord({
|
|
1328
|
+
type: "record",
|
|
1329
|
+
keyType,
|
|
1330
|
+
valueType: valueType as any as core.$ZodType,
|
|
1331
|
+
mode: "loose",
|
|
1332
|
+
...util.normalizeParams(params),
|
|
1333
|
+
}) as any;
|
|
1334
|
+
}
|
|
1335
|
+
|
|
1336
|
+
// ZodMiniMap
|
|
1337
|
+
export interface ZodMiniMap<Key extends SomeType = core.$ZodType, Value extends SomeType = core.$ZodType>
|
|
1338
|
+
extends _ZodMiniType<core.$ZodMapInternals<Key, Value>> {
|
|
1339
|
+
// _zod: core.$ZodMapInternals<Key, Value>;
|
|
1340
|
+
}
|
|
1341
|
+
export const ZodMiniMap: core.$constructor<ZodMiniMap> = /*@__PURE__*/ core.$constructor("ZodMiniMap", (inst, def) => {
|
|
1342
|
+
core.$ZodMap.init(inst, def);
|
|
1343
|
+
ZodMiniType.init(inst, def);
|
|
1344
|
+
});
|
|
1345
|
+
|
|
1346
|
+
// @__NO_SIDE_EFFECTS__
|
|
1347
|
+
export function map<Key extends SomeType, Value extends SomeType>(
|
|
1348
|
+
keyType: Key,
|
|
1349
|
+
valueType: Value,
|
|
1350
|
+
params?: string | core.$ZodMapParams
|
|
1351
|
+
): ZodMiniMap<Key, Value> {
|
|
1352
|
+
return new ZodMiniMap({
|
|
1353
|
+
type: "map",
|
|
1354
|
+
keyType: keyType as any as core.$ZodType,
|
|
1355
|
+
valueType: valueType as any as core.$ZodType,
|
|
1356
|
+
...util.normalizeParams(params),
|
|
1357
|
+
}) as any;
|
|
1358
|
+
}
|
|
1359
|
+
|
|
1360
|
+
// ZodMiniSet
|
|
1361
|
+
export interface ZodMiniSet<T extends SomeType = core.$ZodType> extends _ZodMiniType<core.$ZodSetInternals<T>> {
|
|
1362
|
+
// _zod: core.$ZodSetInternals<T>;
|
|
1363
|
+
}
|
|
1364
|
+
export const ZodMiniSet: core.$constructor<ZodMiniSet> = /*@__PURE__*/ core.$constructor("ZodMiniSet", (inst, def) => {
|
|
1365
|
+
core.$ZodSet.init(inst, def);
|
|
1366
|
+
ZodMiniType.init(inst, def);
|
|
1367
|
+
});
|
|
1368
|
+
|
|
1369
|
+
// @__NO_SIDE_EFFECTS__
|
|
1370
|
+
export function set<Value extends SomeType>(valueType: Value, params?: string | core.$ZodSetParams): ZodMiniSet<Value> {
|
|
1371
|
+
return new ZodMiniSet({
|
|
1372
|
+
type: "set",
|
|
1373
|
+
valueType: valueType as any as core.$ZodType,
|
|
1374
|
+
...util.normalizeParams(params),
|
|
1375
|
+
}) as any;
|
|
1376
|
+
}
|
|
1377
|
+
|
|
1378
|
+
// ZodMiniEnum
|
|
1379
|
+
export interface ZodMiniEnum<T extends util.EnumLike = util.EnumLike> extends _ZodMiniType<core.$ZodEnumInternals<T>> {
|
|
1380
|
+
// _zod: core.$ZodEnumInternals<T>;
|
|
1381
|
+
options: Array<T[keyof T]>;
|
|
1382
|
+
}
|
|
1383
|
+
export const ZodMiniEnum: core.$constructor<ZodMiniEnum> = /*@__PURE__*/ core.$constructor(
|
|
1384
|
+
"ZodMiniEnum",
|
|
1385
|
+
(inst, def) => {
|
|
1386
|
+
core.$ZodEnum.init(inst, def);
|
|
1387
|
+
ZodMiniType.init(inst, def);
|
|
1388
|
+
|
|
1389
|
+
// reuse the parsed value set so a numeric TS enum's reverse-mapping keys stay out
|
|
1390
|
+
inst.options = [...inst._zod.values] as util.EnumValue[];
|
|
1391
|
+
}
|
|
1392
|
+
);
|
|
1393
|
+
|
|
1394
|
+
function _enum<const T extends readonly string[]>(
|
|
1395
|
+
values: T,
|
|
1396
|
+
params?: string | core.$ZodEnumParams
|
|
1397
|
+
): ZodMiniEnum<util.ToEnum<T[number]>>;
|
|
1398
|
+
function _enum<T extends util.EnumLike>(entries: T, params?: string | core.$ZodEnumParams): ZodMiniEnum<T>;
|
|
1399
|
+
// @__NO_SIDE_EFFECTS__
|
|
1400
|
+
function _enum(values: any, params?: string | core.$ZodEnumParams) {
|
|
1401
|
+
const entries: any = Array.isArray(values) ? Object.fromEntries(values.map((v) => [v, v])) : values;
|
|
1402
|
+
|
|
1403
|
+
return new ZodMiniEnum({
|
|
1404
|
+
type: "enum",
|
|
1405
|
+
entries,
|
|
1406
|
+
...util.normalizeParams(params),
|
|
1407
|
+
}) as any;
|
|
1408
|
+
}
|
|
1409
|
+
export { _enum as enum };
|
|
1410
|
+
|
|
1411
|
+
// @__NO_SIDE_EFFECTS__
|
|
1412
|
+
/** @deprecated This API has been merged into `z.enum()`. Use `z.enum()` instead.
|
|
1413
|
+
*
|
|
1414
|
+
* ```ts
|
|
1415
|
+
* enum Colors { red, green, blue }
|
|
1416
|
+
* z.enum(Colors);
|
|
1417
|
+
* ```
|
|
1418
|
+
*/
|
|
1419
|
+
export function nativeEnum<T extends util.EnumLike>(entries: T, params?: string | core.$ZodEnumParams): ZodMiniEnum<T> {
|
|
1420
|
+
return new ZodMiniEnum({
|
|
1421
|
+
type: "enum",
|
|
1422
|
+
entries,
|
|
1423
|
+
...util.normalizeParams(params),
|
|
1424
|
+
}) as any as ZodMiniEnum<T>;
|
|
1425
|
+
}
|
|
1426
|
+
|
|
1427
|
+
// ZodMiniLiteral
|
|
1428
|
+
export interface ZodMiniLiteral<T extends util.Literal = util.Literal>
|
|
1429
|
+
extends _ZodMiniType<core.$ZodLiteralInternals<T>> {
|
|
1430
|
+
// _zod: core.$ZodLiteralInternals<T>;
|
|
1431
|
+
}
|
|
1432
|
+
export const ZodMiniLiteral: core.$constructor<ZodMiniLiteral> = /*@__PURE__*/ core.$constructor(
|
|
1433
|
+
"ZodMiniLiteral",
|
|
1434
|
+
(inst, def) => {
|
|
1435
|
+
core.$ZodLiteral.init(inst, def);
|
|
1436
|
+
ZodMiniType.init(inst, def);
|
|
1437
|
+
}
|
|
1438
|
+
);
|
|
1439
|
+
|
|
1440
|
+
export function literal<const T extends ReadonlyArray<util.Literal>>(
|
|
1441
|
+
value: T,
|
|
1442
|
+
params?: string | core.$ZodLiteralParams
|
|
1443
|
+
): ZodMiniLiteral<T[number]>;
|
|
1444
|
+
export function literal<const T extends util.Literal>(
|
|
1445
|
+
value: T,
|
|
1446
|
+
params?: string | core.$ZodLiteralParams
|
|
1447
|
+
): ZodMiniLiteral<T>;
|
|
1448
|
+
// @__NO_SIDE_EFFECTS__
|
|
1449
|
+
export function literal(value: any, params: any) {
|
|
1450
|
+
return new ZodMiniLiteral({
|
|
1451
|
+
type: "literal",
|
|
1452
|
+
values: Array.isArray(value) ? value : [value],
|
|
1453
|
+
...util.normalizeParams(params),
|
|
1454
|
+
});
|
|
1455
|
+
}
|
|
1456
|
+
|
|
1457
|
+
// ZodMiniFile
|
|
1458
|
+
export interface ZodMiniFile extends _ZodMiniType<core.$ZodFileInternals> {
|
|
1459
|
+
// _zod: core.$ZodFileInternals;
|
|
1460
|
+
}
|
|
1461
|
+
export const ZodMiniFile: core.$constructor<ZodMiniFile> = /*@__PURE__*/ core.$constructor(
|
|
1462
|
+
"ZodMiniFile",
|
|
1463
|
+
(inst, def) => {
|
|
1464
|
+
core.$ZodFile.init(inst, def);
|
|
1465
|
+
ZodMiniType.init(inst, def);
|
|
1466
|
+
}
|
|
1467
|
+
);
|
|
1468
|
+
|
|
1469
|
+
// @__NO_SIDE_EFFECTS__
|
|
1470
|
+
export function file(params?: string | core.$ZodFileParams): ZodMiniFile {
|
|
1471
|
+
return core._file(ZodMiniFile, params) as any;
|
|
1472
|
+
}
|
|
1473
|
+
|
|
1474
|
+
// ZodMiniTransform
|
|
1475
|
+
export interface ZodMiniTransform<O = unknown, I = unknown> extends _ZodMiniType<core.$ZodTransformInternals<O, I>> {
|
|
1476
|
+
// _zod: core.$ZodTransformInternals<O, I>;
|
|
1477
|
+
}
|
|
1478
|
+
export const ZodMiniTransform: core.$constructor<ZodMiniTransform> = /*@__PURE__*/ core.$constructor(
|
|
1479
|
+
"ZodMiniTransform",
|
|
1480
|
+
(inst, def) => {
|
|
1481
|
+
core.$ZodTransform.init(inst, def);
|
|
1482
|
+
ZodMiniType.init(inst, def);
|
|
1483
|
+
}
|
|
1484
|
+
);
|
|
1485
|
+
|
|
1486
|
+
// @__NO_SIDE_EFFECTS__
|
|
1487
|
+
export function transform<I = unknown, O = I>(
|
|
1488
|
+
fn: (input: I, ctx: core.ParsePayload) => O
|
|
1489
|
+
): ZodMiniTransform<Awaited<O>, I> {
|
|
1490
|
+
return new ZodMiniTransform({
|
|
1491
|
+
type: "transform",
|
|
1492
|
+
transform: fn as any,
|
|
1493
|
+
}) as any;
|
|
1494
|
+
}
|
|
1495
|
+
|
|
1496
|
+
// ZodMiniOptional
|
|
1497
|
+
export interface ZodMiniOptional<T extends SomeType = core.$ZodType>
|
|
1498
|
+
extends _ZodMiniType<core.$ZodOptionalInternals<T>>,
|
|
1499
|
+
core.$ZodOptional<T> {
|
|
1500
|
+
// _zod: core.$ZodOptionalInternals<T>;
|
|
1501
|
+
}
|
|
1502
|
+
export const ZodMiniOptional: core.$constructor<ZodMiniOptional> = /*@__PURE__*/ core.$constructor(
|
|
1503
|
+
"ZodMiniOptional",
|
|
1504
|
+
(inst, def) => {
|
|
1505
|
+
core.$ZodOptional.init(inst, def);
|
|
1506
|
+
ZodMiniType.init(inst, def);
|
|
1507
|
+
}
|
|
1508
|
+
);
|
|
1509
|
+
|
|
1510
|
+
// @__NO_SIDE_EFFECTS__
|
|
1511
|
+
export function optional<T extends SomeType>(innerType: T): ZodMiniOptional<T> {
|
|
1512
|
+
return new ZodMiniOptional({
|
|
1513
|
+
type: "optional",
|
|
1514
|
+
innerType: innerType as any as core.$ZodType,
|
|
1515
|
+
}) as any;
|
|
1516
|
+
}
|
|
1517
|
+
|
|
1518
|
+
// ZodMiniExactOptional
|
|
1519
|
+
export interface ZodMiniExactOptional<T extends SomeType = core.$ZodType>
|
|
1520
|
+
extends _ZodMiniType<core.$ZodExactOptionalInternals<T>>,
|
|
1521
|
+
core.$ZodExactOptional<T> {
|
|
1522
|
+
// _zod: core.$ZodExactOptionalInternals<T>;
|
|
1523
|
+
}
|
|
1524
|
+
export const ZodMiniExactOptional: core.$constructor<ZodMiniExactOptional> = /*@__PURE__*/ core.$constructor(
|
|
1525
|
+
"ZodMiniExactOptional",
|
|
1526
|
+
(inst, def) => {
|
|
1527
|
+
core.$ZodExactOptional.init(inst, def);
|
|
1528
|
+
ZodMiniType.init(inst, def);
|
|
1529
|
+
}
|
|
1530
|
+
);
|
|
1531
|
+
|
|
1532
|
+
// @__NO_SIDE_EFFECTS__
|
|
1533
|
+
export function exactOptional<T extends SomeType>(innerType: T): ZodMiniExactOptional<T> {
|
|
1534
|
+
return new ZodMiniExactOptional({
|
|
1535
|
+
type: "optional",
|
|
1536
|
+
innerType: innerType as any as core.$ZodType,
|
|
1537
|
+
}) as any;
|
|
1538
|
+
}
|
|
1539
|
+
|
|
1540
|
+
// ZodMiniNullable
|
|
1541
|
+
export interface ZodMiniNullable<T extends SomeType = core.$ZodType>
|
|
1542
|
+
extends _ZodMiniType<core.$ZodNullableInternals<T>> {
|
|
1543
|
+
// _zod: core.$ZodNullableInternals<T>;
|
|
1544
|
+
}
|
|
1545
|
+
export const ZodMiniNullable: core.$constructor<ZodMiniNullable> = /*@__PURE__*/ core.$constructor(
|
|
1546
|
+
"ZodMiniNullable",
|
|
1547
|
+
(inst, def) => {
|
|
1548
|
+
core.$ZodNullable.init(inst, def);
|
|
1549
|
+
ZodMiniType.init(inst, def);
|
|
1550
|
+
}
|
|
1551
|
+
);
|
|
1552
|
+
|
|
1553
|
+
// @__NO_SIDE_EFFECTS__
|
|
1554
|
+
export function nullable<T extends SomeType>(innerType: T): ZodMiniNullable<T> {
|
|
1555
|
+
return new ZodMiniNullable({
|
|
1556
|
+
type: "nullable",
|
|
1557
|
+
innerType: innerType as any as core.$ZodType,
|
|
1558
|
+
}) as any;
|
|
1559
|
+
}
|
|
1560
|
+
|
|
1561
|
+
// nullish
|
|
1562
|
+
// @__NO_SIDE_EFFECTS__
|
|
1563
|
+
export function nullish<T extends SomeType>(innerType: T): ZodMiniOptional<ZodMiniNullable<T>> {
|
|
1564
|
+
return optional(nullable(innerType));
|
|
1565
|
+
}
|
|
1566
|
+
|
|
1567
|
+
// ZodMiniDefault
|
|
1568
|
+
export interface ZodMiniDefault<T extends SomeType = core.$ZodType> extends _ZodMiniType<core.$ZodDefaultInternals<T>> {
|
|
1569
|
+
// _zod: core.$ZodDefaultInternals<T>;
|
|
1570
|
+
}
|
|
1571
|
+
export const ZodMiniDefault: core.$constructor<ZodMiniDefault> = /*@__PURE__*/ core.$constructor(
|
|
1572
|
+
"ZodMiniDefault",
|
|
1573
|
+
(inst, def) => {
|
|
1574
|
+
core.$ZodDefault.init(inst, def);
|
|
1575
|
+
ZodMiniType.init(inst, def);
|
|
1576
|
+
}
|
|
1577
|
+
);
|
|
1578
|
+
|
|
1579
|
+
// @__NO_SIDE_EFFECTS__
|
|
1580
|
+
export function _default<T extends SomeType>(
|
|
1581
|
+
innerType: T,
|
|
1582
|
+
defaultValue: util.NoUndefined<core.output<T>> | (() => util.NoUndefined<core.output<T>>)
|
|
1583
|
+
): ZodMiniDefault<T> {
|
|
1584
|
+
return new ZodMiniDefault({
|
|
1585
|
+
type: "default",
|
|
1586
|
+
innerType: innerType as any as core.$ZodType,
|
|
1587
|
+
get defaultValue() {
|
|
1588
|
+
return typeof defaultValue === "function" ? (defaultValue as Function)() : util.shallowClone(defaultValue);
|
|
1589
|
+
},
|
|
1590
|
+
}) as any;
|
|
1591
|
+
}
|
|
1592
|
+
|
|
1593
|
+
// ZodMiniPrefault
|
|
1594
|
+
export interface ZodMiniPrefault<T extends SomeType = core.$ZodType>
|
|
1595
|
+
extends _ZodMiniType<core.$ZodPrefaultInternals<T>> {
|
|
1596
|
+
// _zod: core.$ZodPrefaultInternals<T>;
|
|
1597
|
+
}
|
|
1598
|
+
export const ZodMiniPrefault: core.$constructor<ZodMiniPrefault> = /*@__PURE__*/ core.$constructor(
|
|
1599
|
+
"ZodMiniPrefault",
|
|
1600
|
+
(inst, def) => {
|
|
1601
|
+
core.$ZodPrefault.init(inst, def);
|
|
1602
|
+
ZodMiniType.init(inst, def);
|
|
1603
|
+
}
|
|
1604
|
+
);
|
|
1605
|
+
// @__NO_SIDE_EFFECTS__
|
|
1606
|
+
export function prefault<T extends SomeType>(
|
|
1607
|
+
innerType: T,
|
|
1608
|
+
defaultValue: core.input<T> | (() => core.input<T>)
|
|
1609
|
+
): ZodMiniPrefault<T> {
|
|
1610
|
+
return new ZodMiniPrefault({
|
|
1611
|
+
type: "prefault",
|
|
1612
|
+
innerType: innerType as any as core.$ZodType,
|
|
1613
|
+
get defaultValue() {
|
|
1614
|
+
return typeof defaultValue === "function" ? (defaultValue as Function)() : util.shallowClone(defaultValue);
|
|
1615
|
+
},
|
|
1616
|
+
}) as any;
|
|
1617
|
+
}
|
|
1618
|
+
|
|
1619
|
+
// ZodMiniNonOptional
|
|
1620
|
+
export interface ZodMiniNonOptional<T extends SomeType = core.$ZodType>
|
|
1621
|
+
extends _ZodMiniType<core.$ZodNonOptionalInternals<T>> {
|
|
1622
|
+
// _zod: core.$ZodNonOptionalInternals<T>;
|
|
1623
|
+
}
|
|
1624
|
+
export const ZodMiniNonOptional: core.$constructor<ZodMiniNonOptional> = /*@__PURE__*/ core.$constructor(
|
|
1625
|
+
"ZodMiniNonOptional",
|
|
1626
|
+
(inst, def) => {
|
|
1627
|
+
core.$ZodNonOptional.init(inst, def);
|
|
1628
|
+
ZodMiniType.init(inst, def);
|
|
1629
|
+
}
|
|
1630
|
+
);
|
|
1631
|
+
|
|
1632
|
+
// @__NO_SIDE_EFFECTS__
|
|
1633
|
+
export function nonoptional<T extends SomeType>(
|
|
1634
|
+
innerType: T,
|
|
1635
|
+
params?: string | core.$ZodNonOptionalParams
|
|
1636
|
+
): ZodMiniNonOptional<T> {
|
|
1637
|
+
return new ZodMiniNonOptional({
|
|
1638
|
+
type: "nonoptional",
|
|
1639
|
+
innerType: innerType as any as core.$ZodType,
|
|
1640
|
+
...util.normalizeParams(params),
|
|
1641
|
+
}) as any;
|
|
1642
|
+
}
|
|
1643
|
+
|
|
1644
|
+
// ZodMiniSuccess
|
|
1645
|
+
export interface ZodMiniSuccess<T extends SomeType = core.$ZodType> extends _ZodMiniType<core.$ZodSuccessInternals<T>> {
|
|
1646
|
+
// _zod: core.$ZodSuccessInternals<T>;
|
|
1647
|
+
}
|
|
1648
|
+
export const ZodMiniSuccess: core.$constructor<ZodMiniSuccess> = /*@__PURE__*/ core.$constructor(
|
|
1649
|
+
"ZodMiniSuccess",
|
|
1650
|
+
(inst, def) => {
|
|
1651
|
+
core.$ZodSuccess.init(inst, def);
|
|
1652
|
+
ZodMiniType.init(inst, def);
|
|
1653
|
+
}
|
|
1654
|
+
);
|
|
1655
|
+
|
|
1656
|
+
// @__NO_SIDE_EFFECTS__
|
|
1657
|
+
export function success<T extends SomeType>(innerType: T): ZodMiniSuccess<T> {
|
|
1658
|
+
return new ZodMiniSuccess({
|
|
1659
|
+
type: "success",
|
|
1660
|
+
innerType: innerType as any as core.$ZodType,
|
|
1661
|
+
}) as any;
|
|
1662
|
+
}
|
|
1663
|
+
|
|
1664
|
+
// ZodMiniCatch
|
|
1665
|
+
export interface ZodMiniCatch<T extends SomeType = core.$ZodType> extends _ZodMiniType<core.$ZodCatchInternals<T>> {
|
|
1666
|
+
// _zod: core.$ZodCatchInternals<T>;
|
|
1667
|
+
}
|
|
1668
|
+
export const ZodMiniCatch: core.$constructor<ZodMiniCatch> = /*@__PURE__*/ core.$constructor(
|
|
1669
|
+
"ZodMiniCatch",
|
|
1670
|
+
(inst, def) => {
|
|
1671
|
+
core.$ZodCatch.init(inst, def);
|
|
1672
|
+
ZodMiniType.init(inst, def);
|
|
1673
|
+
}
|
|
1674
|
+
);
|
|
1675
|
+
|
|
1676
|
+
// @__NO_SIDE_EFFECTS__
|
|
1677
|
+
function _catch<T extends SomeType>(
|
|
1678
|
+
innerType: T,
|
|
1679
|
+
catchValue: core.output<T> | ((ctx: core.$ZodCatchCtx) => core.output<T>)
|
|
1680
|
+
): ZodMiniCatch<T> {
|
|
1681
|
+
return new ZodMiniCatch({
|
|
1682
|
+
type: "catch",
|
|
1683
|
+
innerType: innerType as any as core.$ZodType,
|
|
1684
|
+
catchValue: (typeof catchValue === "function" ? catchValue : core.util.constantCatch(catchValue)) as (
|
|
1685
|
+
ctx: core.$ZodCatchCtx
|
|
1686
|
+
) => core.output<T>,
|
|
1687
|
+
}) as any;
|
|
1688
|
+
}
|
|
1689
|
+
export { _catch as catch };
|
|
1690
|
+
|
|
1691
|
+
// ZodMiniNaN
|
|
1692
|
+
export interface ZodMiniNaN extends _ZodMiniType<core.$ZodNaNInternals> {
|
|
1693
|
+
// _zod: core.$ZodNaNInternals;
|
|
1694
|
+
}
|
|
1695
|
+
export const ZodMiniNaN: core.$constructor<ZodMiniNaN> = /*@__PURE__*/ core.$constructor("ZodMiniNaN", (inst, def) => {
|
|
1696
|
+
core.$ZodNaN.init(inst, def);
|
|
1697
|
+
ZodMiniType.init(inst, def);
|
|
1698
|
+
});
|
|
1699
|
+
|
|
1700
|
+
// @__NO_SIDE_EFFECTS__
|
|
1701
|
+
export function nan(params?: string | core.$ZodNaNParams): ZodMiniNaN {
|
|
1702
|
+
return core._nan(ZodMiniNaN, params) as any;
|
|
1703
|
+
}
|
|
1704
|
+
|
|
1705
|
+
// ZodMiniPipe
|
|
1706
|
+
export interface ZodMiniPipe<A extends SomeType = core.$ZodType, B extends SomeType = core.$ZodType>
|
|
1707
|
+
extends _ZodMiniType<core.$ZodPipeInternals<A, B>> {
|
|
1708
|
+
// _zod: core.$ZodPipeInternals<A, B>;
|
|
1709
|
+
}
|
|
1710
|
+
export const ZodMiniPipe: core.$constructor<ZodMiniPipe> = /*@__PURE__*/ core.$constructor(
|
|
1711
|
+
"ZodMiniPipe",
|
|
1712
|
+
(inst, def) => {
|
|
1713
|
+
core.$ZodPipe.init(inst, def);
|
|
1714
|
+
ZodMiniType.init(inst, def);
|
|
1715
|
+
}
|
|
1716
|
+
);
|
|
1717
|
+
|
|
1718
|
+
// @__NO_SIDE_EFFECTS__
|
|
1719
|
+
export function pipe<
|
|
1720
|
+
const A extends SomeType,
|
|
1721
|
+
B extends core.$ZodType<unknown, core.output<A>> = core.$ZodType<unknown, core.output<A>>,
|
|
1722
|
+
>(in_: A, out: B | core.$ZodType<unknown, core.output<A>>): ZodMiniPipe<A, B> {
|
|
1723
|
+
return new ZodMiniPipe({
|
|
1724
|
+
type: "pipe",
|
|
1725
|
+
in: in_ as any as core.$ZodType,
|
|
1726
|
+
out: out as any as core.$ZodType,
|
|
1727
|
+
}) as any;
|
|
1728
|
+
}
|
|
1729
|
+
|
|
1730
|
+
// ZodMiniCodec
|
|
1731
|
+
export interface ZodMiniCodec<A extends SomeType = core.$ZodType, B extends SomeType = core.$ZodType>
|
|
1732
|
+
extends ZodMiniPipe<A, B>,
|
|
1733
|
+
core.$ZodCodec<A, B> {
|
|
1734
|
+
_zod: core.$ZodCodecInternals<A, B>;
|
|
1735
|
+
def: core.$ZodCodecDef<A, B>;
|
|
1736
|
+
}
|
|
1737
|
+
export const ZodMiniCodec: core.$constructor<ZodMiniCodec> = /*@__PURE__*/ core.$constructor(
|
|
1738
|
+
"ZodMiniCodec",
|
|
1739
|
+
(inst, def) => {
|
|
1740
|
+
ZodMiniPipe.init(inst, def);
|
|
1741
|
+
core.$ZodCodec.init(inst, def);
|
|
1742
|
+
}
|
|
1743
|
+
);
|
|
1744
|
+
|
|
1745
|
+
// @__NO_SIDE_EFFECTS__
|
|
1746
|
+
export function codec<const A extends SomeType, B extends core.SomeType = core.$ZodType>(
|
|
1747
|
+
in_: A,
|
|
1748
|
+
out: B,
|
|
1749
|
+
params: {
|
|
1750
|
+
decode: (value: core.output<A>, payload: core.ParsePayload<core.output<A>>) => core.util.MaybeAsync<core.input<B>>;
|
|
1751
|
+
encode: (value: core.input<B>, payload: core.ParsePayload<core.input<B>>) => core.util.MaybeAsync<core.output<A>>;
|
|
1752
|
+
}
|
|
1753
|
+
): ZodMiniCodec<A, B> {
|
|
1754
|
+
return new ZodMiniCodec({
|
|
1755
|
+
type: "pipe",
|
|
1756
|
+
in: in_ as any as core.$ZodType,
|
|
1757
|
+
out: out as any as core.$ZodType,
|
|
1758
|
+
transform: params.decode as any,
|
|
1759
|
+
reverseTransform: params.encode as any,
|
|
1760
|
+
}) as any;
|
|
1761
|
+
}
|
|
1762
|
+
|
|
1763
|
+
// @__NO_SIDE_EFFECTS__
|
|
1764
|
+
export function invertCodec<A extends SomeType, B extends SomeType>(codec: ZodMiniCodec<A, B>): ZodMiniCodec<B, A> {
|
|
1765
|
+
const def = codec._zod.def;
|
|
1766
|
+
return new ZodMiniCodec({
|
|
1767
|
+
type: "pipe",
|
|
1768
|
+
in: def.out as any,
|
|
1769
|
+
out: def.in as any,
|
|
1770
|
+
transform: def.reverseTransform as any,
|
|
1771
|
+
reverseTransform: def.transform as any,
|
|
1772
|
+
}) as any;
|
|
1773
|
+
}
|
|
1774
|
+
|
|
1775
|
+
// ZodMiniReadonly
|
|
1776
|
+
export interface ZodMiniReadonly<T extends SomeType = core.$ZodType>
|
|
1777
|
+
extends _ZodMiniType<core.$ZodReadonlyInternals<T>> {
|
|
1778
|
+
// _zod: core.$ZodReadonlyInternals<T>;
|
|
1779
|
+
}
|
|
1780
|
+
export const ZodMiniReadonly: core.$constructor<ZodMiniReadonly> = /*@__PURE__*/ core.$constructor(
|
|
1781
|
+
"ZodMiniReadonly",
|
|
1782
|
+
(inst, def) => {
|
|
1783
|
+
core.$ZodReadonly.init(inst, def);
|
|
1784
|
+
ZodMiniType.init(inst, def);
|
|
1785
|
+
}
|
|
1786
|
+
);
|
|
1787
|
+
|
|
1788
|
+
// @__NO_SIDE_EFFECTS__
|
|
1789
|
+
export function readonly<T extends SomeType>(innerType: T): ZodMiniReadonly<T> {
|
|
1790
|
+
return new ZodMiniReadonly({
|
|
1791
|
+
type: "readonly",
|
|
1792
|
+
innerType: innerType as any as core.$ZodType,
|
|
1793
|
+
}) as any;
|
|
1794
|
+
}
|
|
1795
|
+
|
|
1796
|
+
// ZodMiniTemplateLiteral
|
|
1797
|
+
export interface ZodMiniTemplateLiteral<Template extends string = string>
|
|
1798
|
+
extends _ZodMiniType<core.$ZodTemplateLiteralInternals<Template>> {
|
|
1799
|
+
// _zod: core.$ZodTemplateLiteralInternals<Template>;
|
|
1800
|
+
}
|
|
1801
|
+
export const ZodMiniTemplateLiteral: core.$constructor<ZodMiniTemplateLiteral> = /*@__PURE__*/ core.$constructor(
|
|
1802
|
+
"ZodMiniTemplateLiteral",
|
|
1803
|
+
(inst, def) => {
|
|
1804
|
+
core.$ZodTemplateLiteral.init(inst, def);
|
|
1805
|
+
ZodMiniType.init(inst, def);
|
|
1806
|
+
}
|
|
1807
|
+
);
|
|
1808
|
+
|
|
1809
|
+
// @__NO_SIDE_EFFECTS__
|
|
1810
|
+
export function templateLiteral<const Parts extends core.$ZodTemplateLiteralPart[]>(
|
|
1811
|
+
parts: Parts,
|
|
1812
|
+
params?: string | core.$ZodTemplateLiteralParams
|
|
1813
|
+
): ZodMiniTemplateLiteral<core.$PartsToTemplateLiteral<Parts>> {
|
|
1814
|
+
return new ZodMiniTemplateLiteral({
|
|
1815
|
+
type: "template_literal",
|
|
1816
|
+
parts,
|
|
1817
|
+
...util.normalizeParams(params),
|
|
1818
|
+
}) as any;
|
|
1819
|
+
}
|
|
1820
|
+
|
|
1821
|
+
// ZodMiniLazy
|
|
1822
|
+
export interface ZodMiniLazy<T extends SomeType = core.$ZodType> extends _ZodMiniType<core.$ZodLazyInternals<T>> {
|
|
1823
|
+
// _zod: core.$ZodLazyInternals<T>;
|
|
1824
|
+
}
|
|
1825
|
+
export const ZodMiniLazy: core.$constructor<ZodMiniLazy> = /*@__PURE__*/ core.$constructor(
|
|
1826
|
+
"ZodMiniLazy",
|
|
1827
|
+
(inst, def) => {
|
|
1828
|
+
core.$ZodLazy.init(inst, def);
|
|
1829
|
+
ZodMiniType.init(inst, def);
|
|
1830
|
+
}
|
|
1831
|
+
);
|
|
1832
|
+
|
|
1833
|
+
// export function lazy<T extends object>(getter: () => T): T {
|
|
1834
|
+
// return util.createTransparentProxy<T>(getter);
|
|
1835
|
+
// }
|
|
1836
|
+
// @__NO_SIDE_EFFECTS__
|
|
1837
|
+
function _lazy<T extends SomeType>(getter: () => T): ZodMiniLazy<T> {
|
|
1838
|
+
return new ZodMiniLazy({
|
|
1839
|
+
type: "lazy",
|
|
1840
|
+
getter: getter as any,
|
|
1841
|
+
}) as any;
|
|
1842
|
+
}
|
|
1843
|
+
export { _lazy as lazy };
|
|
1844
|
+
|
|
1845
|
+
// ZodMiniPromise
|
|
1846
|
+
export interface ZodMiniPromise<T extends SomeType = core.$ZodType> extends _ZodMiniType<core.$ZodPromiseInternals<T>> {
|
|
1847
|
+
// _zod: core.$ZodPromiseInternals<T>;
|
|
1848
|
+
}
|
|
1849
|
+
export const ZodMiniPromise: core.$constructor<ZodMiniPromise> = /*@__PURE__*/ core.$constructor(
|
|
1850
|
+
"ZodMiniPromise",
|
|
1851
|
+
(inst, def) => {
|
|
1852
|
+
core.$ZodPromise.init(inst, def);
|
|
1853
|
+
ZodMiniType.init(inst, def);
|
|
1854
|
+
}
|
|
1855
|
+
);
|
|
1856
|
+
|
|
1857
|
+
// @__NO_SIDE_EFFECTS__
|
|
1858
|
+
export function promise<T extends SomeType>(innerType: T): ZodMiniPromise<T> {
|
|
1859
|
+
return new ZodMiniPromise({
|
|
1860
|
+
type: "promise",
|
|
1861
|
+
innerType: innerType as any as core.$ZodType,
|
|
1862
|
+
}) as any;
|
|
1863
|
+
}
|
|
1864
|
+
|
|
1865
|
+
// ZodMiniCustom
|
|
1866
|
+
export interface ZodMiniCustom<O = unknown, I = unknown> extends _ZodMiniType<core.$ZodCustomInternals<O, I>> {
|
|
1867
|
+
// _zod: core.$ZodCustomInternals<O, I>;
|
|
1868
|
+
}
|
|
1869
|
+
export const ZodMiniCustom: core.$constructor<ZodMiniCustom> = /*@__PURE__*/ core.$constructor(
|
|
1870
|
+
"ZodMiniCustom",
|
|
1871
|
+
(inst, def) => {
|
|
1872
|
+
core.$ZodCustom.init(inst, def);
|
|
1873
|
+
ZodMiniType.init(inst, def);
|
|
1874
|
+
}
|
|
1875
|
+
);
|
|
1876
|
+
|
|
1877
|
+
// custom checks
|
|
1878
|
+
// @__NO_SIDE_EFFECTS__
|
|
1879
|
+
export function check<O = unknown>(fn: core.CheckFn<O>, params?: string | core.$ZodCustomParams): core.$ZodCheck<O> {
|
|
1880
|
+
const ch = new core.$ZodCheck({
|
|
1881
|
+
check: "custom",
|
|
1882
|
+
...util.normalizeParams(params),
|
|
1883
|
+
});
|
|
1884
|
+
|
|
1885
|
+
ch._zod.check = fn;
|
|
1886
|
+
return ch;
|
|
1887
|
+
}
|
|
1888
|
+
|
|
1889
|
+
// ZodCustom custom schema
|
|
1890
|
+
// @__NO_SIDE_EFFECTS__
|
|
1891
|
+
export function custom<O = unknown, I = O>(
|
|
1892
|
+
fn?: (data: O) => unknown,
|
|
1893
|
+
_params?: string | core.$ZodCustomParams | undefined
|
|
1894
|
+
): ZodMiniCustom<O, I> {
|
|
1895
|
+
return core._custom(ZodMiniCustom, fn ?? (() => true), _params) as any;
|
|
1896
|
+
}
|
|
1897
|
+
|
|
1898
|
+
// refine
|
|
1899
|
+
// @__NO_SIDE_EFFECTS__
|
|
1900
|
+
export function refine<T>(
|
|
1901
|
+
fn: (arg: NoInfer<T>) => util.MaybeAsync<unknown>,
|
|
1902
|
+
_params: string | core.$ZodCustomParams = {}
|
|
1903
|
+
): core.$ZodCheck<T> {
|
|
1904
|
+
return core._refine(ZodMiniCustom, fn, _params);
|
|
1905
|
+
}
|
|
1906
|
+
|
|
1907
|
+
// superRefine
|
|
1908
|
+
// @__NO_SIDE_EFFECTS__
|
|
1909
|
+
export function superRefine<T>(
|
|
1910
|
+
fn: (arg: T, payload: core.$RefinementCtx<T>) => void | Promise<void>,
|
|
1911
|
+
params?: core.$ZodSuperRefineParams
|
|
1912
|
+
): core.$ZodCheck<T> {
|
|
1913
|
+
return core._superRefine(fn, params);
|
|
1914
|
+
}
|
|
1915
|
+
|
|
1916
|
+
// Re-export describe and meta from core
|
|
1917
|
+
export const describe = core.describe;
|
|
1918
|
+
export const meta = core.meta;
|
|
1919
|
+
|
|
1920
|
+
// instanceof
|
|
1921
|
+
abstract class Class {
|
|
1922
|
+
constructor(..._args: any[]) {}
|
|
1923
|
+
}
|
|
1924
|
+
// @__NO_SIDE_EFFECTS__
|
|
1925
|
+
function _instanceof<T extends typeof Class>(
|
|
1926
|
+
cls: T,
|
|
1927
|
+
params: core.$ZodCustomParams = {}
|
|
1928
|
+
): ZodMiniCustom<InstanceType<T>, InstanceType<T>> {
|
|
1929
|
+
const inst = custom((data) => data instanceof cls, params);
|
|
1930
|
+
inst._zod.bag.Class = cls;
|
|
1931
|
+
// Override check to emit invalid_type instead of custom
|
|
1932
|
+
inst._zod.check = (payload) => {
|
|
1933
|
+
if (!(payload.value instanceof cls)) {
|
|
1934
|
+
payload.issues.push({
|
|
1935
|
+
code: "invalid_type",
|
|
1936
|
+
expected: cls.name,
|
|
1937
|
+
input: payload.value,
|
|
1938
|
+
inst,
|
|
1939
|
+
path: [...(inst._zod.def.path ?? [])],
|
|
1940
|
+
});
|
|
1941
|
+
}
|
|
1942
|
+
};
|
|
1943
|
+
return inst as any;
|
|
1944
|
+
}
|
|
1945
|
+
export { _instanceof as instanceof };
|
|
1946
|
+
|
|
1947
|
+
// stringbool
|
|
1948
|
+
export const stringbool: (_params?: string | core.$ZodStringBoolParams) => ZodMiniCodec<ZodMiniString, ZodMiniBoolean> =
|
|
1949
|
+
(...args) =>
|
|
1950
|
+
core._stringbool(
|
|
1951
|
+
{
|
|
1952
|
+
Codec: ZodMiniCodec,
|
|
1953
|
+
Boolean: ZodMiniBoolean,
|
|
1954
|
+
String: ZodMiniString,
|
|
1955
|
+
},
|
|
1956
|
+
...args
|
|
1957
|
+
) as any;
|
|
1958
|
+
|
|
1959
|
+
// json
|
|
1960
|
+
|
|
1961
|
+
// json
|
|
1962
|
+
export type _ZodMiniJSONSchema = ZodMiniUnion<
|
|
1963
|
+
[
|
|
1964
|
+
ZodMiniString,
|
|
1965
|
+
ZodMiniNumber,
|
|
1966
|
+
ZodMiniBoolean,
|
|
1967
|
+
ZodMiniNull,
|
|
1968
|
+
ZodMiniArray<ZodMiniJSONSchema>,
|
|
1969
|
+
ZodMiniRecord<ZodMiniString<string>, ZodMiniJSONSchema>,
|
|
1970
|
+
]
|
|
1971
|
+
>;
|
|
1972
|
+
export type _ZodMiniJSONSchemaInternals = _ZodMiniJSONSchema["_zod"];
|
|
1973
|
+
|
|
1974
|
+
export interface ZodMiniJSONSchemaInternals extends _ZodMiniJSONSchemaInternals {
|
|
1975
|
+
output: util.JSONType;
|
|
1976
|
+
input: util.JSONType;
|
|
1977
|
+
}
|
|
1978
|
+
export interface ZodMiniJSONSchema extends _ZodMiniJSONSchema {
|
|
1979
|
+
_zod: ZodMiniJSONSchemaInternals;
|
|
1980
|
+
}
|
|
1981
|
+
|
|
1982
|
+
// @__NO_SIDE_EFFECTS__
|
|
1983
|
+
export function json(): ZodMiniJSONSchema {
|
|
1984
|
+
const jsonSchema: any = _lazy(() => {
|
|
1985
|
+
return union([string(), number(), boolean(), _null(), array(jsonSchema), record(string(), jsonSchema)]);
|
|
1986
|
+
});
|
|
1987
|
+
return jsonSchema;
|
|
1988
|
+
}
|
|
1989
|
+
|
|
1990
|
+
// ZodMiniFunction
|
|
1991
|
+
export interface ZodMiniFunction<
|
|
1992
|
+
Args extends core.$ZodFunctionIn = core.$ZodFunctionIn,
|
|
1993
|
+
Returns extends core.$ZodFunctionOut = core.$ZodFunctionOut,
|
|
1994
|
+
> extends _ZodMiniType<core.$ZodFunctionInternals<Args, Returns>>,
|
|
1995
|
+
core.$ZodFunction<Args, Returns> {
|
|
1996
|
+
_def: core.$ZodFunctionDef<Args, Returns>;
|
|
1997
|
+
_input: core.$InferInnerFunctionType<Args, Returns>;
|
|
1998
|
+
_output: core.$InferOuterFunctionType<Args, Returns>;
|
|
1999
|
+
|
|
2000
|
+
input<const Items extends util.TupleItems, const Rest extends core.$ZodFunctionOut = core.$ZodFunctionOut>(
|
|
2001
|
+
args: Items,
|
|
2002
|
+
rest?: Rest
|
|
2003
|
+
): ZodMiniFunction<ZodMiniTuple<Items, Rest>, Returns>;
|
|
2004
|
+
input<NewArgs extends core.$ZodFunctionIn>(args: NewArgs): ZodMiniFunction<NewArgs, Returns>;
|
|
2005
|
+
input(...args: any[]): ZodMiniFunction<any, Returns>;
|
|
2006
|
+
|
|
2007
|
+
output<NewReturns extends core.$ZodFunctionOut>(output: NewReturns): ZodMiniFunction<Args, NewReturns>;
|
|
2008
|
+
}
|
|
2009
|
+
|
|
2010
|
+
export const ZodMiniFunction: core.$constructor<ZodMiniFunction> = /*@__PURE__*/ core.$constructor(
|
|
2011
|
+
"ZodMiniFunction",
|
|
2012
|
+
(inst, def) => {
|
|
2013
|
+
core.$ZodFunction.init(inst, def);
|
|
2014
|
+
ZodMiniType.init(inst, def);
|
|
2015
|
+
}
|
|
2016
|
+
);
|
|
2017
|
+
|
|
2018
|
+
export function _function(): ZodMiniFunction;
|
|
2019
|
+
export function _function<const In extends Array<SomeType> = Array<SomeType>>(params: {
|
|
2020
|
+
input: In;
|
|
2021
|
+
}): ZodMiniFunction<ZodMiniTuple<In, null>, core.$ZodFunctionOut>;
|
|
2022
|
+
export function _function<
|
|
2023
|
+
const In extends Array<SomeType> = Array<SomeType>,
|
|
2024
|
+
const Out extends core.$ZodFunctionOut = core.$ZodFunctionOut,
|
|
2025
|
+
>(params: {
|
|
2026
|
+
input: In;
|
|
2027
|
+
output: Out;
|
|
2028
|
+
}): ZodMiniFunction<ZodMiniTuple<In, null>, Out>;
|
|
2029
|
+
export function _function<const In extends core.$ZodFunctionIn = core.$ZodFunctionIn>(params: {
|
|
2030
|
+
input: In;
|
|
2031
|
+
}): ZodMiniFunction<In, core.$ZodFunctionOut>;
|
|
2032
|
+
export function _function<const Out extends core.$ZodFunctionOut = core.$ZodFunctionOut>(params: {
|
|
2033
|
+
output: Out;
|
|
2034
|
+
}): ZodMiniFunction<core.$ZodFunctionIn, Out>;
|
|
2035
|
+
export function _function<
|
|
2036
|
+
In extends core.$ZodFunctionIn = core.$ZodFunctionIn,
|
|
2037
|
+
Out extends core.$ZodFunctionOut = core.$ZodFunctionOut,
|
|
2038
|
+
>(params?: { input: In; output: Out }): ZodMiniFunction<In, Out>;
|
|
2039
|
+
// @__NO_SIDE_EFFECTS__
|
|
2040
|
+
export function _function(params?: {
|
|
2041
|
+
output?: core.$ZodFunctionOut;
|
|
2042
|
+
input?: core.$ZodFunctionArgs | Array<SomeType>;
|
|
2043
|
+
}): ZodMiniFunction {
|
|
2044
|
+
return new ZodMiniFunction({
|
|
2045
|
+
type: "function",
|
|
2046
|
+
input: Array.isArray(params?.input) ? tuple(params?.input as any) : (params?.input ?? array(unknown())),
|
|
2047
|
+
output: params?.output ?? unknown(),
|
|
2048
|
+
});
|
|
2049
|
+
}
|
|
2050
|
+
|
|
2051
|
+
export { _function as function };
|