zod 3.26.0-canary.20250618T044324 → 3.26.0-canary.20250702T074442
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 +2 -2
- package/{dist/cjs/v3/index.js → index.cjs} +2 -2
- package/index.d.cts +4 -0
- package/index.d.ts +4 -0
- package/index.js +4 -0
- package/package.json +63 -80
- package/{dist/cjs/v3/ZodError.js → v3/ZodError.cjs} +4 -3
- package/v3/ZodError.d.cts +164 -0
- package/{dist/esm/v3 → v3}/ZodError.js +3 -2
- package/{dist/cjs/v3/errors.js → v3/errors.cjs} +1 -1
- package/v3/errors.d.cts +5 -0
- package/{dist/cjs/v3/external.js → v3/external.cjs} +6 -6
- package/v3/external.d.cts +6 -0
- package/v3/helpers/enumUtil.d.ts +8 -0
- package/v3/helpers/errorUtil.d.ts +9 -0
- package/{dist/cjs/v3/helpers/parseUtil.js → v3/helpers/parseUtil.cjs} +2 -2
- package/v3/helpers/parseUtil.d.cts +78 -0
- package/v3/helpers/partialUtil.d.cts +8 -0
- package/v3/helpers/typeAliases.d.ts +2 -0
- package/v3/helpers/util.d.ts +85 -0
- package/{dist/cjs/v4/classic/index.js → v3/index.cjs} +2 -2
- package/v3/index.d.cts +4 -0
- package/v3/index.d.ts +3 -2
- package/v3/index.js +4 -1
- package/{dist/cjs/v3/locales/en.js → v3/locales/en.cjs} +2 -2
- package/v3/locales/en.d.cts +3 -0
- package/v3/standard-schema.d.ts +102 -0
- package/{dist/cjs/v3/types.js → v3/types.cjs} +7 -5
- package/v3/types.d.cts +1031 -0
- package/{dist/esm/v3 → v3}/types.js +2 -0
- package/{dist/cjs/v4/classic/checks.js → v4/classic/checks.cjs} +29 -29
- package/v4/classic/checks.d.cts +1 -0
- package/{dist/types/v4 → v4}/classic/checks.d.ts +1 -1
- package/{dist/esm/v4 → v4}/classic/checks.js +1 -1
- package/{dist/cjs/v4/classic/coerce.js → v4/classic/coerce.cjs} +2 -2
- package/v4/classic/coerce.d.cts +17 -0
- package/{dist/types/v4 → v4}/classic/coerce.d.ts +1 -1
- package/{dist/esm/v4 → v4}/classic/coerce.js +1 -1
- package/{dist/cjs/v4/classic/compat.js → v4/classic/compat.cjs} +4 -4
- package/v4/classic/compat.d.cts +48 -0
- package/{dist/types/v4 → v4}/classic/compat.d.ts +3 -3
- package/{dist/esm/v4 → v4}/classic/compat.js +2 -2
- package/{dist/cjs/v4/classic/errors.js → v4/classic/errors.cjs} +3 -3
- package/v4/classic/errors.d.cts +30 -0
- package/{dist/types/v4 → v4}/classic/errors.d.ts +3 -3
- package/{dist/esm/v4 → v4}/classic/errors.js +2 -2
- package/{dist/cjs/v4/classic/external.js → v4/classic/external.cjs} +29 -29
- package/v4/classic/external.d.cts +13 -0
- package/{dist/types/v4 → v4}/classic/external.d.ts +3 -3
- package/{dist/esm/v4 → v4}/classic/external.js +4 -4
- package/v4/classic/index.cjs +33 -0
- package/v4/classic/index.d.cts +4 -0
- package/{dist/cjs/v4/classic/iso.js → v4/classic/iso.cjs} +2 -2
- package/v4/classic/iso.d.cts +22 -0
- package/{dist/types/v4 → v4}/classic/iso.d.ts +1 -1
- package/{dist/esm/v4 → v4}/classic/iso.js +1 -1
- package/{dist/cjs/v4/classic/parse.js → v4/classic/parse.cjs} +2 -2
- package/v4/classic/parse.d.cts +23 -0
- package/{dist/types/v4 → v4}/classic/parse.d.ts +1 -1
- package/{dist/esm/v4 → v4}/classic/parse.js +1 -1
- package/{dist/cjs/v4/classic/schemas.js → v4/classic/schemas.cjs} +38 -38
- package/v4/classic/schemas.d.cts +629 -0
- package/{dist/types/v4 → v4}/classic/schemas.d.ts +2 -2
- package/{dist/esm/v4 → v4}/classic/schemas.js +2 -2
- package/{dist/cjs/v4/core/api.js → v4/core/api.cjs} +3 -3
- package/v4/core/api.d.cts +284 -0
- package/{dist/cjs/v4/core/checks.js → v4/core/checks.cjs} +3 -3
- package/v4/core/checks.d.cts +277 -0
- package/v4/core/core.d.cts +47 -0
- package/v4/core/doc.d.ts +14 -0
- package/{dist/cjs/v4/core/errors.js → v4/core/errors.cjs} +2 -2
- package/v4/core/errors.d.cts +204 -0
- package/{dist/cjs/v4/core/function.js → v4/core/function.cjs} +4 -4
- package/v4/core/function.d.cts +52 -0
- package/{dist/cjs/v4/core/index.js → v4/core/index.cjs} +15 -15
- package/v4/core/index.d.cts +15 -0
- package/v4/core/index.d.ts +15 -1
- package/v4/core/index.js +15 -1
- package/v4/core/json-schema.d.ts +87 -0
- package/{dist/cjs/v4/core/parse.js → v4/core/parse.cjs} +3 -3
- package/v4/core/parse.d.cts +25 -0
- package/v4/core/regexes.d.ts +62 -0
- package/v4/core/registries.d.cts +34 -0
- package/{dist/types/v4 → v4}/core/registries.d.ts +0 -5
- package/{dist/cjs/v4/core/schemas.js → v4/core/schemas.cjs} +10 -10
- package/v4/core/schemas.d.cts +1015 -0
- package/{dist/esm/v4 → v4}/core/schemas.js +2 -2
- package/v4/core/standard-schema.d.ts +55 -0
- package/{dist/cjs/v4/core/to-json-schema.js → v4/core/to-json-schema.cjs} +2 -2
- package/v4/core/to-json-schema.d.cts +84 -0
- package/{dist/cjs/v4/core/util.js → v4/core/util.cjs} +1 -4
- package/v4/core/util.d.cts +183 -0
- package/{dist/esm/v4 → v4}/core/util.js +1 -4
- package/v4/core/versions.d.ts +5 -0
- package/{dist/cjs/index.js → v4/index.cjs} +2 -2
- package/v4/index.d.cts +3 -0
- package/v4/index.d.ts +3 -3
- package/v4/index.js +3 -1
- package/{dist/cjs/v4/locales/ar.js → v4/locales/ar.cjs} +1 -1
- package/v4/locales/ar.d.cts +4 -0
- package/{dist/cjs/v4/locales/az.js → v4/locales/az.cjs} +1 -1
- package/v4/locales/az.d.cts +4 -0
- package/{dist/cjs/v4/locales/be.js → v4/locales/be.cjs} +1 -1
- package/v4/locales/be.d.cts +4 -0
- package/{dist/cjs/v4/locales/ca.js → v4/locales/ca.cjs} +1 -1
- package/v4/locales/ca.d.cts +4 -0
- package/{dist/cjs/v4/locales/cs.js → v4/locales/cs.cjs} +1 -1
- package/v4/locales/cs.d.cts +4 -0
- package/{dist/cjs/v4/locales/de.js → v4/locales/de.cjs} +1 -1
- package/v4/locales/de.d.cts +4 -0
- package/{dist/cjs/v4/locales/en.js → v4/locales/en.cjs} +1 -1
- package/{dist/types/v4/locales/en.d.ts → v4/locales/en.d.cts} +1 -1
- package/v4/locales/en.d.ts +5 -2
- package/v4/locales/en.js +117 -2
- package/{dist/cjs/v4/locales/es.js → v4/locales/es.cjs} +1 -1
- package/v4/locales/es.d.cts +4 -0
- package/{dist/cjs/v4/locales/fa.js → v4/locales/fa.cjs} +1 -1
- package/v4/locales/fa.d.cts +4 -0
- package/{dist/cjs/v4/locales/fi.js → v4/locales/fi.cjs} +1 -1
- package/v4/locales/fi.d.cts +4 -0
- package/{dist/cjs/v4/locales/fr-CA.js → v4/locales/fr-CA.cjs} +1 -1
- package/v4/locales/fr-CA.d.cts +4 -0
- package/{dist/cjs/v4/locales/fr.js → v4/locales/fr.cjs} +1 -1
- package/v4/locales/fr.d.cts +4 -0
- package/{dist/cjs/v4/locales/he.js → v4/locales/he.cjs} +1 -1
- package/v4/locales/he.d.cts +4 -0
- package/{dist/cjs/v4/locales/hu.js → v4/locales/hu.cjs} +1 -1
- package/v4/locales/hu.d.cts +4 -0
- package/{dist/cjs/v4/locales/id.js → v4/locales/id.cjs} +1 -1
- package/v4/locales/id.d.cts +4 -0
- package/{dist/cjs/v4/locales/index.js → v4/locales/index.cjs} +38 -38
- package/v4/locales/index.d.cts +38 -0
- package/v4/locales/index.d.ts +38 -1
- package/v4/locales/index.js +38 -1
- package/{dist/cjs/v4/locales/it.js → v4/locales/it.cjs} +1 -1
- package/v4/locales/it.d.cts +4 -0
- package/{dist/cjs/v4/locales/ja.js → v4/locales/ja.cjs} +1 -1
- package/v4/locales/ja.d.cts +4 -0
- package/{dist/cjs/v4/locales/kh.js → v4/locales/kh.cjs} +1 -1
- package/v4/locales/kh.d.cts +4 -0
- package/{dist/cjs/v4/locales/ko.js → v4/locales/ko.cjs} +1 -1
- package/v4/locales/ko.d.cts +4 -0
- package/{dist/cjs/v4/locales/mk.js → v4/locales/mk.cjs} +1 -1
- package/v4/locales/mk.d.cts +4 -0
- package/{dist/cjs/v4/locales/ms.js → v4/locales/ms.cjs} +1 -1
- package/v4/locales/ms.d.cts +4 -0
- package/{dist/cjs/v4/locales/nl.js → v4/locales/nl.cjs} +1 -1
- package/v4/locales/nl.d.cts +4 -0
- package/{dist/cjs/v4/locales/no.js → v4/locales/no.cjs} +1 -1
- package/v4/locales/no.d.cts +4 -0
- package/{dist/cjs/v4/locales/ota.js → v4/locales/ota.cjs} +1 -1
- package/v4/locales/ota.d.cts +4 -0
- package/{dist/cjs/v4/locales/pl.js → v4/locales/pl.cjs} +1 -1
- package/v4/locales/pl.d.cts +4 -0
- package/{dist/cjs/v4/locales/ps.js → v4/locales/ps.cjs} +1 -1
- package/v4/locales/ps.d.cts +4 -0
- package/{dist/cjs/v4/locales/pt.js → v4/locales/pt.cjs} +1 -1
- package/v4/locales/pt.d.cts +4 -0
- package/{dist/cjs/v4/locales/ru.js → v4/locales/ru.cjs} +1 -1
- package/v4/locales/ru.d.cts +4 -0
- package/{dist/cjs/v4/locales/sl.js → v4/locales/sl.cjs} +1 -1
- package/v4/locales/sl.d.cts +4 -0
- package/{dist/cjs/v4/locales/sv.js → v4/locales/sv.cjs} +1 -1
- package/v4/locales/sv.d.cts +4 -0
- package/{dist/cjs/v4/locales/ta.js → v4/locales/ta.cjs} +1 -1
- package/v4/locales/ta.d.cts +4 -0
- package/{dist/cjs/v4/locales/th.js → v4/locales/th.cjs} +1 -1
- package/v4/locales/th.d.cts +4 -0
- package/{dist/cjs/v4/locales/tr.js → v4/locales/tr.cjs} +1 -1
- package/v4/locales/tr.d.cts +5 -0
- package/{dist/cjs/v4/locales/ua.js → v4/locales/ua.cjs} +1 -1
- package/v4/locales/ua.d.cts +4 -0
- package/{dist/cjs/v4/locales/ur.js → v4/locales/ur.cjs} +1 -1
- package/v4/locales/ur.d.cts +4 -0
- package/{dist/cjs/v4/locales/vi.js → v4/locales/vi.cjs} +1 -1
- package/v4/locales/vi.d.cts +4 -0
- package/{dist/cjs/v4/locales/zh-CN.js → v4/locales/zh-CN.cjs} +1 -1
- package/v4/locales/zh-CN.d.cts +4 -0
- package/{dist/cjs/v4/locales/zh-TW.js → v4/locales/zh-TW.cjs} +1 -1
- package/v4/locales/zh-TW.d.cts +4 -0
- package/{dist/cjs/v4/mini/checks.js → v4/mini/checks.cjs} +31 -31
- package/v4/mini/checks.d.cts +1 -0
- package/{dist/types/v4 → v4}/mini/checks.d.ts +1 -1
- package/{dist/esm/v4 → v4}/mini/checks.js +1 -1
- package/{dist/cjs/v4/mini/coerce.js → v4/mini/coerce.cjs} +2 -2
- package/v4/mini/coerce.d.cts +7 -0
- package/{dist/types/v4 → v4}/mini/coerce.d.ts +1 -1
- package/{dist/esm/v4 → v4}/mini/coerce.js +1 -1
- package/{dist/cjs/v4/mini/external.js → v4/mini/external.cjs} +24 -24
- package/v4/mini/external.d.cts +11 -0
- package/{dist/types/v4 → v4}/mini/external.d.ts +3 -3
- package/{dist/esm/v4 → v4}/mini/external.js +2 -2
- package/{dist/cjs/v4/mini/index.js → v4/mini/index.cjs} +2 -2
- package/v4/mini/index.d.cts +3 -0
- package/{dist/cjs/v4/mini/iso.js → v4/mini/iso.cjs} +2 -2
- package/v4/mini/iso.d.cts +22 -0
- package/{dist/types/v4 → v4}/mini/iso.d.ts +1 -1
- package/{dist/esm/v4 → v4}/mini/iso.js +1 -1
- package/{dist/cjs/v4/mini/parse.js → v4/mini/parse.cjs} +5 -5
- package/v4/mini/parse.d.cts +1 -0
- package/v4/mini/parse.d.ts +1 -0
- package/v4/mini/parse.js +1 -0
- package/{dist/cjs/v4/mini/schemas.js → v4/mini/schemas.cjs} +30 -30
- package/v4/mini/schemas.d.cts +356 -0
- package/{dist/types/v4 → v4}/mini/schemas.d.ts +2 -2
- package/{dist/esm/v4 → v4}/mini/schemas.js +2 -2
- package/{dist/cjs/v4/index.js → v4-mini/index.cjs} +1 -6
- package/v4-mini/index.d.cts +1 -0
- package/v4-mini/index.d.ts +1 -1
- package/v4-mini/index.js +1 -1
- package/dist/cjs/package.json +0 -3
- package/dist/cjs/v3/benchmarks/datetime.js +0 -54
- package/dist/cjs/v3/benchmarks/discriminatedUnion.js +0 -79
- package/dist/cjs/v3/benchmarks/index.js +0 -59
- package/dist/cjs/v3/benchmarks/ipv4.js +0 -54
- package/dist/cjs/v3/benchmarks/object.js +0 -70
- package/dist/cjs/v3/benchmarks/primitives.js +0 -159
- package/dist/cjs/v3/benchmarks/realworld.js +0 -56
- package/dist/cjs/v3/benchmarks/string.js +0 -55
- package/dist/cjs/v3/benchmarks/union.js +0 -79
- package/dist/cjs/v3/tests/Mocker.js +0 -57
- package/dist/cjs/v4/core/config.js +0 -10
- package/dist/cjs/v4/core/zsf.js +0 -172
- package/dist/esm/index.js +0 -3
- package/dist/esm/package.json +0 -3
- package/dist/esm/v3/benchmarks/datetime.js +0 -49
- package/dist/esm/v3/benchmarks/discriminatedUnion.js +0 -74
- package/dist/esm/v3/benchmarks/index.js +0 -54
- package/dist/esm/v3/benchmarks/ipv4.js +0 -49
- package/dist/esm/v3/benchmarks/object.js +0 -65
- package/dist/esm/v3/benchmarks/primitives.js +0 -154
- package/dist/esm/v3/benchmarks/realworld.js +0 -51
- package/dist/esm/v3/benchmarks/string.js +0 -50
- package/dist/esm/v3/benchmarks/union.js +0 -74
- package/dist/esm/v3/index.js +0 -4
- package/dist/esm/v3/tests/Mocker.js +0 -53
- package/dist/esm/v4/core/config.js +0 -6
- package/dist/esm/v4/core/index.js +0 -15
- package/dist/esm/v4/core/zsf.js +0 -171
- package/dist/esm/v4/index.js +0 -3
- package/dist/esm/v4/locales/en.js +0 -117
- package/dist/esm/v4/locales/index.js +0 -38
- package/dist/esm/v4/mini/parse.js +0 -1
- package/dist/types/index.d.ts +0 -3
- package/dist/types/package.json +0 -3
- package/dist/types/v3/benchmarks/datetime.d.ts +0 -5
- package/dist/types/v3/benchmarks/discriminatedUnion.d.ts +0 -5
- package/dist/types/v3/benchmarks/index.d.ts +0 -1
- package/dist/types/v3/benchmarks/ipv4.d.ts +0 -5
- package/dist/types/v3/benchmarks/object.d.ts +0 -5
- package/dist/types/v3/benchmarks/primitives.d.ts +0 -5
- package/dist/types/v3/benchmarks/realworld.d.ts +0 -5
- package/dist/types/v3/benchmarks/string.d.ts +0 -5
- package/dist/types/v3/benchmarks/union.d.ts +0 -5
- package/dist/types/v3/index.d.ts +0 -4
- package/dist/types/v3/tests/Mocker.d.ts +0 -17
- package/dist/types/v4/core/config.d.ts +0 -9
- package/dist/types/v4/core/index.d.ts +0 -15
- package/dist/types/v4/core/zsf.d.ts +0 -91
- package/dist/types/v4/index.d.ts +0 -3
- package/dist/types/v4/locales/index.d.ts +0 -38
- package/dist/types/v4/mini/parse.d.ts +0 -1
- /package/{dist/types/v3 → v3}/ZodError.d.ts +0 -0
- /package/{dist/types/v3 → v3}/errors.d.ts +0 -0
- /package/{dist/esm/v3 → v3}/errors.js +0 -0
- /package/{dist/types/v3 → v3}/external.d.ts +0 -0
- /package/{dist/esm/v3 → v3}/external.js +0 -0
- /package/{dist/cjs/v3/helpers/enumUtil.js → v3/helpers/enumUtil.cjs} +0 -0
- /package/{dist/types/v3/helpers/enumUtil.d.ts → v3/helpers/enumUtil.d.cts} +0 -0
- /package/{dist/esm/v3 → v3}/helpers/enumUtil.js +0 -0
- /package/{dist/cjs/v3/helpers/errorUtil.js → v3/helpers/errorUtil.cjs} +0 -0
- /package/{dist/types/v3/helpers/errorUtil.d.ts → v3/helpers/errorUtil.d.cts} +0 -0
- /package/{dist/esm/v3 → v3}/helpers/errorUtil.js +0 -0
- /package/{dist/types/v3 → v3}/helpers/parseUtil.d.ts +0 -0
- /package/{dist/esm/v3 → v3}/helpers/parseUtil.js +0 -0
- /package/{dist/cjs/v3/helpers/partialUtil.js → v3/helpers/partialUtil.cjs} +0 -0
- /package/{dist/types/v3 → v3}/helpers/partialUtil.d.ts +0 -0
- /package/{dist/esm/v3 → v3}/helpers/partialUtil.js +0 -0
- /package/{dist/cjs/v3/helpers/typeAliases.js → v3/helpers/typeAliases.cjs} +0 -0
- /package/{dist/types/v3/helpers/typeAliases.d.ts → v3/helpers/typeAliases.d.cts} +0 -0
- /package/{dist/esm/v3 → v3}/helpers/typeAliases.js +0 -0
- /package/{dist/cjs/v3/helpers/util.js → v3/helpers/util.cjs} +0 -0
- /package/{dist/types/v3/helpers/util.d.ts → v3/helpers/util.d.cts} +0 -0
- /package/{dist/esm/v3 → v3}/helpers/util.js +0 -0
- /package/{dist/types/v3 → v3}/locales/en.d.ts +0 -0
- /package/{dist/esm/v3 → v3}/locales/en.js +0 -0
- /package/{dist/cjs/v3/standard-schema.js → v3/standard-schema.cjs} +0 -0
- /package/{dist/types/v3/standard-schema.d.ts → v3/standard-schema.d.cts} +0 -0
- /package/{dist/esm/v3 → v3}/standard-schema.js +0 -0
- /package/{dist/types/v3 → v3}/types.d.ts +0 -0
- /package/{dist/types/v4 → v4}/classic/index.d.ts +0 -0
- /package/{dist/esm/v4 → v4}/classic/index.js +0 -0
- /package/{dist/types/v4 → v4}/core/api.d.ts +0 -0
- /package/{dist/esm/v4 → v4}/core/api.js +0 -0
- /package/{dist/types/v4 → v4}/core/checks.d.ts +0 -0
- /package/{dist/esm/v4 → v4}/core/checks.js +0 -0
- /package/{dist/cjs/v4/core/core.js → v4/core/core.cjs} +0 -0
- /package/{dist/types/v4 → v4}/core/core.d.ts +0 -0
- /package/{dist/esm/v4 → v4}/core/core.js +0 -0
- /package/{dist/cjs/v4/core/doc.js → v4/core/doc.cjs} +0 -0
- /package/{dist/types/v4/core/doc.d.ts → v4/core/doc.d.cts} +0 -0
- /package/{dist/esm/v4 → v4}/core/doc.js +0 -0
- /package/{dist/types/v4 → v4}/core/errors.d.ts +0 -0
- /package/{dist/esm/v4 → v4}/core/errors.js +0 -0
- /package/{dist/types/v4 → v4}/core/function.d.ts +0 -0
- /package/{dist/esm/v4 → v4}/core/function.js +0 -0
- /package/{dist/cjs/v4/core/json-schema.js → v4/core/json-schema.cjs} +0 -0
- /package/{dist/types/v4/core/json-schema.d.ts → v4/core/json-schema.d.cts} +0 -0
- /package/{dist/esm/v4 → v4}/core/json-schema.js +0 -0
- /package/{dist/types/v4 → v4}/core/parse.d.ts +0 -0
- /package/{dist/esm/v4 → v4}/core/parse.js +0 -0
- /package/{dist/cjs/v4/core/regexes.js → v4/core/regexes.cjs} +0 -0
- /package/{dist/types/v4/core/regexes.d.ts → v4/core/regexes.d.cts} +0 -0
- /package/{dist/esm/v4 → v4}/core/regexes.js +0 -0
- /package/{dist/cjs/v4/core/registries.js → v4/core/registries.cjs} +0 -0
- /package/{dist/esm/v4 → v4}/core/registries.js +0 -0
- /package/{dist/types/v4 → v4}/core/schemas.d.ts +0 -0
- /package/{dist/cjs/v4/core/standard-schema.js → v4/core/standard-schema.cjs} +0 -0
- /package/{dist/types/v4/core/standard-schema.d.ts → v4/core/standard-schema.d.cts} +0 -0
- /package/{dist/esm/v4 → v4}/core/standard-schema.js +0 -0
- /package/{dist/types/v4 → v4}/core/to-json-schema.d.ts +0 -0
- /package/{dist/esm/v4 → v4}/core/to-json-schema.js +0 -0
- /package/{dist/types/v4 → v4}/core/util.d.ts +0 -0
- /package/{dist/cjs/v4/core/versions.js → v4/core/versions.cjs} +0 -0
- /package/{dist/types/v4/core/versions.d.ts → v4/core/versions.d.cts} +0 -0
- /package/{dist/esm/v4 → v4}/core/versions.js +0 -0
- /package/{dist/types/v4 → v4}/locales/ar.d.ts +0 -0
- /package/{dist/esm/v4 → v4}/locales/ar.js +0 -0
- /package/{dist/types/v4 → v4}/locales/az.d.ts +0 -0
- /package/{dist/esm/v4 → v4}/locales/az.js +0 -0
- /package/{dist/types/v4 → v4}/locales/be.d.ts +0 -0
- /package/{dist/esm/v4 → v4}/locales/be.js +0 -0
- /package/{dist/types/v4 → v4}/locales/ca.d.ts +0 -0
- /package/{dist/esm/v4 → v4}/locales/ca.js +0 -0
- /package/{dist/types/v4 → v4}/locales/cs.d.ts +0 -0
- /package/{dist/esm/v4 → v4}/locales/cs.js +0 -0
- /package/{dist/types/v4 → v4}/locales/de.d.ts +0 -0
- /package/{dist/esm/v4 → v4}/locales/de.js +0 -0
- /package/{dist/types/v4 → v4}/locales/es.d.ts +0 -0
- /package/{dist/esm/v4 → v4}/locales/es.js +0 -0
- /package/{dist/types/v4 → v4}/locales/fa.d.ts +0 -0
- /package/{dist/esm/v4 → v4}/locales/fa.js +0 -0
- /package/{dist/types/v4 → v4}/locales/fi.d.ts +0 -0
- /package/{dist/esm/v4 → v4}/locales/fi.js +0 -0
- /package/{dist/types/v4 → v4}/locales/fr-CA.d.ts +0 -0
- /package/{dist/esm/v4 → v4}/locales/fr-CA.js +0 -0
- /package/{dist/types/v4 → v4}/locales/fr.d.ts +0 -0
- /package/{dist/esm/v4 → v4}/locales/fr.js +0 -0
- /package/{dist/types/v4 → v4}/locales/he.d.ts +0 -0
- /package/{dist/esm/v4 → v4}/locales/he.js +0 -0
- /package/{dist/types/v4 → v4}/locales/hu.d.ts +0 -0
- /package/{dist/esm/v4 → v4}/locales/hu.js +0 -0
- /package/{dist/types/v4 → v4}/locales/id.d.ts +0 -0
- /package/{dist/esm/v4 → v4}/locales/id.js +0 -0
- /package/{dist/types/v4 → v4}/locales/it.d.ts +0 -0
- /package/{dist/esm/v4 → v4}/locales/it.js +0 -0
- /package/{dist/types/v4 → v4}/locales/ja.d.ts +0 -0
- /package/{dist/esm/v4 → v4}/locales/ja.js +0 -0
- /package/{dist/types/v4 → v4}/locales/kh.d.ts +0 -0
- /package/{dist/esm/v4 → v4}/locales/kh.js +0 -0
- /package/{dist/types/v4 → v4}/locales/ko.d.ts +0 -0
- /package/{dist/esm/v4 → v4}/locales/ko.js +0 -0
- /package/{dist/types/v4 → v4}/locales/mk.d.ts +0 -0
- /package/{dist/esm/v4 → v4}/locales/mk.js +0 -0
- /package/{dist/types/v4 → v4}/locales/ms.d.ts +0 -0
- /package/{dist/esm/v4 → v4}/locales/ms.js +0 -0
- /package/{dist/types/v4 → v4}/locales/nl.d.ts +0 -0
- /package/{dist/esm/v4 → v4}/locales/nl.js +0 -0
- /package/{dist/types/v4 → v4}/locales/no.d.ts +0 -0
- /package/{dist/esm/v4 → v4}/locales/no.js +0 -0
- /package/{dist/types/v4 → v4}/locales/ota.d.ts +0 -0
- /package/{dist/esm/v4 → v4}/locales/ota.js +0 -0
- /package/{dist/types/v4 → v4}/locales/pl.d.ts +0 -0
- /package/{dist/esm/v4 → v4}/locales/pl.js +0 -0
- /package/{dist/types/v4 → v4}/locales/ps.d.ts +0 -0
- /package/{dist/esm/v4 → v4}/locales/ps.js +0 -0
- /package/{dist/types/v4 → v4}/locales/pt.d.ts +0 -0
- /package/{dist/esm/v4 → v4}/locales/pt.js +0 -0
- /package/{dist/types/v4 → v4}/locales/ru.d.ts +0 -0
- /package/{dist/esm/v4 → v4}/locales/ru.js +0 -0
- /package/{dist/types/v4 → v4}/locales/sl.d.ts +0 -0
- /package/{dist/esm/v4 → v4}/locales/sl.js +0 -0
- /package/{dist/types/v4 → v4}/locales/sv.d.ts +0 -0
- /package/{dist/esm/v4 → v4}/locales/sv.js +0 -0
- /package/{dist/types/v4 → v4}/locales/ta.d.ts +0 -0
- /package/{dist/esm/v4 → v4}/locales/ta.js +0 -0
- /package/{dist/types/v4 → v4}/locales/th.d.ts +0 -0
- /package/{dist/esm/v4 → v4}/locales/th.js +0 -0
- /package/{dist/types/v4 → v4}/locales/tr.d.ts +0 -0
- /package/{dist/esm/v4 → v4}/locales/tr.js +0 -0
- /package/{dist/types/v4 → v4}/locales/ua.d.ts +0 -0
- /package/{dist/esm/v4 → v4}/locales/ua.js +0 -0
- /package/{dist/types/v4 → v4}/locales/ur.d.ts +0 -0
- /package/{dist/esm/v4 → v4}/locales/ur.js +0 -0
- /package/{dist/types/v4 → v4}/locales/vi.d.ts +0 -0
- /package/{dist/esm/v4 → v4}/locales/vi.js +0 -0
- /package/{dist/types/v4 → v4}/locales/zh-CN.d.ts +0 -0
- /package/{dist/esm/v4 → v4}/locales/zh-CN.js +0 -0
- /package/{dist/types/v4 → v4}/locales/zh-TW.d.ts +0 -0
- /package/{dist/esm/v4 → v4}/locales/zh-TW.js +0 -0
- /package/{dist/types/v4 → v4}/mini/index.d.ts +0 -0
- /package/{dist/esm/v4 → v4}/mini/index.js +0 -0
|
@@ -24,7 +24,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.default = default_1;
|
|
27
|
-
const util = __importStar(require("../core/util.
|
|
27
|
+
const util = __importStar(require("../core/util.cjs"));
|
|
28
28
|
const error = () => {
|
|
29
29
|
const Sizable = {
|
|
30
30
|
string: { unit: "znaków", verb: "mieć" },
|
|
@@ -24,7 +24,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.default = default_1;
|
|
27
|
-
const util = __importStar(require("../core/util.
|
|
27
|
+
const util = __importStar(require("../core/util.cjs"));
|
|
28
28
|
const error = () => {
|
|
29
29
|
const Sizable = {
|
|
30
30
|
string: { unit: "توکي", verb: "ولري" },
|
|
@@ -24,7 +24,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.default = default_1;
|
|
27
|
-
const util = __importStar(require("../core/util.
|
|
27
|
+
const util = __importStar(require("../core/util.cjs"));
|
|
28
28
|
const error = () => {
|
|
29
29
|
const Sizable = {
|
|
30
30
|
string: { unit: "caracteres", verb: "ter" },
|
|
@@ -24,7 +24,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.default = default_1;
|
|
27
|
-
const util = __importStar(require("../core/util.
|
|
27
|
+
const util = __importStar(require("../core/util.cjs"));
|
|
28
28
|
function getRussianPlural(count, one, few, many) {
|
|
29
29
|
const absCount = Math.abs(count);
|
|
30
30
|
const lastDigit = absCount % 10;
|
|
@@ -24,7 +24,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.default = default_1;
|
|
27
|
-
const util = __importStar(require("../core/util.
|
|
27
|
+
const util = __importStar(require("../core/util.cjs"));
|
|
28
28
|
const error = () => {
|
|
29
29
|
const Sizable = {
|
|
30
30
|
string: { unit: "znakov", verb: "imeti" },
|
|
@@ -24,7 +24,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.default = default_1;
|
|
27
|
-
const util = __importStar(require("../core/util.
|
|
27
|
+
const util = __importStar(require("../core/util.cjs"));
|
|
28
28
|
const error = () => {
|
|
29
29
|
const Sizable = {
|
|
30
30
|
string: { unit: "tecken", verb: "att ha" },
|
|
@@ -24,7 +24,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.default = default_1;
|
|
27
|
-
const util = __importStar(require("../core/util.
|
|
27
|
+
const util = __importStar(require("../core/util.cjs"));
|
|
28
28
|
const error = () => {
|
|
29
29
|
const Sizable = {
|
|
30
30
|
string: { unit: "எழுத்துக்கள்", verb: "கொண்டிருக்க வேண்டும்" },
|
|
@@ -24,7 +24,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.default = default_1;
|
|
27
|
-
const util = __importStar(require("../core/util.
|
|
27
|
+
const util = __importStar(require("../core/util.cjs"));
|
|
28
28
|
const error = () => {
|
|
29
29
|
const Sizable = {
|
|
30
30
|
string: { unit: "ตัวอักษร", verb: "ควรมี" },
|
|
@@ -25,7 +25,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.parsedType = void 0;
|
|
27
27
|
exports.default = default_1;
|
|
28
|
-
const util = __importStar(require("../core/util.
|
|
28
|
+
const util = __importStar(require("../core/util.cjs"));
|
|
29
29
|
const parsedType = (data) => {
|
|
30
30
|
const t = typeof data;
|
|
31
31
|
switch (t) {
|
|
@@ -24,7 +24,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.default = default_1;
|
|
27
|
-
const util = __importStar(require("../core/util.
|
|
27
|
+
const util = __importStar(require("../core/util.cjs"));
|
|
28
28
|
const error = () => {
|
|
29
29
|
const Sizable = {
|
|
30
30
|
string: { unit: "символів", verb: "матиме" },
|
|
@@ -24,7 +24,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.default = default_1;
|
|
27
|
-
const util = __importStar(require("../core/util.
|
|
27
|
+
const util = __importStar(require("../core/util.cjs"));
|
|
28
28
|
const error = () => {
|
|
29
29
|
const Sizable = {
|
|
30
30
|
string: { unit: "حروف", verb: "ہونا" },
|
|
@@ -24,7 +24,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.default = default_1;
|
|
27
|
-
const util = __importStar(require("../core/util.
|
|
27
|
+
const util = __importStar(require("../core/util.cjs"));
|
|
28
28
|
const error = () => {
|
|
29
29
|
const Sizable = {
|
|
30
30
|
string: { unit: "ký tự", verb: "có" },
|
|
@@ -24,7 +24,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.default = default_1;
|
|
27
|
-
const util = __importStar(require("../core/util.
|
|
27
|
+
const util = __importStar(require("../core/util.cjs"));
|
|
28
28
|
const error = () => {
|
|
29
29
|
const Sizable = {
|
|
30
30
|
string: { unit: "字符", verb: "包含" },
|
|
@@ -24,7 +24,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.default = default_1;
|
|
27
|
-
const util = __importStar(require("../core/util.
|
|
27
|
+
const util = __importStar(require("../core/util.cjs"));
|
|
28
28
|
const error = () => {
|
|
29
29
|
const Sizable = {
|
|
30
30
|
string: { unit: "字元", verb: "擁有" },
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.toUpperCase = exports.toLowerCase = exports.trim = exports.normalize = exports.overwrite = exports.mime = exports.property = exports.endsWith = exports.startsWith = exports.includes = exports.uppercase = exports.lowercase = exports.regex = exports.length = exports.minLength = exports.maxLength = exports.size = exports.minSize = exports.maxSize = exports.multipleOf = exports.nonnegative = exports.nonpositive = exports.negative = exports.positive = exports.minimum = exports.gte = exports.gt = exports.maximum = exports.lte = exports.lt = void 0;
|
|
4
|
-
var
|
|
5
|
-
Object.defineProperty(exports, "lt", { enumerable: true, get: function () { return
|
|
6
|
-
Object.defineProperty(exports, "lte", { enumerable: true, get: function () { return
|
|
7
|
-
Object.defineProperty(exports, "maximum", { enumerable: true, get: function () { return
|
|
8
|
-
Object.defineProperty(exports, "gt", { enumerable: true, get: function () { return
|
|
9
|
-
Object.defineProperty(exports, "gte", { enumerable: true, get: function () { return
|
|
10
|
-
Object.defineProperty(exports, "minimum", { enumerable: true, get: function () { return
|
|
11
|
-
Object.defineProperty(exports, "positive", { enumerable: true, get: function () { return
|
|
12
|
-
Object.defineProperty(exports, "negative", { enumerable: true, get: function () { return
|
|
13
|
-
Object.defineProperty(exports, "nonpositive", { enumerable: true, get: function () { return
|
|
14
|
-
Object.defineProperty(exports, "nonnegative", { enumerable: true, get: function () { return
|
|
15
|
-
Object.defineProperty(exports, "multipleOf", { enumerable: true, get: function () { return
|
|
16
|
-
Object.defineProperty(exports, "maxSize", { enumerable: true, get: function () { return
|
|
17
|
-
Object.defineProperty(exports, "minSize", { enumerable: true, get: function () { return
|
|
18
|
-
Object.defineProperty(exports, "size", { enumerable: true, get: function () { return
|
|
19
|
-
Object.defineProperty(exports, "maxLength", { enumerable: true, get: function () { return
|
|
20
|
-
Object.defineProperty(exports, "minLength", { enumerable: true, get: function () { return
|
|
21
|
-
Object.defineProperty(exports, "length", { enumerable: true, get: function () { return
|
|
22
|
-
Object.defineProperty(exports, "regex", { enumerable: true, get: function () { return
|
|
23
|
-
Object.defineProperty(exports, "lowercase", { enumerable: true, get: function () { return
|
|
24
|
-
Object.defineProperty(exports, "uppercase", { enumerable: true, get: function () { return
|
|
25
|
-
Object.defineProperty(exports, "includes", { enumerable: true, get: function () { return
|
|
26
|
-
Object.defineProperty(exports, "startsWith", { enumerable: true, get: function () { return
|
|
27
|
-
Object.defineProperty(exports, "endsWith", { enumerable: true, get: function () { return
|
|
28
|
-
Object.defineProperty(exports, "property", { enumerable: true, get: function () { return
|
|
29
|
-
Object.defineProperty(exports, "mime", { enumerable: true, get: function () { return
|
|
30
|
-
Object.defineProperty(exports, "overwrite", { enumerable: true, get: function () { return
|
|
31
|
-
Object.defineProperty(exports, "normalize", { enumerable: true, get: function () { return
|
|
32
|
-
Object.defineProperty(exports, "trim", { enumerable: true, get: function () { return
|
|
33
|
-
Object.defineProperty(exports, "toLowerCase", { enumerable: true, get: function () { return
|
|
34
|
-
Object.defineProperty(exports, "toUpperCase", { enumerable: true, get: function () { return
|
|
4
|
+
var index_js_1 = require("../core/index.cjs");
|
|
5
|
+
Object.defineProperty(exports, "lt", { enumerable: true, get: function () { return index_js_1._lt; } });
|
|
6
|
+
Object.defineProperty(exports, "lte", { enumerable: true, get: function () { return index_js_1._lte; } });
|
|
7
|
+
Object.defineProperty(exports, "maximum", { enumerable: true, get: function () { return index_js_1._lte; } });
|
|
8
|
+
Object.defineProperty(exports, "gt", { enumerable: true, get: function () { return index_js_1._gt; } });
|
|
9
|
+
Object.defineProperty(exports, "gte", { enumerable: true, get: function () { return index_js_1._gte; } });
|
|
10
|
+
Object.defineProperty(exports, "minimum", { enumerable: true, get: function () { return index_js_1._gte; } });
|
|
11
|
+
Object.defineProperty(exports, "positive", { enumerable: true, get: function () { return index_js_1._positive; } });
|
|
12
|
+
Object.defineProperty(exports, "negative", { enumerable: true, get: function () { return index_js_1._negative; } });
|
|
13
|
+
Object.defineProperty(exports, "nonpositive", { enumerable: true, get: function () { return index_js_1._nonpositive; } });
|
|
14
|
+
Object.defineProperty(exports, "nonnegative", { enumerable: true, get: function () { return index_js_1._nonnegative; } });
|
|
15
|
+
Object.defineProperty(exports, "multipleOf", { enumerable: true, get: function () { return index_js_1._multipleOf; } });
|
|
16
|
+
Object.defineProperty(exports, "maxSize", { enumerable: true, get: function () { return index_js_1._maxSize; } });
|
|
17
|
+
Object.defineProperty(exports, "minSize", { enumerable: true, get: function () { return index_js_1._minSize; } });
|
|
18
|
+
Object.defineProperty(exports, "size", { enumerable: true, get: function () { return index_js_1._size; } });
|
|
19
|
+
Object.defineProperty(exports, "maxLength", { enumerable: true, get: function () { return index_js_1._maxLength; } });
|
|
20
|
+
Object.defineProperty(exports, "minLength", { enumerable: true, get: function () { return index_js_1._minLength; } });
|
|
21
|
+
Object.defineProperty(exports, "length", { enumerable: true, get: function () { return index_js_1._length; } });
|
|
22
|
+
Object.defineProperty(exports, "regex", { enumerable: true, get: function () { return index_js_1._regex; } });
|
|
23
|
+
Object.defineProperty(exports, "lowercase", { enumerable: true, get: function () { return index_js_1._lowercase; } });
|
|
24
|
+
Object.defineProperty(exports, "uppercase", { enumerable: true, get: function () { return index_js_1._uppercase; } });
|
|
25
|
+
Object.defineProperty(exports, "includes", { enumerable: true, get: function () { return index_js_1._includes; } });
|
|
26
|
+
Object.defineProperty(exports, "startsWith", { enumerable: true, get: function () { return index_js_1._startsWith; } });
|
|
27
|
+
Object.defineProperty(exports, "endsWith", { enumerable: true, get: function () { return index_js_1._endsWith; } });
|
|
28
|
+
Object.defineProperty(exports, "property", { enumerable: true, get: function () { return index_js_1._property; } });
|
|
29
|
+
Object.defineProperty(exports, "mime", { enumerable: true, get: function () { return index_js_1._mime; } });
|
|
30
|
+
Object.defineProperty(exports, "overwrite", { enumerable: true, get: function () { return index_js_1._overwrite; } });
|
|
31
|
+
Object.defineProperty(exports, "normalize", { enumerable: true, get: function () { return index_js_1._normalize; } });
|
|
32
|
+
Object.defineProperty(exports, "trim", { enumerable: true, get: function () { return index_js_1._trim; } });
|
|
33
|
+
Object.defineProperty(exports, "toLowerCase", { enumerable: true, get: function () { return index_js_1._toLowerCase; } });
|
|
34
|
+
Object.defineProperty(exports, "toUpperCase", { enumerable: true, get: function () { return index_js_1._toUpperCase; } });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { _lt as lt, _lte as lte, _lte as maximum, _gt as gt, _gte as gte, _gte as minimum, _positive as positive, _negative as negative, _nonpositive as nonpositive, _nonnegative as nonnegative, _multipleOf as multipleOf, _maxSize as maxSize, _minSize as minSize, _size as size, _maxLength as maxLength, _minLength as minLength, _length as length, _regex as regex, _lowercase as lowercase, _uppercase as uppercase, _includes as includes, _startsWith as startsWith, _endsWith as endsWith, _property as property, _mime as mime, _overwrite as overwrite, _normalize as normalize, _trim as trim, _toLowerCase as toLowerCase, _toUpperCase as toUpperCase, } from "../core/index.cjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { _lt as lt, _lte as lte, _lte as maximum, _gt as gt, _gte as gte, _gte as minimum, _positive as positive, _negative as negative, _nonpositive as nonpositive, _nonnegative as nonnegative, _multipleOf as multipleOf, _maxSize as maxSize, _minSize as minSize, _size as size, _maxLength as maxLength, _minLength as minLength, _length as length, _regex as regex, _lowercase as lowercase, _uppercase as uppercase, _includes as includes, _startsWith as startsWith, _endsWith as endsWith, _property as property, _mime as mime, _overwrite as overwrite, _normalize as normalize, _trim as trim, _toLowerCase as toLowerCase, _toUpperCase as toUpperCase, } from "
|
|
1
|
+
export { _lt as lt, _lte as lte, _lte as maximum, _gt as gt, _gte as gte, _gte as minimum, _positive as positive, _negative as negative, _nonpositive as nonpositive, _nonnegative as nonnegative, _multipleOf as multipleOf, _maxSize as maxSize, _minSize as minSize, _size as size, _maxLength as maxLength, _minLength as minLength, _length as length, _regex as regex, _lowercase as lowercase, _uppercase as uppercase, _includes as includes, _startsWith as startsWith, _endsWith as endsWith, _property as property, _mime as mime, _overwrite as overwrite, _normalize as normalize, _trim as trim, _toLowerCase as toLowerCase, _toUpperCase as toUpperCase, } from "../core/index.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { _lt as lt, _lte as lte, _lte as maximum, _gt as gt, _gte as gte, _gte as minimum, _positive as positive, _negative as negative, _nonpositive as nonpositive, _nonnegative as nonnegative, _multipleOf as multipleOf, _maxSize as maxSize, _minSize as minSize, _size as size, _maxLength as maxLength, _minLength as minLength, _length as length, _regex as regex, _lowercase as lowercase, _uppercase as uppercase, _includes as includes, _startsWith as startsWith, _endsWith as endsWith, _property as property, _mime as mime, _overwrite as overwrite, _normalize as normalize, _trim as trim, _toLowerCase as toLowerCase, _toUpperCase as toUpperCase, } from "
|
|
1
|
+
export { _lt as lt, _lte as lte, _lte as maximum, _gt as gt, _gte as gte, _gte as minimum, _positive as positive, _negative as negative, _nonpositive as nonpositive, _nonnegative as nonnegative, _multipleOf as multipleOf, _maxSize as maxSize, _minSize as minSize, _size as size, _maxLength as maxLength, _minLength as minLength, _length as length, _regex as regex, _lowercase as lowercase, _uppercase as uppercase, _includes as includes, _startsWith as startsWith, _endsWith as endsWith, _property as property, _mime as mime, _overwrite as overwrite, _normalize as normalize, _trim as trim, _toLowerCase as toLowerCase, _toUpperCase as toUpperCase, } from "../core/index.js";
|
|
@@ -28,8 +28,8 @@ exports.number = number;
|
|
|
28
28
|
exports.boolean = boolean;
|
|
29
29
|
exports.bigint = bigint;
|
|
30
30
|
exports.date = date;
|
|
31
|
-
const core = __importStar(require("
|
|
32
|
-
const schemas = __importStar(require("./schemas.
|
|
31
|
+
const core = __importStar(require("../core/index.cjs"));
|
|
32
|
+
const schemas = __importStar(require("./schemas.cjs"));
|
|
33
33
|
function string(params) {
|
|
34
34
|
return core._coercedString(schemas.ZodMiniString, params);
|
|
35
35
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as core from "../core/index.cjs";
|
|
2
|
+
import * as schemas from "./schemas.cjs";
|
|
3
|
+
export declare function string<T = unknown>(params?: string | core.$ZodStringParams): schemas.ZodMiniString<T>;
|
|
4
|
+
export declare function number<T = unknown>(params?: string | core.$ZodNumberParams): schemas.ZodMiniNumber<T>;
|
|
5
|
+
export declare function boolean<T = unknown>(params?: string | core.$ZodBooleanParams): schemas.ZodMiniBoolean<T>;
|
|
6
|
+
export declare function bigint<T = unknown>(params?: string | core.$ZodBigIntParams): schemas.ZodMiniBigInt<T>;
|
|
7
|
+
export declare function date<T = unknown>(params?: string | core.$ZodDateParams): schemas.ZodMiniDate<T>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as core from "
|
|
1
|
+
import * as core from "../core/index.js";
|
|
2
2
|
import * as schemas from "./schemas.js";
|
|
3
3
|
export declare function string<T = unknown>(params?: string | core.$ZodStringParams): schemas.ZodMiniString<T>;
|
|
4
4
|
export declare function number<T = unknown>(params?: string | core.$ZodNumberParams): schemas.ZodMiniNumber<T>;
|
|
@@ -27,35 +27,35 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.coerce = exports.ZodMiniISODuration = exports.ZodMiniISOTime = exports.ZodMiniISODate = exports.ZodMiniISODateTime = exports.iso = exports.locales = exports.TimePrecision = exports.toJSONSchema = exports.flattenError = exports.formatError = exports.prettifyError = exports.treeifyError = exports.regexes = exports.clone = exports.function = exports.$brand = exports.$input = exports.$output = exports.config = exports.registry = exports.globalRegistry = exports.core = void 0;
|
|
30
|
-
exports.core = __importStar(require("
|
|
31
|
-
__exportStar(require("./parse.
|
|
32
|
-
__exportStar(require("./schemas.
|
|
33
|
-
__exportStar(require("./checks.
|
|
34
|
-
var
|
|
35
|
-
Object.defineProperty(exports, "globalRegistry", { enumerable: true, get: function () { return
|
|
36
|
-
Object.defineProperty(exports, "registry", { enumerable: true, get: function () { return
|
|
37
|
-
Object.defineProperty(exports, "config", { enumerable: true, get: function () { return
|
|
38
|
-
Object.defineProperty(exports, "$output", { enumerable: true, get: function () { return
|
|
39
|
-
Object.defineProperty(exports, "$input", { enumerable: true, get: function () { return
|
|
40
|
-
Object.defineProperty(exports, "$brand", { enumerable: true, get: function () { return
|
|
41
|
-
Object.defineProperty(exports, "function", { enumerable: true, get: function () { return
|
|
42
|
-
Object.defineProperty(exports, "clone", { enumerable: true, get: function () { return
|
|
43
|
-
Object.defineProperty(exports, "regexes", { enumerable: true, get: function () { return
|
|
44
|
-
Object.defineProperty(exports, "treeifyError", { enumerable: true, get: function () { return
|
|
45
|
-
Object.defineProperty(exports, "prettifyError", { enumerable: true, get: function () { return
|
|
46
|
-
Object.defineProperty(exports, "formatError", { enumerable: true, get: function () { return
|
|
47
|
-
Object.defineProperty(exports, "flattenError", { enumerable: true, get: function () { return
|
|
48
|
-
Object.defineProperty(exports, "toJSONSchema", { enumerable: true, get: function () { return
|
|
49
|
-
Object.defineProperty(exports, "TimePrecision", { enumerable: true, get: function () { return
|
|
50
|
-
exports.locales = __importStar(require("../locales/index.
|
|
30
|
+
exports.core = __importStar(require("../core/index.cjs"));
|
|
31
|
+
__exportStar(require("./parse.cjs"), exports);
|
|
32
|
+
__exportStar(require("./schemas.cjs"), exports);
|
|
33
|
+
__exportStar(require("./checks.cjs"), exports);
|
|
34
|
+
var index_js_1 = require("../core/index.cjs");
|
|
35
|
+
Object.defineProperty(exports, "globalRegistry", { enumerable: true, get: function () { return index_js_1.globalRegistry; } });
|
|
36
|
+
Object.defineProperty(exports, "registry", { enumerable: true, get: function () { return index_js_1.registry; } });
|
|
37
|
+
Object.defineProperty(exports, "config", { enumerable: true, get: function () { return index_js_1.config; } });
|
|
38
|
+
Object.defineProperty(exports, "$output", { enumerable: true, get: function () { return index_js_1.$output; } });
|
|
39
|
+
Object.defineProperty(exports, "$input", { enumerable: true, get: function () { return index_js_1.$input; } });
|
|
40
|
+
Object.defineProperty(exports, "$brand", { enumerable: true, get: function () { return index_js_1.$brand; } });
|
|
41
|
+
Object.defineProperty(exports, "function", { enumerable: true, get: function () { return index_js_1.function; } });
|
|
42
|
+
Object.defineProperty(exports, "clone", { enumerable: true, get: function () { return index_js_1.clone; } });
|
|
43
|
+
Object.defineProperty(exports, "regexes", { enumerable: true, get: function () { return index_js_1.regexes; } });
|
|
44
|
+
Object.defineProperty(exports, "treeifyError", { enumerable: true, get: function () { return index_js_1.treeifyError; } });
|
|
45
|
+
Object.defineProperty(exports, "prettifyError", { enumerable: true, get: function () { return index_js_1.prettifyError; } });
|
|
46
|
+
Object.defineProperty(exports, "formatError", { enumerable: true, get: function () { return index_js_1.formatError; } });
|
|
47
|
+
Object.defineProperty(exports, "flattenError", { enumerable: true, get: function () { return index_js_1.flattenError; } });
|
|
48
|
+
Object.defineProperty(exports, "toJSONSchema", { enumerable: true, get: function () { return index_js_1.toJSONSchema; } });
|
|
49
|
+
Object.defineProperty(exports, "TimePrecision", { enumerable: true, get: function () { return index_js_1.TimePrecision; } });
|
|
50
|
+
exports.locales = __importStar(require("../locales/index.cjs"));
|
|
51
51
|
/** A special constant with type `never` */
|
|
52
52
|
// export const NEVER = {} as never;
|
|
53
53
|
// iso
|
|
54
|
-
exports.iso = __importStar(require("./iso.
|
|
55
|
-
var iso_js_1 = require("./iso.
|
|
54
|
+
exports.iso = __importStar(require("./iso.cjs"));
|
|
55
|
+
var iso_js_1 = require("./iso.cjs");
|
|
56
56
|
Object.defineProperty(exports, "ZodMiniISODateTime", { enumerable: true, get: function () { return iso_js_1.ZodMiniISODateTime; } });
|
|
57
57
|
Object.defineProperty(exports, "ZodMiniISODate", { enumerable: true, get: function () { return iso_js_1.ZodMiniISODate; } });
|
|
58
58
|
Object.defineProperty(exports, "ZodMiniISOTime", { enumerable: true, get: function () { return iso_js_1.ZodMiniISOTime; } });
|
|
59
59
|
Object.defineProperty(exports, "ZodMiniISODuration", { enumerable: true, get: function () { return iso_js_1.ZodMiniISODuration; } });
|
|
60
60
|
// coerce
|
|
61
|
-
exports.coerce = __importStar(require("./coerce.
|
|
61
|
+
exports.coerce = __importStar(require("./coerce.cjs"));
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * as core from "../core/index.cjs";
|
|
2
|
+
export * from "./parse.cjs";
|
|
3
|
+
export * from "./schemas.cjs";
|
|
4
|
+
export * from "./checks.cjs";
|
|
5
|
+
export type { infer, output, input } from "../core/index.cjs";
|
|
6
|
+
export { globalRegistry, registry, config, $output, $input, $brand, function, clone, regexes, treeifyError, prettifyError, formatError, flattenError, toJSONSchema, TimePrecision, } from "../core/index.cjs";
|
|
7
|
+
export * as locales from "../locales/index.cjs";
|
|
8
|
+
/** A special constant with type `never` */
|
|
9
|
+
export * as iso from "./iso.cjs";
|
|
10
|
+
export { ZodMiniISODateTime, ZodMiniISODate, ZodMiniISOTime, ZodMiniISODuration, } from "./iso.cjs";
|
|
11
|
+
export * as coerce from "./coerce.cjs";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export * as core from "
|
|
1
|
+
export * as core from "../core/index.js";
|
|
2
2
|
export * from "./parse.js";
|
|
3
3
|
export * from "./schemas.js";
|
|
4
4
|
export * from "./checks.js";
|
|
5
|
-
export type { infer, output, input } from "
|
|
6
|
-
export { globalRegistry, registry, config, $output, $input, $brand, function, clone, regexes, treeifyError, prettifyError, formatError, flattenError, toJSONSchema, TimePrecision, } from "
|
|
5
|
+
export type { infer, output, input } from "../core/index.js";
|
|
6
|
+
export { globalRegistry, registry, config, $output, $input, $brand, function, clone, regexes, treeifyError, prettifyError, formatError, flattenError, toJSONSchema, TimePrecision, } from "../core/index.js";
|
|
7
7
|
export * as locales from "../locales/index.js";
|
|
8
8
|
/** A special constant with type `never` */
|
|
9
9
|
export * as iso from "./iso.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export * as core from "
|
|
1
|
+
export * as core from "../core/index.js";
|
|
2
2
|
export * from "./parse.js";
|
|
3
3
|
export * from "./schemas.js";
|
|
4
4
|
export * from "./checks.js";
|
|
5
|
-
export { globalRegistry, registry, config, $output, $input, $brand, function, clone, regexes, treeifyError, prettifyError, formatError, flattenError, toJSONSchema, TimePrecision, } from "
|
|
5
|
+
export { globalRegistry, registry, config, $output, $input, $brand, function, clone, regexes, treeifyError, prettifyError, formatError, flattenError, toJSONSchema, TimePrecision, } from "../core/index.js";
|
|
6
6
|
export * as locales from "../locales/index.js";
|
|
7
7
|
/** A special constant with type `never` */
|
|
8
8
|
// export const NEVER = {} as never;
|
|
@@ -27,6 +27,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.z = void 0;
|
|
30
|
-
const z = __importStar(require("./external.
|
|
30
|
+
const z = __importStar(require("./external.cjs"));
|
|
31
31
|
exports.z = z;
|
|
32
|
-
__exportStar(require("./external.
|
|
32
|
+
__exportStar(require("./external.cjs"), exports);
|
|
@@ -28,8 +28,8 @@ exports.datetime = datetime;
|
|
|
28
28
|
exports.date = date;
|
|
29
29
|
exports.time = time;
|
|
30
30
|
exports.duration = duration;
|
|
31
|
-
const core = __importStar(require("
|
|
32
|
-
const schemas = __importStar(require("./schemas.
|
|
31
|
+
const core = __importStar(require("../core/index.cjs"));
|
|
32
|
+
const schemas = __importStar(require("./schemas.cjs"));
|
|
33
33
|
exports.ZodMiniISODateTime = core.$constructor("$ZodISODateTime", (inst, def) => {
|
|
34
34
|
core.$ZodISODateTime.init(inst, def);
|
|
35
35
|
schemas.ZodMiniStringFormat.init(inst, def);
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as core from "../core/index.cjs";
|
|
2
|
+
import * as schemas from "./schemas.cjs";
|
|
3
|
+
export interface ZodMiniISODateTime extends schemas.ZodMiniStringFormat<"datetime"> {
|
|
4
|
+
_zod: core.$ZodISODateTimeInternals;
|
|
5
|
+
}
|
|
6
|
+
export declare const ZodMiniISODateTime: core.$constructor<ZodMiniISODateTime>;
|
|
7
|
+
export declare function datetime(params?: string | core.$ZodISODateTimeParams): ZodMiniISODateTime;
|
|
8
|
+
export interface ZodMiniISODate extends schemas.ZodMiniStringFormat<"date"> {
|
|
9
|
+
_zod: core.$ZodISODateInternals;
|
|
10
|
+
}
|
|
11
|
+
export declare const ZodMiniISODate: core.$constructor<ZodMiniISODate>;
|
|
12
|
+
export declare function date(params?: string | core.$ZodISODateParams): ZodMiniISODate;
|
|
13
|
+
export interface ZodMiniISOTime extends schemas.ZodMiniStringFormat<"time"> {
|
|
14
|
+
_zod: core.$ZodISOTimeInternals;
|
|
15
|
+
}
|
|
16
|
+
export declare const ZodMiniISOTime: core.$constructor<ZodMiniISOTime>;
|
|
17
|
+
export declare function time(params?: string | core.$ZodISOTimeParams): ZodMiniISOTime;
|
|
18
|
+
export interface ZodMiniISODuration extends schemas.ZodMiniStringFormat<"duration"> {
|
|
19
|
+
_zod: core.$ZodISODurationInternals;
|
|
20
|
+
}
|
|
21
|
+
export declare const ZodMiniISODuration: core.$constructor<ZodMiniISODuration>;
|
|
22
|
+
export declare function duration(params?: string | core.$ZodISODurationParams): ZodMiniISODuration;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.safeParseAsync = exports.parseAsync = exports.safeParse = exports.parse = void 0;
|
|
4
|
-
var
|
|
5
|
-
Object.defineProperty(exports, "parse", { enumerable: true, get: function () { return
|
|
6
|
-
Object.defineProperty(exports, "safeParse", { enumerable: true, get: function () { return
|
|
7
|
-
Object.defineProperty(exports, "parseAsync", { enumerable: true, get: function () { return
|
|
8
|
-
Object.defineProperty(exports, "safeParseAsync", { enumerable: true, get: function () { return
|
|
4
|
+
var index_js_1 = require("../core/index.cjs");
|
|
5
|
+
Object.defineProperty(exports, "parse", { enumerable: true, get: function () { return index_js_1.parse; } });
|
|
6
|
+
Object.defineProperty(exports, "safeParse", { enumerable: true, get: function () { return index_js_1.safeParse; } });
|
|
7
|
+
Object.defineProperty(exports, "parseAsync", { enumerable: true, get: function () { return index_js_1.parseAsync; } });
|
|
8
|
+
Object.defineProperty(exports, "safeParseAsync", { enumerable: true, get: function () { return index_js_1.safeParseAsync; } });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { parse, safeParse, parseAsync, safeParseAsync } from "../core/index.cjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { parse, safeParse, parseAsync, safeParseAsync } from "../core/index.js";
|
package/v4/mini/parse.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { parse, safeParse, parseAsync, safeParseAsync } from "../core/index.js";
|