zod 4.6.3 → 4.6.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (232) hide show
  1. package/package.json +1 -1
  2. package/src/v4/classic/schemas.ts +11 -5
  3. package/src/v4/classic/tests/assignability.test.ts +1 -0
  4. package/src/v4/classic/tests/instance-footprint.test.ts +22 -0
  5. package/src/v4/classic/tests/number.test.ts +39 -0
  6. package/src/v4/classic/tests/properties.test.ts +19 -0
  7. package/src/v4/classic/tests/string.test.ts +70 -1
  8. package/src/v4/classic/tests/to-json-schema.test.ts +87 -35
  9. package/src/v4/core/api.ts +17 -22
  10. package/src/v4/core/compile.ts +27 -6
  11. package/src/v4/core/core.ts +1 -3
  12. package/src/v4/core/json-schema-processors.ts +9 -13
  13. package/src/v4/core/regexes.ts +4 -0
  14. package/src/v4/core/schemas.ts +35 -11
  15. package/src/v4/core/tests/compile-differential.test.ts +35 -0
  16. package/src/v4/core/tests/compile.test.ts +177 -0
  17. package/src/v4/core/tests/url-no-canparse.test.ts +118 -16
  18. package/src/v4/core/versions.ts +1 -1
  19. package/src/v4/locales/ar.ts +1 -0
  20. package/src/v4/locales/az.ts +1 -0
  21. package/src/v4/locales/be.ts +1 -0
  22. package/src/v4/locales/bg.ts +1 -0
  23. package/src/v4/locales/bn.ts +1 -0
  24. package/src/v4/locales/ca.ts +1 -0
  25. package/src/v4/locales/ckb.ts +1 -0
  26. package/src/v4/locales/cs.ts +1 -0
  27. package/src/v4/locales/da.ts +1 -0
  28. package/src/v4/locales/de.ts +1 -0
  29. package/src/v4/locales/el.ts +1 -0
  30. package/src/v4/locales/en.ts +1 -0
  31. package/src/v4/locales/eo.ts +1 -0
  32. package/src/v4/locales/es.ts +1 -0
  33. package/src/v4/locales/fa.ts +1 -0
  34. package/src/v4/locales/fi.ts +1 -0
  35. package/src/v4/locales/fr-CA.ts +1 -0
  36. package/src/v4/locales/fr.ts +1 -0
  37. package/src/v4/locales/gu.ts +1 -0
  38. package/src/v4/locales/he.ts +1 -0
  39. package/src/v4/locales/hi.ts +1 -0
  40. package/src/v4/locales/hr.ts +1 -0
  41. package/src/v4/locales/hu.ts +1 -0
  42. package/src/v4/locales/hy.ts +1 -0
  43. package/src/v4/locales/id.ts +1 -0
  44. package/src/v4/locales/is.ts +1 -0
  45. package/src/v4/locales/it.ts +1 -0
  46. package/src/v4/locales/ja.ts +1 -0
  47. package/src/v4/locales/ka.ts +1 -0
  48. package/src/v4/locales/km.ts +1 -0
  49. package/src/v4/locales/kn.ts +1 -0
  50. package/src/v4/locales/ko.ts +1 -0
  51. package/src/v4/locales/lt.ts +1 -0
  52. package/src/v4/locales/mk.ts +1 -0
  53. package/src/v4/locales/ms.ts +1 -0
  54. package/src/v4/locales/ne.ts +1 -0
  55. package/src/v4/locales/nl.ts +1 -0
  56. package/src/v4/locales/nn.ts +1 -0
  57. package/src/v4/locales/no.ts +1 -0
  58. package/src/v4/locales/ota.ts +1 -0
  59. package/src/v4/locales/pl.ts +1 -0
  60. package/src/v4/locales/ps.ts +1 -0
  61. package/src/v4/locales/pt-BR.ts +1 -0
  62. package/src/v4/locales/pt.ts +1 -0
  63. package/src/v4/locales/ro.ts +1 -0
  64. package/src/v4/locales/ru.ts +1 -0
  65. package/src/v4/locales/sk.ts +1 -0
  66. package/src/v4/locales/sl.ts +1 -0
  67. package/src/v4/locales/sv.ts +1 -0
  68. package/src/v4/locales/ta.ts +1 -0
  69. package/src/v4/locales/tg.ts +1 -0
  70. package/src/v4/locales/th.ts +1 -0
  71. package/src/v4/locales/tk.ts +1 -0
  72. package/src/v4/locales/tr.ts +1 -0
  73. package/src/v4/locales/uk.ts +1 -0
  74. package/src/v4/locales/ur.ts +1 -0
  75. package/src/v4/locales/uz.ts +1 -0
  76. package/src/v4/locales/vi.ts +1 -0
  77. package/src/v4/locales/yo.ts +1 -0
  78. package/src/v4/locales/zh-CN.ts +1 -0
  79. package/src/v4/locales/zh-TW.ts +1 -0
  80. package/src/v4/mini/schemas.ts +12 -4
  81. package/src/v4/mini/tests/index.test.ts +56 -0
  82. package/src/v4/mini/tests/string.test.ts +7 -0
  83. package/v4/classic/schemas.cjs +9 -4
  84. package/v4/classic/schemas.d.cts +4 -1
  85. package/v4/classic/schemas.d.ts +4 -1
  86. package/v4/classic/schemas.js +8 -4
  87. package/v4/core/api.cjs +9 -20
  88. package/v4/core/api.d.cts +6 -2
  89. package/v4/core/api.d.ts +6 -2
  90. package/v4/core/api.js +9 -20
  91. package/v4/core/compile.cjs +7 -6
  92. package/v4/core/compile.js +8 -7
  93. package/v4/core/core.cjs +1 -1
  94. package/v4/core/core.js +1 -1
  95. package/v4/core/json-schema-processors.cjs +7 -10
  96. package/v4/core/json-schema-processors.js +7 -10
  97. package/v4/core/regexes.cjs +4 -2
  98. package/v4/core/regexes.d.cts +1 -0
  99. package/v4/core/regexes.d.ts +1 -0
  100. package/v4/core/regexes.js +2 -0
  101. package/v4/core/schemas.cjs +32 -11
  102. package/v4/core/schemas.d.cts +5 -3
  103. package/v4/core/schemas.d.ts +5 -3
  104. package/v4/core/schemas.js +30 -11
  105. package/v4/core/versions.cjs +1 -1
  106. package/v4/core/versions.js +1 -1
  107. package/v4/locales/ar.cjs +1 -0
  108. package/v4/locales/ar.js +1 -0
  109. package/v4/locales/az.cjs +1 -0
  110. package/v4/locales/az.js +1 -0
  111. package/v4/locales/be.cjs +1 -0
  112. package/v4/locales/be.js +1 -0
  113. package/v4/locales/bg.cjs +1 -0
  114. package/v4/locales/bg.js +1 -0
  115. package/v4/locales/bn.cjs +1 -0
  116. package/v4/locales/bn.js +1 -0
  117. package/v4/locales/ca.cjs +1 -0
  118. package/v4/locales/ca.js +1 -0
  119. package/v4/locales/ckb.cjs +1 -0
  120. package/v4/locales/ckb.js +1 -0
  121. package/v4/locales/cs.cjs +1 -0
  122. package/v4/locales/cs.js +1 -0
  123. package/v4/locales/da.cjs +1 -0
  124. package/v4/locales/da.js +1 -0
  125. package/v4/locales/de.cjs +1 -0
  126. package/v4/locales/de.js +1 -0
  127. package/v4/locales/el.cjs +1 -0
  128. package/v4/locales/el.js +1 -0
  129. package/v4/locales/en.cjs +1 -0
  130. package/v4/locales/en.js +1 -0
  131. package/v4/locales/eo.cjs +1 -0
  132. package/v4/locales/eo.js +1 -0
  133. package/v4/locales/es.cjs +1 -0
  134. package/v4/locales/es.js +1 -0
  135. package/v4/locales/fa.cjs +1 -0
  136. package/v4/locales/fa.js +1 -0
  137. package/v4/locales/fi.cjs +1 -0
  138. package/v4/locales/fi.js +1 -0
  139. package/v4/locales/fr-CA.cjs +1 -0
  140. package/v4/locales/fr-CA.js +1 -0
  141. package/v4/locales/fr.cjs +1 -0
  142. package/v4/locales/fr.js +1 -0
  143. package/v4/locales/gu.cjs +1 -0
  144. package/v4/locales/gu.js +1 -0
  145. package/v4/locales/he.cjs +1 -0
  146. package/v4/locales/he.js +1 -0
  147. package/v4/locales/hi.cjs +1 -0
  148. package/v4/locales/hi.js +1 -0
  149. package/v4/locales/hr.cjs +1 -0
  150. package/v4/locales/hr.js +1 -0
  151. package/v4/locales/hu.cjs +1 -0
  152. package/v4/locales/hu.js +1 -0
  153. package/v4/locales/hy.cjs +1 -0
  154. package/v4/locales/hy.js +1 -0
  155. package/v4/locales/id.cjs +1 -0
  156. package/v4/locales/id.js +1 -0
  157. package/v4/locales/is.cjs +1 -0
  158. package/v4/locales/is.js +1 -0
  159. package/v4/locales/it.cjs +1 -0
  160. package/v4/locales/it.js +1 -0
  161. package/v4/locales/ja.cjs +1 -0
  162. package/v4/locales/ja.js +1 -0
  163. package/v4/locales/ka.cjs +1 -0
  164. package/v4/locales/ka.js +1 -0
  165. package/v4/locales/km.cjs +1 -0
  166. package/v4/locales/km.js +1 -0
  167. package/v4/locales/kn.cjs +1 -0
  168. package/v4/locales/kn.js +1 -0
  169. package/v4/locales/ko.cjs +1 -0
  170. package/v4/locales/ko.js +1 -0
  171. package/v4/locales/lt.cjs +1 -0
  172. package/v4/locales/lt.js +1 -0
  173. package/v4/locales/mk.cjs +1 -0
  174. package/v4/locales/mk.js +1 -0
  175. package/v4/locales/ms.cjs +1 -0
  176. package/v4/locales/ms.js +1 -0
  177. package/v4/locales/ne.cjs +1 -0
  178. package/v4/locales/ne.js +1 -0
  179. package/v4/locales/nl.cjs +1 -0
  180. package/v4/locales/nl.js +1 -0
  181. package/v4/locales/nn.cjs +1 -0
  182. package/v4/locales/nn.js +1 -0
  183. package/v4/locales/no.cjs +1 -0
  184. package/v4/locales/no.js +1 -0
  185. package/v4/locales/ota.cjs +1 -0
  186. package/v4/locales/ota.js +1 -0
  187. package/v4/locales/pl.cjs +1 -0
  188. package/v4/locales/pl.js +1 -0
  189. package/v4/locales/ps.cjs +1 -0
  190. package/v4/locales/ps.js +1 -0
  191. package/v4/locales/pt-BR.cjs +1 -0
  192. package/v4/locales/pt-BR.js +1 -0
  193. package/v4/locales/pt.cjs +1 -0
  194. package/v4/locales/pt.js +1 -0
  195. package/v4/locales/ro.cjs +1 -0
  196. package/v4/locales/ro.js +1 -0
  197. package/v4/locales/ru.cjs +1 -0
  198. package/v4/locales/ru.js +1 -0
  199. package/v4/locales/sk.cjs +1 -0
  200. package/v4/locales/sk.js +1 -0
  201. package/v4/locales/sl.cjs +1 -0
  202. package/v4/locales/sl.js +1 -0
  203. package/v4/locales/sv.cjs +1 -0
  204. package/v4/locales/sv.js +1 -0
  205. package/v4/locales/ta.cjs +1 -0
  206. package/v4/locales/ta.js +1 -0
  207. package/v4/locales/tg.cjs +1 -0
  208. package/v4/locales/tg.js +1 -0
  209. package/v4/locales/th.cjs +1 -0
  210. package/v4/locales/th.js +1 -0
  211. package/v4/locales/tk.cjs +1 -0
  212. package/v4/locales/tk.js +1 -0
  213. package/v4/locales/tr.cjs +1 -0
  214. package/v4/locales/tr.js +1 -0
  215. package/v4/locales/uk.cjs +1 -0
  216. package/v4/locales/uk.js +1 -0
  217. package/v4/locales/ur.cjs +1 -0
  218. package/v4/locales/ur.js +1 -0
  219. package/v4/locales/uz.cjs +1 -0
  220. package/v4/locales/uz.js +1 -0
  221. package/v4/locales/vi.cjs +1 -0
  222. package/v4/locales/vi.js +1 -0
  223. package/v4/locales/yo.cjs +1 -0
  224. package/v4/locales/yo.js +1 -0
  225. package/v4/locales/zh-CN.cjs +1 -0
  226. package/v4/locales/zh-CN.js +1 -0
  227. package/v4/locales/zh-TW.cjs +1 -0
  228. package/v4/locales/zh-TW.js +1 -0
  229. package/v4/mini/schemas.cjs +10 -4
  230. package/v4/mini/schemas.d.cts +1 -0
  231. package/v4/mini/schemas.d.ts +1 -0
  232. package/v4/mini/schemas.js +9 -4
package/v4/locales/ms.js CHANGED
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "string JSON",
40
40
  e164: "nombor E.164",
41
41
  credit_card: "nombor kad kredit",
42
+ currency_code: "kod mata wang",
42
43
  iban: "IBAN",
43
44
  jwt: "JWT",
44
45
  template_literal: "input",
package/v4/locales/ne.cjs CHANGED
@@ -65,6 +65,7 @@ const error = () => {
65
65
  json_string: "JSON स्ट्रिङ",
66
66
  e164: "E.164 नम्बर",
67
67
  credit_card: "क्रेडिट कार्ड नम्बर",
68
+ currency_code: "मुद्रा कोड",
68
69
  iban: "IBAN",
69
70
  jwt: "JWT",
70
71
  template_literal: "इनपुट",
package/v4/locales/ne.js CHANGED
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "JSON स्ट्रिङ",
40
40
  e164: "E.164 नम्बर",
41
41
  credit_card: "क्रेडिट कार्ड नम्बर",
42
+ currency_code: "मुद्रा कोड",
42
43
  iban: "IBAN",
43
44
  jwt: "JWT",
44
45
  template_literal: "इनपुट",
package/v4/locales/nl.cjs CHANGED
@@ -65,6 +65,7 @@ const error = () => {
65
65
  json_string: "JSON string",
66
66
  e164: "E.164-nummer",
67
67
  credit_card: "creditcardnummer",
68
+ currency_code: "valutacode",
68
69
  iban: "IBAN",
69
70
  jwt: "JWT",
70
71
  template_literal: "invoer",
package/v4/locales/nl.js CHANGED
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "JSON string",
40
40
  e164: "E.164-nummer",
41
41
  credit_card: "creditcardnummer",
42
+ currency_code: "valutacode",
42
43
  iban: "IBAN",
43
44
  jwt: "JWT",
44
45
  template_literal: "invoer",
package/v4/locales/nn.cjs CHANGED
@@ -65,6 +65,7 @@ const error = () => {
65
65
  json_string: "JSON-streng",
66
66
  e164: "E.164-nummer",
67
67
  credit_card: "kredittkortnummer",
68
+ currency_code: "valutakode",
68
69
  iban: "IBAN",
69
70
  jwt: "JWT",
70
71
  template_literal: "input",
package/v4/locales/nn.js CHANGED
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "JSON-streng",
40
40
  e164: "E.164-nummer",
41
41
  credit_card: "kredittkortnummer",
42
+ currency_code: "valutakode",
42
43
  iban: "IBAN",
43
44
  jwt: "JWT",
44
45
  template_literal: "input",
package/v4/locales/no.cjs CHANGED
@@ -65,6 +65,7 @@ const error = () => {
65
65
  json_string: "JSON-streng",
66
66
  e164: "E.164-nummer",
67
67
  credit_card: "kredittkortnummer",
68
+ currency_code: "valutakode",
68
69
  iban: "IBAN",
69
70
  jwt: "JWT",
70
71
  template_literal: "input",
package/v4/locales/no.js CHANGED
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "JSON-streng",
40
40
  e164: "E.164-nummer",
41
41
  credit_card: "kredittkortnummer",
42
+ currency_code: "valutakode",
42
43
  iban: "IBAN",
43
44
  jwt: "JWT",
44
45
  template_literal: "input",
@@ -65,6 +65,7 @@ const error = () => {
65
65
  json_string: "JSON metin",
66
66
  e164: "E.164 sayısı",
67
67
  credit_card: "i'tibâr kartı numarası",
68
+ currency_code: "para birimi kodu",
68
69
  iban: "IBAN",
69
70
  jwt: "JWT",
70
71
  template_literal: "giren",
package/v4/locales/ota.js CHANGED
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "JSON metin",
40
40
  e164: "E.164 sayısı",
41
41
  credit_card: "i'tibâr kartı numarası",
42
+ currency_code: "para birimi kodu",
42
43
  iban: "IBAN",
43
44
  jwt: "JWT",
44
45
  template_literal: "giren",
package/v4/locales/pl.cjs CHANGED
@@ -65,6 +65,7 @@ const error = () => {
65
65
  json_string: "ciąg znaków w formacie JSON",
66
66
  e164: "liczba E.164",
67
67
  credit_card: "numer karty kredytowej",
68
+ currency_code: "kod waluty",
68
69
  iban: "IBAN",
69
70
  jwt: "JWT",
70
71
  template_literal: "wejście",
package/v4/locales/pl.js CHANGED
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "ciąg znaków w formacie JSON",
40
40
  e164: "liczba E.164",
41
41
  credit_card: "numer karty kredytowej",
42
+ currency_code: "kod waluty",
42
43
  iban: "IBAN",
43
44
  jwt: "JWT",
44
45
  template_literal: "wejście",
package/v4/locales/ps.cjs CHANGED
@@ -65,6 +65,7 @@ const error = () => {
65
65
  json_string: "JSON متن",
66
66
  e164: "د E.164 شمېره",
67
67
  credit_card: "د کریډیټ کارت شمیره",
68
+ currency_code: "د اسعارو کوډ",
68
69
  iban: "IBAN",
69
70
  jwt: "JWT",
70
71
  template_literal: "ورودي",
package/v4/locales/ps.js CHANGED
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "JSON متن",
40
40
  e164: "د E.164 شمېره",
41
41
  credit_card: "د کریډیټ کارت شمیره",
42
+ currency_code: "د اسعارو کوډ",
42
43
  iban: "IBAN",
43
44
  jwt: "JWT",
44
45
  template_literal: "ورودي",
@@ -65,6 +65,7 @@ const error = () => {
65
65
  json_string: "o texto JSON",
66
66
  e164: "o número E.164",
67
67
  credit_card: "o número de cartão de crédito",
68
+ currency_code: "o código de moeda",
68
69
  iban: "o IBAN",
69
70
  jwt: "o JWT",
70
71
  template_literal: "a entrada",
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "o texto JSON",
40
40
  e164: "o número E.164",
41
41
  credit_card: "o número de cartão de crédito",
42
+ currency_code: "o código de moeda",
42
43
  iban: "o IBAN",
43
44
  jwt: "o JWT",
44
45
  template_literal: "a entrada",
package/v4/locales/pt.cjs CHANGED
@@ -65,6 +65,7 @@ const error = () => {
65
65
  json_string: "o texto JSON",
66
66
  e164: "o número E.164",
67
67
  credit_card: "o número de cartão de crédito",
68
+ currency_code: "o código de moeda",
68
69
  iban: "o IBAN",
69
70
  jwt: "o JWT",
70
71
  template_literal: "a entrada",
package/v4/locales/pt.js CHANGED
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "o texto JSON",
40
40
  e164: "o número E.164",
41
41
  credit_card: "o número de cartão de crédito",
42
+ currency_code: "o código de moeda",
42
43
  iban: "o IBAN",
43
44
  jwt: "o JWT",
44
45
  template_literal: "a entrada",
package/v4/locales/ro.cjs CHANGED
@@ -65,6 +65,7 @@ const error = () => {
65
65
  json_string: "șir JSON",
66
66
  e164: "număr E.164",
67
67
  credit_card: "număr de card de credit",
68
+ currency_code: "cod valutar",
68
69
  iban: "IBAN",
69
70
  jwt: "JWT",
70
71
  template_literal: "intrare",
package/v4/locales/ro.js CHANGED
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "șir JSON",
40
40
  e164: "număr E.164",
41
41
  credit_card: "număr de card de credit",
42
+ currency_code: "cod valutar",
42
43
  iban: "IBAN",
43
44
  jwt: "JWT",
44
45
  template_literal: "intrare",
package/v4/locales/ru.cjs CHANGED
@@ -115,6 +115,7 @@ const error = () => {
115
115
  json_string: "JSON строка",
116
116
  e164: "номер E.164",
117
117
  credit_card: "номер кредитной карты",
118
+ currency_code: "код валюты",
118
119
  iban: "IBAN",
119
120
  jwt: "JWT",
120
121
  template_literal: "ввод",
package/v4/locales/ru.js CHANGED
@@ -89,6 +89,7 @@ const error = () => {
89
89
  json_string: "JSON строка",
90
90
  e164: "номер E.164",
91
91
  credit_card: "номер кредитной карты",
92
+ currency_code: "код валюты",
92
93
  iban: "IBAN",
93
94
  jwt: "JWT",
94
95
  template_literal: "ввод",
package/v4/locales/sk.cjs CHANGED
@@ -65,6 +65,7 @@ const error = () => {
65
65
  json_string: "reťazec vo formáte JSON",
66
66
  e164: "číslo E.164",
67
67
  credit_card: "číslo kreditnej karty",
68
+ currency_code: "kód meny",
68
69
  iban: "IBAN",
69
70
  jwt: "JWT",
70
71
  template_literal: "vstup",
package/v4/locales/sk.js CHANGED
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "reťazec vo formáte JSON",
40
40
  e164: "číslo E.164",
41
41
  credit_card: "číslo kreditnej karty",
42
+ currency_code: "kód meny",
42
43
  iban: "IBAN",
43
44
  jwt: "JWT",
44
45
  template_literal: "vstup",
package/v4/locales/sl.cjs CHANGED
@@ -65,6 +65,7 @@ const error = () => {
65
65
  json_string: "JSON niz",
66
66
  e164: "E.164 številka",
67
67
  credit_card: "številka kreditne kartice",
68
+ currency_code: "koda valute",
68
69
  iban: "IBAN",
69
70
  jwt: "JWT",
70
71
  template_literal: "vnos",
package/v4/locales/sl.js CHANGED
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "JSON niz",
40
40
  e164: "E.164 številka",
41
41
  credit_card: "številka kreditne kartice",
42
+ currency_code: "koda valute",
42
43
  iban: "IBAN",
43
44
  jwt: "JWT",
44
45
  template_literal: "vnos",
package/v4/locales/sv.cjs CHANGED
@@ -65,6 +65,7 @@ const error = () => {
65
65
  json_string: "JSON-sträng",
66
66
  e164: "E.164-nummer",
67
67
  credit_card: "kreditkortsnummer",
68
+ currency_code: "valutakod",
68
69
  iban: "IBAN",
69
70
  jwt: "JWT",
70
71
  template_literal: "mall-literal",
package/v4/locales/sv.js CHANGED
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "JSON-sträng",
40
40
  e164: "E.164-nummer",
41
41
  credit_card: "kreditkortsnummer",
42
+ currency_code: "valutakod",
42
43
  iban: "IBAN",
43
44
  jwt: "JWT",
44
45
  template_literal: "mall-literal",
package/v4/locales/ta.cjs CHANGED
@@ -65,6 +65,7 @@ const error = () => {
65
65
  json_string: "JSON சரம்",
66
66
  e164: "E.164 எண்",
67
67
  credit_card: "கடன் அட்டை எண்",
68
+ currency_code: "நாணயக் குறியீடு",
68
69
  iban: "IBAN",
69
70
  jwt: "JWT",
70
71
  template_literal: "input",
package/v4/locales/ta.js CHANGED
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "JSON சரம்",
40
40
  e164: "E.164 எண்",
41
41
  credit_card: "கடன் அட்டை எண்",
42
+ currency_code: "நாணயக் குறியீடு",
42
43
  iban: "IBAN",
43
44
  jwt: "JWT",
44
45
  template_literal: "input",
package/v4/locales/tg.cjs CHANGED
@@ -66,6 +66,7 @@ const error = () => {
66
66
  json_string: "сатри JSON",
67
67
  e164: "рақами E.164",
68
68
  credit_card: "рақами корти кредитӣ",
69
+ currency_code: "рамзи асъор",
69
70
  iban: "IBAN",
70
71
  jwt: "JWT",
71
72
  template_literal: "вуруд",
package/v4/locales/tg.js CHANGED
@@ -40,6 +40,7 @@ const error = () => {
40
40
  json_string: "сатри JSON",
41
41
  e164: "рақами E.164",
42
42
  credit_card: "рақами корти кредитӣ",
43
+ currency_code: "рамзи асъор",
43
44
  iban: "IBAN",
44
45
  jwt: "JWT",
45
46
  template_literal: "вуруд",
package/v4/locales/th.cjs CHANGED
@@ -65,6 +65,7 @@ const error = () => {
65
65
  json_string: "ข้อความแบบ JSON",
66
66
  e164: "เบอร์โทรศัพท์ระหว่างประเทศ (E.164)",
67
67
  credit_card: "หมายเลขบัตรเครดิต",
68
+ currency_code: "รหัสสกุลเงิน",
68
69
  iban: "IBAN",
69
70
  jwt: "โทเคน JWT",
70
71
  template_literal: "ข้อมูลที่ป้อน",
package/v4/locales/th.js CHANGED
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "ข้อความแบบ JSON",
40
40
  e164: "เบอร์โทรศัพท์ระหว่างประเทศ (E.164)",
41
41
  credit_card: "หมายเลขบัตรเครดิต",
42
+ currency_code: "รหัสสกุลเงิน",
42
43
  iban: "IBAN",
43
44
  jwt: "โทเคน JWT",
44
45
  template_literal: "ข้อมูลที่ป้อน",
package/v4/locales/tk.cjs CHANGED
@@ -65,6 +65,7 @@ const error = () => {
65
65
  json_string: "JSON setiri",
66
66
  e164: "E.164 nomeri",
67
67
  credit_card: "kredit kartynyň nomeri",
68
+ currency_code: "walýuta kody",
68
69
  iban: "IBAN",
69
70
  jwt: "JWT",
70
71
  template_literal: "şablon",
package/v4/locales/tk.js CHANGED
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "JSON setiri",
40
40
  e164: "E.164 nomeri",
41
41
  credit_card: "kredit kartynyň nomeri",
42
+ currency_code: "walýuta kody",
42
43
  iban: "IBAN",
43
44
  jwt: "JWT",
44
45
  template_literal: "şablon",
package/v4/locales/tr.cjs CHANGED
@@ -65,6 +65,7 @@ const error = () => {
65
65
  json_string: "JSON dizesi",
66
66
  e164: "E.164 sayısı",
67
67
  credit_card: "kredi kartı numarası",
68
+ currency_code: "para birimi kodu",
68
69
  iban: "IBAN",
69
70
  jwt: "JWT",
70
71
  template_literal: "Şablon dizesi",
package/v4/locales/tr.js CHANGED
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "JSON dizesi",
40
40
  e164: "E.164 sayısı",
41
41
  credit_card: "kredi kartı numarası",
42
+ currency_code: "para birimi kodu",
42
43
  iban: "IBAN",
43
44
  jwt: "JWT",
44
45
  template_literal: "Şablon dizesi",
package/v4/locales/uk.cjs CHANGED
@@ -65,6 +65,7 @@ const error = () => {
65
65
  json_string: "рядок JSON",
66
66
  e164: "номер E.164",
67
67
  credit_card: "номер кредитної картки",
68
+ currency_code: "код валюти",
68
69
  iban: "IBAN",
69
70
  jwt: "JWT",
70
71
  template_literal: "вхідні дані",
package/v4/locales/uk.js CHANGED
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "рядок JSON",
40
40
  e164: "номер E.164",
41
41
  credit_card: "номер кредитної картки",
42
+ currency_code: "код валюти",
42
43
  iban: "IBAN",
43
44
  jwt: "JWT",
44
45
  template_literal: "вхідні дані",
package/v4/locales/ur.cjs CHANGED
@@ -65,6 +65,7 @@ const error = () => {
65
65
  json_string: "جے ایس او این سٹرنگ",
66
66
  e164: "ای 164 نمبر",
67
67
  credit_card: "کریڈٹ کارڈ نمبر",
68
+ currency_code: "کرنسی کوڈ",
68
69
  iban: "IBAN",
69
70
  jwt: "جے ڈبلیو ٹی",
70
71
  template_literal: "ان پٹ",
package/v4/locales/ur.js CHANGED
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "جے ایس او این سٹرنگ",
40
40
  e164: "ای 164 نمبر",
41
41
  credit_card: "کریڈٹ کارڈ نمبر",
42
+ currency_code: "کرنسی کوڈ",
42
43
  iban: "IBAN",
43
44
  jwt: "جے ڈبلیو ٹی",
44
45
  template_literal: "ان پٹ",
package/v4/locales/uz.cjs CHANGED
@@ -65,6 +65,7 @@ const error = () => {
65
65
  json_string: "JSON satr",
66
66
  e164: "E.164 raqam",
67
67
  credit_card: "kredit karta raqami",
68
+ currency_code: "valyuta kodi",
68
69
  iban: "IBAN",
69
70
  jwt: "JWT",
70
71
  template_literal: "kirish",
package/v4/locales/uz.js CHANGED
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "JSON satr",
40
40
  e164: "E.164 raqam",
41
41
  credit_card: "kredit karta raqami",
42
+ currency_code: "valyuta kodi",
42
43
  iban: "IBAN",
43
44
  jwt: "JWT",
44
45
  template_literal: "kirish",
package/v4/locales/vi.cjs CHANGED
@@ -65,6 +65,7 @@ const error = () => {
65
65
  json_string: "chuỗi JSON",
66
66
  e164: "số E.164",
67
67
  credit_card: "số thẻ tín dụng",
68
+ currency_code: "mã tiền tệ",
68
69
  iban: "IBAN",
69
70
  jwt: "JWT",
70
71
  template_literal: "đầu vào",
package/v4/locales/vi.js CHANGED
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "chuỗi JSON",
40
40
  e164: "số E.164",
41
41
  credit_card: "số thẻ tín dụng",
42
+ currency_code: "mã tiền tệ",
42
43
  iban: "IBAN",
43
44
  jwt: "JWT",
44
45
  template_literal: "đầu vào",
package/v4/locales/yo.cjs CHANGED
@@ -65,6 +65,7 @@ const error = () => {
65
65
  json_string: "ọ̀rọ̀ JSON",
66
66
  e164: "nọ́mbà E.164",
67
67
  credit_card: "nọmba kaadi gbese",
68
+ currency_code: "koodu owó",
68
69
  iban: "IBAN",
69
70
  jwt: "JWT",
70
71
  template_literal: "ẹ̀rọ ìbáwọlé",
package/v4/locales/yo.js CHANGED
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "ọ̀rọ̀ JSON",
40
40
  e164: "nọ́mbà E.164",
41
41
  credit_card: "nọmba kaadi gbese",
42
+ currency_code: "koodu owó",
42
43
  iban: "IBAN",
43
44
  jwt: "JWT",
44
45
  template_literal: "ẹ̀rọ ìbáwọlé",
@@ -65,6 +65,7 @@ const error = () => {
65
65
  json_string: "JSON字符串",
66
66
  e164: "E.164号码",
67
67
  credit_card: "信用卡号",
68
+ currency_code: "货币代码",
68
69
  iban: "IBAN",
69
70
  jwt: "JWT",
70
71
  template_literal: "输入",
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "JSON字符串",
40
40
  e164: "E.164号码",
41
41
  credit_card: "信用卡号",
42
+ currency_code: "货币代码",
42
43
  iban: "IBAN",
43
44
  jwt: "JWT",
44
45
  template_literal: "输入",
@@ -65,6 +65,7 @@ const error = () => {
65
65
  json_string: "JSON 字串",
66
66
  e164: "E.164 數值",
67
67
  credit_card: "信用卡號",
68
+ currency_code: "貨幣代碼",
68
69
  iban: "IBAN",
69
70
  jwt: "JWT",
70
71
  template_literal: "輸入",
@@ -39,6 +39,7 @@ const error = () => {
39
39
  json_string: "JSON 字串",
40
40
  e164: "E.164 數值",
41
41
  credit_card: "信用卡號",
42
+ currency_code: "貨幣代碼",
42
43
  iban: "IBAN",
43
44
  jwt: "JWT",
44
45
  template_literal: "輸入",
@@ -55,6 +55,7 @@ exports.jwt = jwt;
55
55
  exports.stringFormat = stringFormat;
56
56
  exports.hostname = hostname;
57
57
  exports.hex = hex;
58
+ exports.currencyCode = currencyCode;
58
59
  exports.hash = hash;
59
60
  exports.number = number;
60
61
  exports.int = int;
@@ -131,6 +132,7 @@ exports.function = _function;
131
132
  exports._function = _function;
132
133
  exports.function = _function;
133
134
  const core = __importStar(require("../core/index.cjs"));
135
+ const regexes = __importStar(require("../core/regexes.cjs"));
134
136
  const util = __importStar(require("../core/util.cjs"));
135
137
  const parse = __importStar(require("./parse.cjs"));
136
138
  exports.ZodMiniType = core.$constructor("ZodMiniType", (inst, def) => {
@@ -244,8 +246,8 @@ function url(params) {
244
246
  // @__NO_SIDE_EFFECTS__
245
247
  function httpUrl(params) {
246
248
  return core._url(exports.ZodMiniURL, {
247
- protocol: core.regexes.httpProtocol,
248
- hostname: core.regexes.domain,
249
+ protocol: regexes.httpProtocol,
250
+ hostname: regexes.domain,
249
251
  ...util.normalizeParams(params),
250
252
  });
251
253
  }
@@ -415,11 +417,15 @@ function stringFormat(format, fnOrRegex, _params = {}) {
415
417
  }
416
418
  // @__NO_SIDE_EFFECTS__
417
419
  function hostname(_params) {
418
- return core._stringFormat(exports.ZodMiniCustomStringFormat, "hostname", core.regexes.hostname, _params);
420
+ return core._stringFormat(exports.ZodMiniCustomStringFormat, "hostname", regexes.hostname, _params);
419
421
  }
420
422
  // @__NO_SIDE_EFFECTS__
421
423
  function hex(_params) {
422
- return core._stringFormat(exports.ZodMiniCustomStringFormat, "hex", core.regexes.hex, _params);
424
+ return core._stringFormat(exports.ZodMiniCustomStringFormat, "hex", regexes.hex, _params);
425
+ }
426
+ // @__NO_SIDE_EFFECTS__
427
+ function currencyCode(_params) {
428
+ return core._stringFormat(exports.ZodMiniCustomStringFormat, "currency_code", regexes.currencyCode, _params);
423
429
  }
424
430
  // @__NO_SIDE_EFFECTS__
425
431
  function hash(alg, params) {
@@ -147,6 +147,7 @@ export declare const ZodMiniCustomStringFormat: core.$constructor<ZodMiniCustomS
147
147
  export declare function stringFormat<Format extends string>(format: Format, fnOrRegex: ((arg: string) => util.MaybeAsync<unknown>) | RegExp, _params?: string | core.$ZodStringFormatParams): ZodMiniCustomStringFormat<Format>;
148
148
  export declare function hostname(_params?: string | core.$ZodStringFormatParams): ZodMiniCustomStringFormat<"hostname">;
149
149
  export declare function hex(_params?: string | core.$ZodStringFormatParams): ZodMiniCustomStringFormat<"hex">;
150
+ export declare function currencyCode(_params?: string | core.$ZodStringFormatParams): ZodMiniCustomStringFormat<"currency_code">;
150
151
  export declare function hash<Alg extends util.HashAlgorithm, Enc extends util.HashEncoding = "hex">(alg: Alg, params?: {
151
152
  enc?: Enc;
152
153
  } & core.$ZodStringFormatParams): ZodMiniCustomStringFormat<`${Alg}_${Enc}`>;
@@ -147,6 +147,7 @@ export declare const ZodMiniCustomStringFormat: core.$constructor<ZodMiniCustomS
147
147
  export declare function stringFormat<Format extends string>(format: Format, fnOrRegex: ((arg: string) => util.MaybeAsync<unknown>) | RegExp, _params?: string | core.$ZodStringFormatParams): ZodMiniCustomStringFormat<Format>;
148
148
  export declare function hostname(_params?: string | core.$ZodStringFormatParams): ZodMiniCustomStringFormat<"hostname">;
149
149
  export declare function hex(_params?: string | core.$ZodStringFormatParams): ZodMiniCustomStringFormat<"hex">;
150
+ export declare function currencyCode(_params?: string | core.$ZodStringFormatParams): ZodMiniCustomStringFormat<"currency_code">;
150
151
  export declare function hash<Alg extends util.HashAlgorithm, Enc extends util.HashEncoding = "hex">(alg: Alg, params?: {
151
152
  enc?: Enc;
152
153
  } & core.$ZodStringFormatParams): ZodMiniCustomStringFormat<`${Alg}_${Enc}`>;
@@ -1,4 +1,5 @@
1
1
  import * as core from "../core/index.js";
2
+ import * as regexes from "../core/regexes.js";
2
3
  import * as util from "../core/util.js";
3
4
  import * as parse from "./parse.js";
4
5
  export const ZodMiniType = /*@__PURE__*/ core.$constructor("ZodMiniType", (inst, def) => {
@@ -112,8 +113,8 @@ export function url(params) {
112
113
  // @__NO_SIDE_EFFECTS__
113
114
  export function httpUrl(params) {
114
115
  return core._url(ZodMiniURL, {
115
- protocol: core.regexes.httpProtocol,
116
- hostname: core.regexes.domain,
116
+ protocol: regexes.httpProtocol,
117
+ hostname: regexes.domain,
117
118
  ...util.normalizeParams(params),
118
119
  });
119
120
  }
@@ -283,11 +284,15 @@ export function stringFormat(format, fnOrRegex, _params = {}) {
283
284
  }
284
285
  // @__NO_SIDE_EFFECTS__
285
286
  export function hostname(_params) {
286
- return core._stringFormat(ZodMiniCustomStringFormat, "hostname", core.regexes.hostname, _params);
287
+ return core._stringFormat(ZodMiniCustomStringFormat, "hostname", regexes.hostname, _params);
287
288
  }
288
289
  // @__NO_SIDE_EFFECTS__
289
290
  export function hex(_params) {
290
- return core._stringFormat(ZodMiniCustomStringFormat, "hex", core.regexes.hex, _params);
291
+ return core._stringFormat(ZodMiniCustomStringFormat, "hex", regexes.hex, _params);
292
+ }
293
+ // @__NO_SIDE_EFFECTS__
294
+ export function currencyCode(_params) {
295
+ return core._stringFormat(ZodMiniCustomStringFormat, "currency_code", regexes.currencyCode, _params);
291
296
  }
292
297
  // @__NO_SIDE_EFFECTS__
293
298
  export function hash(alg, params) {