@nullix/zod-mongoose-studio 3.3.1 → 3.3.3
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/.output/nitro.json +1 -1
- package/.output/public/_nuxt/{BCIlnd0g.js → 5ZXm4f56.js} +1 -1
- package/.output/public/_nuxt/{DcJ7oPvZ.js → B2fcLSyW.js} +1 -1
- package/.output/public/_nuxt/{B0N6xv5E.js → BBN7l5Hn.js} +1 -1
- package/.output/public/_nuxt/BBTTtb8r.js +41 -0
- package/.output/public/_nuxt/{5Tu2WUJz.js → BDbISGvP.js} +1 -1
- package/.output/public/_nuxt/{D87QMS6j.js → BijI4RNx.js} +1 -1
- package/.output/public/_nuxt/{C2BHp-MG.js → Bp9qkJ9m.js} +1 -1
- package/.output/public/_nuxt/{I3Ucam2s.js → Bu3-sqCf.js} +1 -1
- package/.output/public/_nuxt/{BO4hqv6q.js → C-FtTvwz.js} +1 -1
- package/.output/public/_nuxt/C02JV0Aj.js +1 -0
- package/.output/public/_nuxt/{sKEJiAHO.js → C1UkIsDc.js} +1 -1
- package/.output/public/_nuxt/{CKULsFUz.js → CJT28r6J.js} +1 -1
- package/.output/public/_nuxt/{BNDnV2op.js → CL7qtgl2.js} +3 -3
- package/.output/public/_nuxt/{DA0pQuyP.js → CRMd2YH2.js} +3 -3
- package/.output/public/_nuxt/{DpKrXpkK.js → CRkdQgFz.js} +1 -1
- package/.output/public/_nuxt/{B0cUlOSM.js → Cw1XFOz5.js} +1 -1
- package/.output/public/_nuxt/{CzbCpNnc.js → D5yWk6Ly.js} +1 -1
- package/.output/public/_nuxt/{BOsJJ_ZU.js → DA9GjKpR.js} +1 -1
- package/.output/public/_nuxt/{Dce9SnGa.js → DaWAlZhp.js} +1 -1
- package/.output/public/_nuxt/{tqQNlhT9.js → DafLMUHo.js} +1 -1
- package/.output/public/_nuxt/{ypRHVLFO.js → Dyaldc-t.js} +1 -1
- package/.output/public/_nuxt/{o-NCh2rp.js → UU9fpRNQ.js} +1 -1
- package/.output/public/_nuxt/builds/latest.json +1 -1
- package/.output/public/_nuxt/builds/meta/717459d8-0da1-42ed-af0b-9ec5395e8fdc.json +1 -0
- package/.output/public/_nuxt/entry.CDPplHzk.css +1 -0
- package/.output/public/_nuxt/error-404.hPtlUQpd.css +1 -0
- package/.output/public/_nuxt/error-500.E-PXUb6B.css +1 -0
- package/.output/public/_nuxt/{CMH9iX_E.js → kFZJW2-u.js} +2 -2
- package/.output/public/_nuxt/{DsnIpnT9.js → u3DlT5Mh.js} +1 -1
- package/.output/server/chunks/_/error-500.mjs.map +1 -1
- package/.output/server/chunks/_/parse-request.mjs +29 -0
- package/.output/server/chunks/_/parse-request.mjs.map +1 -0
- package/.output/server/chunks/build/client.precomputed.mjs +1 -1
- package/.output/server/chunks/build/{error-404-KRkA0DPI.mjs → error-404-aQ5PiVuX.mjs} +6 -12
- package/.output/server/chunks/build/error-404-aQ5PiVuX.mjs.map +1 -0
- package/.output/server/chunks/build/error-404-styles.DIZfBVBR.mjs +8 -0
- package/.output/server/chunks/build/error-404-styles.DIZfBVBR.mjs.map +1 -0
- package/.output/server/chunks/build/{error-500-DIIFf55p.mjs → error-500-BY6ZAZZ2.mjs} +6 -12
- package/.output/server/chunks/build/error-500-BY6ZAZZ2.mjs.map +1 -0
- package/.output/server/chunks/build/error-500-styles.BZXgEzR5.mjs +8 -0
- package/.output/server/chunks/build/error-500-styles.BZXgEzR5.mjs.map +1 -0
- package/.output/server/chunks/build/index-57_mtIua.mjs +235 -0
- package/.output/server/chunks/build/index-57_mtIua.mjs.map +1 -0
- package/.output/server/chunks/build/{index-CB1N4gax.mjs → index-Qa-4KqCB.mjs} +7 -13
- package/.output/server/chunks/build/index-Qa-4KqCB.mjs.map +1 -0
- package/.output/server/chunks/build/server.mjs +3913 -3378
- package/.output/server/chunks/build/server.mjs.map +1 -1
- package/.output/server/chunks/build/styles.mjs +4 -4
- package/.output/server/chunks/nitro/nitro.mjs +652 -2278
- package/.output/server/chunks/nitro/nitro.mjs.map +1 -1
- package/.output/server/chunks/routes/api/editor-types.get.mjs +91 -28
- package/.output/server/chunks/routes/api/editor-types.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/parse.post.mjs +1599 -7
- package/.output/server/chunks/routes/api/parse.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/resolve.get.mjs +0 -6
- package/.output/server/chunks/routes/api/resolve.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/studio/run.post.mjs +50 -12
- package/.output/server/chunks/routes/api/studio/run.post.mjs.map +1 -1
- package/.output/server/chunks/routes/renderer.mjs +21 -44
- package/.output/server/chunks/routes/renderer.mjs.map +1 -1
- package/.output/server/index.mjs +1 -7
- package/.output/server/index.mjs.map +1 -1
- package/.output/server/node_modules/.nitro/@vue/compiler-core@3.5.43/dist/compiler-core.cjs.prod.js +6801 -0
- package/.output/server/node_modules/.nitro/@vue/compiler-core@3.5.43/package.json +58 -0
- package/.output/server/node_modules/.nitro/@vue/compiler-dom@3.5.43/dist/compiler-dom.cjs.prod.js +692 -0
- package/.output/server/node_modules/.nitro/@vue/compiler-dom@3.5.43/package.json +57 -0
- package/.output/server/node_modules/.nitro/@vue/reactivity@3.5.43/dist/reactivity.cjs.prod.js +1905 -0
- package/.output/server/node_modules/.nitro/@vue/reactivity@3.5.43/package.json +55 -0
- package/.output/server/node_modules/.nitro/@vue/runtime-core@3.5.43/dist/runtime-core.cjs.prod.js +7006 -0
- package/.output/server/node_modules/.nitro/@vue/runtime-core@3.5.43/package.json +52 -0
- package/.output/server/node_modules/.nitro/@vue/runtime-dom@3.5.43/dist/runtime-dom.cjs.prod.js +1867 -0
- package/.output/server/node_modules/.nitro/@vue/runtime-dom@3.5.43/package.json +60 -0
- package/.output/server/node_modules/.nitro/@vue/shared@3.5.43/dist/shared.cjs.prod.js +655 -0
- package/.output/server/node_modules/.nitro/@vue/shared@3.5.43/package.json +47 -0
- package/.output/server/node_modules/.nitro/source-map-js@1.2.2/lib/array-set.js +121 -0
- package/.output/server/node_modules/.nitro/source-map-js@1.2.2/lib/base64-vlq.js +140 -0
- package/.output/server/node_modules/.nitro/source-map-js@1.2.2/lib/base64.js +67 -0
- package/.output/server/node_modules/.nitro/source-map-js@1.2.2/lib/binary-search.js +111 -0
- package/.output/server/node_modules/.nitro/source-map-js@1.2.2/lib/mapping-list.js +79 -0
- package/.output/server/node_modules/.nitro/source-map-js@1.2.2/lib/quick-sort.js +141 -0
- package/.output/server/node_modules/.nitro/source-map-js@1.2.2/lib/source-map-consumer.js +1236 -0
- package/.output/server/node_modules/.nitro/source-map-js@1.2.2/lib/source-map-generator.js +446 -0
- package/.output/server/node_modules/.nitro/source-map-js@1.2.2/lib/source-node.js +420 -0
- package/.output/server/node_modules/.nitro/source-map-js@1.2.2/lib/util.js +594 -0
- package/.output/server/node_modules/.nitro/source-map-js@1.2.2/package.json +71 -0
- package/.output/server/node_modules/.nitro/source-map-js@1.2.2/source-map.js +8 -0
- package/.output/server/node_modules/.nitro/vue@3.5.43/dist/vue.cjs.js +80 -0
- package/.output/server/node_modules/.nitro/vue@3.5.43/dist/vue.cjs.prod.js +66 -0
- package/.output/server/node_modules/.nitro/vue@3.5.43/index.js +7 -0
- package/.output/server/node_modules/.nitro/vue@3.5.43/index.mjs +1 -0
- package/.output/server/node_modules/.nitro/vue@3.5.43/package.json +112 -0
- package/.output/server/node_modules/@babel/parser/lib/index.js +55 -21
- package/.output/server/node_modules/@babel/parser/package.json +7 -7
- package/.output/server/node_modules/@esbuild/linux-x64/bin/esbuild +0 -0
- package/.output/server/node_modules/@esbuild/linux-x64/package.json +1 -1
- package/.output/server/node_modules/@iconify/utils/lib/colors/index.js +19 -16
- package/.output/server/node_modules/@iconify/utils/lib/colors/keywords.js +3 -4
- package/.output/server/node_modules/@iconify/utils/lib/css/common.js +16 -16
- package/.output/server/node_modules/@iconify/utils/lib/css/format.js +1 -2
- package/.output/server/node_modules/@iconify/utils/lib/css/icon.js +11 -14
- package/.output/server/node_modules/@iconify/utils/lib/css/icons.js +13 -16
- package/.output/server/node_modules/@iconify/utils/lib/customisations/bool.js +1 -2
- package/.output/server/node_modules/@iconify/utils/lib/customisations/defaults.js +1 -3
- package/.output/server/node_modules/@iconify/utils/lib/customisations/flip.js +2 -5
- package/.output/server/node_modules/@iconify/utils/lib/customisations/merge.js +1 -3
- package/.output/server/node_modules/@iconify/utils/lib/customisations/rotate.js +4 -5
- package/.output/server/node_modules/@iconify/utils/lib/emoji/cleanup.js +1 -3
- package/.output/server/node_modules/@iconify/utils/lib/emoji/convert.js +9 -11
- package/.output/server/node_modules/@iconify/utils/lib/emoji/data.js +1 -2
- package/.output/server/node_modules/@iconify/utils/lib/emoji/format.js +1 -3
- package/.output/server/node_modules/@iconify/utils/lib/emoji/parse.js +1 -3
- package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/base.js +12 -18
- package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/create.js +3 -4
- package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/numbers.js +5 -7
- package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/similar.js +1 -8
- package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/tree.js +11 -12
- package/.output/server/node_modules/@iconify/utils/lib/emoji/replace/find.js +5 -7
- package/.output/server/node_modules/@iconify/utils/lib/emoji/replace/replace.js +1 -3
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/components.js +1 -3
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/missing.js +7 -7
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/name.js +2 -4
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/parse.js +5 -9
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/similar.js +3 -5
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/tree.js +2 -4
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/variations.js +7 -8
- package/.output/server/node_modules/@iconify/utils/lib/icon/defaults.js +1 -2
- package/.output/server/node_modules/@iconify/utils/lib/icon/merge.js +1 -3
- package/.output/server/node_modules/@iconify/utils/lib/icon/name.js +3 -4
- package/.output/server/node_modules/@iconify/utils/lib/icon/square.js +1 -2
- package/.output/server/node_modules/@iconify/utils/lib/icon/transformations.js +1 -2
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/convert-info.js +10 -15
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/expand.js +1 -3
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/get-icon.js +3 -5
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/get-icons.js +1 -3
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/minify.js +1 -3
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/parse.js +1 -3
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/tree.js +1 -2
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/validate-basic.js +1 -3
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/validate.js +21 -13
- package/.output/server/node_modules/@iconify/utils/lib/index.js +1 -2
- package/.output/server/node_modules/@iconify/utils/lib/loader/custom.js +3 -3
- package/.output/server/node_modules/@iconify/utils/lib/loader/hmr-utils.js +33 -0
- package/.output/server/node_modules/@iconify/utils/lib/loader/loader.js +22 -22
- package/.output/server/node_modules/@iconify/utils/lib/loader/modern.js +7 -22
- package/.output/server/node_modules/@iconify/utils/lib/loader/utils.js +60 -16
- package/.output/server/node_modules/@iconify/utils/lib/misc/objects.js +1 -2
- package/.output/server/node_modules/@iconify/utils/lib/misc/strings.js +1 -2
- package/.output/server/node_modules/@iconify/utils/lib/misc/title.js +1 -2
- package/.output/server/node_modules/@iconify/utils/lib/svg/build.js +9 -11
- package/.output/server/node_modules/@iconify/utils/lib/svg/defs.js +1 -2
- package/.output/server/node_modules/@iconify/utils/lib/svg/encode-svg-for-css.js +1 -3
- package/.output/server/node_modules/@iconify/utils/lib/svg/html.js +1 -2
- package/.output/server/node_modules/@iconify/utils/lib/svg/id.js +1 -2
- package/.output/server/node_modules/@iconify/utils/lib/svg/inner-html.js +1 -2
- package/.output/server/node_modules/@iconify/utils/lib/svg/parse.js +3 -5
- package/.output/server/node_modules/@iconify/utils/lib/svg/pretty.js +5 -4
- package/.output/server/node_modules/@iconify/utils/lib/svg/size.js +1 -2
- package/.output/server/node_modules/@iconify/utils/lib/svg/trim.js +1 -2
- package/.output/server/node_modules/@iconify/utils/lib/svg/url.js +1 -2
- package/.output/server/node_modules/@iconify/utils/lib/svg/viewbox.js +2 -3
- package/.output/server/node_modules/@iconify/utils/package.json +15 -13
- package/.output/server/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +8 -1
- package/.output/server/node_modules/@vue/compiler-ssr/package.json +3 -3
- package/.output/server/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js +34 -13
- package/.output/server/node_modules/@vue/server-renderer/package.json +4 -6
- package/.output/server/node_modules/devalue/index.js +15 -2
- package/.output/server/node_modules/devalue/package.json +5 -3
- package/.output/server/node_modules/devalue/src/base64.js +46 -96
- package/.output/server/node_modules/devalue/src/constants.js +5 -0
- package/.output/server/node_modules/devalue/src/operations.js +221 -0
- package/.output/server/node_modules/devalue/src/parse.js +76 -62
- package/.output/server/node_modules/devalue/src/stringify.js +164 -81
- package/.output/server/node_modules/devalue/src/uneval.js +312 -104
- package/.output/server/node_modules/devalue/src/utils.js +61 -19
- package/.output/server/node_modules/esbuild/lib/main.js +12 -8
- package/.output/server/node_modules/esbuild/package.json +50 -50
- package/.output/server/node_modules/hookable/dist/index.mjs +2 -11
- package/.output/server/node_modules/hookable/package.json +23 -22
- package/.output/server/node_modules/ip-address/dist/ipv4.js +7 -0
- package/.output/server/node_modules/ip-address/package.json +1 -1
- package/.output/server/node_modules/zod/package.json +20 -8
- package/.output/server/node_modules/zod/v4/classic/checks.js +1 -1
- package/.output/server/node_modules/zod/v4/classic/deep-partial.js +13 -0
- package/.output/server/node_modules/zod/v4/classic/errors.js +44 -35
- package/.output/server/node_modules/zod/v4/classic/external.js +5 -8
- package/.output/server/node_modules/zod/v4/classic/from-json-schema.js +375 -78
- package/.output/server/node_modules/zod/v4/classic/in-out.js +36 -0
- package/.output/server/node_modules/zod/v4/classic/index.js +2 -2
- package/.output/server/node_modules/zod/v4/classic/iso.js +2 -17
- package/.output/server/node_modules/zod/v4/classic/package.json +2 -1
- package/.output/server/node_modules/zod/v4/classic/parse.js +1 -0
- package/.output/server/node_modules/zod/v4/classic/schemas.js +601 -223
- package/.output/server/node_modules/zod/v4/core/api.js +51 -26
- package/.output/server/node_modules/zod/v4/core/checks.js +68 -127
- package/.output/server/node_modules/zod/v4/core/compile.js +1858 -0
- package/.output/server/node_modules/zod/v4/core/core.js +87 -22
- package/.output/server/node_modules/zod/v4/core/doc.js +12 -9
- package/.output/server/node_modules/zod/v4/core/errors.js +127 -42
- package/.output/server/node_modules/zod/v4/core/index.js +3 -0
- package/.output/server/node_modules/zod/v4/core/json-schema-generator.js +6 -2
- package/.output/server/node_modules/zod/v4/core/json-schema-processors.js +413 -175
- package/.output/server/node_modules/zod/v4/core/memoizer.js +311 -0
- package/.output/server/node_modules/zod/v4/core/package.json +2 -1
- package/.output/server/node_modules/zod/v4/core/parse.js +130 -48
- package/.output/server/node_modules/zod/v4/core/regexes.js +39 -16
- package/.output/server/node_modules/zod/v4/core/registries.js +2 -2
- package/.output/server/node_modules/zod/v4/core/schemas.js +895 -382
- package/.output/server/node_modules/zod/v4/core/to-json-schema.js +253 -39
- package/.output/server/node_modules/zod/v4/core/util.js +383 -175
- package/.output/server/node_modules/zod/v4/core/versions.js +2 -2
- package/.output/server/node_modules/zod/v4/core/visit.js +169 -0
- package/.output/server/node_modules/zod/v4/index.js +3 -2
- package/.output/server/node_modules/zod/v4/locales/ar.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/az.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/be.js +12 -0
- package/.output/server/node_modules/zod/v4/locales/bg.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/bn.js +113 -0
- package/.output/server/node_modules/zod/v4/locales/ca.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/ckb.js +133 -0
- package/.output/server/node_modules/zod/v4/locales/cs.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/da.js +7 -2
- package/.output/server/node_modules/zod/v4/locales/de.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/el.js +112 -0
- package/.output/server/node_modules/zod/v4/locales/en.js +20 -4
- package/.output/server/node_modules/zod/v4/locales/eo.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/es.js +4 -0
- package/.output/server/node_modules/zod/v4/locales/fa.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/fi.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/fr-CA.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/fr.js +38 -17
- package/.output/server/node_modules/zod/v4/locales/gu.js +113 -0
- package/.output/server/node_modules/zod/v4/locales/he.js +7 -0
- package/.output/server/node_modules/zod/v4/locales/hi.js +111 -0
- package/.output/server/node_modules/zod/v4/locales/hr.js +126 -0
- package/.output/server/node_modules/zod/v4/locales/hu.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/hy.js +11 -0
- package/.output/server/node_modules/zod/v4/locales/id.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/index.js +14 -0
- package/.output/server/node_modules/zod/v4/locales/is.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/it.js +6 -1
- package/.output/server/node_modules/zod/v4/locales/ja.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/ka.js +13 -8
- package/.output/server/node_modules/zod/v4/locales/km.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/kn.js +116 -0
- package/.output/server/node_modules/zod/v4/locales/ko.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/lt.js +4 -0
- package/.output/server/node_modules/zod/v4/locales/mk.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/ms.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/ne.js +111 -0
- package/.output/server/node_modules/zod/v4/locales/nl.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/nn.js +113 -0
- package/.output/server/node_modules/zod/v4/locales/no.js +7 -2
- package/.output/server/node_modules/zod/v4/locales/ota.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/package.json +2 -1
- package/.output/server/node_modules/zod/v4/locales/pl.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/ps.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/pt-BR.js +143 -0
- package/.output/server/node_modules/zod/v4/locales/pt.js +89 -55
- package/.output/server/node_modules/zod/v4/locales/ro.js +122 -0
- package/.output/server/node_modules/zod/v4/locales/ru.js +12 -0
- package/.output/server/node_modules/zod/v4/locales/sk.js +116 -0
- package/.output/server/node_modules/zod/v4/locales/sl.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/sv.js +7 -2
- package/.output/server/node_modules/zod/v4/locales/ta.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/tg.js +117 -0
- package/.output/server/node_modules/zod/v4/locales/th.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/tk.js +107 -0
- package/.output/server/node_modules/zod/v4/locales/tr.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/uk.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/ur.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/uz.js +4 -0
- package/.output/server/node_modules/zod/v4/locales/vi.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/yo.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/zh-CN.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/zh-TW.js +5 -0
- package/.output/server/node_modules/zod/v4/package.json +2 -1
- package/.output/server/package.json +18 -18
- package/README.md +12 -1
- package/package.json +10 -9
- package/server/api/editor-types.get.ts +2 -23
- package/server/api/studio/run.post.ts +18 -6
- package/server/utils/editor-types.json +1 -0
- package/.output/public/_nuxt/B9paGgN0.js +0 -33
- package/.output/public/_nuxt/builds/meta/51f1351c-0667-4235-9ddc-16582a51ce03.json +0 -1
- package/.output/public/_nuxt/entry.B-vs1tRH.css +0 -1
- package/.output/public/_nuxt/error-404.CTSXlFYa.css +0 -1
- package/.output/public/_nuxt/error-500.DqEfQnVZ.css +0 -1
- package/.output/server/chunks/build/error-404-KRkA0DPI.mjs.map +0 -1
- package/.output/server/chunks/build/error-404-styles.I0NYw-Bn.mjs +0 -8
- package/.output/server/chunks/build/error-404-styles.I0NYw-Bn.mjs.map +0 -1
- package/.output/server/chunks/build/error-500-DIIFf55p.mjs.map +0 -1
- package/.output/server/chunks/build/error-500-styles.D1cs9hQy.mjs +0 -8
- package/.output/server/chunks/build/error-500-styles.D1cs9hQy.mjs.map +0 -1
- package/.output/server/chunks/build/index-CB1N4gax.mjs.map +0 -1
- /package/.output/server/node_modules/{@vue/compiler-core → .nitro/@vue/compiler-core@3.5.32}/dist/compiler-core.cjs.prod.js +0 -0
- /package/.output/server/node_modules/{@vue/compiler-core → .nitro/@vue/compiler-core@3.5.32}/package.json +0 -0
- /package/.output/server/node_modules/{@vue/compiler-dom → .nitro/@vue/compiler-dom@3.5.32}/dist/compiler-dom.cjs.prod.js +0 -0
- /package/.output/server/node_modules/{@vue/compiler-dom → .nitro/@vue/compiler-dom@3.5.32}/package.json +0 -0
- /package/.output/server/node_modules/{@vue/reactivity → .nitro/@vue/reactivity@3.5.32}/dist/reactivity.cjs.prod.js +0 -0
- /package/.output/server/node_modules/{@vue/reactivity → .nitro/@vue/reactivity@3.5.32}/package.json +0 -0
- /package/.output/server/node_modules/{@vue/runtime-core → .nitro/@vue/runtime-core@3.5.32}/dist/runtime-core.cjs.prod.js +0 -0
- /package/.output/server/node_modules/{@vue/runtime-core → .nitro/@vue/runtime-core@3.5.32}/package.json +0 -0
- /package/.output/server/node_modules/{@vue/runtime-dom → .nitro/@vue/runtime-dom@3.5.32}/dist/runtime-dom.cjs.prod.js +0 -0
- /package/.output/server/node_modules/{@vue/runtime-dom → .nitro/@vue/runtime-dom@3.5.32}/package.json +0 -0
- /package/.output/server/node_modules/{@vue/shared → .nitro/@vue/shared@3.5.32}/dist/shared.cjs.prod.js +0 -0
- /package/.output/server/node_modules/{@vue/shared → .nitro/@vue/shared@3.5.32}/package.json +0 -0
- /package/.output/server/node_modules/{source-map-js → .nitro/source-map-js@1.2.1}/lib/array-set.js +0 -0
- /package/.output/server/node_modules/{source-map-js → .nitro/source-map-js@1.2.1}/lib/base64-vlq.js +0 -0
- /package/.output/server/node_modules/{source-map-js → .nitro/source-map-js@1.2.1}/lib/base64.js +0 -0
- /package/.output/server/node_modules/{source-map-js → .nitro/source-map-js@1.2.1}/lib/binary-search.js +0 -0
- /package/.output/server/node_modules/{source-map-js → .nitro/source-map-js@1.2.1}/lib/mapping-list.js +0 -0
- /package/.output/server/node_modules/{source-map-js → .nitro/source-map-js@1.2.1}/lib/quick-sort.js +0 -0
- /package/.output/server/node_modules/{source-map-js → .nitro/source-map-js@1.2.1}/lib/source-map-consumer.js +0 -0
- /package/.output/server/node_modules/{source-map-js → .nitro/source-map-js@1.2.1}/lib/source-map-generator.js +0 -0
- /package/.output/server/node_modules/{source-map-js → .nitro/source-map-js@1.2.1}/lib/source-node.js +0 -0
- /package/.output/server/node_modules/{source-map-js → .nitro/source-map-js@1.2.1}/lib/util.js +0 -0
- /package/.output/server/node_modules/{source-map-js → .nitro/source-map-js@1.2.1}/package.json +0 -0
- /package/.output/server/node_modules/{source-map-js → .nitro/source-map-js@1.2.1}/source-map.js +0 -0
- /package/.output/server/node_modules/{vue → .nitro/vue@3.5.32}/dist/vue.cjs.js +0 -0
- /package/.output/server/node_modules/{vue → .nitro/vue@3.5.32}/dist/vue.cjs.prod.js +0 -0
- /package/.output/server/node_modules/{vue → .nitro/vue@3.5.32}/index.js +0 -0
- /package/.output/server/node_modules/{vue → .nitro/vue@3.5.32}/index.mjs +0 -0
- /package/.output/server/node_modules/{vue → .nitro/vue@3.5.32}/package.json +0 -0
- /package/.output/server/node_modules/{vue → .nitro/vue@3.5.43}/server-renderer/index.mjs +0 -0
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
// Traversal pattern adapted from Jaen's v3 `mapOnSchema` (Apache-2.0): https://gist.github.com/jaens/7e15ae1984bb338c86eb5e452dee3010
|
|
2
|
+
import * as schemas from "./schemas.js";
|
|
3
|
+
import { clone } from "./util.js";
|
|
4
|
+
const RESOLVING = Symbol("z.visit/resolving");
|
|
5
|
+
export function visit(schema, fnOrHandlers) {
|
|
6
|
+
const fn = typeof fnOrHandlers === "function"
|
|
7
|
+
? fnOrHandlers
|
|
8
|
+
: (node, rewritten) => {
|
|
9
|
+
// A union of handlers isn't callable with one argument; handler `K` only ever sees kind `K`.
|
|
10
|
+
const h = fnOrHandlers[node._zod.def.type];
|
|
11
|
+
return h ? h(node, rewritten) : node;
|
|
12
|
+
};
|
|
13
|
+
const cache = new Map();
|
|
14
|
+
function run(s) {
|
|
15
|
+
const cached = cache.get(s);
|
|
16
|
+
if (cached === RESOLVING) {
|
|
17
|
+
// Non-lazy cycle. Defer to parse time, when the cache holds the finished node.
|
|
18
|
+
return new schemas.$ZodLazy({
|
|
19
|
+
type: "lazy",
|
|
20
|
+
getter: () => cache.get(s),
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
if (cached !== undefined)
|
|
24
|
+
return cached;
|
|
25
|
+
cache.set(s, RESOLVING);
|
|
26
|
+
const inner = mapInner(s);
|
|
27
|
+
const mapped = fn(inner, inner !== s);
|
|
28
|
+
cache.set(s, mapped);
|
|
29
|
+
return mapped;
|
|
30
|
+
}
|
|
31
|
+
function mapInner(s) {
|
|
32
|
+
const def = s._zod.def;
|
|
33
|
+
const kind = def.type;
|
|
34
|
+
switch (kind) {
|
|
35
|
+
case "object": {
|
|
36
|
+
const oldShape = def.shape;
|
|
37
|
+
const keys = Object.keys(oldShape);
|
|
38
|
+
let changed = false;
|
|
39
|
+
const newShape = {};
|
|
40
|
+
for (const k of keys) {
|
|
41
|
+
const mapped = run(oldShape[k]);
|
|
42
|
+
if (mapped !== oldShape[k])
|
|
43
|
+
changed = true;
|
|
44
|
+
newShape[k] = mapped;
|
|
45
|
+
}
|
|
46
|
+
let newCatchall = def.catchall;
|
|
47
|
+
if (def.catchall) {
|
|
48
|
+
newCatchall = run(def.catchall);
|
|
49
|
+
if (newCatchall !== def.catchall)
|
|
50
|
+
changed = true;
|
|
51
|
+
}
|
|
52
|
+
return changed ? clone(s, { ...def, shape: newShape, catchall: newCatchall }) : s;
|
|
53
|
+
}
|
|
54
|
+
case "array": {
|
|
55
|
+
const mapped = run(def.element);
|
|
56
|
+
return mapped === def.element ? s : clone(s, { ...def, element: mapped });
|
|
57
|
+
}
|
|
58
|
+
case "tuple": {
|
|
59
|
+
const oldItems = def.items;
|
|
60
|
+
let changed = false;
|
|
61
|
+
const newItems = [];
|
|
62
|
+
for (const item of oldItems) {
|
|
63
|
+
const mapped = run(item);
|
|
64
|
+
if (mapped !== item)
|
|
65
|
+
changed = true;
|
|
66
|
+
newItems.push(mapped);
|
|
67
|
+
}
|
|
68
|
+
let newRest = def.rest;
|
|
69
|
+
if (def.rest) {
|
|
70
|
+
newRest = run(def.rest);
|
|
71
|
+
if (newRest !== def.rest)
|
|
72
|
+
changed = true;
|
|
73
|
+
}
|
|
74
|
+
return changed ? clone(s, { ...def, items: newItems, rest: newRest }) : s;
|
|
75
|
+
}
|
|
76
|
+
case "record":
|
|
77
|
+
case "map": {
|
|
78
|
+
const newKey = run(def.keyType);
|
|
79
|
+
const newVal = run(def.valueType);
|
|
80
|
+
return newKey === def.keyType && newVal === def.valueType
|
|
81
|
+
? s
|
|
82
|
+
: clone(s, { ...def, keyType: newKey, valueType: newVal });
|
|
83
|
+
}
|
|
84
|
+
case "set": {
|
|
85
|
+
const newVal = run(def.valueType);
|
|
86
|
+
return newVal === def.valueType ? s : clone(s, { ...def, valueType: newVal });
|
|
87
|
+
}
|
|
88
|
+
case "union": {
|
|
89
|
+
const oldOptions = def.options;
|
|
90
|
+
let changed = false;
|
|
91
|
+
const newOptions = [];
|
|
92
|
+
for (const opt of oldOptions) {
|
|
93
|
+
const mapped = run(opt);
|
|
94
|
+
if (mapped !== opt)
|
|
95
|
+
changed = true;
|
|
96
|
+
newOptions.push(mapped);
|
|
97
|
+
}
|
|
98
|
+
return changed ? clone(s, { ...def, options: newOptions }) : s;
|
|
99
|
+
}
|
|
100
|
+
case "intersection": {
|
|
101
|
+
const newLeft = run(def.left);
|
|
102
|
+
const newRight = run(def.right);
|
|
103
|
+
return newLeft === def.left && newRight === def.right
|
|
104
|
+
? s
|
|
105
|
+
: clone(s, { ...def, left: newLeft, right: newRight });
|
|
106
|
+
}
|
|
107
|
+
case "optional":
|
|
108
|
+
case "nullable":
|
|
109
|
+
case "default":
|
|
110
|
+
case "prefault":
|
|
111
|
+
case "catch":
|
|
112
|
+
case "readonly":
|
|
113
|
+
case "nonoptional":
|
|
114
|
+
case "promise":
|
|
115
|
+
case "success": {
|
|
116
|
+
const newInner = run(def.innerType);
|
|
117
|
+
return newInner === def.innerType ? s : clone(s, { ...def, innerType: newInner });
|
|
118
|
+
}
|
|
119
|
+
case "pipe": {
|
|
120
|
+
const newIn = run(def.in);
|
|
121
|
+
const newOut = run(def.out);
|
|
122
|
+
return newIn === def.in && newOut === def.out ? s : clone(s, { ...def, in: newIn, out: newOut });
|
|
123
|
+
}
|
|
124
|
+
case "function": {
|
|
125
|
+
const newInput = run(def.input);
|
|
126
|
+
const newOutput = run(def.output);
|
|
127
|
+
return newInput === def.input && newOutput === def.output
|
|
128
|
+
? s
|
|
129
|
+
: clone(s, { ...def, input: newInput, output: newOutput });
|
|
130
|
+
}
|
|
131
|
+
case "lazy": {
|
|
132
|
+
// Invoking the getter here would trip the cycle check, so lazy nodes always re-clone.
|
|
133
|
+
const original = def.getter;
|
|
134
|
+
// Drop the memo, or it shadows the new getter forever.
|
|
135
|
+
const { _cachedInner, ...rest } = def;
|
|
136
|
+
return clone(s, { ...rest, getter: () => run(original()) });
|
|
137
|
+
}
|
|
138
|
+
// A leaf by choice: `parts` are regex fragments, not data positions.
|
|
139
|
+
case "template_literal":
|
|
140
|
+
// Leaves.
|
|
141
|
+
case "string":
|
|
142
|
+
case "number":
|
|
143
|
+
case "int":
|
|
144
|
+
case "boolean":
|
|
145
|
+
case "bigint":
|
|
146
|
+
case "symbol":
|
|
147
|
+
case "undefined":
|
|
148
|
+
case "null":
|
|
149
|
+
case "void":
|
|
150
|
+
case "never":
|
|
151
|
+
case "any":
|
|
152
|
+
case "unknown":
|
|
153
|
+
case "date":
|
|
154
|
+
case "nan":
|
|
155
|
+
case "enum":
|
|
156
|
+
case "literal":
|
|
157
|
+
case "file":
|
|
158
|
+
case "transform":
|
|
159
|
+
case "custom":
|
|
160
|
+
return s;
|
|
161
|
+
default: {
|
|
162
|
+
// A new built-in kind becomes a compile error here; unknown user kinds fall through.
|
|
163
|
+
kind;
|
|
164
|
+
return s;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
return run(schema);
|
|
169
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import z4 from "./classic/
|
|
1
|
+
import * as z4 from "./classic/external.js";
|
|
2
2
|
export * from "./classic/index.js";
|
|
3
|
-
export default
|
|
3
|
+
// See the note in `src/index.ts` — aliasing keeps the default export shakable. Aliased from the namespace, not from `./classic/index.js`'s default, so both the tsc and Babel CJS outputs stay a plain `exports.default =` rather than a getter.
|
|
4
|
+
export { z4 as default };
|
|
@@ -5,6 +5,7 @@ const error = () => {
|
|
|
5
5
|
file: { unit: "بايت", verb: "أن يحوي" },
|
|
6
6
|
array: { unit: "عنصر", verb: "أن يحوي" },
|
|
7
7
|
set: { unit: "عنصر", verb: "أن يحوي" },
|
|
8
|
+
map: { unit: "عنصر", verb: "أن يحوي" },
|
|
8
9
|
};
|
|
9
10
|
function getSizing(origin) {
|
|
10
11
|
return Sizable[origin] ?? null;
|
|
@@ -30,12 +31,16 @@ const error = () => {
|
|
|
30
31
|
duration: "مدة بمعيار ISO",
|
|
31
32
|
ipv4: "عنوان IPv4",
|
|
32
33
|
ipv6: "عنوان IPv6",
|
|
34
|
+
mac: "عنوان MAC",
|
|
33
35
|
cidrv4: "مدى عناوين بصيغة IPv4",
|
|
34
36
|
cidrv6: "مدى عناوين بصيغة IPv6",
|
|
35
37
|
base64: "نَص بترميز base64-encoded",
|
|
36
38
|
base64url: "نَص بترميز base64url-encoded",
|
|
37
39
|
json_string: "نَص على هيئة JSON",
|
|
38
40
|
e164: "رقم هاتف بمعيار E.164",
|
|
41
|
+
credit_card: "رقم بطاقة الائتمان",
|
|
42
|
+
currency_code: "رمز العملة",
|
|
43
|
+
iban: "IBAN",
|
|
39
44
|
jwt: "JWT",
|
|
40
45
|
template_literal: "مدخل",
|
|
41
46
|
};
|
|
@@ -5,6 +5,7 @@ const error = () => {
|
|
|
5
5
|
file: { unit: "bayt", verb: "olmalıdır" },
|
|
6
6
|
array: { unit: "element", verb: "olmalıdır" },
|
|
7
7
|
set: { unit: "element", verb: "olmalıdır" },
|
|
8
|
+
map: { unit: "element", verb: "olmalıdır" },
|
|
8
9
|
};
|
|
9
10
|
function getSizing(origin) {
|
|
10
11
|
return Sizable[origin] ?? null;
|
|
@@ -30,12 +31,16 @@ const error = () => {
|
|
|
30
31
|
duration: "ISO duration",
|
|
31
32
|
ipv4: "IPv4 address",
|
|
32
33
|
ipv6: "IPv6 address",
|
|
34
|
+
mac: "MAC address",
|
|
33
35
|
cidrv4: "IPv4 range",
|
|
34
36
|
cidrv6: "IPv6 range",
|
|
35
37
|
base64: "base64-encoded string",
|
|
36
38
|
base64url: "base64url-encoded string",
|
|
37
39
|
json_string: "JSON string",
|
|
38
40
|
e164: "E.164 number",
|
|
41
|
+
credit_card: "kredit kartı nömrəsi",
|
|
42
|
+
currency_code: "valyuta kodu",
|
|
43
|
+
iban: "IBAN",
|
|
39
44
|
jwt: "JWT",
|
|
40
45
|
template_literal: "input",
|
|
41
46
|
};
|
|
@@ -40,6 +40,14 @@ const error = () => {
|
|
|
40
40
|
},
|
|
41
41
|
verb: "мець",
|
|
42
42
|
},
|
|
43
|
+
map: {
|
|
44
|
+
unit: {
|
|
45
|
+
one: "элемент",
|
|
46
|
+
few: "элементы",
|
|
47
|
+
many: "элементаў",
|
|
48
|
+
},
|
|
49
|
+
verb: "мець",
|
|
50
|
+
},
|
|
43
51
|
file: {
|
|
44
52
|
unit: {
|
|
45
53
|
one: "байт",
|
|
@@ -73,12 +81,16 @@ const error = () => {
|
|
|
73
81
|
duration: "ISO працягласць",
|
|
74
82
|
ipv4: "IPv4 адрас",
|
|
75
83
|
ipv6: "IPv6 адрас",
|
|
84
|
+
mac: "MAC адрас",
|
|
76
85
|
cidrv4: "IPv4 дыяпазон",
|
|
77
86
|
cidrv6: "IPv6 дыяпазон",
|
|
78
87
|
base64: "радок у фармаце base64",
|
|
79
88
|
base64url: "радок у фармаце base64url",
|
|
80
89
|
json_string: "JSON радок",
|
|
81
90
|
e164: "нумар E.164",
|
|
91
|
+
credit_card: "нумар крэдытнай карты",
|
|
92
|
+
currency_code: "код валюты",
|
|
93
|
+
iban: "IBAN",
|
|
82
94
|
jwt: "JWT",
|
|
83
95
|
template_literal: "увод",
|
|
84
96
|
};
|
|
@@ -5,6 +5,7 @@ const error = () => {
|
|
|
5
5
|
file: { unit: "байта", verb: "да съдържа" },
|
|
6
6
|
array: { unit: "елемента", verb: "да съдържа" },
|
|
7
7
|
set: { unit: "елемента", verb: "да съдържа" },
|
|
8
|
+
map: { unit: "елемента", verb: "да съдържа" },
|
|
8
9
|
};
|
|
9
10
|
function getSizing(origin) {
|
|
10
11
|
return Sizable[origin] ?? null;
|
|
@@ -30,12 +31,16 @@ const error = () => {
|
|
|
30
31
|
duration: "ISO продължителност",
|
|
31
32
|
ipv4: "IPv4 адрес",
|
|
32
33
|
ipv6: "IPv6 адрес",
|
|
34
|
+
mac: "MAC адрес",
|
|
33
35
|
cidrv4: "IPv4 диапазон",
|
|
34
36
|
cidrv6: "IPv6 диапазон",
|
|
35
37
|
base64: "base64-кодиран низ",
|
|
36
38
|
base64url: "base64url-кодиран низ",
|
|
37
39
|
json_string: "JSON низ",
|
|
38
40
|
e164: "E.164 номер",
|
|
41
|
+
credit_card: "номер на кредитна карта",
|
|
42
|
+
currency_code: "код на валута",
|
|
43
|
+
iban: "IBAN",
|
|
39
44
|
jwt: "JWT",
|
|
40
45
|
template_literal: "вход",
|
|
41
46
|
};
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import * as util from "../core/util.js";
|
|
2
|
+
const error = () => {
|
|
3
|
+
const Sizable = {
|
|
4
|
+
string: { unit: "অক্ষর", verb: "থাকতে হবে" },
|
|
5
|
+
file: { unit: "বাইট", verb: "থাকতে হবে" },
|
|
6
|
+
array: { unit: "আইটেম", verb: "থাকতে হবে" },
|
|
7
|
+
set: { unit: "আইটেম", verb: "থাকতে হবে" },
|
|
8
|
+
map: { unit: "এন্ট্রি", verb: "থাকতে হবে" },
|
|
9
|
+
};
|
|
10
|
+
function getSizing(origin) {
|
|
11
|
+
return Sizable[origin] ?? null;
|
|
12
|
+
}
|
|
13
|
+
const FormatDictionary = {
|
|
14
|
+
regex: "ইনপুট",
|
|
15
|
+
email: "ইমেইল ঠিকানা",
|
|
16
|
+
url: "URL",
|
|
17
|
+
emoji: "ইমোজি",
|
|
18
|
+
uuid: "UUID",
|
|
19
|
+
uuidv4: "UUIDv4",
|
|
20
|
+
uuidv6: "UUIDv6",
|
|
21
|
+
nanoid: "nanoid",
|
|
22
|
+
guid: "GUID",
|
|
23
|
+
cuid: "cuid",
|
|
24
|
+
cuid2: "cuid2",
|
|
25
|
+
ulid: "ULID",
|
|
26
|
+
xid: "XID",
|
|
27
|
+
ksuid: "KSUID",
|
|
28
|
+
datetime: "ISO তারিখ ও সময়",
|
|
29
|
+
date: "ISO তারিখ",
|
|
30
|
+
time: "ISO সময়",
|
|
31
|
+
duration: "ISO সময়কাল",
|
|
32
|
+
ipv4: "IPv4 ঠিকানা",
|
|
33
|
+
ipv6: "IPv6 ঠিকানা",
|
|
34
|
+
mac: "MAC ঠিকানা",
|
|
35
|
+
cidrv4: "IPv4 রেঞ্জ",
|
|
36
|
+
cidrv6: "IPv6 রেঞ্জ",
|
|
37
|
+
base64: "base64-এনকোডেড স্ট্রিং",
|
|
38
|
+
base64url: "base64url-এনকোডেড স্ট্রিং",
|
|
39
|
+
json_string: "JSON স্ট্রিং",
|
|
40
|
+
e164: "E.164 নম্বর",
|
|
41
|
+
credit_card: "ক্রেডিট কার্ড নম্বর",
|
|
42
|
+
currency_code: "মুদ্রা কোড",
|
|
43
|
+
iban: "IBAN",
|
|
44
|
+
jwt: "JWT",
|
|
45
|
+
template_literal: "ইনপুট",
|
|
46
|
+
};
|
|
47
|
+
const TypeDictionary = {
|
|
48
|
+
nan: "NaN",
|
|
49
|
+
};
|
|
50
|
+
return (issue) => {
|
|
51
|
+
switch (issue.code) {
|
|
52
|
+
case "invalid_type": {
|
|
53
|
+
const expected = TypeDictionary[issue.expected] ?? issue.expected;
|
|
54
|
+
const receivedType = util.parsedType(issue.input);
|
|
55
|
+
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
56
|
+
return `অবৈধ ইনপুট: প্রত্যাশিত ${expected}, প্রাপ্ত ${received}`;
|
|
57
|
+
}
|
|
58
|
+
case "invalid_value":
|
|
59
|
+
if (issue.values.length === 1)
|
|
60
|
+
return `অবৈধ ইনপুট: প্রত্যাশিত ${util.stringifyPrimitive(issue.values[0])}`;
|
|
61
|
+
return `অবৈধ অপশন: ${util.joinValues(issue.values, " | ")} এর মধ্যে একটি প্রত্যাশিত`;
|
|
62
|
+
case "too_big": {
|
|
63
|
+
const adj = issue.inclusive ? "<=" : "<";
|
|
64
|
+
const sizing = getSizing(issue.origin);
|
|
65
|
+
if (sizing)
|
|
66
|
+
return `অনেক বড়: ${issue.origin ?? "মান"} ${adj}${issue.maximum.toString()} ${sizing.unit ?? "এলিমেন্ট"} হতে হবে`;
|
|
67
|
+
return `অনেক বড়: ${issue.origin ?? "মান"} ${adj}${issue.maximum.toString()} হতে হবে`;
|
|
68
|
+
}
|
|
69
|
+
case "too_small": {
|
|
70
|
+
const adj = issue.inclusive ? ">=" : ">";
|
|
71
|
+
const sizing = getSizing(issue.origin);
|
|
72
|
+
if (sizing) {
|
|
73
|
+
return `অনেক ছোট: ${issue.origin} ${adj}${issue.minimum.toString()} ${sizing.unit} হতে হবে`;
|
|
74
|
+
}
|
|
75
|
+
return `অনেক ছোট: ${issue.origin} ${adj}${issue.minimum.toString()} হতে হবে`;
|
|
76
|
+
}
|
|
77
|
+
case "invalid_format": {
|
|
78
|
+
const _issue = issue;
|
|
79
|
+
if (_issue.format === "starts_with") {
|
|
80
|
+
return `অবৈধ স্ট্রিং: "${_issue.prefix}" দিয়ে শুরু হতে হবে`;
|
|
81
|
+
}
|
|
82
|
+
if (_issue.format === "ends_with")
|
|
83
|
+
return `অবৈধ স্ট্রিং: "${_issue.suffix}" দিয়ে শেষ হতে হবে`;
|
|
84
|
+
if (_issue.format === "includes")
|
|
85
|
+
return `অবৈধ স্ট্রিং: "${_issue.includes}" অন্তর্ভুক্ত থাকতে হবে`;
|
|
86
|
+
if (_issue.format === "regex")
|
|
87
|
+
return `অবৈধ স্ট্রিং: ${_issue.pattern} প্যাটার্ন মিলতে হবে`;
|
|
88
|
+
return `অবৈধ ${FormatDictionary[_issue.format] ?? issue.format}`;
|
|
89
|
+
}
|
|
90
|
+
case "not_multiple_of":
|
|
91
|
+
return `অবৈধ নম্বর: ${issue.divisor} এর গুণিতক হতে হবে`;
|
|
92
|
+
case "unrecognized_keys":
|
|
93
|
+
return `অচেনা কী${issue.keys.length > 1 ? "গুলো" : ""}: ${util.joinValues(issue.keys, ", ")}`;
|
|
94
|
+
case "invalid_key":
|
|
95
|
+
return `${issue.origin} এ অবৈধ কী`;
|
|
96
|
+
case "invalid_union":
|
|
97
|
+
if (issue.options && Array.isArray(issue.options) && issue.options.length > 0) {
|
|
98
|
+
const opts = issue.options.map((o) => `'${o}'`).join(" | ");
|
|
99
|
+
return `অবৈধ ডিসক্রিমিনেটর মান। প্রত্যাশিত ${opts}`;
|
|
100
|
+
}
|
|
101
|
+
return "অবৈধ ইনপুট";
|
|
102
|
+
case "invalid_element":
|
|
103
|
+
return `${issue.origin} এ অবৈধ মান`;
|
|
104
|
+
default:
|
|
105
|
+
return "অবৈধ ইনপুট";
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
export default function () {
|
|
110
|
+
return {
|
|
111
|
+
localeError: error(),
|
|
112
|
+
};
|
|
113
|
+
}
|
|
@@ -5,6 +5,7 @@ const error = () => {
|
|
|
5
5
|
file: { unit: "bytes", verb: "contenir" },
|
|
6
6
|
array: { unit: "elements", verb: "contenir" },
|
|
7
7
|
set: { unit: "elements", verb: "contenir" },
|
|
8
|
+
map: { unit: "elements", verb: "contenir" },
|
|
8
9
|
};
|
|
9
10
|
function getSizing(origin) {
|
|
10
11
|
return Sizable[origin] ?? null;
|
|
@@ -30,12 +31,16 @@ const error = () => {
|
|
|
30
31
|
duration: "durada ISO",
|
|
31
32
|
ipv4: "adreça IPv4",
|
|
32
33
|
ipv6: "adreça IPv6",
|
|
34
|
+
mac: "adreça MAC",
|
|
33
35
|
cidrv4: "rang IPv4",
|
|
34
36
|
cidrv6: "rang IPv6",
|
|
35
37
|
base64: "cadena codificada en base64",
|
|
36
38
|
base64url: "cadena codificada en base64url",
|
|
37
39
|
json_string: "cadena JSON",
|
|
38
40
|
e164: "número E.164",
|
|
41
|
+
credit_card: "número de targeta de crèdit",
|
|
42
|
+
currency_code: "codi de moneda",
|
|
43
|
+
iban: "IBAN",
|
|
39
44
|
jwt: "JWT",
|
|
40
45
|
template_literal: "entrada",
|
|
41
46
|
};
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import * as util from "../core/util.js";
|
|
2
|
+
const error = () => {
|
|
3
|
+
const Sizable = {
|
|
4
|
+
string: { unit: "پیت", verb: "بێت" },
|
|
5
|
+
file: { unit: "بایت", verb: "بێت" },
|
|
6
|
+
array: { unit: "دانە", verb: "بێت" },
|
|
7
|
+
set: { unit: "دانە", verb: "بێت" },
|
|
8
|
+
map: { unit: "دانە", verb: "بێت" },
|
|
9
|
+
};
|
|
10
|
+
function getSizing(origin) {
|
|
11
|
+
return Sizable[origin] ?? null;
|
|
12
|
+
}
|
|
13
|
+
const FormatDictionary = {
|
|
14
|
+
regex: "regex",
|
|
15
|
+
email: "ئیمەیڵ",
|
|
16
|
+
url: "بەستەر (URL)",
|
|
17
|
+
emoji: "ئیمۆجی",
|
|
18
|
+
uuid: "UUID",
|
|
19
|
+
uuidv4: "UUIDv4",
|
|
20
|
+
uuidv6: "UUIDv6",
|
|
21
|
+
nanoid: "nanoid",
|
|
22
|
+
guid: "GUID",
|
|
23
|
+
cuid: "cuid",
|
|
24
|
+
cuid2: "cuid2",
|
|
25
|
+
ulid: "ULID",
|
|
26
|
+
xid: "XID",
|
|
27
|
+
ksuid: "KSUID",
|
|
28
|
+
datetime: "ڕێکەوت و کات",
|
|
29
|
+
date: "ڕێکەوت",
|
|
30
|
+
time: "کات",
|
|
31
|
+
duration: "ماوە",
|
|
32
|
+
ipv4: "ناونیشانی IPv4",
|
|
33
|
+
ipv6: "ناونیشانی IPv6",
|
|
34
|
+
mac: "ناونیشانی MAC",
|
|
35
|
+
cidrv4: "مەودای IPv4",
|
|
36
|
+
cidrv6: "مەودای IPv6",
|
|
37
|
+
base64: "دەقی base64",
|
|
38
|
+
base64url: "دەقی base64url",
|
|
39
|
+
json_string: "دەقی JSON",
|
|
40
|
+
e164: "ژمارەی E.164",
|
|
41
|
+
credit_card: "ژمارەی کارتی کرێدیت",
|
|
42
|
+
currency_code: "کۆدی دراو",
|
|
43
|
+
iban: "IBAN",
|
|
44
|
+
jwt: "JWT",
|
|
45
|
+
template_literal: "تێکردە",
|
|
46
|
+
};
|
|
47
|
+
// type names: missing keys = do not translate (use raw value via ?? fallback)
|
|
48
|
+
const TypeDictionary = {
|
|
49
|
+
nan: "NaN",
|
|
50
|
+
string: "نووسین",
|
|
51
|
+
number: "ژمارە",
|
|
52
|
+
boolean: "boolean",
|
|
53
|
+
array: "array",
|
|
54
|
+
object: "object",
|
|
55
|
+
date: "ڕێکەوت",
|
|
56
|
+
integer: "ژمارە",
|
|
57
|
+
float: "ژمارە",
|
|
58
|
+
null: "null",
|
|
59
|
+
undefined: "undefined",
|
|
60
|
+
function: "function",
|
|
61
|
+
symbol: "symbol",
|
|
62
|
+
unknown: "unknown",
|
|
63
|
+
promise: "promise",
|
|
64
|
+
void: "void",
|
|
65
|
+
never: "never",
|
|
66
|
+
map: "map",
|
|
67
|
+
set: "set",
|
|
68
|
+
};
|
|
69
|
+
return (issue) => {
|
|
70
|
+
switch (issue.code) {
|
|
71
|
+
case "invalid_type": {
|
|
72
|
+
const expected = TypeDictionary[issue.expected] ?? issue.expected;
|
|
73
|
+
const receivedType = util.parsedType(issue.input);
|
|
74
|
+
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
75
|
+
const postfix = ["ا", "و", "ۆ", "وو", "ە", "ی", "ێ"].some((p) => received.endsWith(p)) ? "یە" : "ە";
|
|
76
|
+
const isEnglish = /^[a-zA-Z]+$/.test(received);
|
|
77
|
+
if (receivedType === "null" || receivedType === "undefined")
|
|
78
|
+
return `داواکراوە`;
|
|
79
|
+
return `چاوەڕوانکراوە ${expected} بێت، بەڵام ${received}${isEnglish ? "" : postfix}`;
|
|
80
|
+
}
|
|
81
|
+
case "invalid_value":
|
|
82
|
+
if (issue.values.length === 1)
|
|
83
|
+
return `بەهاکە نادرووستە: چاوەڕوانکراوە ${util.stringifyPrimitive(issue.values[0])} بێت`;
|
|
84
|
+
return `هەڵبژاردەی نادروست: چاوەڕوانکراوە یەکێک بێت لە ${util.joinValues(issue.values, "|")}`;
|
|
85
|
+
case "too_big": {
|
|
86
|
+
const sizing = getSizing(issue.origin);
|
|
87
|
+
if (sizing)
|
|
88
|
+
return `پێویستە بە لایەنی زۆرەوە ${issue.maximum.toString()} ${sizing.unit} ${sizing.verb}`;
|
|
89
|
+
return `پێویستە بە لایەنی زۆرەوە ${issue.maximum.toString()} بێت`;
|
|
90
|
+
}
|
|
91
|
+
case "too_small": {
|
|
92
|
+
const sizing = getSizing(issue.origin);
|
|
93
|
+
if (sizing)
|
|
94
|
+
return `پێویستە بە لایەنی کەمەوە ${issue.minimum.toString()} ${sizing.unit} ${sizing.verb}`;
|
|
95
|
+
return `پێویستە بە لایەنی کەمەوە ${issue.minimum.toString()} بێت`;
|
|
96
|
+
}
|
|
97
|
+
case "invalid_format": {
|
|
98
|
+
const _issue = issue;
|
|
99
|
+
if (_issue.format === "starts_with") {
|
|
100
|
+
return `دەقی نادروست: پێویستە دەستپێبکات بە "${_issue.prefix}"`;
|
|
101
|
+
}
|
|
102
|
+
if (_issue.format === "ends_with")
|
|
103
|
+
return `دەقی نادروست: پێویستە کۆتاییبێت بە "${_issue.suffix}"`;
|
|
104
|
+
if (_issue.format === "includes")
|
|
105
|
+
return `دەقی نادروست: پێویستە "${_issue.includes}" لەخۆبگرێت`;
|
|
106
|
+
if (_issue.format === "regex")
|
|
107
|
+
return `دەقی نادروست: پێویستە لەگەڵ پاتێرنی ${_issue.pattern} بگونجێت`;
|
|
108
|
+
return `بەهای ${FormatDictionary[_issue.format] ?? issue.format} نادروستە`;
|
|
109
|
+
}
|
|
110
|
+
case "not_multiple_of":
|
|
111
|
+
return `ژمارەی نادروست: دەبێت چەند هێندە بێت بۆ ${issue.divisor}`;
|
|
112
|
+
case "unrecognized_keys":
|
|
113
|
+
return `کلیلی نەناسراو: ${util.joinValues(issue.keys, ", ")}`;
|
|
114
|
+
case "invalid_key":
|
|
115
|
+
return `کلیلی نادروست لە ${issue.origin}`;
|
|
116
|
+
case "invalid_union":
|
|
117
|
+
if (issue.options && Array.isArray(issue.options) && issue.options.length > 0) {
|
|
118
|
+
const opts = issue.options.map((o) => `'${o}'`).join(" | ");
|
|
119
|
+
return `بەهای نەناسراو هەیە. بەهای چاوەڕوانکراو: ${opts}`;
|
|
120
|
+
}
|
|
121
|
+
return "یەکگرتنی نادروست";
|
|
122
|
+
case "invalid_element":
|
|
123
|
+
return `${issue.origin} بەهاکە نادروستە`;
|
|
124
|
+
default:
|
|
125
|
+
return `تێکردەی نادروست`;
|
|
126
|
+
}
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
export default function () {
|
|
130
|
+
return {
|
|
131
|
+
localeError: error(),
|
|
132
|
+
};
|
|
133
|
+
}
|
|
@@ -5,6 +5,7 @@ const error = () => {
|
|
|
5
5
|
file: { unit: "bajtů", verb: "mít" },
|
|
6
6
|
array: { unit: "prvků", verb: "mít" },
|
|
7
7
|
set: { unit: "prvků", verb: "mít" },
|
|
8
|
+
map: { unit: "prvků", verb: "mít" },
|
|
8
9
|
};
|
|
9
10
|
function getSizing(origin) {
|
|
10
11
|
return Sizable[origin] ?? null;
|
|
@@ -30,12 +31,16 @@ const error = () => {
|
|
|
30
31
|
duration: "doba trvání ISO",
|
|
31
32
|
ipv4: "IPv4 adresa",
|
|
32
33
|
ipv6: "IPv6 adresa",
|
|
34
|
+
mac: "MAC adresa",
|
|
33
35
|
cidrv4: "rozsah IPv4",
|
|
34
36
|
cidrv6: "rozsah IPv6",
|
|
35
37
|
base64: "řetězec zakódovaný ve formátu base64",
|
|
36
38
|
base64url: "řetězec zakódovaný ve formátu base64url",
|
|
37
39
|
json_string: "řetězec ve formátu JSON",
|
|
38
40
|
e164: "číslo E.164",
|
|
41
|
+
credit_card: "číslo kreditní karty",
|
|
42
|
+
currency_code: "kód měny",
|
|
43
|
+
iban: "IBAN",
|
|
39
44
|
jwt: "JWT",
|
|
40
45
|
template_literal: "vstup",
|
|
41
46
|
};
|
|
@@ -5,6 +5,7 @@ const error = () => {
|
|
|
5
5
|
file: { unit: "bytes", verb: "havde" },
|
|
6
6
|
array: { unit: "elementer", verb: "indeholdt" },
|
|
7
7
|
set: { unit: "elementer", verb: "indeholdt" },
|
|
8
|
+
map: { unit: "elementer", verb: "indeholdt" },
|
|
8
9
|
};
|
|
9
10
|
function getSizing(origin) {
|
|
10
11
|
return Sizable[origin] ?? null;
|
|
@@ -28,14 +29,18 @@ const error = () => {
|
|
|
28
29
|
date: "ISO-dato",
|
|
29
30
|
time: "ISO-klokkeslæt",
|
|
30
31
|
duration: "ISO-varighed",
|
|
31
|
-
ipv4: "IPv4-
|
|
32
|
-
ipv6: "IPv6-
|
|
32
|
+
ipv4: "IPv4-adresse",
|
|
33
|
+
ipv6: "IPv6-adresse",
|
|
34
|
+
mac: "MAC-adresse",
|
|
33
35
|
cidrv4: "IPv4-spektrum",
|
|
34
36
|
cidrv6: "IPv6-spektrum",
|
|
35
37
|
base64: "base64-kodet streng",
|
|
36
38
|
base64url: "base64url-kodet streng",
|
|
37
39
|
json_string: "JSON-streng",
|
|
38
40
|
e164: "E.164-nummer",
|
|
41
|
+
credit_card: "kreditkortnummer",
|
|
42
|
+
currency_code: "valutakode",
|
|
43
|
+
iban: "IBAN",
|
|
39
44
|
jwt: "JWT",
|
|
40
45
|
template_literal: "input",
|
|
41
46
|
};
|
|
@@ -5,6 +5,7 @@ const error = () => {
|
|
|
5
5
|
file: { unit: "Bytes", verb: "zu haben" },
|
|
6
6
|
array: { unit: "Elemente", verb: "zu haben" },
|
|
7
7
|
set: { unit: "Elemente", verb: "zu haben" },
|
|
8
|
+
map: { unit: "Elemente", verb: "zu haben" },
|
|
8
9
|
};
|
|
9
10
|
function getSizing(origin) {
|
|
10
11
|
return Sizable[origin] ?? null;
|
|
@@ -30,12 +31,16 @@ const error = () => {
|
|
|
30
31
|
duration: "ISO-Dauer",
|
|
31
32
|
ipv4: "IPv4-Adresse",
|
|
32
33
|
ipv6: "IPv6-Adresse",
|
|
34
|
+
mac: "MAC-Adresse",
|
|
33
35
|
cidrv4: "IPv4-Bereich",
|
|
34
36
|
cidrv6: "IPv6-Bereich",
|
|
35
37
|
base64: "Base64-codierter String",
|
|
36
38
|
base64url: "Base64-URL-codierter String",
|
|
37
39
|
json_string: "JSON-String",
|
|
38
40
|
e164: "E.164-Nummer",
|
|
41
|
+
credit_card: "Kreditkartennummer",
|
|
42
|
+
currency_code: "Währungscode",
|
|
43
|
+
iban: "IBAN",
|
|
39
44
|
jwt: "JWT",
|
|
40
45
|
template_literal: "Eingabe",
|
|
41
46
|
};
|