bguard 0.2.0 → 0.3.0

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 (329) hide show
  1. package/README.md +562 -380
  2. package/lib/{CommonSchema-DJmQ3F_9.d.mts → CommonSchema-CiY7spmg.d.mts} +9 -1
  3. package/lib/{CommonSchema-9RtxTxdX.d.ts → CommonSchema-D9QVJBJe.d.ts} +9 -1
  4. package/lib/InferType.d.mts +1 -1
  5. package/lib/InferType.d.ts +1 -1
  6. package/lib/asserts/array/index.d.mts +1 -1
  7. package/lib/asserts/array/index.d.ts +1 -1
  8. package/lib/asserts/array/index.js +8 -6
  9. package/lib/asserts/array/index.js.map +1 -1
  10. package/lib/asserts/array/index.mjs +7 -5
  11. package/lib/asserts/array/index.mjs.map +1 -1
  12. package/lib/asserts/array/maxArrayLength.d.mts +22 -0
  13. package/lib/asserts/array/maxArrayLength.d.ts +22 -0
  14. package/lib/asserts/array/maxArrayLength.js +20 -0
  15. package/lib/asserts/array/maxArrayLength.js.map +1 -0
  16. package/lib/asserts/array/maxArrayLength.mjs +20 -0
  17. package/lib/asserts/array/maxArrayLength.mjs.map +1 -0
  18. package/lib/asserts/array/minArrayLength.d.mts +22 -0
  19. package/lib/asserts/array/minArrayLength.d.ts +22 -0
  20. package/lib/asserts/array/minArrayLength.js +20 -0
  21. package/lib/asserts/array/minArrayLength.js.map +1 -0
  22. package/lib/asserts/array/minArrayLength.mjs +20 -0
  23. package/lib/asserts/array/minArrayLength.mjs.map +1 -0
  24. package/lib/asserts/bigint/bigintMax.js +4 -4
  25. package/lib/asserts/bigint/bigintMax.mjs +2 -2
  26. package/lib/asserts/bigint/bigintMaxExcluded.js +4 -4
  27. package/lib/asserts/bigint/bigintMaxExcluded.mjs +2 -2
  28. package/lib/asserts/bigint/bigintMin.js +4 -4
  29. package/lib/asserts/bigint/bigintMin.mjs +2 -2
  30. package/lib/asserts/bigint/bigintMinExcluded.js +4 -4
  31. package/lib/asserts/bigint/bigintMinExcluded.mjs +2 -2
  32. package/lib/asserts/bigint/index.d.mts +1 -1
  33. package/lib/asserts/bigint/index.d.ts +1 -1
  34. package/lib/asserts/bigint/index.js +11 -10
  35. package/lib/asserts/bigint/index.js.map +1 -1
  36. package/lib/asserts/bigint/index.mjs +10 -9
  37. package/lib/asserts/bigint/index.mjs.map +1 -1
  38. package/lib/asserts/boolean/index.d.mts +1 -1
  39. package/lib/asserts/boolean/index.d.ts +1 -1
  40. package/lib/asserts/boolean/index.js +9 -7
  41. package/lib/asserts/boolean/index.js.map +1 -1
  42. package/lib/asserts/boolean/index.mjs +8 -6
  43. package/lib/asserts/boolean/index.mjs.map +1 -1
  44. package/lib/asserts/date/dateMax.js +6 -6
  45. package/lib/asserts/date/dateMax.js.map +1 -1
  46. package/lib/asserts/date/dateMax.mjs +5 -5
  47. package/lib/asserts/date/dateMax.mjs.map +1 -1
  48. package/lib/asserts/date/dateMin.js +6 -6
  49. package/lib/asserts/date/dateMin.js.map +1 -1
  50. package/lib/asserts/date/dateMin.mjs +5 -5
  51. package/lib/asserts/date/dateMin.mjs.map +1 -1
  52. package/lib/asserts/date/index.d.mts +1 -1
  53. package/lib/asserts/date/index.d.ts +1 -1
  54. package/lib/asserts/date/index.js +8 -6
  55. package/lib/asserts/date/index.js.map +1 -1
  56. package/lib/asserts/date/index.mjs +7 -5
  57. package/lib/asserts/date/index.mjs.map +1 -1
  58. package/lib/asserts/mix/equalTo.js +4 -4
  59. package/lib/asserts/mix/equalTo.mjs +3 -3
  60. package/lib/asserts/mix/index.d.mts +1 -1
  61. package/lib/asserts/mix/index.d.ts +1 -1
  62. package/lib/asserts/mix/index.js +7 -5
  63. package/lib/asserts/mix/index.js.map +1 -1
  64. package/lib/asserts/mix/index.mjs +6 -4
  65. package/lib/asserts/mix/index.mjs.map +1 -1
  66. package/lib/asserts/mix/oneOfValues.js +4 -4
  67. package/lib/asserts/mix/oneOfValues.mjs +3 -3
  68. package/lib/asserts/number/index.d.mts +1 -1
  69. package/lib/asserts/number/index.d.ts +1 -1
  70. package/lib/asserts/number/index.js +11 -10
  71. package/lib/asserts/number/index.js.map +1 -1
  72. package/lib/asserts/number/index.mjs +10 -9
  73. package/lib/asserts/number/index.mjs.map +1 -1
  74. package/lib/asserts/number/max.js +4 -4
  75. package/lib/asserts/number/max.mjs +2 -2
  76. package/lib/asserts/number/maxExcluded.js +4 -4
  77. package/lib/asserts/number/maxExcluded.mjs +2 -2
  78. package/lib/asserts/number/min.js +4 -4
  79. package/lib/asserts/number/min.mjs +2 -2
  80. package/lib/asserts/number/minExcluded.js +4 -4
  81. package/lib/asserts/number/minExcluded.mjs +2 -2
  82. package/lib/asserts/number/negative.js +4 -4
  83. package/lib/asserts/number/negative.mjs +2 -2
  84. package/lib/asserts/number/positive.js +4 -4
  85. package/lib/asserts/number/positive.mjs +2 -2
  86. package/lib/asserts/object/index.d.mts +1 -1
  87. package/lib/asserts/object/index.d.ts +1 -1
  88. package/lib/asserts/object/index.js +8 -6
  89. package/lib/asserts/object/index.js.map +1 -1
  90. package/lib/asserts/object/index.mjs +7 -5
  91. package/lib/asserts/object/index.mjs.map +1 -1
  92. package/lib/asserts/string/atLeastOneDigit.js +4 -4
  93. package/lib/asserts/string/atLeastOneDigit.mjs +2 -2
  94. package/lib/asserts/string/atLeastOneLowerChar.js +4 -4
  95. package/lib/asserts/string/atLeastOneLowerChar.mjs +2 -2
  96. package/lib/asserts/string/atLeastOneSpecialChar.js +4 -4
  97. package/lib/asserts/string/atLeastOneSpecialChar.mjs +2 -2
  98. package/lib/asserts/string/atLeastOneUpperChar.js +4 -4
  99. package/lib/asserts/string/atLeastOneUpperChar.mjs +2 -2
  100. package/lib/asserts/string/contains.js +4 -4
  101. package/lib/asserts/string/contains.mjs +2 -2
  102. package/lib/asserts/string/email.js +4 -4
  103. package/lib/asserts/string/email.mjs +2 -2
  104. package/lib/asserts/string/endsWith.js +4 -4
  105. package/lib/asserts/string/endsWith.mjs +2 -2
  106. package/lib/asserts/string/index.d.mts +1 -1
  107. package/lib/asserts/string/index.d.ts +1 -1
  108. package/lib/asserts/string/index.js +11 -10
  109. package/lib/asserts/string/index.js.map +1 -1
  110. package/lib/asserts/string/index.mjs +10 -9
  111. package/lib/asserts/string/index.mjs.map +1 -1
  112. package/lib/asserts/string/isValidDate.d.mts +21 -0
  113. package/lib/asserts/string/isValidDate.d.ts +21 -0
  114. package/lib/asserts/string/isValidDate.js +25 -0
  115. package/lib/asserts/string/isValidDate.js.map +1 -0
  116. package/lib/asserts/string/isValidDate.mjs +25 -0
  117. package/lib/asserts/string/isValidDate.mjs.map +1 -0
  118. package/lib/asserts/string/isValidDateTime.d.mts +35 -0
  119. package/lib/asserts/string/isValidDateTime.d.ts +35 -0
  120. package/lib/asserts/string/isValidDateTime.js +32 -0
  121. package/lib/asserts/string/isValidDateTime.js.map +1 -0
  122. package/lib/asserts/string/isValidDateTime.mjs +32 -0
  123. package/lib/asserts/string/isValidDateTime.mjs.map +1 -0
  124. package/lib/asserts/string/isValidTime.d.mts +29 -0
  125. package/lib/asserts/string/isValidTime.d.ts +29 -0
  126. package/lib/asserts/string/isValidTime.js +32 -0
  127. package/lib/asserts/string/isValidTime.js.map +1 -0
  128. package/lib/asserts/string/isValidTime.mjs +32 -0
  129. package/lib/asserts/string/isValidTime.mjs.map +1 -0
  130. package/lib/asserts/string/lowerCase.js +4 -4
  131. package/lib/asserts/string/lowerCase.mjs +2 -2
  132. package/lib/asserts/string/maxLength.js +4 -4
  133. package/lib/asserts/string/maxLength.mjs +2 -2
  134. package/lib/asserts/string/minLength.js +4 -4
  135. package/lib/asserts/string/minLength.mjs +2 -2
  136. package/lib/asserts/string/regExp.js +4 -4
  137. package/lib/asserts/string/regExp.mjs +2 -2
  138. package/lib/asserts/string/startsWith.js +4 -4
  139. package/lib/asserts/string/startsWith.mjs +2 -2
  140. package/lib/asserts/string/upperCase.js +4 -4
  141. package/lib/asserts/string/upperCase.mjs +2 -2
  142. package/lib/asserts/string/uuid.js +4 -4
  143. package/lib/asserts/string/uuid.mjs +2 -2
  144. package/lib/asserts/string/uuidV1.js +4 -4
  145. package/lib/asserts/string/uuidV1.mjs +2 -2
  146. package/lib/asserts/string/uuidV2.js +4 -4
  147. package/lib/asserts/string/uuidV2.mjs +2 -2
  148. package/lib/asserts/string/uuidV3.js +4 -4
  149. package/lib/asserts/string/uuidV3.mjs +2 -2
  150. package/lib/asserts/string/uuidV4.js +4 -4
  151. package/lib/asserts/string/uuidV4.mjs +2 -2
  152. package/lib/asserts/string/uuidV5.js +4 -4
  153. package/lib/asserts/string/uuidV5.mjs +2 -2
  154. package/lib/asserts/string/validUrl.js +4 -4
  155. package/lib/asserts/string/validUrl.mjs +2 -2
  156. package/lib/{chunk-32J4WVLE.js → chunk-2D5QE7F4.js} +17 -15
  157. package/lib/chunk-2D5QE7F4.js.map +1 -0
  158. package/lib/{chunk-XFR7Y4XX.mjs → chunk-2MFBOVP2.mjs} +3 -3
  159. package/lib/chunk-2MFBOVP2.mjs.map +1 -0
  160. package/lib/chunk-3IOQH3K4.js +74 -0
  161. package/lib/chunk-3IOQH3K4.js.map +1 -0
  162. package/lib/chunk-3ZPLJ5KC.js +14 -0
  163. package/lib/{chunk-LWAEUS2F.js.map → chunk-3ZPLJ5KC.js.map} +1 -1
  164. package/lib/{chunk-QV4JDW3T.mjs → chunk-4GDBM5LP.mjs} +2 -2
  165. package/lib/{chunk-PVOHKGBW.mjs → chunk-5HT3PYSG.mjs} +4 -4
  166. package/lib/chunk-5HT3PYSG.mjs.map +1 -0
  167. package/lib/{chunk-XZTZC73V.mjs → chunk-5LLJ22IG.mjs} +25 -17
  168. package/lib/chunk-5LLJ22IG.mjs.map +1 -0
  169. package/lib/{chunk-MRWZVTNH.mjs → chunk-ADSMWGDJ.mjs} +4 -4
  170. package/lib/{chunk-VGF3Y2EK.js → chunk-AN3VHQEQ.js} +7 -7
  171. package/lib/{chunk-VGF3Y2EK.js.map → chunk-AN3VHQEQ.js.map} +1 -1
  172. package/lib/chunk-AOUFWACR.mjs +74 -0
  173. package/lib/chunk-AOUFWACR.mjs.map +1 -0
  174. package/lib/{chunk-WK4O3HH4.js → chunk-AY7HKAG2.js} +2 -3
  175. package/lib/chunk-AY7HKAG2.js.map +1 -0
  176. package/lib/{chunk-M6OCVAUD.mjs → chunk-BUXOCPHI.mjs} +3 -3
  177. package/lib/{chunk-54RHVQFA.mjs → chunk-D42ISCFK.mjs} +2 -2
  178. package/lib/{chunk-5EIBKBYS.js → chunk-EU3ZZF7Y.js} +13 -13
  179. package/lib/chunk-EU3ZZF7Y.js.map +1 -0
  180. package/lib/{chunk-PEWNA24X.mjs → chunk-KBZUNXJB.mjs} +4 -4
  181. package/lib/chunk-KBZUNXJB.mjs.map +1 -0
  182. package/lib/chunk-LYNVPN3R.js +28 -0
  183. package/lib/chunk-LYNVPN3R.js.map +1 -0
  184. package/lib/{chunk-7XFLH6R2.mjs → chunk-NP64RC7B.mjs} +2 -3
  185. package/lib/chunk-NP64RC7B.mjs.map +1 -0
  186. package/lib/{chunk-YPAUFM3S.mjs → chunk-OHEMRF7Y.mjs} +3 -3
  187. package/lib/{chunk-QLVLZRHT.js → chunk-OJSTQQ3N.js} +5 -5
  188. package/lib/chunk-OJSTQQ3N.js.map +1 -0
  189. package/lib/{chunk-5AO66YV5.mjs → chunk-OKF3BVUD.mjs} +4 -4
  190. package/lib/{chunk-N6YMNLXG.js → chunk-OO6BTBVP.js} +11 -11
  191. package/lib/chunk-OO6BTBVP.js.map +1 -0
  192. package/lib/{chunk-SEIKS6G7.js → chunk-P6V6S6TZ.js} +19 -15
  193. package/lib/chunk-P6V6S6TZ.js.map +1 -0
  194. package/lib/{chunk-MTJJKWTP.js → chunk-PESVL5YJ.js} +7 -7
  195. package/lib/{chunk-MTJJKWTP.js.map → chunk-PESVL5YJ.js.map} +1 -1
  196. package/lib/{chunk-7GIRQ5EA.js → chunk-PIBDJJUU.js} +31 -23
  197. package/lib/chunk-PIBDJJUU.js.map +1 -0
  198. package/lib/{chunk-WPHJ4QTB.js → chunk-SPWF5IFU.js} +5 -5
  199. package/lib/{chunk-WPHJ4QTB.js.map → chunk-SPWF5IFU.js.map} +1 -1
  200. package/lib/{chunk-Z7OEFOAD.mjs → chunk-TQWUSDQD.mjs} +8 -8
  201. package/lib/chunk-TQWUSDQD.mjs.map +1 -0
  202. package/lib/{chunk-CQWI6YRI.js → chunk-UZ2PWO4O.js} +4 -4
  203. package/lib/{chunk-CQWI6YRI.js.map → chunk-UZ2PWO4O.js.map} +1 -1
  204. package/lib/{chunk-356HMXOP.js → chunk-VBTWYDEM.js} +4 -4
  205. package/lib/chunk-VBTWYDEM.js.map +1 -0
  206. package/lib/{chunk-4SPM2CSQ.js → chunk-W2GOLG3K.js} +5 -5
  207. package/lib/{chunk-4SPM2CSQ.js.map → chunk-W2GOLG3K.js.map} +1 -1
  208. package/lib/{chunk-GDSB7CDN.mjs → chunk-YBVMP4EI.mjs} +4 -4
  209. package/lib/chunk-YBVMP4EI.mjs.map +1 -0
  210. package/lib/{chunk-PJI3DRGP.mjs → chunk-YPAFWVDL.mjs} +4 -4
  211. package/lib/chunk-YPAFWVDL.mjs.map +1 -0
  212. package/lib/{chunk-UV4I7JZR.mjs → chunk-ZMEQCIRN.mjs} +16 -12
  213. package/lib/chunk-ZMEQCIRN.mjs.map +1 -0
  214. package/lib/{chunk-4SR7J2I4.js → chunk-ZVW3IHBW.js} +8 -8
  215. package/lib/chunk-ZVW3IHBW.js.map +1 -0
  216. package/lib/{chunk-TP5I237J.mjs → chunk-ZWE5Q37U.mjs} +14 -12
  217. package/lib/chunk-ZWE5Q37U.mjs.map +1 -0
  218. package/lib/codeGen.d.mts +1 -1
  219. package/lib/codeGen.d.ts +1 -1
  220. package/lib/codeGen.js +4 -4
  221. package/lib/codeGen.mjs +3 -3
  222. package/lib/exceptions.js +2 -2
  223. package/lib/exceptions.mjs +1 -1
  224. package/lib/helpers/core.d.mts +1 -1
  225. package/lib/helpers/core.d.ts +1 -1
  226. package/lib/helpers/core.js +4 -4
  227. package/lib/helpers/core.mjs +3 -3
  228. package/lib/helpers/isValidDateInner.d.mts +3 -0
  229. package/lib/helpers/isValidDateInner.d.ts +3 -0
  230. package/lib/helpers/isValidDateInner.js +7 -0
  231. package/lib/helpers/isValidDateInner.js.map +1 -0
  232. package/lib/helpers/isValidDateInner.mjs +7 -0
  233. package/lib/helpers/setStrictType.d.mts +1 -1
  234. package/lib/helpers/setStrictType.d.ts +1 -1
  235. package/lib/helpers/setStrictType.js +5 -5
  236. package/lib/helpers/setStrictType.mjs +4 -4
  237. package/lib/index.d.mts +1 -1
  238. package/lib/index.d.ts +1 -1
  239. package/lib/index.js +7 -7
  240. package/lib/index.mjs +6 -6
  241. package/lib/parse.d.mts +1 -1
  242. package/lib/parse.d.ts +1 -1
  243. package/lib/parse.js +6 -6
  244. package/lib/parse.mjs +5 -5
  245. package/lib/parseOrFail.d.mts +1 -1
  246. package/lib/parseOrFail.d.ts +1 -1
  247. package/lib/parseOrFail.js +6 -6
  248. package/lib/parseOrFail.mjs +5 -5
  249. package/lib/schemas/ArraySchema.d.mts +2 -2
  250. package/lib/schemas/ArraySchema.d.ts +2 -2
  251. package/lib/schemas/ArraySchema.js +8 -6
  252. package/lib/schemas/ArraySchema.js.map +1 -1
  253. package/lib/schemas/ArraySchema.mjs +7 -5
  254. package/lib/schemas/BigIntSchema.d.mts +3 -2
  255. package/lib/schemas/BigIntSchema.d.ts +3 -2
  256. package/lib/schemas/BigIntSchema.js +11 -10
  257. package/lib/schemas/BigIntSchema.js.map +1 -1
  258. package/lib/schemas/BigIntSchema.mjs +10 -9
  259. package/lib/schemas/BooleanSchema.d.mts +2 -2
  260. package/lib/schemas/BooleanSchema.d.ts +2 -2
  261. package/lib/schemas/BooleanSchema.js +9 -7
  262. package/lib/schemas/BooleanSchema.js.map +1 -1
  263. package/lib/schemas/BooleanSchema.mjs +8 -6
  264. package/lib/schemas/CommonSchema.d.mts +1 -1
  265. package/lib/schemas/CommonSchema.d.ts +1 -1
  266. package/lib/schemas/CommonSchema.js +7 -5
  267. package/lib/schemas/CommonSchema.js.map +1 -1
  268. package/lib/schemas/CommonSchema.mjs +6 -4
  269. package/lib/schemas/DateSchema.d.mts +2 -2
  270. package/lib/schemas/DateSchema.d.ts +2 -2
  271. package/lib/schemas/DateSchema.js +8 -6
  272. package/lib/schemas/DateSchema.js.map +1 -1
  273. package/lib/schemas/DateSchema.mjs +7 -5
  274. package/lib/schemas/NumberSchema.d.mts +2 -2
  275. package/lib/schemas/NumberSchema.d.ts +2 -2
  276. package/lib/schemas/NumberSchema.js +11 -10
  277. package/lib/schemas/NumberSchema.js.map +1 -1
  278. package/lib/schemas/NumberSchema.mjs +10 -9
  279. package/lib/schemas/ObjectSchema.d.mts +2 -2
  280. package/lib/schemas/ObjectSchema.d.ts +2 -2
  281. package/lib/schemas/ObjectSchema.js +8 -6
  282. package/lib/schemas/ObjectSchema.js.map +1 -1
  283. package/lib/schemas/ObjectSchema.mjs +7 -5
  284. package/lib/schemas/StringSchema.d.mts +3 -2
  285. package/lib/schemas/StringSchema.d.ts +3 -2
  286. package/lib/schemas/StringSchema.js +11 -10
  287. package/lib/schemas/StringSchema.js.map +1 -1
  288. package/lib/schemas/StringSchema.mjs +10 -9
  289. package/lib/translationMap.js +3 -3
  290. package/lib/translationMap.mjs +2 -2
  291. package/package.json +1 -1
  292. package/lib/chunk-2OINKFOA.js +0 -28
  293. package/lib/chunk-2OINKFOA.js.map +0 -1
  294. package/lib/chunk-32J4WVLE.js.map +0 -1
  295. package/lib/chunk-356HMXOP.js.map +0 -1
  296. package/lib/chunk-4SR7J2I4.js.map +0 -1
  297. package/lib/chunk-4UF67IQ2.mjs +0 -42
  298. package/lib/chunk-4UF67IQ2.mjs.map +0 -1
  299. package/lib/chunk-5EIBKBYS.js.map +0 -1
  300. package/lib/chunk-7GIRQ5EA.js.map +0 -1
  301. package/lib/chunk-7XFLH6R2.mjs.map +0 -1
  302. package/lib/chunk-EQNVYAKS.js +0 -42
  303. package/lib/chunk-EQNVYAKS.js.map +0 -1
  304. package/lib/chunk-GDSB7CDN.mjs.map +0 -1
  305. package/lib/chunk-LWAEUS2F.js +0 -14
  306. package/lib/chunk-N6YMNLXG.js.map +0 -1
  307. package/lib/chunk-PEWNA24X.mjs.map +0 -1
  308. package/lib/chunk-PJI3DRGP.mjs.map +0 -1
  309. package/lib/chunk-PVOHKGBW.mjs.map +0 -1
  310. package/lib/chunk-QLVLZRHT.js.map +0 -1
  311. package/lib/chunk-SEIKS6G7.js.map +0 -1
  312. package/lib/chunk-TP5I237J.mjs.map +0 -1
  313. package/lib/chunk-UV4I7JZR.mjs.map +0 -1
  314. package/lib/chunk-WK4O3HH4.js.map +0 -1
  315. package/lib/chunk-XFR7Y4XX.mjs.map +0 -1
  316. package/lib/chunk-XZTZC73V.mjs.map +0 -1
  317. package/lib/chunk-Z7OEFOAD.mjs.map +0 -1
  318. package/lib/helpers/isValidDate.d.mts +0 -3
  319. package/lib/helpers/isValidDate.d.ts +0 -3
  320. package/lib/helpers/isValidDate.js +0 -7
  321. package/lib/helpers/isValidDate.js.map +0 -1
  322. package/lib/helpers/isValidDate.mjs +0 -7
  323. /package/lib/{chunk-QV4JDW3T.mjs.map → chunk-4GDBM5LP.mjs.map} +0 -0
  324. /package/lib/{chunk-MRWZVTNH.mjs.map → chunk-ADSMWGDJ.mjs.map} +0 -0
  325. /package/lib/{chunk-M6OCVAUD.mjs.map → chunk-BUXOCPHI.mjs.map} +0 -0
  326. /package/lib/{chunk-54RHVQFA.mjs.map → chunk-D42ISCFK.mjs.map} +0 -0
  327. /package/lib/{chunk-YPAUFM3S.mjs.map → chunk-OHEMRF7Y.mjs.map} +0 -0
  328. /package/lib/{chunk-5AO66YV5.mjs.map → chunk-OKF3BVUD.mjs.map} +0 -0
  329. /package/lib/helpers/{isValidDate.mjs.map → isValidDateInner.mjs.map} +0 -0
@@ -2,7 +2,7 @@ import { ExceptionContext, PrimitiveType, RequiredValidation } from './commonTyp
2
2
 
3
3
  declare const ctxSymbol: unique symbol;
4
4
 
5
- declare function innerCheck(schema: CommonSchema, receivedValue: unknown, exCtx: ExceptionContext): void | {} | null;
5
+ declare function innerCheck(schema: CommonSchema, receivedValue: unknown, exCtx: ExceptionContext): unknown;
6
6
 
7
7
  type ObjectShapeSchemaType = Record<string, CommonSchema>;
8
8
  interface ValidatorContext {
@@ -16,6 +16,7 @@ interface ValidatorContext {
16
16
  strictType?: boolean;
17
17
  strictTypeValue?: unknown;
18
18
  date?: boolean;
19
+ defaultValue?: unknown;
19
20
  }
20
21
  declare class CommonSchema {
21
22
  [ctxSymbol]: ValidatorContext;
@@ -37,6 +38,13 @@ declare class CommonSchema {
37
38
  * @returns {WithUndefined<this>} The schema instance marked as optional.
38
39
  */
39
40
  optional(): WithUndefined<this>;
41
+ /**
42
+ * Marks the schema as optional, allowing the value to be `undefined`.
43
+ *
44
+ * @returns {this} The schema instance. This method should be used as a last one because it does the check of previous methods and
45
+ */
46
+ default(defaultValue: unknown): this;
47
+ protected defaultValueCheck(): void;
40
48
  }
41
49
  type WithNull<T extends CommonSchema> = T & {
42
50
  validation_null: true;
@@ -2,7 +2,7 @@ import { ExceptionContext, PrimitiveType, RequiredValidation } from './commonTyp
2
2
 
3
3
  declare const ctxSymbol: unique symbol;
4
4
 
5
- declare function innerCheck(schema: CommonSchema, receivedValue: unknown, exCtx: ExceptionContext): void | {} | null;
5
+ declare function innerCheck(schema: CommonSchema, receivedValue: unknown, exCtx: ExceptionContext): unknown;
6
6
 
7
7
  type ObjectShapeSchemaType = Record<string, CommonSchema>;
8
8
  interface ValidatorContext {
@@ -16,6 +16,7 @@ interface ValidatorContext {
16
16
  strictType?: boolean;
17
17
  strictTypeValue?: unknown;
18
18
  date?: boolean;
19
+ defaultValue?: unknown;
19
20
  }
20
21
  declare class CommonSchema {
21
22
  [ctxSymbol]: ValidatorContext;
@@ -37,6 +38,13 @@ declare class CommonSchema {
37
38
  * @returns {WithUndefined<this>} The schema instance marked as optional.
38
39
  */
39
40
  optional(): WithUndefined<this>;
41
+ /**
42
+ * Marks the schema as optional, allowing the value to be `undefined`.
43
+ *
44
+ * @returns {this} The schema instance. This method should be used as a last one because it does the check of previous methods and
45
+ */
46
+ default(defaultValue: unknown): this;
47
+ protected defaultValueCheck(): void;
40
48
  }
41
49
  type WithNull<T extends CommonSchema> = T & {
42
50
  validation_null: true;
@@ -1,7 +1,7 @@
1
1
  import { ArraySchema, ExtractFromArray } from './schemas/ArraySchema.mjs';
2
2
  import { WithBigInt, BigIntSchema, ExtractFromBigInt } from './schemas/BigIntSchema.mjs';
3
3
  import { WithBoolean, BooleanSchema, ExtractFromBoolean } from './schemas/BooleanSchema.mjs';
4
- import { W as WithMix, E as ExtractFromMix, a as WithUndefined, C as CommonSchema, b as WithNull } from './CommonSchema-DJmQ3F_9.mjs';
4
+ import { W as WithMix, E as ExtractFromMix, a as WithUndefined, C as CommonSchema, b as WithNull } from './CommonSchema-CiY7spmg.mjs';
5
5
  import { DateSchema } from './schemas/DateSchema.mjs';
6
6
  import { WithNumber, NumberSchema, ExtractFromNumber } from './schemas/NumberSchema.mjs';
7
7
  import { ObjectSchema, WithObject } from './schemas/ObjectSchema.mjs';
@@ -1,7 +1,7 @@
1
1
  import { ArraySchema, ExtractFromArray } from './schemas/ArraySchema.js';
2
2
  import { WithBigInt, BigIntSchema, ExtractFromBigInt } from './schemas/BigIntSchema.js';
3
3
  import { WithBoolean, BooleanSchema, ExtractFromBoolean } from './schemas/BooleanSchema.js';
4
- import { W as WithMix, E as ExtractFromMix, a as WithUndefined, C as CommonSchema, b as WithNull } from './CommonSchema-9RtxTxdX.js';
4
+ import { W as WithMix, E as ExtractFromMix, a as WithUndefined, C as CommonSchema, b as WithNull } from './CommonSchema-D9QVJBJe.js';
5
5
  import { DateSchema } from './schemas/DateSchema.js';
6
6
  import { WithNumber, NumberSchema, ExtractFromNumber } from './schemas/NumberSchema.js';
7
7
  import { ObjectSchema, WithObject } from './schemas/ObjectSchema.js';
@@ -1,5 +1,5 @@
1
1
  import { WithArray } from '../../schemas/ArraySchema.mjs';
2
- import { C as CommonSchema } from '../../CommonSchema-DJmQ3F_9.mjs';
2
+ import { C as CommonSchema } from '../../CommonSchema-CiY7spmg.mjs';
3
3
  import '../../commonTypes.mjs';
4
4
 
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  import { WithArray } from '../../schemas/ArraySchema.js';
2
- import { C as CommonSchema } from '../../CommonSchema-9RtxTxdX.js';
2
+ import { C as CommonSchema } from '../../CommonSchema-D9QVJBJe.js';
3
3
  import '../../commonTypes.js';
4
4
 
5
5
  /**
@@ -1,14 +1,16 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunk2OINKFOAjs = require('../../chunk-2OINKFOA.js');
4
- require('../../chunk-EQNVYAKS.js');
5
- require('../../chunk-7GIRQ5EA.js');
6
- require('../../chunk-356HMXOP.js');
7
- require('../../chunk-WK4O3HH4.js');
3
+ var _chunkLYNVPN3Rjs = require('../../chunk-LYNVPN3R.js');
4
+ require('../../chunk-3IOQH3K4.js');
5
+ require('../../chunk-PESVL5YJ.js');
6
+ require('../../chunk-PIBDJJUU.js');
7
+ require('../../chunk-VBTWYDEM.js');
8
+ require('../../chunk-UZ2PWO4O.js');
9
+ require('../../chunk-AY7HKAG2.js');
8
10
 
9
11
  // src/asserts/array/index.ts
10
12
  function array(arraySchema) {
11
- return new (0, _chunk2OINKFOAjs.ArraySchema)({ type: [], requiredValidations: [] }, arraySchema);
13
+ return new (0, _chunkLYNVPN3Rjs.ArraySchema)({ type: [], requiredValidations: [] }, arraySchema);
12
14
  }
13
15
 
14
16
 
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/bguard/bguard/lib/asserts/array/index.js","../../../src/asserts/array/index.ts"],"names":[],"mappings":"AAAA;AACE;AACF,0DAAgC;AAChC,mCAAgC;AAChC,mCAAgC;AAChC,mCAAgC;AAChC,mCAAgC;AAChC;AACA;ACOO,SAAS,KAAA,CAA8B,WAAA,EAA8B;AAC1E,EAAA,OAAO,IAAI,iCAAA,CAAY,EAAE,IAAA,EAAM,CAAC,CAAA,EAAG,mBAAA,EAAqB,CAAC,EAAE,CAAA,EAAG,WAAW,CAAA;AAC3E;ADLA;AACE;AACF,sBAAC","file":"/home/runner/work/bguard/bguard/lib/asserts/array/index.js","sourcesContent":[null,"import { ArraySchema, WithArray } from '../../schemas/ArraySchema';\nimport { CommonSchema } from '../../schemas/CommonSchema';\n\n/**\n * @description Creates a new schema for validating arrays where each element must match the specified schema.\n * @template T\n * @param {T} arraySchema - The schema that each element of the array must match.\n * @returns {WithArray<T>} A new instance of `ArraySchema` for validating arrays of elements that match the specified schema.\n * @example\n * const schema = array(string());\n * parseOrFail(schema, ['hello', 'world']); // Validates successfully\n * parseOrFail(schema, ['hello', 123]); // Throws a validation error\n *\n * @instance Of ArraySchema\n */\nexport function array<T extends CommonSchema>(arraySchema: T): WithArray<T> {\n return new ArraySchema({ type: [], requiredValidations: [] }, arraySchema) as WithArray<T>;\n}\n"]}
1
+ {"version":3,"sources":["/home/runner/work/bguard/bguard/lib/asserts/array/index.js","../../../src/asserts/array/index.ts"],"names":[],"mappings":"AAAA;AACE;AACF,0DAAgC;AAChC,mCAAgC;AAChC,mCAAgC;AAChC,mCAAgC;AAChC,mCAAgC;AAChC,mCAAgC;AAChC,mCAAgC;AAChC;AACA;ACKO,SAAS,KAAA,CAA8B,WAAA,EAA8B;AAC1E,EAAA,OAAO,IAAI,iCAAA,CAAY,EAAE,IAAA,EAAM,CAAC,CAAA,EAAG,mBAAA,EAAqB,CAAC,EAAE,CAAA,EAAG,WAAW,CAAA;AAC3E;ADHA;AACE;AACF,sBAAC","file":"/home/runner/work/bguard/bguard/lib/asserts/array/index.js","sourcesContent":[null,"import { ArraySchema, WithArray } from '../../schemas/ArraySchema';\nimport { CommonSchema } from '../../schemas/CommonSchema';\n\n/**\n * @description Creates a new schema for validating arrays where each element must match the specified schema.\n * @template T\n * @param {T} arraySchema - The schema that each element of the array must match.\n * @returns {WithArray<T>} A new instance of `ArraySchema` for validating arrays of elements that match the specified schema.\n * @example\n * const schema = array(string());\n * parseOrFail(schema, ['hello', 'world']); // Validates successfully\n * parseOrFail(schema, ['hello', 123]); // Throws a validation error\n *\n * @instance Of ArraySchema\n */\nexport function array<T extends CommonSchema>(arraySchema: T): WithArray<T> {\n return new ArraySchema({ type: [], requiredValidations: [] }, arraySchema) as WithArray<T>;\n}\n"]}
@@ -1,10 +1,12 @@
1
1
  import {
2
2
  ArraySchema
3
- } from "../../chunk-PEWNA24X.mjs";
4
- import "../../chunk-4UF67IQ2.mjs";
5
- import "../../chunk-XZTZC73V.mjs";
6
- import "../../chunk-GDSB7CDN.mjs";
7
- import "../../chunk-7XFLH6R2.mjs";
3
+ } from "../../chunk-KBZUNXJB.mjs";
4
+ import "../../chunk-AOUFWACR.mjs";
5
+ import "../../chunk-ADSMWGDJ.mjs";
6
+ import "../../chunk-5LLJ22IG.mjs";
7
+ import "../../chunk-YBVMP4EI.mjs";
8
+ import "../../chunk-4GDBM5LP.mjs";
9
+ import "../../chunk-NP64RC7B.mjs";
8
10
 
9
11
  // src/asserts/array/index.ts
10
12
  function array(arraySchema) {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/asserts/array/index.ts"],"sourcesContent":["import { ArraySchema, WithArray } from '../../schemas/ArraySchema';\nimport { CommonSchema } from '../../schemas/CommonSchema';\n\n/**\n * @description Creates a new schema for validating arrays where each element must match the specified schema.\n * @template T\n * @param {T} arraySchema - The schema that each element of the array must match.\n * @returns {WithArray<T>} A new instance of `ArraySchema` for validating arrays of elements that match the specified schema.\n * @example\n * const schema = array(string());\n * parseOrFail(schema, ['hello', 'world']); // Validates successfully\n * parseOrFail(schema, ['hello', 123]); // Throws a validation error\n *\n * @instance Of ArraySchema\n */\nexport function array<T extends CommonSchema>(arraySchema: T): WithArray<T> {\n return new ArraySchema({ type: [], requiredValidations: [] }, arraySchema) as WithArray<T>;\n}\n"],"mappings":";;;;;;;;;AAeO,SAAS,MAA8B,aAA8B;AAC1E,SAAO,IAAI,YAAY,EAAE,MAAM,CAAC,GAAG,qBAAqB,CAAC,EAAE,GAAG,WAAW;AAC3E;","names":[]}
1
+ {"version":3,"sources":["../../../src/asserts/array/index.ts"],"sourcesContent":["import { ArraySchema, WithArray } from '../../schemas/ArraySchema';\nimport { CommonSchema } from '../../schemas/CommonSchema';\n\n/**\n * @description Creates a new schema for validating arrays where each element must match the specified schema.\n * @template T\n * @param {T} arraySchema - The schema that each element of the array must match.\n * @returns {WithArray<T>} A new instance of `ArraySchema` for validating arrays of elements that match the specified schema.\n * @example\n * const schema = array(string());\n * parseOrFail(schema, ['hello', 'world']); // Validates successfully\n * parseOrFail(schema, ['hello', 123]); // Throws a validation error\n *\n * @instance Of ArraySchema\n */\nexport function array<T extends CommonSchema>(arraySchema: T): WithArray<T> {\n return new ArraySchema({ type: [], requiredValidations: [] }, arraySchema) as WithArray<T>;\n}\n"],"mappings":";;;;;;;;;;;AAeO,SAAS,MAA8B,aAA8B;AAC1E,SAAO,IAAI,YAAY,EAAE,MAAM,CAAC,GAAG,qBAAqB,CAAC,EAAE,GAAG,WAAW;AAC3E;","names":[]}
@@ -0,0 +1,22 @@
1
+ import { RequiredValidation } from '../../commonTypes.mjs';
2
+
3
+ /**
4
+ * @description Asserts that the length of an array is not greater than a specified maximum length.
5
+ * @param {number} expected The maximum allowed length for the array.
6
+ * @returns {RequiredValidation} A validation function that takes a received array and an exception context.
7
+ * @throws {ValidationError} if the length of the received value is greater than the expected length.
8
+ * @example
9
+ * const schema = array(string()).custom(maxArrayLength(3));
10
+ * parseOrFail(schema, ['adequate', 'array']); // Valid
11
+ * parseOrFail(schema, ['adequate', 'array', 'length']); // Valid
12
+ * parseOrFail(schema, ['adequate', 'array', 'length', 'test']); // Throws an error: 'The received value length is greater than expected'
13
+ *
14
+ * @translation Error Translation Key = 'a:maxArrayLength'
15
+ */
16
+ declare const maxArrayLength: {
17
+ (expected: number): RequiredValidation;
18
+ key: string;
19
+ message: string;
20
+ };
21
+
22
+ export { maxArrayLength };
@@ -0,0 +1,22 @@
1
+ import { RequiredValidation } from '../../commonTypes.js';
2
+
3
+ /**
4
+ * @description Asserts that the length of an array is not greater than a specified maximum length.
5
+ * @param {number} expected The maximum allowed length for the array.
6
+ * @returns {RequiredValidation} A validation function that takes a received array and an exception context.
7
+ * @throws {ValidationError} if the length of the received value is greater than the expected length.
8
+ * @example
9
+ * const schema = array(string()).custom(maxArrayLength(3));
10
+ * parseOrFail(schema, ['adequate', 'array']); // Valid
11
+ * parseOrFail(schema, ['adequate', 'array', 'length']); // Valid
12
+ * parseOrFail(schema, ['adequate', 'array', 'length', 'test']); // Throws an error: 'The received value length is greater than expected'
13
+ *
14
+ * @translation Error Translation Key = 'a:maxArrayLength'
15
+ */
16
+ declare const maxArrayLength: {
17
+ (expected: number): RequiredValidation;
18
+ key: string;
19
+ message: string;
20
+ };
21
+
22
+ export { maxArrayLength };
@@ -0,0 +1,20 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkUZ2PWO4Ojs = require('../../chunk-UZ2PWO4O.js');
4
+
5
+
6
+ var _chunkAY7HKAG2js = require('../../chunk-AY7HKAG2.js');
7
+
8
+ // src/asserts/array/maxArrayLength.ts
9
+ var maxArrayLengthErrorMessage = "The received value length is greater than expected";
10
+ var maxArrayLengthErrorKey = "a:maxArrayLength";
11
+ var maxArrayLength = (expected) => (received, ctx) => {
12
+ if (received.length > expected) _chunkAY7HKAG2js.guardException.call(void 0, expected, received, ctx, maxArrayLengthErrorMessage);
13
+ };
14
+ maxArrayLength.key = maxArrayLengthErrorKey;
15
+ maxArrayLength.message = maxArrayLengthErrorMessage;
16
+ _chunkUZ2PWO4Ojs.setToDefaultLocale.call(void 0, maxArrayLength);
17
+
18
+
19
+ exports.maxArrayLength = maxArrayLength;
20
+ //# sourceMappingURL=maxArrayLength.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["/home/runner/work/bguard/bguard/lib/asserts/array/maxArrayLength.js","../../../src/asserts/array/maxArrayLength.ts"],"names":[],"mappings":"AAAA;AACE;AACF,0DAAgC;AAChC;AACE;AACF,0DAAgC;AAChC;AACA;ACHA,IAAM,2BAAA,EAA6B,oDAAA;AACnC,IAAM,uBAAA,EAAyB,kBAAA;AAexB,IAAM,eAAA,EACX,CAAC,QAAA,EAAA,GACD,CAAC,QAAA,EAAqB,GAAA,EAAA,GAA0B;AAC9C,EAAA,GAAA,CAAI,QAAA,CAAS,OAAA,EAAS,QAAA,EAAU,6CAAA,QAAe,EAAU,QAAA,EAAU,GAAA,EAAK,0BAA0B,CAAA;AACpG,CAAA;AAEF,cAAA,CAAe,IAAA,EAAM,sBAAA;AACrB,cAAA,CAAe,QAAA,EAAU,0BAAA;AACzB,iDAAA,cAAiC,CAAA;ADZjC;AACE;AACF,wCAAC","file":"/home/runner/work/bguard/bguard/lib/asserts/array/maxArrayLength.js","sourcesContent":[null,"import { guardException } from '../../exceptions';\nimport { ExceptionContext, RequiredValidation } from '../../commonTypes';\nimport { setToDefaultLocale } from '../../translationMap';\n\nconst maxArrayLengthErrorMessage = 'The received value length is greater than expected';\nconst maxArrayLengthErrorKey = 'a:maxArrayLength';\n\n/**\n * @description Asserts that the length of an array is not greater than a specified maximum length.\n * @param {number} expected The maximum allowed length for the array.\n * @returns {RequiredValidation} A validation function that takes a received array and an exception context.\n * @throws {ValidationError} if the length of the received value is greater than the expected length.\n * @example\n * const schema = array(string()).custom(maxArrayLength(3));\n * parseOrFail(schema, ['adequate', 'array']); // Valid\n * parseOrFail(schema, ['adequate', 'array', 'length']); // Valid\n * parseOrFail(schema, ['adequate', 'array', 'length', 'test']); // Throws an error: 'The received value length is greater than expected'\n *\n * @translation Error Translation Key = 'a:maxArrayLength'\n */\nexport const maxArrayLength =\n (expected: number): RequiredValidation =>\n (received: unknown[], ctx: ExceptionContext) => {\n if (received.length > expected) guardException(expected, received, ctx, maxArrayLengthErrorMessage);\n };\n\nmaxArrayLength.key = maxArrayLengthErrorKey;\nmaxArrayLength.message = maxArrayLengthErrorMessage;\nsetToDefaultLocale(maxArrayLength);\n"]}
@@ -0,0 +1,20 @@
1
+ import {
2
+ setToDefaultLocale
3
+ } from "../../chunk-4GDBM5LP.mjs";
4
+ import {
5
+ guardException
6
+ } from "../../chunk-NP64RC7B.mjs";
7
+
8
+ // src/asserts/array/maxArrayLength.ts
9
+ var maxArrayLengthErrorMessage = "The received value length is greater than expected";
10
+ var maxArrayLengthErrorKey = "a:maxArrayLength";
11
+ var maxArrayLength = (expected) => (received, ctx) => {
12
+ if (received.length > expected) guardException(expected, received, ctx, maxArrayLengthErrorMessage);
13
+ };
14
+ maxArrayLength.key = maxArrayLengthErrorKey;
15
+ maxArrayLength.message = maxArrayLengthErrorMessage;
16
+ setToDefaultLocale(maxArrayLength);
17
+ export {
18
+ maxArrayLength
19
+ };
20
+ //# sourceMappingURL=maxArrayLength.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/asserts/array/maxArrayLength.ts"],"sourcesContent":["import { guardException } from '../../exceptions';\nimport { ExceptionContext, RequiredValidation } from '../../commonTypes';\nimport { setToDefaultLocale } from '../../translationMap';\n\nconst maxArrayLengthErrorMessage = 'The received value length is greater than expected';\nconst maxArrayLengthErrorKey = 'a:maxArrayLength';\n\n/**\n * @description Asserts that the length of an array is not greater than a specified maximum length.\n * @param {number} expected The maximum allowed length for the array.\n * @returns {RequiredValidation} A validation function that takes a received array and an exception context.\n * @throws {ValidationError} if the length of the received value is greater than the expected length.\n * @example\n * const schema = array(string()).custom(maxArrayLength(3));\n * parseOrFail(schema, ['adequate', 'array']); // Valid\n * parseOrFail(schema, ['adequate', 'array', 'length']); // Valid\n * parseOrFail(schema, ['adequate', 'array', 'length', 'test']); // Throws an error: 'The received value length is greater than expected'\n *\n * @translation Error Translation Key = 'a:maxArrayLength'\n */\nexport const maxArrayLength =\n (expected: number): RequiredValidation =>\n (received: unknown[], ctx: ExceptionContext) => {\n if (received.length > expected) guardException(expected, received, ctx, maxArrayLengthErrorMessage);\n };\n\nmaxArrayLength.key = maxArrayLengthErrorKey;\nmaxArrayLength.message = maxArrayLengthErrorMessage;\nsetToDefaultLocale(maxArrayLength);\n"],"mappings":";;;;;;;;AAIA,IAAM,6BAA6B;AACnC,IAAM,yBAAyB;AAexB,IAAM,iBACX,CAAC,aACD,CAAC,UAAqB,QAA0B;AAC9C,MAAI,SAAS,SAAS,SAAU,gBAAe,UAAU,UAAU,KAAK,0BAA0B;AACpG;AAEF,eAAe,MAAM;AACrB,eAAe,UAAU;AACzB,mBAAmB,cAAc;","names":[]}
@@ -0,0 +1,22 @@
1
+ import { RequiredValidation } from '../../commonTypes.mjs';
2
+
3
+ /**
4
+ * @description Asserts that the length of na array is not less than a specified minimum length.
5
+ * @param {number} expected The minimum required length for the array.
6
+ * @returns {RequiredValidation} A validation function that takes a received array and an exception context.
7
+ * @throws {ValidationError} if the length of the received value is less than the expected length.
8
+ * @example
9
+ * const schema = array(string()).custom(minArrayLength(3));
10
+ * parseOrFail(schema, ['short', 'array']); // Throws an error: 'The received value length is less than expected'
11
+ * parseOrFail(schema, ['adequate', 'array', 'length']); // Valid
12
+ * parseOrFail(schema, ['adequate', 'array', 'length', 'test']); // Valid
13
+ *
14
+ * @translation Error Translation Key = 'a:minArrayLength'
15
+ */
16
+ declare const minArrayLength: {
17
+ (expected: number): RequiredValidation;
18
+ key: string;
19
+ message: string;
20
+ };
21
+
22
+ export { minArrayLength };
@@ -0,0 +1,22 @@
1
+ import { RequiredValidation } from '../../commonTypes.js';
2
+
3
+ /**
4
+ * @description Asserts that the length of na array is not less than a specified minimum length.
5
+ * @param {number} expected The minimum required length for the array.
6
+ * @returns {RequiredValidation} A validation function that takes a received array and an exception context.
7
+ * @throws {ValidationError} if the length of the received value is less than the expected length.
8
+ * @example
9
+ * const schema = array(string()).custom(minArrayLength(3));
10
+ * parseOrFail(schema, ['short', 'array']); // Throws an error: 'The received value length is less than expected'
11
+ * parseOrFail(schema, ['adequate', 'array', 'length']); // Valid
12
+ * parseOrFail(schema, ['adequate', 'array', 'length', 'test']); // Valid
13
+ *
14
+ * @translation Error Translation Key = 'a:minArrayLength'
15
+ */
16
+ declare const minArrayLength: {
17
+ (expected: number): RequiredValidation;
18
+ key: string;
19
+ message: string;
20
+ };
21
+
22
+ export { minArrayLength };
@@ -0,0 +1,20 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkUZ2PWO4Ojs = require('../../chunk-UZ2PWO4O.js');
4
+
5
+
6
+ var _chunkAY7HKAG2js = require('../../chunk-AY7HKAG2.js');
7
+
8
+ // src/asserts/array/minArrayLength.ts
9
+ var minArrayLengthErrorMessage = "The received value length is less than expected";
10
+ var minArrayLengthErrorKey = "a:minArrayLength";
11
+ var minArrayLength = (expected) => (received, ctx) => {
12
+ if (received.length < expected) _chunkAY7HKAG2js.guardException.call(void 0, expected, received, ctx, minArrayLengthErrorMessage);
13
+ };
14
+ minArrayLength.key = minArrayLengthErrorKey;
15
+ minArrayLength.message = minArrayLengthErrorMessage;
16
+ _chunkUZ2PWO4Ojs.setToDefaultLocale.call(void 0, minArrayLength);
17
+
18
+
19
+ exports.minArrayLength = minArrayLength;
20
+ //# sourceMappingURL=minArrayLength.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["/home/runner/work/bguard/bguard/lib/asserts/array/minArrayLength.js","../../../src/asserts/array/minArrayLength.ts"],"names":[],"mappings":"AAAA;AACE;AACF,0DAAgC;AAChC;AACE;AACF,0DAAgC;AAChC;AACA;ACHA,IAAM,2BAAA,EAA6B,iDAAA;AACnC,IAAM,uBAAA,EAAyB,kBAAA;AAexB,IAAM,eAAA,EACX,CAAC,QAAA,EAAA,GACD,CAAC,QAAA,EAAqB,GAAA,EAAA,GAA0B;AAC9C,EAAA,GAAA,CAAI,QAAA,CAAS,OAAA,EAAS,QAAA,EAAU,6CAAA,QAAe,EAAU,QAAA,EAAU,GAAA,EAAK,0BAA0B,CAAA;AACpG,CAAA;AAEF,cAAA,CAAe,IAAA,EAAM,sBAAA;AACrB,cAAA,CAAe,QAAA,EAAU,0BAAA;AACzB,iDAAA,cAAiC,CAAA;ADZjC;AACE;AACF,wCAAC","file":"/home/runner/work/bguard/bguard/lib/asserts/array/minArrayLength.js","sourcesContent":[null,"import { guardException } from '../../exceptions';\nimport { ExceptionContext, RequiredValidation } from '../../commonTypes';\nimport { setToDefaultLocale } from '../../translationMap';\n\nconst minArrayLengthErrorMessage = 'The received value length is less than expected';\nconst minArrayLengthErrorKey = 'a:minArrayLength';\n\n/**\n * @description Asserts that the length of na array is not less than a specified minimum length.\n * @param {number} expected The minimum required length for the array.\n * @returns {RequiredValidation} A validation function that takes a received array and an exception context.\n * @throws {ValidationError} if the length of the received value is less than the expected length.\n * @example\n * const schema = array(string()).custom(minArrayLength(3));\n * parseOrFail(schema, ['short', 'array']); // Throws an error: 'The received value length is less than expected'\n * parseOrFail(schema, ['adequate', 'array', 'length']); // Valid\n * parseOrFail(schema, ['adequate', 'array', 'length', 'test']); // Valid\n *\n * @translation Error Translation Key = 'a:minArrayLength'\n */\nexport const minArrayLength =\n (expected: number): RequiredValidation =>\n (received: unknown[], ctx: ExceptionContext) => {\n if (received.length < expected) guardException(expected, received, ctx, minArrayLengthErrorMessage);\n };\n\nminArrayLength.key = minArrayLengthErrorKey;\nminArrayLength.message = minArrayLengthErrorMessage;\nsetToDefaultLocale(minArrayLength);\n"]}
@@ -0,0 +1,20 @@
1
+ import {
2
+ setToDefaultLocale
3
+ } from "../../chunk-4GDBM5LP.mjs";
4
+ import {
5
+ guardException
6
+ } from "../../chunk-NP64RC7B.mjs";
7
+
8
+ // src/asserts/array/minArrayLength.ts
9
+ var minArrayLengthErrorMessage = "The received value length is less than expected";
10
+ var minArrayLengthErrorKey = "a:minArrayLength";
11
+ var minArrayLength = (expected) => (received, ctx) => {
12
+ if (received.length < expected) guardException(expected, received, ctx, minArrayLengthErrorMessage);
13
+ };
14
+ minArrayLength.key = minArrayLengthErrorKey;
15
+ minArrayLength.message = minArrayLengthErrorMessage;
16
+ setToDefaultLocale(minArrayLength);
17
+ export {
18
+ minArrayLength
19
+ };
20
+ //# sourceMappingURL=minArrayLength.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/asserts/array/minArrayLength.ts"],"sourcesContent":["import { guardException } from '../../exceptions';\nimport { ExceptionContext, RequiredValidation } from '../../commonTypes';\nimport { setToDefaultLocale } from '../../translationMap';\n\nconst minArrayLengthErrorMessage = 'The received value length is less than expected';\nconst minArrayLengthErrorKey = 'a:minArrayLength';\n\n/**\n * @description Asserts that the length of na array is not less than a specified minimum length.\n * @param {number} expected The minimum required length for the array.\n * @returns {RequiredValidation} A validation function that takes a received array and an exception context.\n * @throws {ValidationError} if the length of the received value is less than the expected length.\n * @example\n * const schema = array(string()).custom(minArrayLength(3));\n * parseOrFail(schema, ['short', 'array']); // Throws an error: 'The received value length is less than expected'\n * parseOrFail(schema, ['adequate', 'array', 'length']); // Valid\n * parseOrFail(schema, ['adequate', 'array', 'length', 'test']); // Valid\n *\n * @translation Error Translation Key = 'a:minArrayLength'\n */\nexport const minArrayLength =\n (expected: number): RequiredValidation =>\n (received: unknown[], ctx: ExceptionContext) => {\n if (received.length < expected) guardException(expected, received, ctx, minArrayLengthErrorMessage);\n };\n\nminArrayLength.key = minArrayLengthErrorKey;\nminArrayLength.message = minArrayLengthErrorMessage;\nsetToDefaultLocale(minArrayLength);\n"],"mappings":";;;;;;;;AAIA,IAAM,6BAA6B;AACnC,IAAM,yBAAyB;AAexB,IAAM,iBACX,CAAC,aACD,CAAC,UAAqB,QAA0B;AAC9C,MAAI,SAAS,SAAS,SAAU,gBAAe,UAAU,UAAU,KAAK,0BAA0B;AACpG;AAEF,eAAe,MAAM;AACrB,eAAe,UAAU;AACzB,mBAAmB,cAAc;","names":[]}
@@ -1,19 +1,19 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkCQWI6YRIjs = require('../../chunk-CQWI6YRI.js');
3
+ var _chunkUZ2PWO4Ojs = require('../../chunk-UZ2PWO4O.js');
4
4
 
5
5
 
6
- var _chunkWK4O3HH4js = require('../../chunk-WK4O3HH4.js');
6
+ var _chunkAY7HKAG2js = require('../../chunk-AY7HKAG2.js');
7
7
 
8
8
  // src/asserts/bigint/bigintMax.ts
9
9
  var bigintMaxErrorMessage = "The received value is greater than expected";
10
10
  var bigintMaxErrorKey = "bi:max";
11
11
  var bigintMax = (expected) => (received, ctx) => {
12
- if (expected < received) _chunkWK4O3HH4js.guardException.call(void 0, expected, received, ctx, bigintMaxErrorKey);
12
+ if (expected < received) _chunkAY7HKAG2js.guardException.call(void 0, expected, received, ctx, bigintMaxErrorKey);
13
13
  };
14
14
  bigintMax.key = bigintMaxErrorKey;
15
15
  bigintMax.message = bigintMaxErrorMessage;
16
- _chunkCQWI6YRIjs.setToDefaultLocale.call(void 0, bigintMax);
16
+ _chunkUZ2PWO4Ojs.setToDefaultLocale.call(void 0, bigintMax);
17
17
 
18
18
 
19
19
  exports.bigintMax = bigintMax;
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  setToDefaultLocale
3
- } from "../../chunk-QV4JDW3T.mjs";
3
+ } from "../../chunk-4GDBM5LP.mjs";
4
4
  import {
5
5
  guardException
6
- } from "../../chunk-7XFLH6R2.mjs";
6
+ } from "../../chunk-NP64RC7B.mjs";
7
7
 
8
8
  // src/asserts/bigint/bigintMax.ts
9
9
  var bigintMaxErrorMessage = "The received value is greater than expected";
@@ -1,19 +1,19 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkCQWI6YRIjs = require('../../chunk-CQWI6YRI.js');
3
+ var _chunkUZ2PWO4Ojs = require('../../chunk-UZ2PWO4O.js');
4
4
 
5
5
 
6
- var _chunkWK4O3HH4js = require('../../chunk-WK4O3HH4.js');
6
+ var _chunkAY7HKAG2js = require('../../chunk-AY7HKAG2.js');
7
7
 
8
8
  // src/asserts/bigint/bigintMaxExcluded.ts
9
9
  var bigintMaxExcludedErrorMessage = "The received value is greater than or equal to expected";
10
10
  var bigintMaxExcludedErrorKey = "bi:maxExcluded";
11
11
  var bigintMaxExcluded = (expected) => (received, ctx) => {
12
- if (expected <= received) _chunkWK4O3HH4js.guardException.call(void 0, expected, received, ctx, bigintMaxExcludedErrorKey);
12
+ if (expected <= received) _chunkAY7HKAG2js.guardException.call(void 0, expected, received, ctx, bigintMaxExcludedErrorKey);
13
13
  };
14
14
  bigintMaxExcluded.key = bigintMaxExcludedErrorKey;
15
15
  bigintMaxExcluded.message = bigintMaxExcludedErrorMessage;
16
- _chunkCQWI6YRIjs.setToDefaultLocale.call(void 0, bigintMaxExcluded);
16
+ _chunkUZ2PWO4Ojs.setToDefaultLocale.call(void 0, bigintMaxExcluded);
17
17
 
18
18
 
19
19
  exports.bigintMaxExcluded = bigintMaxExcluded;
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  setToDefaultLocale
3
- } from "../../chunk-QV4JDW3T.mjs";
3
+ } from "../../chunk-4GDBM5LP.mjs";
4
4
  import {
5
5
  guardException
6
- } from "../../chunk-7XFLH6R2.mjs";
6
+ } from "../../chunk-NP64RC7B.mjs";
7
7
 
8
8
  // src/asserts/bigint/bigintMaxExcluded.ts
9
9
  var bigintMaxExcludedErrorMessage = "The received value is greater than or equal to expected";
@@ -1,19 +1,19 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkCQWI6YRIjs = require('../../chunk-CQWI6YRI.js');
3
+ var _chunkUZ2PWO4Ojs = require('../../chunk-UZ2PWO4O.js');
4
4
 
5
5
 
6
- var _chunkWK4O3HH4js = require('../../chunk-WK4O3HH4.js');
6
+ var _chunkAY7HKAG2js = require('../../chunk-AY7HKAG2.js');
7
7
 
8
8
  // src/asserts/bigint/bigintMin.ts
9
9
  var bigintMinErrorMessage = "The received value is less than expected";
10
10
  var bigintMinErrorKey = "bi:min";
11
11
  var bigintMin = (expected) => (received, ctx) => {
12
- if (expected > received) _chunkWK4O3HH4js.guardException.call(void 0, expected, received, ctx, bigintMinErrorKey);
12
+ if (expected > received) _chunkAY7HKAG2js.guardException.call(void 0, expected, received, ctx, bigintMinErrorKey);
13
13
  };
14
14
  bigintMin.key = bigintMinErrorKey;
15
15
  bigintMin.message = bigintMinErrorMessage;
16
- _chunkCQWI6YRIjs.setToDefaultLocale.call(void 0, bigintMin);
16
+ _chunkUZ2PWO4Ojs.setToDefaultLocale.call(void 0, bigintMin);
17
17
 
18
18
 
19
19
  exports.bigintMin = bigintMin;
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  setToDefaultLocale
3
- } from "../../chunk-QV4JDW3T.mjs";
3
+ } from "../../chunk-4GDBM5LP.mjs";
4
4
  import {
5
5
  guardException
6
- } from "../../chunk-7XFLH6R2.mjs";
6
+ } from "../../chunk-NP64RC7B.mjs";
7
7
 
8
8
  // src/asserts/bigint/bigintMin.ts
9
9
  var bigintMinErrorMessage = "The received value is less than expected";
@@ -1,19 +1,19 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkCQWI6YRIjs = require('../../chunk-CQWI6YRI.js');
3
+ var _chunkUZ2PWO4Ojs = require('../../chunk-UZ2PWO4O.js');
4
4
 
5
5
 
6
- var _chunkWK4O3HH4js = require('../../chunk-WK4O3HH4.js');
6
+ var _chunkAY7HKAG2js = require('../../chunk-AY7HKAG2.js');
7
7
 
8
8
  // src/asserts/bigint/bigintMinExcluded.ts
9
9
  var bigintMinExcludedErrorMessage = "The received value is less than or equal to expected";
10
10
  var bigintMinExcludedErrorKey = "bi:minExcluded";
11
11
  var bigintMinExcluded = (expected) => (received, ctx) => {
12
- if (expected >= received) _chunkWK4O3HH4js.guardException.call(void 0, expected, received, ctx, bigintMinExcludedErrorKey);
12
+ if (expected >= received) _chunkAY7HKAG2js.guardException.call(void 0, expected, received, ctx, bigintMinExcludedErrorKey);
13
13
  };
14
14
  bigintMinExcluded.key = bigintMinExcludedErrorKey;
15
15
  bigintMinExcluded.message = bigintMinExcludedErrorMessage;
16
- _chunkCQWI6YRIjs.setToDefaultLocale.call(void 0, bigintMinExcluded);
16
+ _chunkUZ2PWO4Ojs.setToDefaultLocale.call(void 0, bigintMinExcluded);
17
17
 
18
18
 
19
19
  exports.bigintMinExcluded = bigintMinExcluded;
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  setToDefaultLocale
3
- } from "../../chunk-QV4JDW3T.mjs";
3
+ } from "../../chunk-4GDBM5LP.mjs";
4
4
  import {
5
5
  guardException
6
- } from "../../chunk-7XFLH6R2.mjs";
6
+ } from "../../chunk-NP64RC7B.mjs";
7
7
 
8
8
  // src/asserts/bigint/bigintMinExcluded.ts
9
9
  var bigintMinExcludedErrorMessage = "The received value is less than or equal to expected";
@@ -1,5 +1,5 @@
1
1
  import { BigIntSchema } from '../../schemas/BigIntSchema.mjs';
2
- import '../../CommonSchema-DJmQ3F_9.mjs';
2
+ import '../../CommonSchema-CiY7spmg.mjs';
3
3
  import '../../commonTypes.mjs';
4
4
 
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  import { BigIntSchema } from '../../schemas/BigIntSchema.js';
2
- import '../../CommonSchema-9RtxTxdX.js';
2
+ import '../../CommonSchema-D9QVJBJe.js';
3
3
  import '../../commonTypes.js';
4
4
 
5
5
  /**
@@ -1,19 +1,20 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkSEIKS6G7js = require('../../chunk-SEIKS6G7.js');
4
- require('../../chunk-4SPM2CSQ.js');
5
- require('../../chunk-WPHJ4QTB.js');
3
+ var _chunkP6V6S6TZjs = require('../../chunk-P6V6S6TZ.js');
4
+ require('../../chunk-SPWF5IFU.js');
5
+ require('../../chunk-W2GOLG3K.js');
6
6
  require('../../chunk-42J6CHIO.js');
7
- require('../../chunk-LWAEUS2F.js');
8
- require('../../chunk-EQNVYAKS.js');
9
- require('../../chunk-7GIRQ5EA.js');
10
- require('../../chunk-356HMXOP.js');
11
- require('../../chunk-CQWI6YRI.js');
12
- require('../../chunk-WK4O3HH4.js');
7
+ require('../../chunk-3ZPLJ5KC.js');
8
+ require('../../chunk-3IOQH3K4.js');
9
+ require('../../chunk-PESVL5YJ.js');
10
+ require('../../chunk-PIBDJJUU.js');
11
+ require('../../chunk-VBTWYDEM.js');
12
+ require('../../chunk-UZ2PWO4O.js');
13
+ require('../../chunk-AY7HKAG2.js');
13
14
 
14
15
  // src/asserts/bigint/index.ts
15
16
  function bigint() {
16
- return new (0, _chunkSEIKS6G7js.BigIntSchema)({ type: ["bigint"], requiredValidations: [] });
17
+ return new (0, _chunkP6V6S6TZjs.BigIntSchema)({ type: ["bigint"], requiredValidations: [] });
17
18
  }
18
19
 
19
20
 
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/bguard/bguard/lib/asserts/bigint/index.js","../../../src/asserts/bigint/index.ts"],"names":[],"mappings":"AAAA;AACE;AACF,0DAAgC;AAChC,mCAAgC;AAChC,mCAAgC;AAChC,mCAAgC;AAChC,mCAAgC;AAChC,mCAAgC;AAChC,mCAAgC;AAChC,mCAAgC;AAChC,mCAAgC;AAChC,mCAAgC;AAChC;AACA;ACAO,SAAS,MAAA,CAAA,EAAuB;AACrC,EAAA,OAAO,IAAI,kCAAA,CAAa,EAAE,IAAA,EAAM,CAAC,QAAQ,CAAA,EAAG,mBAAA,EAAqB,CAAC,EAAE,CAAC,CAAA;AACvE;ADEA;AACE;AACF,wBAAC","file":"/home/runner/work/bguard/bguard/lib/asserts/bigint/index.js","sourcesContent":[null,"import { BigIntSchema } from '../../schemas/BigIntSchema';\n\n/**\n * @description Creates a new schema for validating bigint values.\n * @returns {BigIntSchema} A new instance of `BigIntSchema` for validating bigints.\n * @example\n * const schema = bigint();\n * parseOrFail(schema, 42n); // Validates successfully\n * parseOrFail(schema, 42); // Throws a validation error\n * parseOrFail(schema, '42'); // Throws a validation error\n *\n * @instance Of BigIntSchema\n */\nexport function bigint(): BigIntSchema {\n return new BigIntSchema({ type: ['bigint'], requiredValidations: [] });\n}\n"]}
1
+ {"version":3,"sources":["/home/runner/work/bguard/bguard/lib/asserts/bigint/index.js","../../../src/asserts/bigint/index.ts"],"names":[],"mappings":"AAAA;AACE;AACF,0DAAgC;AAChC,mCAAgC;AAChC,mCAAgC;AAChC,mCAAgC;AAChC,mCAAgC;AAChC,mCAAgC;AAChC,mCAAgC;AAChC,mCAAgC;AAChC,mCAAgC;AAChC,mCAAgC;AAChC,mCAAgC;AAChC;AACA;ACDO,SAAS,MAAA,CAAA,EAAuB;AACrC,EAAA,OAAO,IAAI,kCAAA,CAAa,EAAE,IAAA,EAAM,CAAC,QAAQ,CAAA,EAAG,mBAAA,EAAqB,CAAC,EAAE,CAAC,CAAA;AACvE;ADGA;AACE;AACF,wBAAC","file":"/home/runner/work/bguard/bguard/lib/asserts/bigint/index.js","sourcesContent":[null,"import { BigIntSchema } from '../../schemas/BigIntSchema';\n\n/**\n * @description Creates a new schema for validating bigint values.\n * @returns {BigIntSchema} A new instance of `BigIntSchema` for validating bigints.\n * @example\n * const schema = bigint();\n * parseOrFail(schema, 42n); // Validates successfully\n * parseOrFail(schema, 42); // Throws a validation error\n * parseOrFail(schema, '42'); // Throws a validation error\n *\n * @instance Of BigIntSchema\n */\nexport function bigint(): BigIntSchema {\n return new BigIntSchema({ type: ['bigint'], requiredValidations: [] });\n}\n"]}
@@ -1,15 +1,16 @@
1
1
  import {
2
2
  BigIntSchema
3
- } from "../../chunk-UV4I7JZR.mjs";
4
- import "../../chunk-YPAUFM3S.mjs";
5
- import "../../chunk-M6OCVAUD.mjs";
3
+ } from "../../chunk-ZMEQCIRN.mjs";
4
+ import "../../chunk-BUXOCPHI.mjs";
5
+ import "../../chunk-OHEMRF7Y.mjs";
6
6
  import "../../chunk-ASZW6XRM.mjs";
7
- import "../../chunk-54RHVQFA.mjs";
8
- import "../../chunk-4UF67IQ2.mjs";
9
- import "../../chunk-XZTZC73V.mjs";
10
- import "../../chunk-GDSB7CDN.mjs";
11
- import "../../chunk-QV4JDW3T.mjs";
12
- import "../../chunk-7XFLH6R2.mjs";
7
+ import "../../chunk-D42ISCFK.mjs";
8
+ import "../../chunk-AOUFWACR.mjs";
9
+ import "../../chunk-ADSMWGDJ.mjs";
10
+ import "../../chunk-5LLJ22IG.mjs";
11
+ import "../../chunk-YBVMP4EI.mjs";
12
+ import "../../chunk-4GDBM5LP.mjs";
13
+ import "../../chunk-NP64RC7B.mjs";
13
14
 
14
15
  // src/asserts/bigint/index.ts
15
16
  function bigint() {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/asserts/bigint/index.ts"],"sourcesContent":["import { BigIntSchema } from '../../schemas/BigIntSchema';\n\n/**\n * @description Creates a new schema for validating bigint values.\n * @returns {BigIntSchema} A new instance of `BigIntSchema` for validating bigints.\n * @example\n * const schema = bigint();\n * parseOrFail(schema, 42n); // Validates successfully\n * parseOrFail(schema, 42); // Throws a validation error\n * parseOrFail(schema, '42'); // Throws a validation error\n *\n * @instance Of BigIntSchema\n */\nexport function bigint(): BigIntSchema {\n return new BigIntSchema({ type: ['bigint'], requiredValidations: [] });\n}\n"],"mappings":";;;;;;;;;;;;;;AAaO,SAAS,SAAuB;AACrC,SAAO,IAAI,aAAa,EAAE,MAAM,CAAC,QAAQ,GAAG,qBAAqB,CAAC,EAAE,CAAC;AACvE;","names":[]}
1
+ {"version":3,"sources":["../../../src/asserts/bigint/index.ts"],"sourcesContent":["import { BigIntSchema } from '../../schemas/BigIntSchema';\n\n/**\n * @description Creates a new schema for validating bigint values.\n * @returns {BigIntSchema} A new instance of `BigIntSchema` for validating bigints.\n * @example\n * const schema = bigint();\n * parseOrFail(schema, 42n); // Validates successfully\n * parseOrFail(schema, 42); // Throws a validation error\n * parseOrFail(schema, '42'); // Throws a validation error\n *\n * @instance Of BigIntSchema\n */\nexport function bigint(): BigIntSchema {\n return new BigIntSchema({ type: ['bigint'], requiredValidations: [] });\n}\n"],"mappings":";;;;;;;;;;;;;;;AAaO,SAAS,SAAuB;AACrC,SAAO,IAAI,aAAa,EAAE,MAAM,CAAC,QAAQ,GAAG,qBAAqB,CAAC,EAAE,CAAC;AACvE;","names":[]}