@oxog/vld 2.0.3 → 2.2.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/CHANGELOG.md +120 -1
- package/README.md +1296 -1171
- package/dist/chunks/errors-core-Cqi4-9ew.js +1 -0
- package/dist/chunks/index-CkbfQQ4n.js +1 -0
- package/dist/chunks/index-yjpbvFgw.js +1 -0
- package/dist/chunks/ip-validation-g5LWgy9t.js +1 -0
- package/dist/chunks/security-Dy24T8N7.js +1 -0
- package/dist/cjs/chunks/errors-core-DKPohm9I.cjs +1 -0
- package/dist/cjs/chunks/index-BEV9nG0N.cjs +1 -0
- package/dist/cjs/chunks/index-ZjHAxYdA.cjs +1 -0
- package/dist/cjs/chunks/ip-validation-BZqPamPC.cjs +1 -0
- package/dist/cjs/chunks/security-aXZVI7qW.cjs +1 -0
- package/dist/cjs/cli/bin.cjs +2 -0
- package/dist/cjs/cli/index.cjs +1 -0
- package/dist/cjs/codecs/index.cjs +1 -0
- package/dist/cjs/coercion/index.cjs +1 -0
- package/dist/cjs/compat/emitter.cjs +1 -0
- package/dist/cjs/compat/result.cjs +1 -0
- package/dist/cjs/errors.cjs +1 -387
- package/dist/cjs/index.cjs +1 -10759
- package/dist/cjs/kernel.cjs +1 -0
- package/dist/cjs/locales/af.cjs +1 -0
- package/dist/cjs/locales/ar.cjs +1 -0
- package/dist/cjs/locales/bn.cjs +1 -0
- package/dist/cjs/locales/da.cjs +1 -0
- package/dist/cjs/locales/de.cjs +1 -0
- package/dist/cjs/locales/en.cjs +1 -0
- package/dist/cjs/locales/es-MX.cjs +1 -0
- package/dist/cjs/locales/es.cjs +1 -0
- package/dist/cjs/locales/fi.cjs +1 -0
- package/dist/cjs/locales/fr.cjs +1 -0
- package/dist/cjs/locales/hi.cjs +1 -0
- package/dist/cjs/locales/id.cjs +1 -0
- package/dist/cjs/locales/index.cjs +1 -2877
- package/dist/cjs/locales/it.cjs +1 -0
- package/dist/cjs/locales/ja.cjs +1 -0
- package/dist/cjs/locales/ko.cjs +1 -0
- package/dist/cjs/locales/lazy.cjs +1 -3169
- package/dist/cjs/locales/nl.cjs +1 -0
- package/dist/cjs/locales/no.cjs +1 -0
- package/dist/cjs/locales/pl.cjs +1 -0
- package/dist/cjs/locales/pt-BR.cjs +1 -0
- package/dist/cjs/locales/pt.cjs +1 -0
- package/dist/cjs/locales/ru.cjs +1 -0
- package/dist/cjs/locales/runtime.cjs +1 -0
- package/dist/cjs/locales/sv.cjs +1 -0
- package/dist/cjs/locales/sw.cjs +1 -0
- package/dist/cjs/locales/th.cjs +1 -0
- package/dist/cjs/locales/tr.cjs +1 -0
- package/dist/cjs/locales/vi.cjs +1 -0
- package/dist/cjs/locales/zh.cjs +1 -0
- package/dist/cjs/mini.cjs +1 -7474
- package/dist/cjs/pigment.cjs +1 -0
- package/dist/cjs/plugins/index.cjs +1 -0
- package/dist/cjs/registry.cjs +1 -0
- package/dist/cjs/v3/index.cjs +1 -0
- package/dist/cjs/v4/core/index.cjs +1 -0
- package/dist/cjs/v4/index.cjs +1 -0
- package/dist/cjs/v4/locales/index.cjs +1 -0
- package/dist/cjs/v4/mini/index.cjs +1 -0
- package/dist/cjs/v4-mini/index.cjs +1 -0
- package/dist/cjs/validators/any.cjs +1 -0
- package/dist/cjs/validators/array.cjs +1 -0
- package/dist/cjs/validators/base.cjs +1 -0
- package/dist/cjs/validators/base64.cjs +1 -0
- package/dist/cjs/validators/bigint.cjs +1 -0
- package/dist/cjs/validators/boolean.cjs +1 -0
- package/dist/cjs/validators/codec.cjs +1 -0
- package/dist/cjs/validators/custom.cjs +1 -0
- package/dist/cjs/validators/date.cjs +1 -0
- package/dist/cjs/validators/discriminated-union.cjs +1 -0
- package/dist/cjs/validators/enum.cjs +1 -0
- package/dist/cjs/validators/file.cjs +1 -0
- package/dist/cjs/validators/function.cjs +1 -0
- package/dist/cjs/validators/hex.cjs +1 -0
- package/dist/cjs/validators/index.cjs +1 -0
- package/dist/cjs/validators/intersection.cjs +1 -0
- package/dist/cjs/validators/json.cjs +1 -0
- package/dist/cjs/validators/lazy.cjs +1 -0
- package/dist/cjs/validators/literal.cjs +1 -0
- package/dist/cjs/validators/map.cjs +1 -0
- package/dist/cjs/validators/nan.cjs +1 -0
- package/dist/cjs/validators/never.cjs +1 -0
- package/dist/cjs/validators/null.cjs +1 -0
- package/dist/cjs/validators/number.cjs +1 -0
- package/dist/cjs/validators/object.cjs +1 -0
- package/dist/cjs/validators/promise.cjs +1 -0
- package/dist/cjs/validators/record.cjs +1 -0
- package/dist/cjs/validators/set.cjs +1 -0
- package/dist/cjs/validators/string-bool.cjs +1 -0
- package/dist/cjs/validators/string-formats.cjs +1 -0
- package/dist/cjs/validators/string.cjs +1 -0
- package/dist/cjs/validators/symbol.cjs +1 -0
- package/dist/cjs/validators/template-literal.cjs +1 -0
- package/dist/cjs/validators/tuple.cjs +1 -0
- package/dist/cjs/validators/uint8array.cjs +1 -0
- package/dist/cjs/validators/undefined.cjs +1 -0
- package/dist/cjs/validators/union.cjs +1 -0
- package/dist/cjs/validators/unknown.cjs +1 -0
- package/dist/cjs/validators/void.cjs +1 -0
- package/dist/cjs/validators/xor.cjs +1 -0
- package/dist/cli/bin.d.ts +0 -1
- package/dist/cli/bin.js +2 -0
- package/dist/cli/commands/benchmark.d.ts +1 -2
- package/dist/cli/commands/validate.d.ts +1 -2
- package/dist/cli/index.d.ts +0 -1
- package/dist/cli/index.js +1 -0
- package/dist/codecs/index.d.ts +21 -4
- package/dist/codecs/index.js +1 -4
- package/dist/coercion/bigint.d.ts +2 -3
- package/dist/coercion/boolean.d.ts +3 -3
- package/dist/coercion/date.d.ts +3 -3
- package/dist/coercion/index.d.ts +5 -6
- package/dist/coercion/index.js +1 -111
- package/dist/coercion/number.d.ts +2 -3
- package/dist/coercion/string.d.ts +2 -3
- package/dist/compat/emitter.d.ts +0 -1
- package/dist/compat/emitter.js +1 -181
- package/dist/compat/index.d.ts +4 -5
- package/dist/compat/result.d.ts +1 -2
- package/dist/compat/result.js +1 -171
- package/dist/errors-core.d.ts +58 -0
- package/dist/errors.d.ts +4 -54
- package/dist/errors.js +1 -235
- package/dist/events.d.ts +3 -4
- package/dist/index.d.ts +1093 -851
- package/dist/index.js +1 -855
- package/dist/kernel.d.ts +2 -3
- package/dist/kernel.js +1 -405
- package/dist/locales/af.d.ts +1 -2
- package/dist/locales/af.js +1 -107
- package/dist/locales/ar.d.ts +1 -2
- package/dist/locales/ar.js +1 -107
- package/dist/locales/bn.d.ts +1 -2
- package/dist/locales/bn.js +1 -107
- package/dist/locales/da.d.ts +1 -2
- package/dist/locales/da.js +1 -107
- package/dist/locales/de.d.ts +1 -2
- package/dist/locales/de.js +1 -107
- package/dist/locales/en.d.ts +1 -2
- package/dist/locales/en.js +1 -107
- package/dist/locales/es-MX.d.ts +1 -2
- package/dist/locales/es-MX.js +1 -106
- package/dist/locales/es.d.ts +1 -2
- package/dist/locales/es.js +1 -95
- package/dist/locales/fi.d.ts +1 -2
- package/dist/locales/fi.js +1 -107
- package/dist/locales/fr.d.ts +1 -2
- package/dist/locales/fr.js +1 -95
- package/dist/locales/hi.d.ts +1 -2
- package/dist/locales/hi.js +1 -107
- package/dist/locales/id.d.ts +1 -2
- package/dist/locales/id.js +1 -107
- package/dist/locales/index.d.ts +10 -15
- package/dist/locales/index.js +1 -3
- package/dist/locales/it.d.ts +1 -2
- package/dist/locales/it.js +1 -107
- package/dist/locales/ja.d.ts +1 -2
- package/dist/locales/ja.js +1 -107
- package/dist/locales/ko.d.ts +1 -2
- package/dist/locales/ko.js +1 -107
- package/dist/locales/lazy.d.ts +4 -26
- package/dist/locales/lazy.js +1 -220
- package/dist/locales/nl.d.ts +1 -2
- package/dist/locales/nl.js +1 -107
- package/dist/locales/no.d.ts +1 -2
- package/dist/locales/no.js +1 -107
- package/dist/locales/pl.d.ts +1 -2
- package/dist/locales/pl.js +1 -107
- package/dist/locales/pt-BR.d.ts +1 -2
- package/dist/locales/pt-BR.js +1 -107
- package/dist/locales/pt.d.ts +1 -2
- package/dist/locales/pt.js +1 -107
- package/dist/locales/ru.d.ts +1 -2
- package/dist/locales/ru.js +1 -107
- package/dist/locales/runtime.d.ts +10 -0
- package/dist/locales/runtime.js +1 -0
- package/dist/locales/sv.d.ts +1 -2
- package/dist/locales/sv.js +1 -107
- package/dist/locales/sw.d.ts +1 -2
- package/dist/locales/sw.js +1 -107
- package/dist/locales/th.d.ts +1 -2
- package/dist/locales/th.js +1 -107
- package/dist/locales/tr.d.ts +1 -2
- package/dist/locales/tr.js +1 -107
- package/dist/locales/types.d.ts +0 -1
- package/dist/locales/vi.d.ts +1 -2
- package/dist/locales/vi.js +1 -107
- package/dist/locales/zh.d.ts +1 -2
- package/dist/locales/zh.js +1 -107
- package/dist/logger.d.ts +0 -1
- package/dist/mini.d.ts +67 -68
- package/dist/mini.js +1 -132
- package/dist/pigment.d.ts +0 -1
- package/dist/pigment.js +1 -178
- package/dist/plugins/index.d.ts +2 -3
- package/dist/plugins/index.js +1 -0
- package/dist/plugins/types.d.ts +4 -5
- package/dist/registry.d.ts +23 -0
- package/dist/registry.js +1 -0
- package/dist/utils/codec-utils.d.ts +0 -1
- package/dist/utils/deep-merge.d.ts +0 -1
- package/dist/utils/ip-validation.d.ts +0 -1
- package/dist/utils/json-schema.d.ts +26 -7
- package/dist/utils/security.d.ts +2 -6
- package/dist/v3/index.d.ts +2 -0
- package/dist/v3/index.js +1 -0
- package/dist/v4/core/index.d.ts +272 -0
- package/dist/v4/core/index.js +1 -0
- package/dist/v4/index.d.ts +4 -0
- package/dist/v4/index.js +1 -0
- package/dist/v4/locales/index.d.ts +57 -0
- package/dist/v4/locales/index.js +1 -0
- package/dist/v4/mini/index.d.ts +2 -0
- package/dist/v4/mini/index.js +1 -0
- package/dist/v4-mini/index.d.ts +22 -0
- package/dist/v4-mini/index.js +1 -0
- package/dist/validators/any.d.ts +7 -2
- package/dist/validators/any.js +1 -0
- package/dist/validators/array.d.ts +16 -2
- package/dist/validators/array.js +1 -0
- package/dist/validators/base.d.ts +213 -14
- package/dist/validators/base.js +1 -0
- package/dist/validators/base64.d.ts +1 -2
- package/dist/validators/base64.js +1 -0
- package/dist/validators/bigint.d.ts +21 -3
- package/dist/validators/bigint.js +1 -0
- package/dist/validators/boolean.d.ts +13 -4
- package/dist/validators/boolean.js +1 -0
- package/dist/validators/codec.d.ts +9 -2
- package/dist/validators/codec.js +1 -0
- package/dist/validators/custom.d.ts +15 -2
- package/dist/validators/custom.js +1 -0
- package/dist/validators/date.d.ts +19 -3
- package/dist/validators/date.js +1 -0
- package/dist/validators/discriminated-union.d.ts +6 -5
- package/dist/validators/discriminated-union.js +1 -0
- package/dist/validators/enum.d.ts +10 -7
- package/dist/validators/enum.js +1 -0
- package/dist/validators/file.d.ts +7 -2
- package/dist/validators/file.js +1 -0
- package/dist/validators/function.d.ts +11 -5
- package/dist/validators/function.js +1 -0
- package/dist/validators/hex.d.ts +1 -2
- package/dist/validators/hex.js +1 -0
- package/dist/validators/index.d.ts +38 -39
- package/dist/validators/index.js +1 -515
- package/dist/validators/intersection.d.ts +1 -2
- package/dist/validators/intersection.js +1 -0
- package/dist/validators/json.d.ts +1 -2
- package/dist/validators/json.js +1 -0
- package/dist/validators/lazy.d.ts +5 -9
- package/dist/validators/lazy.js +1 -0
- package/dist/validators/literal.d.ts +9 -5
- package/dist/validators/literal.js +1 -0
- package/dist/validators/map.d.ts +15 -2
- package/dist/validators/map.js +1 -0
- package/dist/validators/nan.d.ts +2 -3
- package/dist/validators/nan.js +1 -0
- package/dist/validators/never.d.ts +1 -2
- package/dist/validators/never.js +1 -0
- package/dist/validators/null.d.ts +3 -3
- package/dist/validators/null.js +1 -0
- package/dist/validators/number.d.ts +75 -27
- package/dist/validators/number.js +1 -0
- package/dist/validators/object.d.ts +42 -11
- package/dist/validators/object.js +1 -0
- package/dist/validators/promise.d.ts +15 -10
- package/dist/validators/promise.js +1 -0
- package/dist/validators/record.d.ts +21 -9
- package/dist/validators/record.js +1 -0
- package/dist/validators/set.d.ts +11 -2
- package/dist/validators/set.js +1 -0
- package/dist/validators/string-bool.d.ts +7 -10
- package/dist/validators/string-bool.js +1 -0
- package/dist/validators/string-formats.d.ts +64 -65
- package/dist/validators/string-formats.js +1 -0
- package/dist/validators/string.d.ts +84 -26
- package/dist/validators/string.js +1 -0
- package/dist/validators/symbol.d.ts +8 -3
- package/dist/validators/symbol.js +1 -0
- package/dist/validators/template-literal.d.ts +1 -2
- package/dist/validators/template-literal.js +1 -0
- package/dist/validators/tuple.d.ts +29 -12
- package/dist/validators/tuple.js +1 -0
- package/dist/validators/uint8array.d.ts +3 -4
- package/dist/validators/uint8array.js +1 -0
- package/dist/validators/undefined.d.ts +3 -3
- package/dist/validators/undefined.js +1 -0
- package/dist/validators/union.d.ts +7 -4
- package/dist/validators/union.js +1 -0
- package/dist/validators/unknown.d.ts +7 -2
- package/dist/validators/unknown.js +1 -0
- package/dist/validators/void.d.ts +3 -2
- package/dist/validators/void.js +1 -0
- package/dist/validators/xor.d.ts +4 -5
- package/dist/validators/xor.js +1 -0
- package/package.json +239 -154
- package/dist/chunks/bigint-CRS0QVsy.js +0 -1854
- package/dist/chunks/bigint-CRS0QVsy.js.map +0 -1
- package/dist/chunks/date-50JV_Mfj.js +0 -506
- package/dist/chunks/date-50JV_Mfj.js.map +0 -1
- package/dist/chunks/index-DO8CFMxD.js +0 -894
- package/dist/chunks/index-DO8CFMxD.js.map +0 -1
- package/dist/chunks/json-Cp4WO0M9.js +0 -2021
- package/dist/chunks/json-Cp4WO0M9.js.map +0 -1
- package/dist/chunks/unknown-Dhzri_T-.js +0 -28
- package/dist/chunks/unknown-Dhzri_T-.js.map +0 -1
- package/dist/cjs/errors.cjs.map +0 -1
- package/dist/cjs/index.cjs.map +0 -1
- package/dist/cjs/locales/index.cjs.map +0 -1
- package/dist/cjs/locales/lazy.cjs.map +0 -1
- package/dist/cjs/mini.cjs.map +0 -1
- package/dist/cli/bin.d.ts.map +0 -1
- package/dist/cli/commands/benchmark.d.ts.map +0 -1
- package/dist/cli/commands/validate.d.ts.map +0 -1
- package/dist/cli/index.d.ts.map +0 -1
- package/dist/codecs/index.d.ts.map +0 -1
- package/dist/codecs/index.js.map +0 -1
- package/dist/coercion/bigint.d.ts.map +0 -1
- package/dist/coercion/boolean.d.ts.map +0 -1
- package/dist/coercion/date.d.ts.map +0 -1
- package/dist/coercion/index.d.ts.map +0 -1
- package/dist/coercion/index.js.map +0 -1
- package/dist/coercion/number.d.ts.map +0 -1
- package/dist/coercion/string.d.ts.map +0 -1
- package/dist/compat/emitter.d.ts.map +0 -1
- package/dist/compat/emitter.js.map +0 -1
- package/dist/compat/index.d.ts.map +0 -1
- package/dist/compat/result.d.ts.map +0 -1
- package/dist/compat/result.js.map +0 -1
- package/dist/errors.d.ts.map +0 -1
- package/dist/errors.js.map +0 -1
- package/dist/events.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/kernel.d.ts.map +0 -1
- package/dist/kernel.js.map +0 -1
- package/dist/locales/af.d.ts.map +0 -1
- package/dist/locales/af.js.map +0 -1
- package/dist/locales/ar.d.ts.map +0 -1
- package/dist/locales/ar.js.map +0 -1
- package/dist/locales/backup-en.d.ts +0 -3
- package/dist/locales/backup-en.d.ts.map +0 -1
- package/dist/locales/bn.d.ts.map +0 -1
- package/dist/locales/bn.js.map +0 -1
- package/dist/locales/da.d.ts.map +0 -1
- package/dist/locales/da.js.map +0 -1
- package/dist/locales/de.d.ts.map +0 -1
- package/dist/locales/de.js.map +0 -1
- package/dist/locales/en.d.ts.map +0 -1
- package/dist/locales/en.js.map +0 -1
- package/dist/locales/es-MX.d.ts.map +0 -1
- package/dist/locales/es-MX.js.map +0 -1
- package/dist/locales/es.d.ts.map +0 -1
- package/dist/locales/es.js.map +0 -1
- package/dist/locales/fi.d.ts.map +0 -1
- package/dist/locales/fi.js.map +0 -1
- package/dist/locales/fr.d.ts.map +0 -1
- package/dist/locales/fr.js.map +0 -1
- package/dist/locales/hi.d.ts.map +0 -1
- package/dist/locales/hi.js.map +0 -1
- package/dist/locales/id.d.ts.map +0 -1
- package/dist/locales/id.js.map +0 -1
- package/dist/locales/index.d.ts.map +0 -1
- package/dist/locales/index.js.map +0 -1
- package/dist/locales/it.d.ts.map +0 -1
- package/dist/locales/it.js.map +0 -1
- package/dist/locales/ja.d.ts.map +0 -1
- package/dist/locales/ja.js.map +0 -1
- package/dist/locales/ko.d.ts.map +0 -1
- package/dist/locales/ko.js.map +0 -1
- package/dist/locales/lazy.d.ts.map +0 -1
- package/dist/locales/lazy.js.map +0 -1
- package/dist/locales/nl.d.ts.map +0 -1
- package/dist/locales/nl.js.map +0 -1
- package/dist/locales/no.d.ts.map +0 -1
- package/dist/locales/no.js.map +0 -1
- package/dist/locales/pl.d.ts.map +0 -1
- package/dist/locales/pl.js.map +0 -1
- package/dist/locales/pt-BR.d.ts.map +0 -1
- package/dist/locales/pt-BR.js.map +0 -1
- package/dist/locales/pt.d.ts.map +0 -1
- package/dist/locales/pt.js.map +0 -1
- package/dist/locales/ru.d.ts.map +0 -1
- package/dist/locales/ru.js.map +0 -1
- package/dist/locales/sv.d.ts.map +0 -1
- package/dist/locales/sv.js.map +0 -1
- package/dist/locales/sw.d.ts.map +0 -1
- package/dist/locales/sw.js.map +0 -1
- package/dist/locales/th.d.ts.map +0 -1
- package/dist/locales/th.js.map +0 -1
- package/dist/locales/tr.d.ts.map +0 -1
- package/dist/locales/tr.js.map +0 -1
- package/dist/locales/types.d.ts.map +0 -1
- package/dist/locales/vi.d.ts.map +0 -1
- package/dist/locales/vi.js.map +0 -1
- package/dist/locales/zh.d.ts.map +0 -1
- package/dist/locales/zh.js.map +0 -1
- package/dist/logger.d.ts.map +0 -1
- package/dist/mini.d.ts.map +0 -1
- package/dist/mini.js.map +0 -1
- package/dist/pigment.d.ts.map +0 -1
- package/dist/pigment.js.map +0 -1
- package/dist/plugins/index.d.ts.map +0 -1
- package/dist/plugins/types.d.ts.map +0 -1
- package/dist/utils/codec-utils.d.ts.map +0 -1
- package/dist/utils/deep-merge.d.ts.map +0 -1
- package/dist/utils/ip-validation.d.ts.map +0 -1
- package/dist/utils/json-schema.d.ts.map +0 -1
- package/dist/utils/security.d.ts.map +0 -1
- package/dist/validators/any.d.ts.map +0 -1
- package/dist/validators/array.d.ts.map +0 -1
- package/dist/validators/base.d.ts.map +0 -1
- package/dist/validators/base64.d.ts.map +0 -1
- package/dist/validators/bigint.d.ts.map +0 -1
- package/dist/validators/boolean.d.ts.map +0 -1
- package/dist/validators/codec.d.ts.map +0 -1
- package/dist/validators/custom.d.ts.map +0 -1
- package/dist/validators/date.d.ts.map +0 -1
- package/dist/validators/discriminated-union.d.ts.map +0 -1
- package/dist/validators/enum.d.ts.map +0 -1
- package/dist/validators/file.d.ts.map +0 -1
- package/dist/validators/function.d.ts.map +0 -1
- package/dist/validators/hex.d.ts.map +0 -1
- package/dist/validators/index.d.ts.map +0 -1
- package/dist/validators/index.js.map +0 -1
- package/dist/validators/intersection.d.ts.map +0 -1
- package/dist/validators/json.d.ts.map +0 -1
- package/dist/validators/lazy.d.ts.map +0 -1
- package/dist/validators/literal.d.ts.map +0 -1
- package/dist/validators/map.d.ts.map +0 -1
- package/dist/validators/nan.d.ts.map +0 -1
- package/dist/validators/never.d.ts.map +0 -1
- package/dist/validators/null.d.ts.map +0 -1
- package/dist/validators/number.d.ts.map +0 -1
- package/dist/validators/object.d.ts.map +0 -1
- package/dist/validators/promise.d.ts.map +0 -1
- package/dist/validators/record.d.ts.map +0 -1
- package/dist/validators/set.d.ts.map +0 -1
- package/dist/validators/string-bool.d.ts.map +0 -1
- package/dist/validators/string-formats.d.ts.map +0 -1
- package/dist/validators/string.d.ts.map +0 -1
- package/dist/validators/symbol.d.ts.map +0 -1
- package/dist/validators/template-literal.d.ts.map +0 -1
- package/dist/validators/tuple.d.ts.map +0 -1
- package/dist/validators/uint8array.d.ts.map +0 -1
- package/dist/validators/undefined.d.ts.map +0 -1
- package/dist/validators/union.d.ts.map +0 -1
- package/dist/validators/unknown.d.ts.map +0 -1
- package/dist/validators/void.d.ts.map +0 -1
- package/dist/validators/xor.d.ts.map +0 -1
package/dist/locales/es.js
CHANGED
|
@@ -1,95 +1 @@
|
|
|
1
|
-
const
|
|
2
|
-
invalidString: 'Cadena inválida',
|
|
3
|
-
stringMin: (min) => `La cadena debe tener al menos ${min} caracteres`,
|
|
4
|
-
stringMax: (max) => `La cadena debe tener como máximo ${max} caracteres`,
|
|
5
|
-
stringLength: (length) => `La cadena debe tener exactamente ${length} caracteres`,
|
|
6
|
-
stringEmail: 'Dirección de correo inválida',
|
|
7
|
-
stringUrl: 'URL inválida',
|
|
8
|
-
stringUuid: 'UUID inválido',
|
|
9
|
-
stringRegex: 'Formato inválido',
|
|
10
|
-
stringStartsWith: (prefix) => `La cadena debe comenzar con "${prefix}"`,
|
|
11
|
-
stringEndsWith: (suffix) => `La cadena debe terminar con "${suffix}"`,
|
|
12
|
-
stringIncludes: (substring) => `La cadena debe incluir "${substring}"`,
|
|
13
|
-
stringIp: 'Dirección IP inválida',
|
|
14
|
-
stringIpv4: 'Dirección IPv4 inválida',
|
|
15
|
-
stringIpv6: 'Dirección IPv6 inválida',
|
|
16
|
-
stringEmpty: 'La cadena no debe estar vacía',
|
|
17
|
-
invalidNumber: 'Número inválido',
|
|
18
|
-
numberMin: (min) => `El número debe ser al menos ${min}`,
|
|
19
|
-
numberMax: (max) => `El número debe ser como máximo ${max}`,
|
|
20
|
-
numberInt: 'El número debe ser un entero',
|
|
21
|
-
numberPositive: 'El número debe ser positivo',
|
|
22
|
-
numberNegative: 'El número debe ser negativo',
|
|
23
|
-
numberNonnegative: 'El número debe ser no negativo',
|
|
24
|
-
numberNonpositive: 'El número debe ser no positivo',
|
|
25
|
-
numberFinite: 'El número debe ser finito',
|
|
26
|
-
numberSafe: 'El número debe ser un entero seguro',
|
|
27
|
-
numberMultipleOf: (value) => `El número debe ser múltiplo de ${value}`,
|
|
28
|
-
invalidBoolean: 'Boolean inválido',
|
|
29
|
-
invalidDate: 'Fecha inválida',
|
|
30
|
-
dateMin: (date) => `La fecha debe ser posterior a ${date.toISOString()}`,
|
|
31
|
-
dateMax: (date) => `La fecha debe ser anterior a ${date.toISOString()}`,
|
|
32
|
-
invalidObject: 'Objeto inválido',
|
|
33
|
-
unexpectedKeys: (keys) => `Claves inesperadas: ${keys.join(', ')}`,
|
|
34
|
-
invalidArray: 'Array inválido',
|
|
35
|
-
arrayMin: (min) => `El array debe tener al menos ${min} elementos`,
|
|
36
|
-
arrayMax: (max) => `El array debe tener como máximo ${max} elementos`,
|
|
37
|
-
arrayLength: (length) => `El array debe tener exactamente ${length} elementos`,
|
|
38
|
-
arrayEmpty: 'El array no debe estar vacío',
|
|
39
|
-
arrayItem: (index, error) => `Elemento inválido en índice ${index}: ${error}`,
|
|
40
|
-
objectField: (field, error) => `Campo inválido "${field}": ${error}`,
|
|
41
|
-
unionNoMatch: (errors) => `Ningún miembro de la unión coincidió: ${errors.join(', ')}`,
|
|
42
|
-
intersectionError: (error) => `Error de validación de intersección: ${error}`,
|
|
43
|
-
literalExpected: (expected, received) => `Se esperaba ${expected}, se recibió ${received}`,
|
|
44
|
-
enumExpected: (values, received) => `Se esperaba uno de [${values.join(', ')}], se recibió ${received}`,
|
|
45
|
-
expectedUndefined: 'Se esperaba undefined',
|
|
46
|
-
neverType: 'El tipo never no puede ser parseado',
|
|
47
|
-
// New advanced type validation messages
|
|
48
|
-
invalidBigint: 'Bigint inválido',
|
|
49
|
-
invalidSymbol: 'Símbolo inválido',
|
|
50
|
-
invalidTuple: 'Tupla inválida',
|
|
51
|
-
tupleLength: (expected, received) => `La tupla debe tener exactamente ${expected} elementos, se recibieron ${received}`,
|
|
52
|
-
invalidRecord: 'Registro inválido',
|
|
53
|
-
invalidSet: 'Set inválido',
|
|
54
|
-
invalidMap: 'Map inválido',
|
|
55
|
-
// Transformation and refinement messages
|
|
56
|
-
transformError: (error) => `Transformación fallida: ${error}`,
|
|
57
|
-
refinementError: (error) => `Refinamiento fallido: ${error}`,
|
|
58
|
-
customValidationError: (error) => `Validación personalizada falló: ${error}`,
|
|
59
|
-
// Coercion messages
|
|
60
|
-
coercionFailed: (type, value) => `No se puede coaccionar ${JSON.stringify(value)} a ${type}`,
|
|
61
|
-
// Codec messages
|
|
62
|
-
codecDecodeFailed: 'Failed to decode value',
|
|
63
|
-
codecEncodeFailed: 'Failed to encode value',
|
|
64
|
-
codecAsyncNotSupported: 'Async codec operations require using parseAsync/encodeAsync methods',
|
|
65
|
-
// Base64/Hex messages
|
|
66
|
-
invalidBase64: 'Invalid base64 string',
|
|
67
|
-
invalidHex: 'Invalid hexadecimal string',
|
|
68
|
-
// Uint8Array messages
|
|
69
|
-
expectedUint8Array: 'Expected Uint8Array',
|
|
70
|
-
uint8ArrayMinLength: (min) => `Uint8Array must have at least ${min} bytes`,
|
|
71
|
-
uint8ArrayMaxLength: (max) => `Uint8Array must have at most ${max} bytes`,
|
|
72
|
-
uint8ArrayExactLength: (length) => `Uint8Array must have exactly ${length} bytes`,
|
|
73
|
-
// Generic type error messages
|
|
74
|
-
expectedString: 'Expected string',
|
|
75
|
-
stringExpected: (received, expected) => `Se esperaba ${expected}, se obtuvo ${received}`,
|
|
76
|
-
stringBoolExpected: (validValues, received) => `Cadena booleana no válida. Se esperaba uno de: ${validValues}, se obtuvo "${received}"`,
|
|
77
|
-
invalidJson: 'JSON no válido',
|
|
78
|
-
stringPatternInvalid: 'La cadena no coincide con el patrón requerido',
|
|
79
|
-
// File validation messages
|
|
80
|
-
invalidFile: 'Expected a File object',
|
|
81
|
-
fileNotSupported: 'File API not supported in this environment',
|
|
82
|
-
fileMinSize: (min) => `File size must be at least ${min} bytes`,
|
|
83
|
-
fileMaxSize: (max) => `File size must not exceed ${max} bytes`,
|
|
84
|
-
fileMimeType: (allowed) => `Invalid file type. Expected: ${allowed.join(", ")}`,
|
|
85
|
-
// Function validation messages
|
|
86
|
-
invalidFunction: 'Se esperaba una función',
|
|
87
|
-
// CIDR validation messages
|
|
88
|
-
stringCidrv4: 'Bloque CIDR IPv4 inválido',
|
|
89
|
-
stringCidrv6: 'Bloque CIDR IPv6 inválido',
|
|
90
|
-
// Safe extend validation messages
|
|
91
|
-
safeExtendOverlap: (keys) => `No se pueden sobrescribir las claves existentes: ${keys.join(', ')}. Use extend() si desea sobrescribir.`
|
|
92
|
-
};
|
|
93
|
-
|
|
94
|
-
export { es };
|
|
95
|
-
//# sourceMappingURL=es.js.map
|
|
1
|
+
const e={invalidString:"Cadena inválida",stringMin:e=>`La cadena debe tener al menos ${e} caracteres`,stringMax:e=>`La cadena debe tener como máximo ${e} caracteres`,stringLength:e=>`La cadena debe tener exactamente ${e} caracteres`,stringEmail:"Dirección de correo inválida",stringUrl:"URL inválida",stringUuid:"UUID inválido",stringRegex:"Formato inválido",stringStartsWith:e=>`La cadena debe comenzar con "${e}"`,stringEndsWith:e=>`La cadena debe terminar con "${e}"`,stringIncludes:e=>`La cadena debe incluir "${e}"`,stringIp:"Dirección IP inválida",stringIpv4:"Dirección IPv4 inválida",stringIpv6:"Dirección IPv6 inválida",stringEmpty:"La cadena no debe estar vacía",invalidNumber:"Número inválido",numberMin:e=>`El número debe ser al menos ${e}`,numberMax:e=>`El número debe ser como máximo ${e}`,numberInt:"El número debe ser un entero",numberPositive:"El número debe ser positivo",numberNegative:"El número debe ser negativo",numberNonnegative:"El número debe ser no negativo",numberNonpositive:"El número debe ser no positivo",numberFinite:"El número debe ser finito",numberSafe:"El número debe ser un entero seguro",numberMultipleOf:e=>`El número debe ser múltiplo de ${e}`,invalidBoolean:"Boolean inválido",invalidDate:"Fecha inválida",dateMin:e=>`La fecha debe ser posterior a ${e.toISOString()}`,dateMax:e=>`La fecha debe ser anterior a ${e.toISOString()}`,invalidObject:"Objeto inválido",unexpectedKeys:e=>`Claves inesperadas: ${e.join(", ")}`,invalidArray:"Array inválido",arrayMin:e=>`El array debe tener al menos ${e} elementos`,arrayMax:e=>`El array debe tener como máximo ${e} elementos`,arrayLength:e=>`El array debe tener exactamente ${e} elementos`,arrayEmpty:"El array no debe estar vacío",arrayItem:(e,i)=>`Elemento inválido en índice ${e}: ${i}`,objectField:(e,i)=>`Campo inválido "${e}": ${i}`,unionNoMatch:e=>`Ningún miembro de la unión coincidió: ${e.join(", ")}`,intersectionError:e=>`Error de validación de intersección: ${e}`,literalExpected:(e,i)=>`Se esperaba ${e}, se recibió ${i}`,enumExpected:(e,i)=>`Se esperaba uno de [${e.join(", ")}], se recibió ${i}`,expectedUndefined:"Se esperaba undefined",neverType:"El tipo never no puede ser parseado",invalidBigint:"Bigint inválido",invalidSymbol:"Símbolo inválido",invalidTuple:"Tupla inválida",tupleLength:(e,i)=>`La tupla debe tener exactamente ${e} elementos, se recibieron ${i}`,invalidRecord:"Registro inválido",invalidSet:"Set inválido",invalidMap:"Map inválido",transformError:e=>`Transformación fallida: ${e}`,refinementError:e=>`Refinamiento fallido: ${e}`,customValidationError:e=>`Validación personalizada falló: ${e}`,coercionFailed:(e,i)=>`No se puede coaccionar ${JSON.stringify(i)} a ${e}`,codecDecodeFailed:"Failed to decode value",codecEncodeFailed:"Failed to encode value",codecAsyncNotSupported:"Async codec operations require using parseAsync/encodeAsync methods",invalidBase64:"Invalid base64 string",invalidHex:"Invalid hexadecimal string",expectedUint8Array:"Expected Uint8Array",uint8ArrayMinLength:e=>`Uint8Array must have at least ${e} bytes`,uint8ArrayMaxLength:e=>`Uint8Array must have at most ${e} bytes`,uint8ArrayExactLength:e=>`Uint8Array must have exactly ${e} bytes`,expectedString:"Expected string",stringExpected:(e,i)=>`Se esperaba ${i}, se obtuvo ${e}`,stringBoolExpected:(e,i)=>`Cadena booleana no válida. Se esperaba uno de: ${e}, se obtuvo "${i}"`,invalidJson:"JSON no válido",stringPatternInvalid:"La cadena no coincide con el patrón requerido",invalidFile:"Expected a File object",fileNotSupported:"File API not supported in this environment",fileMinSize:e=>`File size must be at least ${e} bytes`,fileMaxSize:e=>`File size must not exceed ${e} bytes`,fileMimeType:e=>`Invalid file type. Expected: ${e.join(", ")}`,invalidFunction:"Se esperaba una función",stringCidrv4:"Bloque CIDR IPv4 inválido",stringCidrv6:"Bloque CIDR IPv6 inválido",safeExtendOverlap:e=>`No se pueden sobrescribir las claves existentes: ${e.join(", ")}. Use extend() si desea sobrescribir.`};export{e as es};
|
package/dist/locales/fi.d.ts
CHANGED
package/dist/locales/fi.js
CHANGED
|
@@ -1,107 +1 @@
|
|
|
1
|
-
const
|
|
2
|
-
// String validation messages
|
|
3
|
-
invalidString: 'Virheellinen merkkijono',
|
|
4
|
-
stringMin: (min) => `Merkkijonon tulee olla vähintään ${min} merkkiä pitkä`,
|
|
5
|
-
stringMax: (max) => `Merkkijono saa olla enintään ${max} merkkiä pitkä`,
|
|
6
|
-
stringLength: (length) => `Merkkijonon tulee olla täsmälleen ${length} merkkiä pitkä`,
|
|
7
|
-
stringEmail: 'Virheellinen sähköpostiosoite',
|
|
8
|
-
stringUrl: 'Virheellinen URL',
|
|
9
|
-
stringUuid: 'Virheellinen UUID',
|
|
10
|
-
stringRegex: 'Virheellinen muoto',
|
|
11
|
-
stringStartsWith: (prefix) => `Merkkijonon tulee alkaa merkeillä "${prefix}"`,
|
|
12
|
-
stringEndsWith: (suffix) => `Merkkijonon tulee päättyä merkkeihin "${suffix}"`,
|
|
13
|
-
stringIncludes: (substring) => `Merkkijonon tulee sisältää "${substring}"`,
|
|
14
|
-
stringIp: 'Virheellinen IP-osoite',
|
|
15
|
-
stringIpv4: 'Virheellinen IPv4-osoite',
|
|
16
|
-
stringIpv6: 'Virheellinen IPv6-osoite',
|
|
17
|
-
stringEmpty: 'Merkkijono ei saa olla tyhjä',
|
|
18
|
-
// Number validation messages
|
|
19
|
-
invalidNumber: 'Virheellinen luku',
|
|
20
|
-
numberMin: (min) => `Luvun tulee olla vähintään ${min}`,
|
|
21
|
-
numberMax: (max) => `Luku saa olla enintään ${max}`,
|
|
22
|
-
numberInt: 'Luvun tulee olla kokonaisluku',
|
|
23
|
-
numberPositive: 'Luvun tulee olla positiivinen',
|
|
24
|
-
numberNegative: 'Luvun tulee olla negatiivinen',
|
|
25
|
-
numberNonnegative: 'Luku ei saa olla negatiivinen',
|
|
26
|
-
numberNonpositive: 'Luku ei saa olla positiivinen',
|
|
27
|
-
numberFinite: 'Luvun tulee olla äärellinen',
|
|
28
|
-
numberSafe: 'Luvun tulee olla turvallinen kokonaisluku',
|
|
29
|
-
numberMultipleOf: (value) => `Luvun tulee olla ${value}:n kerrannainen`,
|
|
30
|
-
// Boolean validation messages
|
|
31
|
-
invalidBoolean: 'Virheellinen totuusarvo',
|
|
32
|
-
// Date validation messages
|
|
33
|
-
invalidDate: 'Virheellinen päivämäärä',
|
|
34
|
-
dateMin: (date) => `Päivämäärän tulee olla ${date.toISOString()} jälkeen`,
|
|
35
|
-
dateMax: (date) => `Päivämäärän tulee olla ennen ${date.toISOString()}`,
|
|
36
|
-
// Object validation messages
|
|
37
|
-
invalidObject: 'Virheellinen objekti',
|
|
38
|
-
unexpectedKeys: (keys) => `Odottamattomat avaimet: ${keys.join(', ')}`,
|
|
39
|
-
// Array validation messages
|
|
40
|
-
invalidArray: 'Virheellinen taulukko',
|
|
41
|
-
arrayMin: (min) => `Taulukossa tulee olla vähintään ${min} alkiota`,
|
|
42
|
-
arrayMax: (max) => `Taulukossa saa olla enintään ${max} alkiota`,
|
|
43
|
-
arrayLength: (length) => `Taulukossa tulee olla täsmälleen ${length} alkiota`,
|
|
44
|
-
arrayEmpty: 'Taulukko ei saa olla tyhjä',
|
|
45
|
-
arrayItem: (index, error) => `Virheellinen alkio indeksissä ${index}: ${error}`,
|
|
46
|
-
// Object field validation
|
|
47
|
-
objectField: (field, error) => `Virheellinen kenttä "${field}": ${error}`,
|
|
48
|
-
// Union validation messages
|
|
49
|
-
unionNoMatch: (errors) => `Mikään union-jäsen ei täsmännyt: ${errors.join(', ')}`,
|
|
50
|
-
// Intersection validation messages
|
|
51
|
-
intersectionError: (error) => `Intersection validointi epäonnistui: ${error}`,
|
|
52
|
-
// Literal validation messages
|
|
53
|
-
literalExpected: (expected, received) => `Odotettiin ${expected}, saatiin ${received}`,
|
|
54
|
-
// Enum validation messages
|
|
55
|
-
enumExpected: (values, received) => `Odotettiin yhtä arvoista [${values.join(', ')}], saatiin ${received}`,
|
|
56
|
-
// Special type validation messages
|
|
57
|
-
expectedUndefined: 'Odotettiin undefined',
|
|
58
|
-
neverType: 'Never-tyyppiä ei voida jäsentää',
|
|
59
|
-
// New advanced type validation messages
|
|
60
|
-
invalidBigint: 'Virheellinen bigint',
|
|
61
|
-
invalidSymbol: 'Virheellinen symboli',
|
|
62
|
-
invalidTuple: 'Virheellinen monikko',
|
|
63
|
-
tupleLength: (expected, received) => `Monikossa tulee olla täsmälleen ${expected} alkiota, saatiin ${received}`,
|
|
64
|
-
invalidRecord: 'Virheellinen tietue',
|
|
65
|
-
invalidSet: 'Virheellinen Set',
|
|
66
|
-
invalidMap: 'Virheellinen Map',
|
|
67
|
-
// Transformation and refinement messages
|
|
68
|
-
transformError: (error) => `Muunnos epäonnistui: ${error}`,
|
|
69
|
-
refinementError: (error) => `Hiominen epäonnistui: ${error}`,
|
|
70
|
-
customValidationError: (error) => `Mukautettu validointi epäonnistui: ${error}`,
|
|
71
|
-
// Coercion messages
|
|
72
|
-
coercionFailed: (type, value) => `Arvoa ${JSON.stringify(value)} ei voida pakottaa tyyppiin ${type}`,
|
|
73
|
-
// Codec messages
|
|
74
|
-
codecDecodeFailed: 'Failed to decode value',
|
|
75
|
-
codecEncodeFailed: 'Failed to encode value',
|
|
76
|
-
codecAsyncNotSupported: 'Async codec operations require using parseAsync/encodeAsync methods',
|
|
77
|
-
// Base64/Hex messages
|
|
78
|
-
invalidBase64: 'Invalid base64 string',
|
|
79
|
-
invalidHex: 'Invalid hexadecimal string',
|
|
80
|
-
// Uint8Array messages
|
|
81
|
-
expectedUint8Array: 'Expected Uint8Array',
|
|
82
|
-
uint8ArrayMinLength: (min) => `Uint8Array must have at least ${min} bytes`,
|
|
83
|
-
uint8ArrayMaxLength: (max) => `Uint8Array must have at most ${max} bytes`,
|
|
84
|
-
uint8ArrayExactLength: (length) => `Uint8Array must have exactly ${length} bytes`,
|
|
85
|
-
// Generic type error messages
|
|
86
|
-
expectedString: 'Expected string',
|
|
87
|
-
stringExpected: (received, expected) => `Odotettiin ${expected}, saatiin ${received}`,
|
|
88
|
-
stringBoolExpected: (validValues, received) => `Virheellinen boolean-merkkijono. Yksi seuraavista odotettu: ${validValues}, saatiin: "${received}"`,
|
|
89
|
-
invalidJson: 'Virheellinen JSON',
|
|
90
|
-
stringPatternInvalid: 'Merkkijono ei vastaa vaadittua kuviota',
|
|
91
|
-
// File validation messages
|
|
92
|
-
invalidFile: 'Expected a File object',
|
|
93
|
-
fileNotSupported: 'File API not supported in this environment',
|
|
94
|
-
fileMinSize: (min) => `File size must be at least ${min} bytes`,
|
|
95
|
-
fileMaxSize: (max) => `File size must not exceed ${max} bytes`,
|
|
96
|
-
fileMimeType: (allowed) => `Invalid file type. Expected: ${allowed.join(", ")}`,
|
|
97
|
-
// Function validation messages
|
|
98
|
-
invalidFunction: 'Funktiota odotetaan',
|
|
99
|
-
// CIDR validation messages
|
|
100
|
-
stringCidrv4: 'Virheellinen IPv4 CIDR-lohko',
|
|
101
|
-
stringCidrv6: 'Virheellinen IPv6 CIDR-lohko',
|
|
102
|
-
// Safe extend validation messages
|
|
103
|
-
safeExtendOverlap: (keys) => `Olemassa olevia avaimia ei voi ylikirjoittaa: ${keys.join(', ')}. Käytä extend() ylikirjoittamiseen.`
|
|
104
|
-
};
|
|
105
|
-
|
|
106
|
-
export { fi };
|
|
107
|
-
//# sourceMappingURL=fi.js.map
|
|
1
|
+
const e={invalidString:"Virheellinen merkkijono",stringMin:e=>`Merkkijonon tulee olla vähintään ${e} merkkiä pitkä`,stringMax:e=>`Merkkijono saa olla enintään ${e} merkkiä pitkä`,stringLength:e=>`Merkkijonon tulee olla täsmälleen ${e} merkkiä pitkä`,stringEmail:"Virheellinen sähköpostiosoite",stringUrl:"Virheellinen URL",stringUuid:"Virheellinen UUID",stringRegex:"Virheellinen muoto",stringStartsWith:e=>`Merkkijonon tulee alkaa merkeillä "${e}"`,stringEndsWith:e=>`Merkkijonon tulee päättyä merkkeihin "${e}"`,stringIncludes:e=>`Merkkijonon tulee sisältää "${e}"`,stringIp:"Virheellinen IP-osoite",stringIpv4:"Virheellinen IPv4-osoite",stringIpv6:"Virheellinen IPv6-osoite",stringEmpty:"Merkkijono ei saa olla tyhjä",invalidNumber:"Virheellinen luku",numberMin:e=>`Luvun tulee olla vähintään ${e}`,numberMax:e=>`Luku saa olla enintään ${e}`,numberInt:"Luvun tulee olla kokonaisluku",numberPositive:"Luvun tulee olla positiivinen",numberNegative:"Luvun tulee olla negatiivinen",numberNonnegative:"Luku ei saa olla negatiivinen",numberNonpositive:"Luku ei saa olla positiivinen",numberFinite:"Luvun tulee olla äärellinen",numberSafe:"Luvun tulee olla turvallinen kokonaisluku",numberMultipleOf:e=>`Luvun tulee olla ${e}:n kerrannainen`,invalidBoolean:"Virheellinen totuusarvo",invalidDate:"Virheellinen päivämäärä",dateMin:e=>`Päivämäärän tulee olla ${e.toISOString()} jälkeen`,dateMax:e=>`Päivämäärän tulee olla ennen ${e.toISOString()}`,invalidObject:"Virheellinen objekti",unexpectedKeys:e=>`Odottamattomat avaimet: ${e.join(", ")}`,invalidArray:"Virheellinen taulukko",arrayMin:e=>`Taulukossa tulee olla vähintään ${e} alkiota`,arrayMax:e=>`Taulukossa saa olla enintään ${e} alkiota`,arrayLength:e=>`Taulukossa tulee olla täsmälleen ${e} alkiota`,arrayEmpty:"Taulukko ei saa olla tyhjä",arrayItem:(e,i)=>`Virheellinen alkio indeksissä ${e}: ${i}`,objectField:(e,i)=>`Virheellinen kenttä "${e}": ${i}`,unionNoMatch:e=>`Mikään union-jäsen ei täsmännyt: ${e.join(", ")}`,intersectionError:e=>`Intersection validointi epäonnistui: ${e}`,literalExpected:(e,i)=>`Odotettiin ${e}, saatiin ${i}`,enumExpected:(e,i)=>`Odotettiin yhtä arvoista [${e.join(", ")}], saatiin ${i}`,expectedUndefined:"Odotettiin undefined",neverType:"Never-tyyppiä ei voida jäsentää",invalidBigint:"Virheellinen bigint",invalidSymbol:"Virheellinen symboli",invalidTuple:"Virheellinen monikko",tupleLength:(e,i)=>`Monikossa tulee olla täsmälleen ${e} alkiota, saatiin ${i}`,invalidRecord:"Virheellinen tietue",invalidSet:"Virheellinen Set",invalidMap:"Virheellinen Map",transformError:e=>`Muunnos epäonnistui: ${e}`,refinementError:e=>`Hiominen epäonnistui: ${e}`,customValidationError:e=>`Mukautettu validointi epäonnistui: ${e}`,coercionFailed:(e,i)=>`Arvoa ${JSON.stringify(i)} ei voida pakottaa tyyppiin ${e}`,codecDecodeFailed:"Failed to decode value",codecEncodeFailed:"Failed to encode value",codecAsyncNotSupported:"Async codec operations require using parseAsync/encodeAsync methods",invalidBase64:"Invalid base64 string",invalidHex:"Invalid hexadecimal string",expectedUint8Array:"Expected Uint8Array",uint8ArrayMinLength:e=>`Uint8Array must have at least ${e} bytes`,uint8ArrayMaxLength:e=>`Uint8Array must have at most ${e} bytes`,uint8ArrayExactLength:e=>`Uint8Array must have exactly ${e} bytes`,expectedString:"Expected string",stringExpected:(e,i)=>`Odotettiin ${i}, saatiin ${e}`,stringBoolExpected:(e,i)=>`Virheellinen boolean-merkkijono. Yksi seuraavista odotettu: ${e}, saatiin: "${i}"`,invalidJson:"Virheellinen JSON",stringPatternInvalid:"Merkkijono ei vastaa vaadittua kuviota",invalidFile:"Expected a File object",fileNotSupported:"File API not supported in this environment",fileMinSize:e=>`File size must be at least ${e} bytes`,fileMaxSize:e=>`File size must not exceed ${e} bytes`,fileMimeType:e=>`Invalid file type. Expected: ${e.join(", ")}`,invalidFunction:"Funktiota odotetaan",stringCidrv4:"Virheellinen IPv4 CIDR-lohko",stringCidrv6:"Virheellinen IPv6 CIDR-lohko",safeExtendOverlap:e=>`Olemassa olevia avaimia ei voi ylikirjoittaa: ${e.join(", ")}. Käytä extend() ylikirjoittamiseen.`};export{e as fi};
|
package/dist/locales/fr.d.ts
CHANGED
package/dist/locales/fr.js
CHANGED
|
@@ -1,95 +1 @@
|
|
|
1
|
-
const
|
|
2
|
-
invalidString: 'Chaîne invalide',
|
|
3
|
-
stringMin: (min) => `La chaîne doit contenir au moins ${min} caractères`,
|
|
4
|
-
stringMax: (max) => `La chaîne doit contenir au maximum ${max} caractères`,
|
|
5
|
-
stringLength: (length) => `La chaîne doit contenir exactement ${length} caractères`,
|
|
6
|
-
stringEmail: 'Adresse e-mail invalide',
|
|
7
|
-
stringUrl: 'URL invalide',
|
|
8
|
-
stringUuid: 'UUID invalide',
|
|
9
|
-
stringRegex: 'Format invalide',
|
|
10
|
-
stringStartsWith: (prefix) => `La chaîne doit commencer par "${prefix}"`,
|
|
11
|
-
stringEndsWith: (suffix) => `La chaîne doit se terminer par "${suffix}"`,
|
|
12
|
-
stringIncludes: (substring) => `La chaîne doit contenir "${substring}"`,
|
|
13
|
-
stringIp: 'Adresse IP invalide',
|
|
14
|
-
stringIpv4: 'Adresse IPv4 invalide',
|
|
15
|
-
stringIpv6: 'Adresse IPv6 invalide',
|
|
16
|
-
stringEmpty: 'La chaîne ne doit pas être vide',
|
|
17
|
-
invalidNumber: 'Nombre invalide',
|
|
18
|
-
numberMin: (min) => `Le nombre doit être d'au moins ${min}`,
|
|
19
|
-
numberMax: (max) => `Le nombre doit être d'au maximum ${max}`,
|
|
20
|
-
numberInt: 'Le nombre doit être un entier',
|
|
21
|
-
numberPositive: 'Le nombre doit être positif',
|
|
22
|
-
numberNegative: 'Le nombre doit être négatif',
|
|
23
|
-
numberNonnegative: 'Le nombre ne doit pas être négatif',
|
|
24
|
-
numberNonpositive: 'Le nombre ne doit pas être positif',
|
|
25
|
-
numberFinite: 'Le nombre doit être fini',
|
|
26
|
-
numberSafe: 'Le nombre doit être un entier sûr',
|
|
27
|
-
numberMultipleOf: (value) => `Le nombre doit être un multiple de ${value}`,
|
|
28
|
-
invalidBoolean: 'Boolean invalide',
|
|
29
|
-
invalidDate: 'Date invalide',
|
|
30
|
-
dateMin: (date) => `La date doit être postérieure à ${date.toISOString()}`,
|
|
31
|
-
dateMax: (date) => `La date doit être antérieure à ${date.toISOString()}`,
|
|
32
|
-
invalidObject: 'Objet invalide',
|
|
33
|
-
unexpectedKeys: (keys) => `Clés inattendues: ${keys.join(', ')}`,
|
|
34
|
-
invalidArray: 'Tableau invalide',
|
|
35
|
-
arrayMin: (min) => `Le tableau doit contenir au moins ${min} éléments`,
|
|
36
|
-
arrayMax: (max) => `Le tableau doit contenir au maximum ${max} éléments`,
|
|
37
|
-
arrayLength: (length) => `Le tableau doit contenir exactement ${length} éléments`,
|
|
38
|
-
arrayEmpty: 'Le tableau ne doit pas être vide',
|
|
39
|
-
arrayItem: (index, error) => `Élément invalide à l'index ${index}: ${error}`,
|
|
40
|
-
objectField: (field, error) => `Champ invalide "${field}": ${error}`,
|
|
41
|
-
unionNoMatch: (errors) => `Aucun membre de l'union n'a correspondu: ${errors.join(', ')}`,
|
|
42
|
-
intersectionError: (error) => `Échec de validation d'intersection: ${error}`,
|
|
43
|
-
literalExpected: (expected, received) => `Attendu ${expected}, reçu ${received}`,
|
|
44
|
-
enumExpected: (values, received) => `Attendu un de [${values.join(', ')}], reçu ${received}`,
|
|
45
|
-
expectedUndefined: 'Undefined attendu',
|
|
46
|
-
neverType: 'Le type never ne peut pas être analysé',
|
|
47
|
-
// New advanced type validation messages
|
|
48
|
-
invalidBigint: 'Bigint invalide',
|
|
49
|
-
invalidSymbol: 'Symbole invalide',
|
|
50
|
-
invalidTuple: 'Tuple invalide',
|
|
51
|
-
tupleLength: (expected, received) => `Le tuple doit contenir exactement ${expected} éléments, ${received} reçus`,
|
|
52
|
-
invalidRecord: 'Enregistrement invalide',
|
|
53
|
-
invalidSet: 'Set invalide',
|
|
54
|
-
invalidMap: 'Map invalide',
|
|
55
|
-
// Transformation and refinement messages
|
|
56
|
-
transformError: (error) => `Transformation échouée : ${error}`,
|
|
57
|
-
refinementError: (error) => `Raffinement échoué : ${error}`,
|
|
58
|
-
customValidationError: (error) => `Validation personnalisée échouée : ${error}`,
|
|
59
|
-
// Coercion messages
|
|
60
|
-
coercionFailed: (type, value) => `Impossible de convertir ${JSON.stringify(value)} en ${type}`,
|
|
61
|
-
// Codec messages
|
|
62
|
-
codecDecodeFailed: 'Failed to decode value',
|
|
63
|
-
codecEncodeFailed: 'Failed to encode value',
|
|
64
|
-
codecAsyncNotSupported: 'Async codec operations require using parseAsync/encodeAsync methods',
|
|
65
|
-
// Base64/Hex messages
|
|
66
|
-
invalidBase64: 'Invalid base64 string',
|
|
67
|
-
invalidHex: 'Invalid hexadecimal string',
|
|
68
|
-
// Uint8Array messages
|
|
69
|
-
expectedUint8Array: 'Expected Uint8Array',
|
|
70
|
-
uint8ArrayMinLength: (min) => `Uint8Array must have at least ${min} bytes`,
|
|
71
|
-
uint8ArrayMaxLength: (max) => `Uint8Array must have at most ${max} bytes`,
|
|
72
|
-
uint8ArrayExactLength: (length) => `Uint8Array must have exactly ${length} bytes`,
|
|
73
|
-
// Generic type error messages
|
|
74
|
-
expectedString: 'Expected string',
|
|
75
|
-
stringExpected: (received, expected) => `Attendu: ${expected}, reçu: ${received}`,
|
|
76
|
-
stringBoolExpected: (validValues, received) => `Chaîne booléenne invalide. Attendu: l'un de ${validValues}, reçu: "${received}"`,
|
|
77
|
-
invalidJson: 'JSON invalide',
|
|
78
|
-
stringPatternInvalid: 'La chaîne ne correspond pas au modèle requis',
|
|
79
|
-
// File validation messages
|
|
80
|
-
invalidFile: 'Expected a File object',
|
|
81
|
-
fileNotSupported: 'File API not supported in this environment',
|
|
82
|
-
fileMinSize: (min) => `File size must be at least ${min} bytes`,
|
|
83
|
-
fileMaxSize: (max) => `File size must not exceed ${max} bytes`,
|
|
84
|
-
fileMimeType: (allowed) => `Invalid file type. Expected: ${allowed.join(", ")}`,
|
|
85
|
-
// Function validation messages
|
|
86
|
-
invalidFunction: 'Une fonction est attendue',
|
|
87
|
-
// CIDR validation messages
|
|
88
|
-
stringCidrv4: 'Bloc CIDR IPv4 invalide',
|
|
89
|
-
stringCidrv6: 'Bloc CIDR IPv6 invalide',
|
|
90
|
-
// Safe extend validation messages
|
|
91
|
-
safeExtendOverlap: (keys) => `Impossible de remplacer les clés existantes: ${keys.join(', ')}. Utilisez extend() pour remplacer.`
|
|
92
|
-
};
|
|
93
|
-
|
|
94
|
-
export { fr };
|
|
95
|
-
//# sourceMappingURL=fr.js.map
|
|
1
|
+
const e={invalidString:"Chaîne invalide",stringMin:e=>`La chaîne doit contenir au moins ${e} caractères`,stringMax:e=>`La chaîne doit contenir au maximum ${e} caractères`,stringLength:e=>`La chaîne doit contenir exactement ${e} caractères`,stringEmail:"Adresse e-mail invalide",stringUrl:"URL invalide",stringUuid:"UUID invalide",stringRegex:"Format invalide",stringStartsWith:e=>`La chaîne doit commencer par "${e}"`,stringEndsWith:e=>`La chaîne doit se terminer par "${e}"`,stringIncludes:e=>`La chaîne doit contenir "${e}"`,stringIp:"Adresse IP invalide",stringIpv4:"Adresse IPv4 invalide",stringIpv6:"Adresse IPv6 invalide",stringEmpty:"La chaîne ne doit pas être vide",invalidNumber:"Nombre invalide",numberMin:e=>`Le nombre doit être d'au moins ${e}`,numberMax:e=>`Le nombre doit être d'au maximum ${e}`,numberInt:"Le nombre doit être un entier",numberPositive:"Le nombre doit être positif",numberNegative:"Le nombre doit être négatif",numberNonnegative:"Le nombre ne doit pas être négatif",numberNonpositive:"Le nombre ne doit pas être positif",numberFinite:"Le nombre doit être fini",numberSafe:"Le nombre doit être un entier sûr",numberMultipleOf:e=>`Le nombre doit être un multiple de ${e}`,invalidBoolean:"Boolean invalide",invalidDate:"Date invalide",dateMin:e=>`La date doit être postérieure à ${e.toISOString()}`,dateMax:e=>`La date doit être antérieure à ${e.toISOString()}`,invalidObject:"Objet invalide",unexpectedKeys:e=>`Clés inattendues: ${e.join(", ")}`,invalidArray:"Tableau invalide",arrayMin:e=>`Le tableau doit contenir au moins ${e} éléments`,arrayMax:e=>`Le tableau doit contenir au maximum ${e} éléments`,arrayLength:e=>`Le tableau doit contenir exactement ${e} éléments`,arrayEmpty:"Le tableau ne doit pas être vide",arrayItem:(e,i)=>`Élément invalide à l'index ${e}: ${i}`,objectField:(e,i)=>`Champ invalide "${e}": ${i}`,unionNoMatch:e=>`Aucun membre de l'union n'a correspondu: ${e.join(", ")}`,intersectionError:e=>`Échec de validation d'intersection: ${e}`,literalExpected:(e,i)=>`Attendu ${e}, reçu ${i}`,enumExpected:(e,i)=>`Attendu un de [${e.join(", ")}], reçu ${i}`,expectedUndefined:"Undefined attendu",neverType:"Le type never ne peut pas être analysé",invalidBigint:"Bigint invalide",invalidSymbol:"Symbole invalide",invalidTuple:"Tuple invalide",tupleLength:(e,i)=>`Le tuple doit contenir exactement ${e} éléments, ${i} reçus`,invalidRecord:"Enregistrement invalide",invalidSet:"Set invalide",invalidMap:"Map invalide",transformError:e=>`Transformation échouée : ${e}`,refinementError:e=>`Raffinement échoué : ${e}`,customValidationError:e=>`Validation personnalisée échouée : ${e}`,coercionFailed:(e,i)=>`Impossible de convertir ${JSON.stringify(i)} en ${e}`,codecDecodeFailed:"Failed to decode value",codecEncodeFailed:"Failed to encode value",codecAsyncNotSupported:"Async codec operations require using parseAsync/encodeAsync methods",invalidBase64:"Invalid base64 string",invalidHex:"Invalid hexadecimal string",expectedUint8Array:"Expected Uint8Array",uint8ArrayMinLength:e=>`Uint8Array must have at least ${e} bytes`,uint8ArrayMaxLength:e=>`Uint8Array must have at most ${e} bytes`,uint8ArrayExactLength:e=>`Uint8Array must have exactly ${e} bytes`,expectedString:"Expected string",stringExpected:(e,i)=>`Attendu: ${i}, reçu: ${e}`,stringBoolExpected:(e,i)=>`Chaîne booléenne invalide. Attendu: l'un de ${e}, reçu: "${i}"`,invalidJson:"JSON invalide",stringPatternInvalid:"La chaîne ne correspond pas au modèle requis",invalidFile:"Expected a File object",fileNotSupported:"File API not supported in this environment",fileMinSize:e=>`File size must be at least ${e} bytes`,fileMaxSize:e=>`File size must not exceed ${e} bytes`,fileMimeType:e=>`Invalid file type. Expected: ${e.join(", ")}`,invalidFunction:"Une fonction est attendue",stringCidrv4:"Bloc CIDR IPv4 invalide",stringCidrv6:"Bloc CIDR IPv6 invalide",safeExtendOverlap:e=>`Impossible de remplacer les clés existantes: ${e.join(", ")}. Utilisez extend() pour remplacer.`};export{e as fr};
|
package/dist/locales/hi.d.ts
CHANGED
package/dist/locales/hi.js
CHANGED
|
@@ -1,107 +1 @@
|
|
|
1
|
-
const
|
|
2
|
-
// String validation messages
|
|
3
|
-
invalidString: 'अमान्य स्ट्रिंग',
|
|
4
|
-
stringMin: (min) => `स्ट्रिंग में कम से कम ${min} अक्षर होने चाहिए`,
|
|
5
|
-
stringMax: (max) => `स्ट्रिंग में ${max} से अधिक अक्षर नहीं हो सकते`,
|
|
6
|
-
stringLength: (length) => `स्ट्रिंग में ठीक ${length} अक्षर होने चाहिए`,
|
|
7
|
-
stringEmail: 'अमान्य ईमेल पता',
|
|
8
|
-
stringUrl: 'अमान्य URL',
|
|
9
|
-
stringUuid: 'अमान्य UUID',
|
|
10
|
-
stringRegex: 'अमान्य प्रारूप',
|
|
11
|
-
stringStartsWith: (prefix) => `स्ट्रिंग "${prefix}" से शुरू होनी चाहिए`,
|
|
12
|
-
stringEndsWith: (suffix) => `स्ट्रिंग "${suffix}" से समाप्त होनी चाहिए`,
|
|
13
|
-
stringIncludes: (substring) => `स्ट्रिंग में "${substring}" होना चाहिए`,
|
|
14
|
-
stringIp: 'अमान्य IP पता',
|
|
15
|
-
stringIpv4: 'अमान्य IPv4 पता',
|
|
16
|
-
stringIpv6: 'अमान्य IPv6 पता',
|
|
17
|
-
stringEmpty: 'स्ट्रिंग खाली नहीं हो सकती',
|
|
18
|
-
// Number validation messages
|
|
19
|
-
invalidNumber: 'अमान्य संख्या',
|
|
20
|
-
numberMin: (min) => `संख्या कम से कम ${min} होनी चाहिए`,
|
|
21
|
-
numberMax: (max) => `संख्या ${max} से अधिक नहीं हो सकती`,
|
|
22
|
-
numberInt: 'संख्या पूर्णांक होनी चाहिए',
|
|
23
|
-
numberPositive: 'संख्या सकारात्मक होनी चाहिए',
|
|
24
|
-
numberNegative: 'संख्या नकारात्मक होनी चाहिए',
|
|
25
|
-
numberNonnegative: 'संख्या नकारात्मक नहीं हो सकती',
|
|
26
|
-
numberNonpositive: 'संख्या सकारात्मक नहीं हो सकती',
|
|
27
|
-
numberFinite: 'संख्या परिमित होनी चाहिए',
|
|
28
|
-
numberSafe: 'संख्या सुरक्षित पूर्णांक होनी चाहिए',
|
|
29
|
-
numberMultipleOf: (value) => `संख्या ${value} का गुणज होनी चाहिए`,
|
|
30
|
-
// Boolean validation messages
|
|
31
|
-
invalidBoolean: 'अमान्य बूलियन मान',
|
|
32
|
-
// Date validation messages
|
|
33
|
-
invalidDate: 'अमान्य तिथि',
|
|
34
|
-
dateMin: (date) => `तिथि ${date.toISOString()} के बाद होनी चाहिए`,
|
|
35
|
-
dateMax: (date) => `तिथि ${date.toISOString()} से पहले होनी चाहिए`,
|
|
36
|
-
// Object validation messages
|
|
37
|
-
invalidObject: 'अमान्य ऑब्जेक्ट',
|
|
38
|
-
unexpectedKeys: (keys) => `अनपेक्षित कुंजियां: ${keys.join(', ')}`,
|
|
39
|
-
// Array validation messages
|
|
40
|
-
invalidArray: 'अमान्य सरणी',
|
|
41
|
-
arrayMin: (min) => `सरणी में कम से कम ${min} तत्व होने चाहिए`,
|
|
42
|
-
arrayMax: (max) => `सरणी में ${max} से अधिक तत्व नहीं हो सकते`,
|
|
43
|
-
arrayLength: (length) => `सरणी में ठीक ${length} तत्व होने चाहिए`,
|
|
44
|
-
arrayEmpty: 'सरणी खाली नहीं हो सकती',
|
|
45
|
-
arrayItem: (index, error) => `सूचकांक ${index} पर अमान्य तत्व: ${error}`,
|
|
46
|
-
// Object field validation
|
|
47
|
-
objectField: (field, error) => `अमान्य फ़ील्ड "${field}": ${error}`,
|
|
48
|
-
// Union validation messages
|
|
49
|
-
unionNoMatch: (errors) => `कोई यूनियन सदस्य मेल नहीं खाया: ${errors.join(', ')}`,
|
|
50
|
-
// Intersection validation messages
|
|
51
|
-
intersectionError: (error) => `प्रतिच्छेदन सत्यापन विफल: ${error}`,
|
|
52
|
-
// Literal validation messages
|
|
53
|
-
literalExpected: (expected, received) => `अपेक्षित ${expected}, प्राप्त ${received}`,
|
|
54
|
-
// Enum validation messages
|
|
55
|
-
enumExpected: (values, received) => `[${values.join(', ')}] में से एक अपेक्षित, प्राप्त ${received}`,
|
|
56
|
-
// Special type validation messages
|
|
57
|
-
expectedUndefined: 'undefined अपेक्षित',
|
|
58
|
-
neverType: 'never प्रकार का विश्लेषण नहीं किया जा सकता',
|
|
59
|
-
// New advanced type validation messages
|
|
60
|
-
invalidBigint: 'अमान्य bigint',
|
|
61
|
-
invalidSymbol: 'अमान्य प्रतीक',
|
|
62
|
-
invalidTuple: 'अमान्य ट्यूपल',
|
|
63
|
-
tupleLength: (expected, received) => `ट्यूपल में ठीक ${expected} तत्व होने चाहिए, ${received} प्राप्त हुए`,
|
|
64
|
-
invalidRecord: 'अमान्य रिकॉर्ड',
|
|
65
|
-
invalidSet: 'अमान्य Set',
|
|
66
|
-
invalidMap: 'अमान्य Map',
|
|
67
|
-
// Transformation and refinement messages
|
|
68
|
-
transformError: (error) => `रूपांतरण विफल: ${error}`,
|
|
69
|
-
refinementError: (error) => `शुद्धीकरण विफल: ${error}`,
|
|
70
|
-
customValidationError: (error) => `कस्टम सत्यापन विफल: ${error}`,
|
|
71
|
-
// Coercion messages
|
|
72
|
-
coercionFailed: (type, value) => `${JSON.stringify(value)} को ${type} में परिवर्तित नहीं किया जा सकता`,
|
|
73
|
-
// Codec messages
|
|
74
|
-
codecDecodeFailed: 'Failed to decode value',
|
|
75
|
-
codecEncodeFailed: 'Failed to encode value',
|
|
76
|
-
codecAsyncNotSupported: 'Async codec operations require using parseAsync/encodeAsync methods',
|
|
77
|
-
// Base64/Hex messages
|
|
78
|
-
invalidBase64: 'Invalid base64 string',
|
|
79
|
-
invalidHex: 'Invalid hexadecimal string',
|
|
80
|
-
// Uint8Array messages
|
|
81
|
-
expectedUint8Array: 'Expected Uint8Array',
|
|
82
|
-
uint8ArrayMinLength: (min) => `Uint8Array must have at least ${min} bytes`,
|
|
83
|
-
uint8ArrayMaxLength: (max) => `Uint8Array must have at most ${max} bytes`,
|
|
84
|
-
uint8ArrayExactLength: (length) => `Uint8Array must have exactly ${length} bytes`,
|
|
85
|
-
// Generic type error messages
|
|
86
|
-
expectedString: 'Expected string',
|
|
87
|
-
stringExpected: (received, expected) => `अपेक्षित ${expected}, प्राप्त ${received}`,
|
|
88
|
-
stringBoolExpected: (validValues, received) => `अमान्य बूलियन स्ट्रिंग। निम्नलिखित में से एक अपेक्षित: ${validValues}, प्राप्त: "${received}"`,
|
|
89
|
-
invalidJson: 'अमान्य JSON',
|
|
90
|
-
stringPatternInvalid: 'स्ट्रिंग आवश्यक पैटर्न से मेल नहीं खाती',
|
|
91
|
-
// File validation messages
|
|
92
|
-
invalidFile: 'Expected a File object',
|
|
93
|
-
fileNotSupported: 'File API not supported in this environment',
|
|
94
|
-
fileMinSize: (min) => `File size must be at least ${min} bytes`,
|
|
95
|
-
fileMaxSize: (max) => `File size must not exceed ${max} bytes`,
|
|
96
|
-
fileMimeType: (allowed) => `Invalid file type. Expected: ${allowed.join(", ")}`,
|
|
97
|
-
// Function validation messages
|
|
98
|
-
invalidFunction: 'एक फ़ंक्शन अपेक्षित है',
|
|
99
|
-
// CIDR validation messages
|
|
100
|
-
stringCidrv4: 'अमान्य IPv4 CIDR ब्लॉक',
|
|
101
|
-
stringCidrv6: 'अमान्य IPv6 CIDR ब्लॉक',
|
|
102
|
-
// Safe extend validation messages
|
|
103
|
-
safeExtendOverlap: (keys) => `मौजूदा कुंजियों को ओवरराइड नहीं कर सकते: ${keys.join(', ')}। ओवरराइड करने के लिए extend() का उपयोग करें।`
|
|
104
|
-
};
|
|
105
|
-
|
|
106
|
-
export { hi };
|
|
107
|
-
//# sourceMappingURL=hi.js.map
|
|
1
|
+
const e={invalidString:"अमान्य स्ट्रिंग",stringMin:e=>`स्ट्रिंग में कम से कम ${e} अक्षर होने चाहिए`,stringMax:e=>`स्ट्रिंग में ${e} से अधिक अक्षर नहीं हो सकते`,stringLength:e=>`स्ट्रिंग में ठीक ${e} अक्षर होने चाहिए`,stringEmail:"अमान्य ईमेल पता",stringUrl:"अमान्य URL",stringUuid:"अमान्य UUID",stringRegex:"अमान्य प्रारूप",stringStartsWith:e=>`स्ट्रिंग "${e}" से शुरू होनी चाहिए`,stringEndsWith:e=>`स्ट्रिंग "${e}" से समाप्त होनी चाहिए`,stringIncludes:e=>`स्ट्रिंग में "${e}" होना चाहिए`,stringIp:"अमान्य IP पता",stringIpv4:"अमान्य IPv4 पता",stringIpv6:"अमान्य IPv6 पता",stringEmpty:"स्ट्रिंग खाली नहीं हो सकती",invalidNumber:"अमान्य संख्या",numberMin:e=>`संख्या कम से कम ${e} होनी चाहिए`,numberMax:e=>`संख्या ${e} से अधिक नहीं हो सकती`,numberInt:"संख्या पूर्णांक होनी चाहिए",numberPositive:"संख्या सकारात्मक होनी चाहिए",numberNegative:"संख्या नकारात्मक होनी चाहिए",numberNonnegative:"संख्या नकारात्मक नहीं हो सकती",numberNonpositive:"संख्या सकारात्मक नहीं हो सकती",numberFinite:"संख्या परिमित होनी चाहिए",numberSafe:"संख्या सुरक्षित पूर्णांक होनी चाहिए",numberMultipleOf:e=>`संख्या ${e} का गुणज होनी चाहिए`,invalidBoolean:"अमान्य बूलियन मान",invalidDate:"अमान्य तिथि",dateMin:e=>`तिथि ${e.toISOString()} के बाद होनी चाहिए`,dateMax:e=>`तिथि ${e.toISOString()} से पहले होनी चाहिए`,invalidObject:"अमान्य ऑब्जेक्ट",unexpectedKeys:e=>`अनपेक्षित कुंजियां: ${e.join(", ")}`,invalidArray:"अमान्य सरणी",arrayMin:e=>`सरणी में कम से कम ${e} तत्व होने चाहिए`,arrayMax:e=>`सरणी में ${e} से अधिक तत्व नहीं हो सकते`,arrayLength:e=>`सरणी में ठीक ${e} तत्व होने चाहिए`,arrayEmpty:"सरणी खाली नहीं हो सकती",arrayItem:(e,i)=>`सूचकांक ${e} पर अमान्य तत्व: ${i}`,objectField:(e,i)=>`अमान्य फ़ील्ड "${e}": ${i}`,unionNoMatch:e=>`कोई यूनियन सदस्य मेल नहीं खाया: ${e.join(", ")}`,intersectionError:e=>`प्रतिच्छेदन सत्यापन विफल: ${e}`,literalExpected:(e,i)=>`अपेक्षित ${e}, प्राप्त ${i}`,enumExpected:(e,i)=>`[${e.join(", ")}] में से एक अपेक्षित, प्राप्त ${i}`,expectedUndefined:"undefined अपेक्षित",neverType:"never प्रकार का विश्लेषण नहीं किया जा सकता",invalidBigint:"अमान्य bigint",invalidSymbol:"अमान्य प्रतीक",invalidTuple:"अमान्य ट्यूपल",tupleLength:(e,i)=>`ट्यूपल में ठीक ${e} तत्व होने चाहिए, ${i} प्राप्त हुए`,invalidRecord:"अमान्य रिकॉर्ड",invalidSet:"अमान्य Set",invalidMap:"अमान्य Map",transformError:e=>`रूपांतरण विफल: ${e}`,refinementError:e=>`शुद्धीकरण विफल: ${e}`,customValidationError:e=>`कस्टम सत्यापन विफल: ${e}`,coercionFailed:(e,i)=>`${JSON.stringify(i)} को ${e} में परिवर्तित नहीं किया जा सकता`,codecDecodeFailed:"Failed to decode value",codecEncodeFailed:"Failed to encode value",codecAsyncNotSupported:"Async codec operations require using parseAsync/encodeAsync methods",invalidBase64:"Invalid base64 string",invalidHex:"Invalid hexadecimal string",expectedUint8Array:"Expected Uint8Array",uint8ArrayMinLength:e=>`Uint8Array must have at least ${e} bytes`,uint8ArrayMaxLength:e=>`Uint8Array must have at most ${e} bytes`,uint8ArrayExactLength:e=>`Uint8Array must have exactly ${e} bytes`,expectedString:"Expected string",stringExpected:(e,i)=>`अपेक्षित ${i}, प्राप्त ${e}`,stringBoolExpected:(e,i)=>`अमान्य बूलियन स्ट्रिंग। निम्नलिखित में से एक अपेक्षित: ${e}, प्राप्त: "${i}"`,invalidJson:"अमान्य JSON",stringPatternInvalid:"स्ट्रिंग आवश्यक पैटर्न से मेल नहीं खाती",invalidFile:"Expected a File object",fileNotSupported:"File API not supported in this environment",fileMinSize:e=>`File size must be at least ${e} bytes`,fileMaxSize:e=>`File size must not exceed ${e} bytes`,fileMimeType:e=>`Invalid file type. Expected: ${e.join(", ")}`,invalidFunction:"एक फ़ंक्शन अपेक्षित है",stringCidrv4:"अमान्य IPv4 CIDR ब्लॉक",stringCidrv6:"अमान्य IPv6 CIDR ब्लॉक",safeExtendOverlap:e=>`मौजूदा कुंजियों को ओवरराइड नहीं कर सकते: ${e.join(", ")}। ओवरराइड करने के लिए extend() का उपयोग करें।`};export{e as hi};
|
package/dist/locales/id.d.ts
CHANGED
package/dist/locales/id.js
CHANGED
|
@@ -1,107 +1 @@
|
|
|
1
|
-
const
|
|
2
|
-
// String validation messages
|
|
3
|
-
invalidString: 'String tidak valid',
|
|
4
|
-
stringMin: (min) => `String harus memiliki minimal ${min} karakter`,
|
|
5
|
-
stringMax: (max) => `String tidak boleh lebih dari ${max} karakter`,
|
|
6
|
-
stringLength: (length) => `String harus memiliki tepat ${length} karakter`,
|
|
7
|
-
stringEmail: 'Alamat email tidak valid',
|
|
8
|
-
stringUrl: 'URL tidak valid',
|
|
9
|
-
stringUuid: 'UUID tidak valid',
|
|
10
|
-
stringRegex: 'Format tidak valid',
|
|
11
|
-
stringStartsWith: (prefix) => `String harus diawali dengan "${prefix}"`,
|
|
12
|
-
stringEndsWith: (suffix) => `String harus diakhiri dengan "${suffix}"`,
|
|
13
|
-
stringIncludes: (substring) => `String harus mengandung "${substring}"`,
|
|
14
|
-
stringIp: 'Alamat IP tidak valid',
|
|
15
|
-
stringIpv4: 'Alamat IPv4 tidak valid',
|
|
16
|
-
stringIpv6: 'Alamat IPv6 tidak valid',
|
|
17
|
-
stringEmpty: 'String tidak boleh kosong',
|
|
18
|
-
// Number validation messages
|
|
19
|
-
invalidNumber: 'Angka tidak valid',
|
|
20
|
-
numberMin: (min) => `Angka harus minimal ${min}`,
|
|
21
|
-
numberMax: (max) => `Angka tidak boleh lebih dari ${max}`,
|
|
22
|
-
numberInt: 'Angka harus berupa bilangan bulat',
|
|
23
|
-
numberPositive: 'Angka harus positif',
|
|
24
|
-
numberNegative: 'Angka harus negatif',
|
|
25
|
-
numberNonnegative: 'Angka tidak boleh negatif',
|
|
26
|
-
numberNonpositive: 'Angka tidak boleh positif',
|
|
27
|
-
numberFinite: 'Angka harus terhingga',
|
|
28
|
-
numberSafe: 'Angka harus berupa bilangan bulat yang aman',
|
|
29
|
-
numberMultipleOf: (value) => `Angka harus kelipatan dari ${value}`,
|
|
30
|
-
// Boolean validation messages
|
|
31
|
-
invalidBoolean: 'Nilai boolean tidak valid',
|
|
32
|
-
// Date validation messages
|
|
33
|
-
invalidDate: 'Tanggal tidak valid',
|
|
34
|
-
dateMin: (date) => `Tanggal harus setelah ${date.toISOString()}`,
|
|
35
|
-
dateMax: (date) => `Tanggal harus sebelum ${date.toISOString()}`,
|
|
36
|
-
// Object validation messages
|
|
37
|
-
invalidObject: 'Object tidak valid',
|
|
38
|
-
unexpectedKeys: (keys) => `Kunci yang tidak diharapkan: ${keys.join(', ')}`,
|
|
39
|
-
// Array validation messages
|
|
40
|
-
invalidArray: 'Array tidak valid',
|
|
41
|
-
arrayMin: (min) => `Array harus memiliki minimal ${min} elemen`,
|
|
42
|
-
arrayMax: (max) => `Array tidak boleh lebih dari ${max} elemen`,
|
|
43
|
-
arrayLength: (length) => `Array harus memiliki tepat ${length} elemen`,
|
|
44
|
-
arrayEmpty: 'Array tidak boleh kosong',
|
|
45
|
-
arrayItem: (index, error) => `Elemen tidak valid pada indeks ${index}: ${error}`,
|
|
46
|
-
// Object field validation
|
|
47
|
-
objectField: (field, error) => `Field "${field}" tidak valid: ${error}`,
|
|
48
|
-
// Union validation messages
|
|
49
|
-
unionNoMatch: (errors) => `Tidak ada anggota union yang cocok: ${errors.join(', ')}`,
|
|
50
|
-
// Intersection validation messages
|
|
51
|
-
intersectionError: (error) => `Validasi intersection gagal: ${error}`,
|
|
52
|
-
// Literal validation messages
|
|
53
|
-
literalExpected: (expected, received) => `Diharapkan ${expected}, diterima ${received}`,
|
|
54
|
-
// Enum validation messages
|
|
55
|
-
enumExpected: (values, received) => `Diharapkan salah satu dari [${values.join(', ')}], diterima ${received}`,
|
|
56
|
-
// Special type validation messages
|
|
57
|
-
expectedUndefined: 'Diharapkan undefined',
|
|
58
|
-
neverType: 'Tipe never tidak dapat diparse',
|
|
59
|
-
// New advanced type validation messages
|
|
60
|
-
invalidBigint: 'Bigint tidak valid',
|
|
61
|
-
invalidSymbol: 'Simbol tidak valid',
|
|
62
|
-
invalidTuple: 'Tuple tidak valid',
|
|
63
|
-
tupleLength: (expected, received) => `Tuple harus memiliki tepat ${expected} elemen, diterima ${received}`,
|
|
64
|
-
invalidRecord: 'Record tidak valid',
|
|
65
|
-
invalidSet: 'Set tidak valid',
|
|
66
|
-
invalidMap: 'Map tidak valid',
|
|
67
|
-
// Transformation and refinement messages
|
|
68
|
-
transformError: (error) => `Transformasi gagal: ${error}`,
|
|
69
|
-
refinementError: (error) => `Penyempurnaan gagal: ${error}`,
|
|
70
|
-
customValidationError: (error) => `Validasi kustom gagal: ${error}`,
|
|
71
|
-
// Coercion messages
|
|
72
|
-
coercionFailed: (type, value) => `Tidak dapat memaksa ${JSON.stringify(value)} menjadi ${type}`,
|
|
73
|
-
// Codec messages
|
|
74
|
-
codecDecodeFailed: 'Failed to decode value',
|
|
75
|
-
codecEncodeFailed: 'Failed to encode value',
|
|
76
|
-
codecAsyncNotSupported: 'Async codec operations require using parseAsync/encodeAsync methods',
|
|
77
|
-
// Base64/Hex messages
|
|
78
|
-
invalidBase64: 'Invalid base64 string',
|
|
79
|
-
invalidHex: 'Invalid hexadecimal string',
|
|
80
|
-
// Uint8Array messages
|
|
81
|
-
expectedUint8Array: 'Expected Uint8Array',
|
|
82
|
-
uint8ArrayMinLength: (min) => `Uint8Array must have at least ${min} bytes`,
|
|
83
|
-
uint8ArrayMaxLength: (max) => `Uint8Array must have at most ${max} bytes`,
|
|
84
|
-
uint8ArrayExactLength: (length) => `Uint8Array must have exactly ${length} bytes`,
|
|
85
|
-
// Generic type error messages
|
|
86
|
-
expectedString: 'Expected string',
|
|
87
|
-
stringExpected: (received, expected) => `Diharapkan ${expected}, diterima ${received}`,
|
|
88
|
-
stringBoolExpected: (validValues, received) => `String boolean tidak valid. Salah satu dari berikut diharapkan: ${validValues}, diterima: "${received}"`,
|
|
89
|
-
invalidJson: 'JSON tidak valid',
|
|
90
|
-
stringPatternInvalid: 'String tidak cocok dengan pola yang diperlukan',
|
|
91
|
-
// File validation messages
|
|
92
|
-
invalidFile: 'Expected a File object',
|
|
93
|
-
fileNotSupported: 'File API not supported in this environment',
|
|
94
|
-
fileMinSize: (min) => `File size must be at least ${min} bytes`,
|
|
95
|
-
fileMaxSize: (max) => `File size must not exceed ${max} bytes`,
|
|
96
|
-
fileMimeType: (allowed) => `Invalid file type. Expected: ${allowed.join(", ")}`,
|
|
97
|
-
// Function validation messages
|
|
98
|
-
invalidFunction: 'Fungsi diharapkan',
|
|
99
|
-
// CIDR validation messages
|
|
100
|
-
stringCidrv4: 'Blok CIDR IPv4 tidak valid',
|
|
101
|
-
stringCidrv6: 'Blok CIDR IPv6 tidak valid',
|
|
102
|
-
// Safe extend validation messages
|
|
103
|
-
safeExtendOverlap: (keys) => `Tidak dapat menimpa kunci yang sudah ada: ${keys.join(', ')}. Gunakan extend() untuk menimpa.`
|
|
104
|
-
};
|
|
105
|
-
|
|
106
|
-
export { id };
|
|
107
|
-
//# sourceMappingURL=id.js.map
|
|
1
|
+
const a={invalidString:"String tidak valid",stringMin:a=>`String harus memiliki minimal ${a} karakter`,stringMax:a=>`String tidak boleh lebih dari ${a} karakter`,stringLength:a=>`String harus memiliki tepat ${a} karakter`,stringEmail:"Alamat email tidak valid",stringUrl:"URL tidak valid",stringUuid:"UUID tidak valid",stringRegex:"Format tidak valid",stringStartsWith:a=>`String harus diawali dengan "${a}"`,stringEndsWith:a=>`String harus diakhiri dengan "${a}"`,stringIncludes:a=>`String harus mengandung "${a}"`,stringIp:"Alamat IP tidak valid",stringIpv4:"Alamat IPv4 tidak valid",stringIpv6:"Alamat IPv6 tidak valid",stringEmpty:"String tidak boleh kosong",invalidNumber:"Angka tidak valid",numberMin:a=>`Angka harus minimal ${a}`,numberMax:a=>`Angka tidak boleh lebih dari ${a}`,numberInt:"Angka harus berupa bilangan bulat",numberPositive:"Angka harus positif",numberNegative:"Angka harus negatif",numberNonnegative:"Angka tidak boleh negatif",numberNonpositive:"Angka tidak boleh positif",numberFinite:"Angka harus terhingga",numberSafe:"Angka harus berupa bilangan bulat yang aman",numberMultipleOf:a=>`Angka harus kelipatan dari ${a}`,invalidBoolean:"Nilai boolean tidak valid",invalidDate:"Tanggal tidak valid",dateMin:a=>`Tanggal harus setelah ${a.toISOString()}`,dateMax:a=>`Tanggal harus sebelum ${a.toISOString()}`,invalidObject:"Object tidak valid",unexpectedKeys:a=>`Kunci yang tidak diharapkan: ${a.join(", ")}`,invalidArray:"Array tidak valid",arrayMin:a=>`Array harus memiliki minimal ${a} elemen`,arrayMax:a=>`Array tidak boleh lebih dari ${a} elemen`,arrayLength:a=>`Array harus memiliki tepat ${a} elemen`,arrayEmpty:"Array tidak boleh kosong",arrayItem:(a,i)=>`Elemen tidak valid pada indeks ${a}: ${i}`,objectField:(a,i)=>`Field "${a}" tidak valid: ${i}`,unionNoMatch:a=>`Tidak ada anggota union yang cocok: ${a.join(", ")}`,intersectionError:a=>`Validasi intersection gagal: ${a}`,literalExpected:(a,i)=>`Diharapkan ${a}, diterima ${i}`,enumExpected:(a,i)=>`Diharapkan salah satu dari [${a.join(", ")}], diterima ${i}`,expectedUndefined:"Diharapkan undefined",neverType:"Tipe never tidak dapat diparse",invalidBigint:"Bigint tidak valid",invalidSymbol:"Simbol tidak valid",invalidTuple:"Tuple tidak valid",tupleLength:(a,i)=>`Tuple harus memiliki tepat ${a} elemen, diterima ${i}`,invalidRecord:"Record tidak valid",invalidSet:"Set tidak valid",invalidMap:"Map tidak valid",transformError:a=>`Transformasi gagal: ${a}`,refinementError:a=>`Penyempurnaan gagal: ${a}`,customValidationError:a=>`Validasi kustom gagal: ${a}`,coercionFailed:(a,i)=>`Tidak dapat memaksa ${JSON.stringify(i)} menjadi ${a}`,codecDecodeFailed:"Failed to decode value",codecEncodeFailed:"Failed to encode value",codecAsyncNotSupported:"Async codec operations require using parseAsync/encodeAsync methods",invalidBase64:"Invalid base64 string",invalidHex:"Invalid hexadecimal string",expectedUint8Array:"Expected Uint8Array",uint8ArrayMinLength:a=>`Uint8Array must have at least ${a} bytes`,uint8ArrayMaxLength:a=>`Uint8Array must have at most ${a} bytes`,uint8ArrayExactLength:a=>`Uint8Array must have exactly ${a} bytes`,expectedString:"Expected string",stringExpected:(a,i)=>`Diharapkan ${i}, diterima ${a}`,stringBoolExpected:(a,i)=>`String boolean tidak valid. Salah satu dari berikut diharapkan: ${a}, diterima: "${i}"`,invalidJson:"JSON tidak valid",stringPatternInvalid:"String tidak cocok dengan pola yang diperlukan",invalidFile:"Expected a File object",fileNotSupported:"File API not supported in this environment",fileMinSize:a=>`File size must be at least ${a} bytes`,fileMaxSize:a=>`File size must not exceed ${a} bytes`,fileMimeType:a=>`Invalid file type. Expected: ${a.join(", ")}`,invalidFunction:"Fungsi diharapkan",stringCidrv4:"Blok CIDR IPv4 tidak valid",stringCidrv6:"Blok CIDR IPv6 tidak valid",safeExtendOverlap:a=>`Tidak dapat menimpa kunci yang sudah ada: ${a.join(", ")}. Gunakan extend() untuk menimpa.`};export{a as id};
|
package/dist/locales/index.d.ts
CHANGED
|
@@ -1,19 +1,14 @@
|
|
|
1
|
-
import { Locale
|
|
1
|
+
import { Locale } from './types.js';
|
|
2
|
+
import { getLocale, getMessages, getMessagesForLocale, getSupportedLocales, isLocaleLoaded, isLocaleSupported, registerLocale, setLocale } from './runtime.js';
|
|
2
3
|
/**
|
|
3
|
-
* Set the current locale
|
|
4
|
+
* Set the current locale asynchronously.
|
|
5
|
+
*
|
|
6
|
+
* The eager locale entrypoint already bundles translated locales and English
|
|
7
|
+
* fallbacks, so this mirrors setLocale() while preserving async API parity.
|
|
4
8
|
*/
|
|
5
|
-
export declare function
|
|
9
|
+
export declare function setLocaleAsync(locale: Locale): Promise<void>;
|
|
6
10
|
/**
|
|
7
|
-
*
|
|
11
|
+
* Register or override a locale for synchronous validation messages.
|
|
8
12
|
*/
|
|
9
|
-
export
|
|
10
|
-
|
|
11
|
-
* Get messages for the current locale
|
|
12
|
-
*/
|
|
13
|
-
export declare function getMessages(): LocaleMessages;
|
|
14
|
-
/**
|
|
15
|
-
* Get messages for a specific locale
|
|
16
|
-
*/
|
|
17
|
-
export declare function getMessagesForLocale(locale: Locale): LocaleMessages;
|
|
18
|
-
export type { Locale, LocaleMessages } from './types';
|
|
19
|
-
//# sourceMappingURL=index.d.ts.map
|
|
13
|
+
export { getLocale, getMessages, getMessagesForLocale, getSupportedLocales, isLocaleLoaded, isLocaleSupported, registerLocale, setLocale };
|
|
14
|
+
export type { Locale, LocaleMessages } from './types.js';
|