@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,111 @@
|
|
|
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} ${sizing.verb}`;
|
|
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} ${sizing.verb}`;
|
|
74
|
+
return `धेरै सानो: ${issue.origin} ${adj}${issue.minimum.toString()} हुनुपर्छ`;
|
|
75
|
+
}
|
|
76
|
+
case "invalid_format": {
|
|
77
|
+
const _issue = issue;
|
|
78
|
+
if (_issue.format === "starts_with")
|
|
79
|
+
return `अमान्य स्ट्रिङ: "${_issue.prefix}" बाट सुरु हुनुपर्छ`;
|
|
80
|
+
if (_issue.format === "ends_with")
|
|
81
|
+
return `अमान्य स्ट्रिङ: "${_issue.suffix}" मा समाप्त हुनुपर्छ`;
|
|
82
|
+
if (_issue.format === "includes")
|
|
83
|
+
return `अमान्य स्ट्रिङ: "${_issue.includes}" समावेश हुनुपर्छ`;
|
|
84
|
+
if (_issue.format === "regex")
|
|
85
|
+
return `अमान्य स्ट्रिङ: ढाँचा ${_issue.pattern} सँग मेल खानुपर्छ`;
|
|
86
|
+
return `अमान्य ${FormatDictionary[_issue.format] ?? issue.format}`;
|
|
87
|
+
}
|
|
88
|
+
case "not_multiple_of":
|
|
89
|
+
return `अमान्य संख्या: ${issue.divisor} को गुणज हुनुपर्छ`;
|
|
90
|
+
case "unrecognized_keys":
|
|
91
|
+
return `अपरिचित कुञ्जी${issue.keys.length > 1 ? "हरू" : ""}: ${util.joinValues(issue.keys, ", ")}`;
|
|
92
|
+
case "invalid_key":
|
|
93
|
+
return `अमान्य कुञ्जी: ${issue.origin} मा`;
|
|
94
|
+
case "invalid_union":
|
|
95
|
+
if (issue.options && Array.isArray(issue.options) && issue.options.length > 0) {
|
|
96
|
+
const opts = issue.options.map((o) => `'${o}'`).join(" | ");
|
|
97
|
+
return `अमान्य डिस्क्रिमिनेटर मान: अपेक्षित ${opts}`;
|
|
98
|
+
}
|
|
99
|
+
return "अमान्य इनपुट";
|
|
100
|
+
case "invalid_element":
|
|
101
|
+
return `अमान्य मान: ${issue.origin} मा`;
|
|
102
|
+
default:
|
|
103
|
+
return `अमान्य इनपुट`;
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
export default function () {
|
|
108
|
+
return {
|
|
109
|
+
localeError: error(),
|
|
110
|
+
};
|
|
111
|
+
}
|
|
@@ -5,6 +5,7 @@ const error = () => {
|
|
|
5
5
|
file: { unit: "bytes", verb: "heeft" },
|
|
6
6
|
array: { unit: "elementen", verb: "heeft" },
|
|
7
7
|
set: { unit: "elementen", verb: "heeft" },
|
|
8
|
+
map: { unit: "elementen", verb: "heeft" },
|
|
8
9
|
};
|
|
9
10
|
function getSizing(origin) {
|
|
10
11
|
return Sizable[origin] ?? null;
|
|
@@ -30,12 +31,16 @@ const error = () => {
|
|
|
30
31
|
duration: "ISO duur",
|
|
31
32
|
ipv4: "IPv4-adres",
|
|
32
33
|
ipv6: "IPv6-adres",
|
|
34
|
+
mac: "MAC-adres",
|
|
33
35
|
cidrv4: "IPv4-bereik",
|
|
34
36
|
cidrv6: "IPv6-bereik",
|
|
35
37
|
base64: "base64-gecodeerde tekst",
|
|
36
38
|
base64url: "base64 URL-gecodeerde tekst",
|
|
37
39
|
json_string: "JSON string",
|
|
38
40
|
e164: "E.164-nummer",
|
|
41
|
+
credit_card: "creditcardnummer",
|
|
42
|
+
currency_code: "valutacode",
|
|
43
|
+
iban: "IBAN",
|
|
39
44
|
jwt: "JWT",
|
|
40
45
|
template_literal: "invoer",
|
|
41
46
|
};
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import * as util from "../core/util.js";
|
|
2
|
+
const error = () => {
|
|
3
|
+
const Sizable = {
|
|
4
|
+
string: { unit: "teikn", verb: "å ha" },
|
|
5
|
+
file: { unit: "bytes", verb: "å ha" },
|
|
6
|
+
array: { unit: "element", verb: "å innehalde" },
|
|
7
|
+
set: { unit: "element", verb: "å innehalde" },
|
|
8
|
+
map: { unit: "element", verb: "å innehalde" },
|
|
9
|
+
};
|
|
10
|
+
function getSizing(origin) {
|
|
11
|
+
return Sizable[origin] ?? null;
|
|
12
|
+
}
|
|
13
|
+
const FormatDictionary = {
|
|
14
|
+
regex: "input",
|
|
15
|
+
email: "e-postadresse",
|
|
16
|
+
url: "URL",
|
|
17
|
+
emoji: "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 dato- og klokkeslett",
|
|
29
|
+
date: "ISO-dato",
|
|
30
|
+
time: "ISO-klokkeslett",
|
|
31
|
+
duration: "ISO-varigheit",
|
|
32
|
+
ipv4: "IPv4-adresse",
|
|
33
|
+
ipv6: "IPv6-adresse",
|
|
34
|
+
mac: "MAC-adresse",
|
|
35
|
+
cidrv4: "IPv4-spekter",
|
|
36
|
+
cidrv6: "IPv6-spekter",
|
|
37
|
+
base64: "base64-enkoda streng",
|
|
38
|
+
base64url: "base64url-enkoda streng",
|
|
39
|
+
json_string: "JSON-streng",
|
|
40
|
+
e164: "E.164-nummer",
|
|
41
|
+
credit_card: "kredittkortnummer",
|
|
42
|
+
currency_code: "valutakode",
|
|
43
|
+
iban: "IBAN",
|
|
44
|
+
jwt: "JWT",
|
|
45
|
+
template_literal: "input",
|
|
46
|
+
};
|
|
47
|
+
const TypeDictionary = {
|
|
48
|
+
nan: "NaN",
|
|
49
|
+
number: "tal",
|
|
50
|
+
array: "liste",
|
|
51
|
+
};
|
|
52
|
+
return (issue) => {
|
|
53
|
+
switch (issue.code) {
|
|
54
|
+
case "invalid_type": {
|
|
55
|
+
const expected = TypeDictionary[issue.expected] ?? issue.expected;
|
|
56
|
+
const receivedType = util.parsedType(issue.input);
|
|
57
|
+
const received = TypeDictionary[receivedType] ?? receivedType;
|
|
58
|
+
if (/^[A-Z]/.test(issue.expected)) {
|
|
59
|
+
return `Ugyldig input: forventa instanceof ${issue.expected}, fekk ${received}`;
|
|
60
|
+
}
|
|
61
|
+
return `Ugyldig input: forventa ${expected}, fekk ${received}`;
|
|
62
|
+
}
|
|
63
|
+
case "invalid_value":
|
|
64
|
+
if (issue.values.length === 1)
|
|
65
|
+
return `Ugyldig verdi: forventa ${util.stringifyPrimitive(issue.values[0])}`;
|
|
66
|
+
return `Ugyldig val: forventa eitt av ${util.joinValues(issue.values, "|")}`;
|
|
67
|
+
case "too_big": {
|
|
68
|
+
const adj = issue.inclusive ? "<=" : "<";
|
|
69
|
+
const sizing = getSizing(issue.origin);
|
|
70
|
+
if (sizing)
|
|
71
|
+
return `For stor(t): forventa ${issue.origin ?? "value"} til å ha ${adj}${issue.maximum.toString()} ${sizing.unit ?? "element"}`;
|
|
72
|
+
return `For stor(t): forventa ${issue.origin ?? "value"} til å ha ${adj}${issue.maximum.toString()}`;
|
|
73
|
+
}
|
|
74
|
+
case "too_small": {
|
|
75
|
+
const adj = issue.inclusive ? ">=" : ">";
|
|
76
|
+
const sizing = getSizing(issue.origin);
|
|
77
|
+
if (sizing) {
|
|
78
|
+
return `For lite(n): forventa ${issue.origin} til å ha ${adj}${issue.minimum.toString()} ${sizing.unit}`;
|
|
79
|
+
}
|
|
80
|
+
return `For lite(n): forventa ${issue.origin} til å ha ${adj}${issue.minimum.toString()}`;
|
|
81
|
+
}
|
|
82
|
+
case "invalid_format": {
|
|
83
|
+
const _issue = issue;
|
|
84
|
+
if (_issue.format === "starts_with")
|
|
85
|
+
return `Ugyldig streng: må starte med "${_issue.prefix}"`;
|
|
86
|
+
if (_issue.format === "ends_with")
|
|
87
|
+
return `Ugyldig streng: må slutte med "${_issue.suffix}"`;
|
|
88
|
+
if (_issue.format === "includes")
|
|
89
|
+
return `Ugyldig streng: må innehalde "${_issue.includes}"`;
|
|
90
|
+
if (_issue.format === "regex")
|
|
91
|
+
return `Ugyldig streng: må matche mønsteret ${_issue.pattern}`;
|
|
92
|
+
return `Ugyldig ${FormatDictionary[_issue.format] ?? issue.format}`;
|
|
93
|
+
}
|
|
94
|
+
case "not_multiple_of":
|
|
95
|
+
return `Ugyldig tal: må vere eit multiplum av ${issue.divisor}`;
|
|
96
|
+
case "unrecognized_keys":
|
|
97
|
+
return `${issue.keys.length > 1 ? "Ukjende nøklar" : "Ukjend nøkkel"}: ${util.joinValues(issue.keys, ", ")}`;
|
|
98
|
+
case "invalid_key":
|
|
99
|
+
return `Ugyldig nøkkel i ${issue.origin}`;
|
|
100
|
+
case "invalid_union":
|
|
101
|
+
return "Ugyldig input";
|
|
102
|
+
case "invalid_element":
|
|
103
|
+
return `Ugyldig verdi i ${issue.origin}`;
|
|
104
|
+
default:
|
|
105
|
+
return `Ugyldig input`;
|
|
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: "å ha" },
|
|
6
6
|
array: { unit: "elementer", verb: "å inneholde" },
|
|
7
7
|
set: { unit: "elementer", verb: "å inneholde" },
|
|
8
|
+
map: { unit: "elementer", verb: "å inneholde" },
|
|
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-klokkeslett",
|
|
30
31
|
duration: "ISO-varighet",
|
|
31
|
-
ipv4: "IPv4-
|
|
32
|
-
ipv6: "IPv6-
|
|
32
|
+
ipv4: "IPv4-adresse",
|
|
33
|
+
ipv6: "IPv6-adresse",
|
|
34
|
+
mac: "MAC-adresse",
|
|
33
35
|
cidrv4: "IPv4-spekter",
|
|
34
36
|
cidrv6: "IPv6-spekter",
|
|
35
37
|
base64: "base64-enkodet streng",
|
|
36
38
|
base64url: "base64url-enkodet streng",
|
|
37
39
|
json_string: "JSON-streng",
|
|
38
40
|
e164: "E.164-nummer",
|
|
41
|
+
credit_card: "kredittkortnummer",
|
|
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: "bayt", verb: "olmalıdır" },
|
|
6
6
|
array: { unit: "unsur", verb: "olmalıdır" },
|
|
7
7
|
set: { unit: "unsur", verb: "olmalıdır" },
|
|
8
|
+
map: { unit: "unsur", 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 müddeti",
|
|
31
32
|
ipv4: "IPv4 nişânı",
|
|
32
33
|
ipv6: "IPv6 nişânı",
|
|
34
|
+
mac: "MAC nişânı",
|
|
33
35
|
cidrv4: "IPv4 menzili",
|
|
34
36
|
cidrv6: "IPv6 menzili",
|
|
35
37
|
base64: "base64-şifreli metin",
|
|
36
38
|
base64url: "base64url-şifreli metin",
|
|
37
39
|
json_string: "JSON metin",
|
|
38
40
|
e164: "E.164 sayısı",
|
|
41
|
+
credit_card: "i'tibâr kartı numarası",
|
|
42
|
+
currency_code: "para birimi kodu",
|
|
43
|
+
iban: "IBAN",
|
|
39
44
|
jwt: "JWT",
|
|
40
45
|
template_literal: "giren",
|
|
41
46
|
};
|
|
@@ -5,6 +5,7 @@ const error = () => {
|
|
|
5
5
|
file: { unit: "bajtów", verb: "mieć" },
|
|
6
6
|
array: { unit: "elementów", verb: "mieć" },
|
|
7
7
|
set: { unit: "elementów", verb: "mieć" },
|
|
8
|
+
map: { unit: "elementów", verb: "mieć" },
|
|
8
9
|
};
|
|
9
10
|
function getSizing(origin) {
|
|
10
11
|
return Sizable[origin] ?? null;
|
|
@@ -30,12 +31,16 @@ const error = () => {
|
|
|
30
31
|
duration: "czas trwania ISO",
|
|
31
32
|
ipv4: "adres IPv4",
|
|
32
33
|
ipv6: "adres IPv6",
|
|
34
|
+
mac: "adres MAC",
|
|
33
35
|
cidrv4: "zakres IPv4",
|
|
34
36
|
cidrv6: "zakres IPv6",
|
|
35
37
|
base64: "ciąg znaków zakodowany w formacie base64",
|
|
36
38
|
base64url: "ciąg znaków zakodowany w formacie base64url",
|
|
37
39
|
json_string: "ciąg znaków w formacie JSON",
|
|
38
40
|
e164: "liczba E.164",
|
|
41
|
+
credit_card: "numer karty kredytowej",
|
|
42
|
+
currency_code: "kod waluty",
|
|
43
|
+
iban: "IBAN",
|
|
39
44
|
jwt: "JWT",
|
|
40
45
|
template_literal: "wejście",
|
|
41
46
|
};
|
|
@@ -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: "موده",
|
|
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
|
};
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import * as util from "../core/util.js";
|
|
2
|
+
const error = () => {
|
|
3
|
+
const Sizable = {
|
|
4
|
+
string: { unit: "caracteres" },
|
|
5
|
+
file: { unit: "bytes" },
|
|
6
|
+
array: { unit: "elementos" },
|
|
7
|
+
set: { unit: "elementos" },
|
|
8
|
+
map: { unit: "entradas" },
|
|
9
|
+
};
|
|
10
|
+
function getSizing(origin) {
|
|
11
|
+
return Sizable[origin] ?? null;
|
|
12
|
+
}
|
|
13
|
+
const FormatDictionary = {
|
|
14
|
+
regex: "a entrada",
|
|
15
|
+
email: "o endereço de e-mail",
|
|
16
|
+
url: "o URL",
|
|
17
|
+
emoji: "o emoji",
|
|
18
|
+
uuid: "o UUID",
|
|
19
|
+
uuidv4: "o UUIDv4",
|
|
20
|
+
uuidv6: "o UUIDv6",
|
|
21
|
+
nanoid: "o nanoid",
|
|
22
|
+
guid: "o GUID",
|
|
23
|
+
cuid: "o cuid",
|
|
24
|
+
cuid2: "o cuid2",
|
|
25
|
+
ulid: "o ULID",
|
|
26
|
+
xid: "o XID",
|
|
27
|
+
ksuid: "o KSUID",
|
|
28
|
+
datetime: "a data e hora ISO",
|
|
29
|
+
date: "a data ISO",
|
|
30
|
+
time: "a hora ISO",
|
|
31
|
+
duration: "a duração ISO",
|
|
32
|
+
ipv4: "o endereço IPv4",
|
|
33
|
+
ipv6: "o endereço IPv6",
|
|
34
|
+
mac: "o endereço MAC",
|
|
35
|
+
cidrv4: "a faixa de endereços IPv4",
|
|
36
|
+
cidrv6: "a faixa de endereços IPv6",
|
|
37
|
+
base64: "o texto codificado em base64",
|
|
38
|
+
base64url: "o texto codificado em base64url",
|
|
39
|
+
json_string: "o texto JSON",
|
|
40
|
+
e164: "o número E.164",
|
|
41
|
+
credit_card: "o número de cartão de crédito",
|
|
42
|
+
currency_code: "o código de moeda",
|
|
43
|
+
iban: "o IBAN",
|
|
44
|
+
jwt: "o JWT",
|
|
45
|
+
template_literal: "a entrada",
|
|
46
|
+
};
|
|
47
|
+
const Gender = {
|
|
48
|
+
masculine: { definite: "o", indefinite: "um" },
|
|
49
|
+
feminine: { definite: "a", indefinite: "uma" },
|
|
50
|
+
};
|
|
51
|
+
const TypeDictionary = {
|
|
52
|
+
string: { name: "texto", articles: Gender.masculine },
|
|
53
|
+
number: { name: "número", articles: Gender.masculine },
|
|
54
|
+
int: { name: "número inteiro", articles: Gender.masculine },
|
|
55
|
+
boolean: { name: "valor booleano", articles: Gender.masculine },
|
|
56
|
+
bigint: { name: "número bigint", articles: Gender.masculine },
|
|
57
|
+
symbol: { name: "símbolo", articles: Gender.masculine },
|
|
58
|
+
undefined: { name: 'valor "undefined"', articles: Gender.masculine },
|
|
59
|
+
null: { name: 'valor "nulo"', articles: Gender.masculine },
|
|
60
|
+
never: { name: 'valor "never"', articles: Gender.masculine },
|
|
61
|
+
void: { name: 'valor "void"', articles: Gender.masculine },
|
|
62
|
+
date: { name: "data", articles: Gender.feminine },
|
|
63
|
+
array: { name: "vetor", articles: Gender.masculine },
|
|
64
|
+
object: { name: "objeto", articles: Gender.masculine },
|
|
65
|
+
tuple: { name: "tupla", articles: Gender.feminine },
|
|
66
|
+
record: { name: "registro", articles: Gender.masculine },
|
|
67
|
+
map: { name: "mapa", articles: Gender.masculine },
|
|
68
|
+
set: { name: "conjunto", articles: Gender.masculine },
|
|
69
|
+
file: { name: "arquivo", articles: Gender.masculine },
|
|
70
|
+
nonoptional: { name: "valor não opcional", articles: Gender.masculine },
|
|
71
|
+
nan: { name: 'valor "NaN"', articles: Gender.masculine }, // Compatibility: "nan" -> "NaN" for display
|
|
72
|
+
function: { name: "função", articles: Gender.feminine },
|
|
73
|
+
};
|
|
74
|
+
function translateOriginWithArticle(type, articleType) {
|
|
75
|
+
const translatedValue = TypeDictionary[type] ?? { name: `valor "${type}"`, articles: Gender.masculine };
|
|
76
|
+
return `${translatedValue.articles[articleType]} ${translatedValue.name}`;
|
|
77
|
+
}
|
|
78
|
+
return (issue) => {
|
|
79
|
+
switch (issue.code) {
|
|
80
|
+
case "invalid_type": {
|
|
81
|
+
const expected = translateOriginWithArticle(issue.expected, "indefinite");
|
|
82
|
+
const receivedType = util.parsedType(issue.input);
|
|
83
|
+
const received = translateOriginWithArticle(receivedType, "indefinite");
|
|
84
|
+
return `Entrada inválida: esperava ${expected}, recebeu ${received}`;
|
|
85
|
+
}
|
|
86
|
+
case "invalid_value":
|
|
87
|
+
if (issue.values.length === 1)
|
|
88
|
+
return `Entrada inválida: esperava ${util.stringifyPrimitive(issue.values[0])}`;
|
|
89
|
+
return `Opção inválida: esperava uma das seguintes opções: ${util.joinValues(issue.values, "|")}`;
|
|
90
|
+
case "too_big": {
|
|
91
|
+
const adj = issue.inclusive ? "<=" : "<";
|
|
92
|
+
const sizing = getSizing(issue.origin);
|
|
93
|
+
if (sizing)
|
|
94
|
+
return `Grande demais: esperava que ${translateOriginWithArticle(issue.origin, "definite")} tivesse ${adj} ${issue.maximum.toString()} ${sizing.unit ?? "elementos"}`;
|
|
95
|
+
return `Grande demais: esperava que ${translateOriginWithArticle(issue.origin, "definite")} fosse ${adj} ${issue.maximum.toString()}`;
|
|
96
|
+
}
|
|
97
|
+
case "too_small": {
|
|
98
|
+
const adj = issue.inclusive ? ">=" : ">";
|
|
99
|
+
const sizing = getSizing(issue.origin);
|
|
100
|
+
if (sizing) {
|
|
101
|
+
return `Pequeno demais: esperava que ${translateOriginWithArticle(issue.origin, "definite")} tivesse ${adj} ${issue.minimum.toString()} ${sizing.unit ?? "elementos"}`;
|
|
102
|
+
}
|
|
103
|
+
return `Pequeno demais: esperava que ${translateOriginWithArticle(issue.origin, "definite")} fosse ${adj} ${issue.minimum.toString()}`;
|
|
104
|
+
}
|
|
105
|
+
case "invalid_format": {
|
|
106
|
+
const _issue = issue;
|
|
107
|
+
if (_issue.format === "starts_with") {
|
|
108
|
+
return `Texto inválido: deve começar com "${_issue.prefix}"`;
|
|
109
|
+
}
|
|
110
|
+
if (_issue.format === "ends_with")
|
|
111
|
+
return `Texto inválido: deve terminar com "${_issue.suffix}"`;
|
|
112
|
+
if (_issue.format === "includes")
|
|
113
|
+
return `Texto inválido: deve incluir "${_issue.includes}"`;
|
|
114
|
+
if (_issue.format === "regex")
|
|
115
|
+
return `Texto inválido: deve corresponder ao padrão ${_issue.pattern}`;
|
|
116
|
+
return `Formato d${FormatDictionary[_issue.format] ?? issue.format} inválido`;
|
|
117
|
+
}
|
|
118
|
+
case "not_multiple_of":
|
|
119
|
+
return `Número inválido: deve ser múltiplo de ${issue.divisor}`;
|
|
120
|
+
case "unrecognized_keys": {
|
|
121
|
+
const plural = issue.keys.length > 1 ? "s" : "";
|
|
122
|
+
return `Chave${plural} inválida${plural}: ${util.joinValues(issue.keys, ", ")}`;
|
|
123
|
+
}
|
|
124
|
+
case "invalid_key":
|
|
125
|
+
return `Entrada inválida n${translateOriginWithArticle(issue.origin, "definite")}`;
|
|
126
|
+
case "invalid_union":
|
|
127
|
+
if (issue.options && Array.isArray(issue.options) && issue.options.length > 0) {
|
|
128
|
+
const opts = issue.options.map((o) => `'${o}'`).join(" | ");
|
|
129
|
+
return `Valor de discriminação inválido. Esperava ${opts}`;
|
|
130
|
+
}
|
|
131
|
+
return "Entrada inválida";
|
|
132
|
+
case "invalid_element":
|
|
133
|
+
return `Entrada inválida n${translateOriginWithArticle(issue.origin, "definite")}`;
|
|
134
|
+
default:
|
|
135
|
+
return `Entrada inválida`;
|
|
136
|
+
}
|
|
137
|
+
};
|
|
138
|
+
};
|
|
139
|
+
export default function () {
|
|
140
|
+
return {
|
|
141
|
+
localeError: error(),
|
|
142
|
+
};
|
|
143
|
+
}
|