@nullix/zod-mongoose-studio 3.3.2 → 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.
Files changed (322) hide show
  1. package/.output/nitro.json +1 -1
  2. package/.output/public/_nuxt/{B7ScFmDB.js → 5ZXm4f56.js} +1 -1
  3. package/.output/public/_nuxt/{DbqvVYbv.js → B2fcLSyW.js} +1 -1
  4. package/.output/public/_nuxt/{DKK0Mrrg.js → BBN7l5Hn.js} +1 -1
  5. package/.output/public/_nuxt/BBTTtb8r.js +41 -0
  6. package/.output/public/_nuxt/{C8xmwXC2.js → BDbISGvP.js} +1 -1
  7. package/.output/public/_nuxt/{DJa7_7Hz.js → BijI4RNx.js} +1 -1
  8. package/.output/public/_nuxt/{BlZ0x31M.js → Bp9qkJ9m.js} +1 -1
  9. package/.output/public/_nuxt/{BcYnCaqL.js → Bu3-sqCf.js} +1 -1
  10. package/.output/public/_nuxt/{C919AVYR.js → C-FtTvwz.js} +1 -1
  11. package/.output/public/_nuxt/C02JV0Aj.js +1 -0
  12. package/.output/public/_nuxt/{Bbi9UBvi.js → C1UkIsDc.js} +1 -1
  13. package/.output/public/_nuxt/{PXBhK7S_.js → CJT28r6J.js} +1 -1
  14. package/.output/public/_nuxt/{BC9tFNFa.js → CL7qtgl2.js} +3 -3
  15. package/.output/public/_nuxt/{B6lqezyA.js → CRMd2YH2.js} +3 -3
  16. package/.output/public/_nuxt/{YC-RLggm.js → CRkdQgFz.js} +1 -1
  17. package/.output/public/_nuxt/{iKW_mt0p.js → Cw1XFOz5.js} +1 -1
  18. package/.output/public/_nuxt/{d1NBz903.js → D5yWk6Ly.js} +1 -1
  19. package/.output/public/_nuxt/{iGzUozbF.js → DA9GjKpR.js} +1 -1
  20. package/.output/public/_nuxt/{JkiDMdYG.js → DaWAlZhp.js} +1 -1
  21. package/.output/public/_nuxt/{OVQ3C2Ge.js → DafLMUHo.js} +1 -1
  22. package/.output/public/_nuxt/{Bw82IGM8.js → Dyaldc-t.js} +1 -1
  23. package/.output/public/_nuxt/{CsQL5F-l.js → UU9fpRNQ.js} +1 -1
  24. package/.output/public/_nuxt/builds/latest.json +1 -1
  25. package/.output/public/_nuxt/builds/meta/717459d8-0da1-42ed-af0b-9ec5395e8fdc.json +1 -0
  26. package/.output/public/_nuxt/entry.CDPplHzk.css +1 -0
  27. package/.output/public/_nuxt/error-404.hPtlUQpd.css +1 -0
  28. package/.output/public/_nuxt/error-500.E-PXUb6B.css +1 -0
  29. package/.output/public/_nuxt/{DbUZZZZu.js → kFZJW2-u.js} +2 -2
  30. package/.output/public/_nuxt/{B8gqXD2U.js → u3DlT5Mh.js} +1 -1
  31. package/.output/server/chunks/_/error-500.mjs.map +1 -1
  32. package/.output/server/chunks/_/parse-request.mjs +29 -0
  33. package/.output/server/chunks/_/parse-request.mjs.map +1 -0
  34. package/.output/server/chunks/build/client.precomputed.mjs +1 -1
  35. package/.output/server/chunks/build/{error-404-KRkA0DPI.mjs → error-404-aQ5PiVuX.mjs} +6 -12
  36. package/.output/server/chunks/build/error-404-aQ5PiVuX.mjs.map +1 -0
  37. package/.output/server/chunks/build/error-404-styles.DIZfBVBR.mjs +8 -0
  38. package/.output/server/chunks/build/error-404-styles.DIZfBVBR.mjs.map +1 -0
  39. package/.output/server/chunks/build/{error-500-DIIFf55p.mjs → error-500-BY6ZAZZ2.mjs} +6 -12
  40. package/.output/server/chunks/build/error-500-BY6ZAZZ2.mjs.map +1 -0
  41. package/.output/server/chunks/build/error-500-styles.BZXgEzR5.mjs +8 -0
  42. package/.output/server/chunks/build/error-500-styles.BZXgEzR5.mjs.map +1 -0
  43. package/.output/server/chunks/build/index-57_mtIua.mjs +235 -0
  44. package/.output/server/chunks/build/index-57_mtIua.mjs.map +1 -0
  45. package/.output/server/chunks/build/{index-CB1N4gax.mjs → index-Qa-4KqCB.mjs} +7 -13
  46. package/.output/server/chunks/build/index-Qa-4KqCB.mjs.map +1 -0
  47. package/.output/server/chunks/build/server.mjs +3913 -3378
  48. package/.output/server/chunks/build/server.mjs.map +1 -1
  49. package/.output/server/chunks/build/styles.mjs +4 -4
  50. package/.output/server/chunks/nitro/nitro.mjs +562 -2188
  51. package/.output/server/chunks/nitro/nitro.mjs.map +1 -1
  52. package/.output/server/chunks/routes/api/editor-types.get.mjs +0 -6
  53. package/.output/server/chunks/routes/api/editor-types.get.mjs.map +1 -1
  54. package/.output/server/chunks/routes/api/parse.post.mjs +1599 -7
  55. package/.output/server/chunks/routes/api/parse.post.mjs.map +1 -1
  56. package/.output/server/chunks/routes/api/resolve.get.mjs +0 -6
  57. package/.output/server/chunks/routes/api/resolve.get.mjs.map +1 -1
  58. package/.output/server/chunks/routes/api/studio/run.post.mjs +41 -8
  59. package/.output/server/chunks/routes/api/studio/run.post.mjs.map +1 -1
  60. package/.output/server/chunks/routes/renderer.mjs +21 -44
  61. package/.output/server/chunks/routes/renderer.mjs.map +1 -1
  62. package/.output/server/index.mjs +1 -7
  63. package/.output/server/index.mjs.map +1 -1
  64. package/.output/server/node_modules/.nitro/@vue/compiler-core@3.5.43/dist/compiler-core.cjs.prod.js +6801 -0
  65. package/.output/server/node_modules/.nitro/@vue/compiler-core@3.5.43/package.json +58 -0
  66. package/.output/server/node_modules/.nitro/@vue/compiler-dom@3.5.43/dist/compiler-dom.cjs.prod.js +692 -0
  67. package/.output/server/node_modules/.nitro/@vue/compiler-dom@3.5.43/package.json +57 -0
  68. package/.output/server/node_modules/.nitro/@vue/reactivity@3.5.43/dist/reactivity.cjs.prod.js +1905 -0
  69. package/.output/server/node_modules/.nitro/@vue/reactivity@3.5.43/package.json +55 -0
  70. package/.output/server/node_modules/.nitro/@vue/runtime-core@3.5.43/dist/runtime-core.cjs.prod.js +7006 -0
  71. package/.output/server/node_modules/.nitro/@vue/runtime-core@3.5.43/package.json +52 -0
  72. package/.output/server/node_modules/.nitro/@vue/runtime-dom@3.5.43/dist/runtime-dom.cjs.prod.js +1867 -0
  73. package/.output/server/node_modules/.nitro/@vue/runtime-dom@3.5.43/package.json +60 -0
  74. package/.output/server/node_modules/.nitro/@vue/shared@3.5.43/dist/shared.cjs.prod.js +655 -0
  75. package/.output/server/node_modules/.nitro/@vue/shared@3.5.43/package.json +47 -0
  76. package/.output/server/node_modules/.nitro/source-map-js@1.2.2/lib/array-set.js +121 -0
  77. package/.output/server/node_modules/.nitro/source-map-js@1.2.2/lib/base64-vlq.js +140 -0
  78. package/.output/server/node_modules/.nitro/source-map-js@1.2.2/lib/base64.js +67 -0
  79. package/.output/server/node_modules/.nitro/source-map-js@1.2.2/lib/binary-search.js +111 -0
  80. package/.output/server/node_modules/.nitro/source-map-js@1.2.2/lib/mapping-list.js +79 -0
  81. package/.output/server/node_modules/.nitro/source-map-js@1.2.2/lib/quick-sort.js +141 -0
  82. package/.output/server/node_modules/.nitro/source-map-js@1.2.2/lib/source-map-consumer.js +1236 -0
  83. package/.output/server/node_modules/.nitro/source-map-js@1.2.2/lib/source-map-generator.js +446 -0
  84. package/.output/server/node_modules/.nitro/source-map-js@1.2.2/lib/source-node.js +420 -0
  85. package/.output/server/node_modules/.nitro/source-map-js@1.2.2/lib/util.js +594 -0
  86. package/.output/server/node_modules/.nitro/source-map-js@1.2.2/package.json +71 -0
  87. package/.output/server/node_modules/.nitro/source-map-js@1.2.2/source-map.js +8 -0
  88. package/.output/server/node_modules/.nitro/vue@3.5.43/dist/vue.cjs.js +80 -0
  89. package/.output/server/node_modules/.nitro/vue@3.5.43/dist/vue.cjs.prod.js +66 -0
  90. package/.output/server/node_modules/.nitro/vue@3.5.43/index.js +7 -0
  91. package/.output/server/node_modules/.nitro/vue@3.5.43/index.mjs +1 -0
  92. package/.output/server/node_modules/.nitro/vue@3.5.43/package.json +112 -0
  93. package/.output/server/node_modules/@babel/parser/lib/index.js +55 -21
  94. package/.output/server/node_modules/@babel/parser/package.json +7 -7
  95. package/.output/server/node_modules/@esbuild/linux-x64/bin/esbuild +0 -0
  96. package/.output/server/node_modules/@esbuild/linux-x64/package.json +1 -1
  97. package/.output/server/node_modules/@iconify/utils/lib/colors/index.js +19 -16
  98. package/.output/server/node_modules/@iconify/utils/lib/colors/keywords.js +3 -4
  99. package/.output/server/node_modules/@iconify/utils/lib/css/common.js +16 -16
  100. package/.output/server/node_modules/@iconify/utils/lib/css/format.js +1 -2
  101. package/.output/server/node_modules/@iconify/utils/lib/css/icon.js +11 -14
  102. package/.output/server/node_modules/@iconify/utils/lib/css/icons.js +13 -16
  103. package/.output/server/node_modules/@iconify/utils/lib/customisations/bool.js +1 -2
  104. package/.output/server/node_modules/@iconify/utils/lib/customisations/defaults.js +1 -3
  105. package/.output/server/node_modules/@iconify/utils/lib/customisations/flip.js +2 -5
  106. package/.output/server/node_modules/@iconify/utils/lib/customisations/merge.js +1 -3
  107. package/.output/server/node_modules/@iconify/utils/lib/customisations/rotate.js +4 -5
  108. package/.output/server/node_modules/@iconify/utils/lib/emoji/cleanup.js +1 -3
  109. package/.output/server/node_modules/@iconify/utils/lib/emoji/convert.js +9 -11
  110. package/.output/server/node_modules/@iconify/utils/lib/emoji/data.js +1 -2
  111. package/.output/server/node_modules/@iconify/utils/lib/emoji/format.js +1 -3
  112. package/.output/server/node_modules/@iconify/utils/lib/emoji/parse.js +1 -3
  113. package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/base.js +12 -18
  114. package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/create.js +3 -4
  115. package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/numbers.js +5 -7
  116. package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/similar.js +1 -8
  117. package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/tree.js +11 -12
  118. package/.output/server/node_modules/@iconify/utils/lib/emoji/replace/find.js +5 -7
  119. package/.output/server/node_modules/@iconify/utils/lib/emoji/replace/replace.js +1 -3
  120. package/.output/server/node_modules/@iconify/utils/lib/emoji/test/components.js +1 -3
  121. package/.output/server/node_modules/@iconify/utils/lib/emoji/test/missing.js +7 -7
  122. package/.output/server/node_modules/@iconify/utils/lib/emoji/test/name.js +2 -4
  123. package/.output/server/node_modules/@iconify/utils/lib/emoji/test/parse.js +5 -9
  124. package/.output/server/node_modules/@iconify/utils/lib/emoji/test/similar.js +3 -5
  125. package/.output/server/node_modules/@iconify/utils/lib/emoji/test/tree.js +2 -4
  126. package/.output/server/node_modules/@iconify/utils/lib/emoji/test/variations.js +7 -8
  127. package/.output/server/node_modules/@iconify/utils/lib/icon/defaults.js +1 -2
  128. package/.output/server/node_modules/@iconify/utils/lib/icon/merge.js +1 -3
  129. package/.output/server/node_modules/@iconify/utils/lib/icon/name.js +3 -4
  130. package/.output/server/node_modules/@iconify/utils/lib/icon/square.js +1 -2
  131. package/.output/server/node_modules/@iconify/utils/lib/icon/transformations.js +1 -2
  132. package/.output/server/node_modules/@iconify/utils/lib/icon-set/convert-info.js +10 -15
  133. package/.output/server/node_modules/@iconify/utils/lib/icon-set/expand.js +1 -3
  134. package/.output/server/node_modules/@iconify/utils/lib/icon-set/get-icon.js +3 -5
  135. package/.output/server/node_modules/@iconify/utils/lib/icon-set/get-icons.js +1 -3
  136. package/.output/server/node_modules/@iconify/utils/lib/icon-set/minify.js +1 -3
  137. package/.output/server/node_modules/@iconify/utils/lib/icon-set/parse.js +1 -3
  138. package/.output/server/node_modules/@iconify/utils/lib/icon-set/tree.js +1 -2
  139. package/.output/server/node_modules/@iconify/utils/lib/icon-set/validate-basic.js +1 -3
  140. package/.output/server/node_modules/@iconify/utils/lib/icon-set/validate.js +21 -13
  141. package/.output/server/node_modules/@iconify/utils/lib/index.js +1 -2
  142. package/.output/server/node_modules/@iconify/utils/lib/loader/custom.js +3 -3
  143. package/.output/server/node_modules/@iconify/utils/lib/loader/hmr-utils.js +33 -0
  144. package/.output/server/node_modules/@iconify/utils/lib/loader/loader.js +22 -22
  145. package/.output/server/node_modules/@iconify/utils/lib/loader/modern.js +7 -22
  146. package/.output/server/node_modules/@iconify/utils/lib/loader/utils.js +60 -16
  147. package/.output/server/node_modules/@iconify/utils/lib/misc/objects.js +1 -2
  148. package/.output/server/node_modules/@iconify/utils/lib/misc/strings.js +1 -2
  149. package/.output/server/node_modules/@iconify/utils/lib/misc/title.js +1 -2
  150. package/.output/server/node_modules/@iconify/utils/lib/svg/build.js +9 -11
  151. package/.output/server/node_modules/@iconify/utils/lib/svg/defs.js +1 -2
  152. package/.output/server/node_modules/@iconify/utils/lib/svg/encode-svg-for-css.js +1 -3
  153. package/.output/server/node_modules/@iconify/utils/lib/svg/html.js +1 -2
  154. package/.output/server/node_modules/@iconify/utils/lib/svg/id.js +1 -2
  155. package/.output/server/node_modules/@iconify/utils/lib/svg/inner-html.js +1 -2
  156. package/.output/server/node_modules/@iconify/utils/lib/svg/parse.js +3 -5
  157. package/.output/server/node_modules/@iconify/utils/lib/svg/pretty.js +5 -4
  158. package/.output/server/node_modules/@iconify/utils/lib/svg/size.js +1 -2
  159. package/.output/server/node_modules/@iconify/utils/lib/svg/trim.js +1 -2
  160. package/.output/server/node_modules/@iconify/utils/lib/svg/url.js +1 -2
  161. package/.output/server/node_modules/@iconify/utils/lib/svg/viewbox.js +2 -3
  162. package/.output/server/node_modules/@iconify/utils/package.json +15 -13
  163. package/.output/server/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +8 -1
  164. package/.output/server/node_modules/@vue/compiler-ssr/package.json +3 -3
  165. package/.output/server/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js +34 -13
  166. package/.output/server/node_modules/@vue/server-renderer/package.json +4 -6
  167. package/.output/server/node_modules/devalue/index.js +15 -2
  168. package/.output/server/node_modules/devalue/package.json +5 -3
  169. package/.output/server/node_modules/devalue/src/base64.js +46 -96
  170. package/.output/server/node_modules/devalue/src/constants.js +5 -0
  171. package/.output/server/node_modules/devalue/src/operations.js +221 -0
  172. package/.output/server/node_modules/devalue/src/parse.js +76 -62
  173. package/.output/server/node_modules/devalue/src/stringify.js +164 -81
  174. package/.output/server/node_modules/devalue/src/uneval.js +312 -104
  175. package/.output/server/node_modules/devalue/src/utils.js +61 -19
  176. package/.output/server/node_modules/esbuild/lib/main.js +12 -8
  177. package/.output/server/node_modules/esbuild/package.json +50 -50
  178. package/.output/server/node_modules/hookable/dist/index.mjs +2 -11
  179. package/.output/server/node_modules/hookable/package.json +23 -22
  180. package/.output/server/node_modules/ip-address/dist/ipv4.js +7 -0
  181. package/.output/server/node_modules/ip-address/package.json +1 -1
  182. package/.output/server/node_modules/zod/package.json +20 -8
  183. package/.output/server/node_modules/zod/v4/classic/checks.js +1 -1
  184. package/.output/server/node_modules/zod/v4/classic/deep-partial.js +13 -0
  185. package/.output/server/node_modules/zod/v4/classic/errors.js +44 -35
  186. package/.output/server/node_modules/zod/v4/classic/external.js +5 -8
  187. package/.output/server/node_modules/zod/v4/classic/from-json-schema.js +375 -78
  188. package/.output/server/node_modules/zod/v4/classic/in-out.js +36 -0
  189. package/.output/server/node_modules/zod/v4/classic/index.js +2 -2
  190. package/.output/server/node_modules/zod/v4/classic/iso.js +2 -17
  191. package/.output/server/node_modules/zod/v4/classic/package.json +2 -1
  192. package/.output/server/node_modules/zod/v4/classic/parse.js +1 -0
  193. package/.output/server/node_modules/zod/v4/classic/schemas.js +601 -223
  194. package/.output/server/node_modules/zod/v4/core/api.js +51 -26
  195. package/.output/server/node_modules/zod/v4/core/checks.js +68 -127
  196. package/.output/server/node_modules/zod/v4/core/compile.js +1858 -0
  197. package/.output/server/node_modules/zod/v4/core/core.js +87 -22
  198. package/.output/server/node_modules/zod/v4/core/doc.js +12 -9
  199. package/.output/server/node_modules/zod/v4/core/errors.js +127 -42
  200. package/.output/server/node_modules/zod/v4/core/index.js +3 -0
  201. package/.output/server/node_modules/zod/v4/core/json-schema-generator.js +6 -2
  202. package/.output/server/node_modules/zod/v4/core/json-schema-processors.js +413 -175
  203. package/.output/server/node_modules/zod/v4/core/memoizer.js +311 -0
  204. package/.output/server/node_modules/zod/v4/core/package.json +2 -1
  205. package/.output/server/node_modules/zod/v4/core/parse.js +130 -48
  206. package/.output/server/node_modules/zod/v4/core/regexes.js +39 -16
  207. package/.output/server/node_modules/zod/v4/core/registries.js +2 -2
  208. package/.output/server/node_modules/zod/v4/core/schemas.js +895 -382
  209. package/.output/server/node_modules/zod/v4/core/to-json-schema.js +253 -39
  210. package/.output/server/node_modules/zod/v4/core/util.js +383 -175
  211. package/.output/server/node_modules/zod/v4/core/versions.js +2 -2
  212. package/.output/server/node_modules/zod/v4/core/visit.js +169 -0
  213. package/.output/server/node_modules/zod/v4/index.js +3 -2
  214. package/.output/server/node_modules/zod/v4/locales/ar.js +5 -0
  215. package/.output/server/node_modules/zod/v4/locales/az.js +5 -0
  216. package/.output/server/node_modules/zod/v4/locales/be.js +12 -0
  217. package/.output/server/node_modules/zod/v4/locales/bg.js +5 -0
  218. package/.output/server/node_modules/zod/v4/locales/bn.js +113 -0
  219. package/.output/server/node_modules/zod/v4/locales/ca.js +5 -0
  220. package/.output/server/node_modules/zod/v4/locales/ckb.js +133 -0
  221. package/.output/server/node_modules/zod/v4/locales/cs.js +5 -0
  222. package/.output/server/node_modules/zod/v4/locales/da.js +7 -2
  223. package/.output/server/node_modules/zod/v4/locales/de.js +5 -0
  224. package/.output/server/node_modules/zod/v4/locales/el.js +112 -0
  225. package/.output/server/node_modules/zod/v4/locales/en.js +20 -4
  226. package/.output/server/node_modules/zod/v4/locales/eo.js +5 -0
  227. package/.output/server/node_modules/zod/v4/locales/es.js +4 -0
  228. package/.output/server/node_modules/zod/v4/locales/fa.js +5 -0
  229. package/.output/server/node_modules/zod/v4/locales/fi.js +5 -0
  230. package/.output/server/node_modules/zod/v4/locales/fr-CA.js +5 -0
  231. package/.output/server/node_modules/zod/v4/locales/fr.js +38 -17
  232. package/.output/server/node_modules/zod/v4/locales/gu.js +113 -0
  233. package/.output/server/node_modules/zod/v4/locales/he.js +7 -0
  234. package/.output/server/node_modules/zod/v4/locales/hi.js +111 -0
  235. package/.output/server/node_modules/zod/v4/locales/hr.js +126 -0
  236. package/.output/server/node_modules/zod/v4/locales/hu.js +5 -0
  237. package/.output/server/node_modules/zod/v4/locales/hy.js +11 -0
  238. package/.output/server/node_modules/zod/v4/locales/id.js +5 -0
  239. package/.output/server/node_modules/zod/v4/locales/index.js +14 -0
  240. package/.output/server/node_modules/zod/v4/locales/is.js +5 -0
  241. package/.output/server/node_modules/zod/v4/locales/it.js +6 -1
  242. package/.output/server/node_modules/zod/v4/locales/ja.js +5 -0
  243. package/.output/server/node_modules/zod/v4/locales/ka.js +13 -8
  244. package/.output/server/node_modules/zod/v4/locales/km.js +5 -0
  245. package/.output/server/node_modules/zod/v4/locales/kn.js +116 -0
  246. package/.output/server/node_modules/zod/v4/locales/ko.js +5 -0
  247. package/.output/server/node_modules/zod/v4/locales/lt.js +4 -0
  248. package/.output/server/node_modules/zod/v4/locales/mk.js +5 -0
  249. package/.output/server/node_modules/zod/v4/locales/ms.js +5 -0
  250. package/.output/server/node_modules/zod/v4/locales/ne.js +111 -0
  251. package/.output/server/node_modules/zod/v4/locales/nl.js +5 -0
  252. package/.output/server/node_modules/zod/v4/locales/nn.js +113 -0
  253. package/.output/server/node_modules/zod/v4/locales/no.js +7 -2
  254. package/.output/server/node_modules/zod/v4/locales/ota.js +5 -0
  255. package/.output/server/node_modules/zod/v4/locales/package.json +2 -1
  256. package/.output/server/node_modules/zod/v4/locales/pl.js +5 -0
  257. package/.output/server/node_modules/zod/v4/locales/ps.js +5 -0
  258. package/.output/server/node_modules/zod/v4/locales/pt-BR.js +143 -0
  259. package/.output/server/node_modules/zod/v4/locales/pt.js +89 -55
  260. package/.output/server/node_modules/zod/v4/locales/ro.js +122 -0
  261. package/.output/server/node_modules/zod/v4/locales/ru.js +12 -0
  262. package/.output/server/node_modules/zod/v4/locales/sk.js +116 -0
  263. package/.output/server/node_modules/zod/v4/locales/sl.js +5 -0
  264. package/.output/server/node_modules/zod/v4/locales/sv.js +7 -2
  265. package/.output/server/node_modules/zod/v4/locales/ta.js +5 -0
  266. package/.output/server/node_modules/zod/v4/locales/tg.js +117 -0
  267. package/.output/server/node_modules/zod/v4/locales/th.js +5 -0
  268. package/.output/server/node_modules/zod/v4/locales/tk.js +107 -0
  269. package/.output/server/node_modules/zod/v4/locales/tr.js +5 -0
  270. package/.output/server/node_modules/zod/v4/locales/uk.js +5 -0
  271. package/.output/server/node_modules/zod/v4/locales/ur.js +5 -0
  272. package/.output/server/node_modules/zod/v4/locales/uz.js +4 -0
  273. package/.output/server/node_modules/zod/v4/locales/vi.js +5 -0
  274. package/.output/server/node_modules/zod/v4/locales/yo.js +5 -0
  275. package/.output/server/node_modules/zod/v4/locales/zh-CN.js +5 -0
  276. package/.output/server/node_modules/zod/v4/locales/zh-TW.js +5 -0
  277. package/.output/server/node_modules/zod/v4/package.json +2 -1
  278. package/.output/server/package.json +18 -18
  279. package/README.md +9 -0
  280. package/package.json +8 -8
  281. package/.output/public/_nuxt/Czp4_2o-.js +0 -33
  282. package/.output/public/_nuxt/builds/meta/46174b5e-cab6-4a73-95f8-66a1c9b1be2b.json +0 -1
  283. package/.output/public/_nuxt/entry.DaqrxXuH.css +0 -1
  284. package/.output/public/_nuxt/error-404.CTSXlFYa.css +0 -1
  285. package/.output/public/_nuxt/error-500.DqEfQnVZ.css +0 -1
  286. package/.output/server/chunks/build/error-404-KRkA0DPI.mjs.map +0 -1
  287. package/.output/server/chunks/build/error-404-styles.I0NYw-Bn.mjs +0 -8
  288. package/.output/server/chunks/build/error-404-styles.I0NYw-Bn.mjs.map +0 -1
  289. package/.output/server/chunks/build/error-500-DIIFf55p.mjs.map +0 -1
  290. package/.output/server/chunks/build/error-500-styles.D1cs9hQy.mjs +0 -8
  291. package/.output/server/chunks/build/error-500-styles.D1cs9hQy.mjs.map +0 -1
  292. package/.output/server/chunks/build/index-CB1N4gax.mjs.map +0 -1
  293. /package/.output/server/node_modules/{@vue/compiler-core → .nitro/@vue/compiler-core@3.5.32}/dist/compiler-core.cjs.prod.js +0 -0
  294. /package/.output/server/node_modules/{@vue/compiler-core → .nitro/@vue/compiler-core@3.5.32}/package.json +0 -0
  295. /package/.output/server/node_modules/{@vue/compiler-dom → .nitro/@vue/compiler-dom@3.5.32}/dist/compiler-dom.cjs.prod.js +0 -0
  296. /package/.output/server/node_modules/{@vue/compiler-dom → .nitro/@vue/compiler-dom@3.5.32}/package.json +0 -0
  297. /package/.output/server/node_modules/{@vue/reactivity → .nitro/@vue/reactivity@3.5.32}/dist/reactivity.cjs.prod.js +0 -0
  298. /package/.output/server/node_modules/{@vue/reactivity → .nitro/@vue/reactivity@3.5.32}/package.json +0 -0
  299. /package/.output/server/node_modules/{@vue/runtime-core → .nitro/@vue/runtime-core@3.5.32}/dist/runtime-core.cjs.prod.js +0 -0
  300. /package/.output/server/node_modules/{@vue/runtime-core → .nitro/@vue/runtime-core@3.5.32}/package.json +0 -0
  301. /package/.output/server/node_modules/{@vue/runtime-dom → .nitro/@vue/runtime-dom@3.5.32}/dist/runtime-dom.cjs.prod.js +0 -0
  302. /package/.output/server/node_modules/{@vue/runtime-dom → .nitro/@vue/runtime-dom@3.5.32}/package.json +0 -0
  303. /package/.output/server/node_modules/{@vue/shared → .nitro/@vue/shared@3.5.32}/dist/shared.cjs.prod.js +0 -0
  304. /package/.output/server/node_modules/{@vue/shared → .nitro/@vue/shared@3.5.32}/package.json +0 -0
  305. /package/.output/server/node_modules/{source-map-js → .nitro/source-map-js@1.2.1}/lib/array-set.js +0 -0
  306. /package/.output/server/node_modules/{source-map-js → .nitro/source-map-js@1.2.1}/lib/base64-vlq.js +0 -0
  307. /package/.output/server/node_modules/{source-map-js → .nitro/source-map-js@1.2.1}/lib/base64.js +0 -0
  308. /package/.output/server/node_modules/{source-map-js → .nitro/source-map-js@1.2.1}/lib/binary-search.js +0 -0
  309. /package/.output/server/node_modules/{source-map-js → .nitro/source-map-js@1.2.1}/lib/mapping-list.js +0 -0
  310. /package/.output/server/node_modules/{source-map-js → .nitro/source-map-js@1.2.1}/lib/quick-sort.js +0 -0
  311. /package/.output/server/node_modules/{source-map-js → .nitro/source-map-js@1.2.1}/lib/source-map-consumer.js +0 -0
  312. /package/.output/server/node_modules/{source-map-js → .nitro/source-map-js@1.2.1}/lib/source-map-generator.js +0 -0
  313. /package/.output/server/node_modules/{source-map-js → .nitro/source-map-js@1.2.1}/lib/source-node.js +0 -0
  314. /package/.output/server/node_modules/{source-map-js → .nitro/source-map-js@1.2.1}/lib/util.js +0 -0
  315. /package/.output/server/node_modules/{source-map-js → .nitro/source-map-js@1.2.1}/package.json +0 -0
  316. /package/.output/server/node_modules/{source-map-js → .nitro/source-map-js@1.2.1}/source-map.js +0 -0
  317. /package/.output/server/node_modules/{vue → .nitro/vue@3.5.32}/dist/vue.cjs.js +0 -0
  318. /package/.output/server/node_modules/{vue → .nitro/vue@3.5.32}/dist/vue.cjs.prod.js +0 -0
  319. /package/.output/server/node_modules/{vue → .nitro/vue@3.5.32}/index.js +0 -0
  320. /package/.output/server/node_modules/{vue → .nitro/vue@3.5.32}/index.mjs +0 -0
  321. /package/.output/server/node_modules/{vue → .nitro/vue@3.5.32}/package.json +0 -0
  322. /package/.output/server/node_modules/{vue → .nitro/vue@3.5.43}/server-renderer/index.mjs +0 -0
@@ -0,0 +1,112 @@
1
+ import * as util from "../core/util.js";
2
+ const error = () => {
3
+ const Sizable = {
4
+ string: { unit: "χαρακτήρες", verb: "να έχει" },
5
+ file: { unit: "bytes", 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: "διεύθυνση email",
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 ημερομηνία και ώρα",
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
+ if (typeof issue.expected === "string" && /^[A-Z]/.test(issue.expected)) {
57
+ return `Μη έγκυρη είσοδος: αναμενόταν instanceof ${issue.expected}, λήφθηκε ${received}`;
58
+ }
59
+ return `Μη έγκυρη είσοδος: αναμενόταν ${expected}, λήφθηκε ${received}`;
60
+ }
61
+ case "invalid_value":
62
+ if (issue.values.length === 1)
63
+ return `Μη έγκυρη είσοδος: αναμενόταν ${util.stringifyPrimitive(issue.values[0])}`;
64
+ return `Μη έγκυρη επιλογή: αναμενόταν ένα από ${util.joinValues(issue.values, "|")}`;
65
+ case "too_big": {
66
+ const adj = issue.inclusive ? "<=" : "<";
67
+ const sizing = getSizing(issue.origin);
68
+ if (sizing)
69
+ return `Πολύ μεγάλο: αναμενόταν ${issue.origin ?? "τιμή"} να έχει ${adj}${issue.maximum.toString()} ${sizing.unit ?? "στοιχεία"}`;
70
+ return `Πολύ μεγάλο: αναμενόταν ${issue.origin ?? "τιμή"} να είναι ${adj}${issue.maximum.toString()}`;
71
+ }
72
+ case "too_small": {
73
+ const adj = issue.inclusive ? ">=" : ">";
74
+ const sizing = getSizing(issue.origin);
75
+ if (sizing) {
76
+ return `Πολύ μικρό: αναμενόταν ${issue.origin} να έχει ${adj}${issue.minimum.toString()} ${sizing.unit}`;
77
+ }
78
+ return `Πολύ μικρό: αναμενόταν ${issue.origin} να είναι ${adj}${issue.minimum.toString()}`;
79
+ }
80
+ case "invalid_format": {
81
+ const _issue = issue;
82
+ if (_issue.format === "starts_with") {
83
+ return `Μη έγκυρη συμβολοσειρά: πρέπει να ξεκινά με "${_issue.prefix}"`;
84
+ }
85
+ if (_issue.format === "ends_with")
86
+ return `Μη έγκυρη συμβολοσειρά: πρέπει να τελειώνει με "${_issue.suffix}"`;
87
+ if (_issue.format === "includes")
88
+ return `Μη έγκυρη συμβολοσειρά: πρέπει να περιέχει "${_issue.includes}"`;
89
+ if (_issue.format === "regex")
90
+ return `Μη έγκυρη συμβολοσειρά: πρέπει να ταιριάζει με το μοτίβο ${_issue.pattern}`;
91
+ return `Μη έγκυρο: ${FormatDictionary[_issue.format] ?? issue.format}`;
92
+ }
93
+ case "not_multiple_of":
94
+ return `Μη έγκυρος αριθμός: πρέπει να είναι πολλαπλάσιο του ${issue.divisor}`;
95
+ case "unrecognized_keys":
96
+ return `Άγνωστ${issue.keys.length > 1 ? "α" : "ο"} κλειδ${issue.keys.length > 1 ? "ιά" : "ί"}: ${util.joinValues(issue.keys, ", ")}`;
97
+ case "invalid_key":
98
+ return `Μη έγκυρο κλειδί στο ${issue.origin}`;
99
+ case "invalid_union":
100
+ return "Μη έγκυρη είσοδος";
101
+ case "invalid_element":
102
+ return `Μη έγκυρη τιμή στο ${issue.origin}`;
103
+ default:
104
+ return `Μη έγκυρη είσοδος`;
105
+ }
106
+ };
107
+ };
108
+ export default function () {
109
+ return {
110
+ localeError: error(),
111
+ };
112
+ }
@@ -38,6 +38,9 @@ const error = () => {
38
38
  base64url: "base64url-encoded string",
39
39
  json_string: "JSON string",
40
40
  e164: "E.164 number",
41
+ currency_code: "currency code",
42
+ credit_card: "credit card number",
43
+ iban: "IBAN",
41
44
  jwt: "JWT",
42
45
  template_literal: "input",
43
46
  };
@@ -47,12 +50,18 @@ const error = () => {
47
50
  nan: "NaN",
48
51
  // All other type names omitted - they fall back to raw values via ?? operator
49
52
  };
53
+ function getTypeName(type, input) {
54
+ if (type === "number" && typeof input === "number" && !Number.isFinite(input)) {
55
+ return String(input);
56
+ }
57
+ return TypeDictionary[type] ?? type;
58
+ }
50
59
  return (issue) => {
51
60
  switch (issue.code) {
52
61
  case "invalid_type": {
53
- const expected = TypeDictionary[issue.expected] ?? issue.expected;
62
+ const expected = getTypeName(issue.expected);
54
63
  const receivedType = util.parsedType(issue.input);
55
- const received = TypeDictionary[receivedType] ?? receivedType;
64
+ const received = getTypeName(receivedType, issue.input);
56
65
  return `Invalid input: expected ${expected}, received ${received}`;
57
66
  }
58
67
  case "invalid_value":
@@ -60,14 +69,14 @@ const error = () => {
60
69
  return `Invalid input: expected ${util.stringifyPrimitive(issue.values[0])}`;
61
70
  return `Invalid option: expected one of ${util.joinValues(issue.values, "|")}`;
62
71
  case "too_big": {
63
- const adj = issue.inclusive ? "<=" : "<";
72
+ const adj = issue.exact ? "exactly " : issue.inclusive ? "<=" : "<";
64
73
  const sizing = getSizing(issue.origin);
65
74
  if (sizing)
66
75
  return `Too big: expected ${issue.origin ?? "value"} to have ${adj}${issue.maximum.toString()} ${sizing.unit ?? "elements"}`;
67
76
  return `Too big: expected ${issue.origin ?? "value"} to be ${adj}${issue.maximum.toString()}`;
68
77
  }
69
78
  case "too_small": {
70
- const adj = issue.inclusive ? ">=" : ">";
79
+ const adj = issue.exact ? "exactly " : issue.inclusive ? ">=" : ">";
71
80
  const sizing = getSizing(issue.origin);
72
81
  if (sizing) {
73
82
  return `Too small: expected ${issue.origin} to have ${adj}${issue.minimum.toString()} ${sizing.unit}`;
@@ -94,6 +103,13 @@ const error = () => {
94
103
  case "invalid_key":
95
104
  return `Invalid key in ${issue.origin}`;
96
105
  case "invalid_union":
106
+ if (issue.options && Array.isArray(issue.options) && issue.options.length > 0) {
107
+ const opts = issue.options.map((o) => `'${o}'`).join(" | ");
108
+ return `Invalid discriminator value. Expected ${opts}`;
109
+ }
110
+ if (issue.inclusive === false) {
111
+ return "Invalid input: more than one option matched";
112
+ }
97
113
  return "Invalid input";
98
114
  case "invalid_element":
99
115
  return `Invalid value in ${issue.origin}`;
@@ -5,6 +5,7 @@ const error = () => {
5
5
  file: { unit: "bajtojn", verb: "havi" },
6
6
  array: { unit: "elementojn", verb: "havi" },
7
7
  set: { unit: "elementojn", verb: "havi" },
8
+ map: { unit: "elementojn", verb: "havi" },
8
9
  };
9
10
  function getSizing(origin) {
10
11
  return Sizable[origin] ?? null;
@@ -30,12 +31,16 @@ const error = () => {
30
31
  duration: "ISO-daŭro",
31
32
  ipv4: "IPv4-adreso",
32
33
  ipv6: "IPv6-adreso",
34
+ mac: "MAC-adreso",
33
35
  cidrv4: "IPv4-rango",
34
36
  cidrv6: "IPv6-rango",
35
37
  base64: "64-ume kodita karaktraro",
36
38
  base64url: "URL-64-ume kodita karaktraro",
37
39
  json_string: "JSON-karaktraro",
38
40
  e164: "E.164-nombro",
41
+ credit_card: "kreditkarta numero",
42
+ currency_code: "valuta kodo",
43
+ iban: "IBAN",
39
44
  jwt: "JWT",
40
45
  template_literal: "enigo",
41
46
  };
@@ -30,12 +30,16 @@ const error = () => {
30
30
  duration: "duración ISO",
31
31
  ipv4: "dirección IPv4",
32
32
  ipv6: "dirección IPv6",
33
+ mac: "dirección MAC",
33
34
  cidrv4: "rango IPv4",
34
35
  cidrv6: "rango IPv6",
35
36
  base64: "cadena codificada en base64",
36
37
  base64url: "URL codificada en base64",
37
38
  json_string: "cadena JSON",
38
39
  e164: "número E.164",
40
+ credit_card: "número de tarjeta de crédito",
41
+ currency_code: "código de moneda",
42
+ iban: "IBAN",
39
43
  jwt: "JWT",
40
44
  template_literal: "entrada",
41
45
  };
@@ -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
  };
@@ -5,6 +5,7 @@ const error = () => {
5
5
  file: { unit: "tavua", subject: "tiedoston" },
6
6
  array: { unit: "alkiota", subject: "listan" },
7
7
  set: { unit: "alkiota", subject: "joukon" },
8
+ map: { unit: "alkiota", subject: "kuvauksen" },
8
9
  number: { unit: "", subject: "luvun" },
9
10
  bigint: { unit: "", subject: "suuren kokonaisluvun" },
10
11
  int: { unit: "", subject: "kokonaisluvun" },
@@ -34,12 +35,16 @@ const error = () => {
34
35
  duration: "ISO-kesto",
35
36
  ipv4: "IPv4-osoite",
36
37
  ipv6: "IPv6-osoite",
38
+ mac: "MAC-osoite",
37
39
  cidrv4: "IPv4-alue",
38
40
  cidrv6: "IPv6-alue",
39
41
  base64: "base64-koodattu merkkijono",
40
42
  base64url: "base64url-koodattu merkkijono",
41
43
  json_string: "JSON-merkkijono",
42
44
  e164: "E.164-luku",
45
+ credit_card: "luottokortin numero",
46
+ currency_code: "valuuttakoodi",
47
+ iban: "IBAN",
43
48
  jwt: "JWT",
44
49
  template_literal: "templaattimerkkijono",
45
50
  };
@@ -5,6 +5,7 @@ const error = () => {
5
5
  file: { unit: "octets", verb: "avoir" },
6
6
  array: { unit: "éléments", verb: "avoir" },
7
7
  set: { unit: "éléments", verb: "avoir" },
8
+ map: { unit: "éléments", verb: "avoir" },
8
9
  };
9
10
  function getSizing(origin) {
10
11
  return Sizable[origin] ?? null;
@@ -30,12 +31,16 @@ const error = () => {
30
31
  duration: "durée ISO",
31
32
  ipv4: "adresse IPv4",
32
33
  ipv6: "adresse IPv6",
34
+ mac: "adresse MAC",
33
35
  cidrv4: "plage IPv4",
34
36
  cidrv6: "plage IPv6",
35
37
  base64: "chaîne encodée en base64",
36
38
  base64url: "chaîne encodée en base64url",
37
39
  json_string: "chaîne JSON",
38
40
  e164: "numéro E.164",
41
+ credit_card: "numéro de carte de crédit",
42
+ currency_code: "code de devise",
43
+ iban: "IBAN",
39
44
  jwt: "JWT",
40
45
  template_literal: "entrée",
41
46
  };
@@ -10,7 +10,7 @@ const error = () => {
10
10
  return Sizable[origin] ?? null;
11
11
  }
12
12
  const FormatDictionary = {
13
- regex: "entrée",
13
+ regex: "expression régulière",
14
14
  email: "adresse e-mail",
15
15
  url: "URL",
16
16
  emoji: "emoji",
@@ -30,19 +30,41 @@ const error = () => {
30
30
  duration: "durée ISO",
31
31
  ipv4: "adresse IPv4",
32
32
  ipv6: "adresse IPv6",
33
+ mac: "adresse MAC",
33
34
  cidrv4: "plage IPv4",
34
35
  cidrv6: "plage IPv6",
35
- base64: "chaîne encodée en base64",
36
- base64url: "chaîne encodée en base64url",
37
- json_string: "chaîne JSON",
38
- e164: "numéro E.164",
36
+ base64: "chaîne de caractères encodée en base64",
37
+ base64url: "chaîne de caractères encodée en base64url",
38
+ json_string: "chaîne de caractères JSON",
39
+ e164: "numéro au format E.164",
40
+ credit_card: "numéro de carte de crédit",
41
+ currency_code: "code de devise",
42
+ iban: "IBAN",
39
43
  jwt: "JWT",
40
44
  template_literal: "entrée",
41
45
  };
42
46
  const TypeDictionary = {
43
- nan: "NaN",
47
+ string: "chaîne de caractères",
44
48
  number: "nombre",
49
+ int: "entier",
50
+ boolean: "booléen",
51
+ bigint: "grand entier",
52
+ symbol: "symbole",
53
+ undefined: "indéfini",
54
+ null: "null",
55
+ never: "jamais",
56
+ void: "vide",
57
+ date: "date",
45
58
  array: "tableau",
59
+ object: "objet",
60
+ tuple: "tuple",
61
+ record: "record",
62
+ map: "map",
63
+ set: "ensemble",
64
+ file: "fichier",
65
+ nonoptional: "non optionnel",
66
+ nan: "NaN",
67
+ function: "fonction",
46
68
  };
47
69
  return (issue) => {
48
70
  switch (issue.code) {
@@ -51,7 +73,7 @@ const error = () => {
51
73
  const receivedType = util.parsedType(issue.input);
52
74
  const received = TypeDictionary[receivedType] ?? receivedType;
53
75
  if (/^[A-Z]/.test(issue.expected)) {
54
- return `Entrée invalide : instanceof ${issue.expected} attendu, ${received} reçu`;
76
+ return `Entrée invalide : instance de ${issue.expected} attendu, ${received} reçu`;
55
77
  }
56
78
  return `Entrée invalide : ${expected} attendu, ${received} reçu`;
57
79
  }
@@ -63,27 +85,26 @@ const error = () => {
63
85
  const adj = issue.inclusive ? "<=" : "<";
64
86
  const sizing = getSizing(issue.origin);
65
87
  if (sizing)
66
- return `Trop grand : ${issue.origin ?? "valeur"} doit ${sizing.verb} ${adj}${issue.maximum.toString()} ${sizing.unit ?? "élément(s)"}`;
67
- return `Trop grand : ${issue.origin ?? "valeur"} doit être ${adj}${issue.maximum.toString()}`;
88
+ return `Trop grand : ${TypeDictionary[issue.origin] ?? "valeur"} doit ${sizing.verb} ${adj}${issue.maximum.toString()} ${sizing.unit ?? "élément(s)"}`;
89
+ return `Trop grand : ${TypeDictionary[issue.origin] ?? "valeur"} doit être ${adj}${issue.maximum.toString()}`;
68
90
  }
69
91
  case "too_small": {
70
92
  const adj = issue.inclusive ? ">=" : ">";
71
93
  const sizing = getSizing(issue.origin);
72
- if (sizing) {
73
- return `Trop petit : ${issue.origin} doit ${sizing.verb} ${adj}${issue.minimum.toString()} ${sizing.unit}`;
74
- }
75
- return `Trop petit : ${issue.origin} doit être ${adj}${issue.minimum.toString()}`;
94
+ if (sizing)
95
+ return `Trop petit : ${TypeDictionary[issue.origin] ?? "valeur"} doit ${sizing.verb} ${adj}${issue.minimum.toString()} ${sizing.unit}`;
96
+ return `Trop petit : ${TypeDictionary[issue.origin] ?? "valeur"} doit être ${adj}${issue.minimum.toString()}`;
76
97
  }
77
98
  case "invalid_format": {
78
99
  const _issue = issue;
79
100
  if (_issue.format === "starts_with")
80
- return `Chaîne invalide : doit commencer par "${_issue.prefix}"`;
101
+ return `Chaîne de caractères invalide : doit commencer par "${_issue.prefix}"`;
81
102
  if (_issue.format === "ends_with")
82
- return `Chaîne invalide : doit se terminer par "${_issue.suffix}"`;
103
+ return `Chaîne de caractères invalide : doit se terminer par "${_issue.suffix}"`;
83
104
  if (_issue.format === "includes")
84
- return `Chaîne invalide : doit inclure "${_issue.includes}"`;
105
+ return `Chaîne de caractères invalide : doit inclure "${_issue.includes}"`;
85
106
  if (_issue.format === "regex")
86
- return `Chaîne invalide : doit correspondre au modèle ${_issue.pattern}`;
107
+ return `Chaîne de caractères invalide : doit correspondre au motif ${_issue.pattern}`;
87
108
  return `${FormatDictionary[_issue.format] ?? issue.format} invalide`;
88
109
  }
89
110
  case "not_multiple_of":
@@ -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
+ }
@@ -55,6 +55,8 @@ const error = () => {
55
55
  url: { label: "כתובת רשת", gender: "f" },
56
56
  emoji: { label: "אימוג'י", gender: "m" },
57
57
  uuid: { label: "UUID", gender: "m" },
58
+ uuidv4: { label: "UUIDv4", gender: "m" },
59
+ uuidv6: { label: "UUIDv6", gender: "m" },
58
60
  nanoid: { label: "nanoid", gender: "m" },
59
61
  guid: { label: "GUID", gender: "m" },
60
62
  cuid: { label: "cuid", gender: "m" },
@@ -68,13 +70,18 @@ const error = () => {
68
70
  duration: { label: "משך זמן ISO", gender: "m" },
69
71
  ipv4: { label: "כתובת IPv4", gender: "f" },
70
72
  ipv6: { label: "כתובת IPv6", gender: "f" },
73
+ mac: { label: "כתובת MAC", gender: "f" },
71
74
  cidrv4: { label: "טווח IPv4", gender: "m" },
72
75
  cidrv6: { label: "טווח IPv6", gender: "m" },
73
76
  base64: { label: "מחרוזת בבסיס 64", gender: "f" },
74
77
  base64url: { label: "מחרוזת בבסיס 64 לכתובות רשת", gender: "f" },
75
78
  json_string: { label: "מחרוזת JSON", gender: "f" },
76
79
  e164: { label: "מספר E.164", gender: "m" },
80
+ credit_card: { label: "מספר כרטיס אשראי", gender: "m" },
81
+ currency_code: { label: "קוד מטבע", gender: "m" },
82
+ iban: { label: "IBAN", gender: "m" },
77
83
  jwt: { label: "JWT", gender: "m" },
84
+ template_literal: { label: "קלט", gender: "m" },
78
85
  ends_with: { label: "קלט", gender: "m" },
79
86
  includes: { label: "קלט", gender: "m" },
80
87
  lowercase: { label: "קלט", gender: "m" },
@@ -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} ${sizing.unit} हों`;
67
+ return `बहुत बड़ा: अपेक्षित था कि ${issue.origin ?? "मान"} ${adj}${issue.maximum} हो`;
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} ${sizing.unit} हों`;
74
+ return `बहुत छोटा: अपेक्षित था कि ${issue.origin} ${adj}${issue.minimum} हो`;
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
+ }