@warlock.js/seal 5.29.0 → 5.31.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 (443) hide show
  1. package/CHANGELOG.md +59 -0
  2. package/README.md +58 -8
  3. package/cjs/index.cjs +58 -43
  4. package/cjs/index.cjs.map +1 -1
  5. package/cjs/{object-DubGC-xu.cjs → object-VTtA-k1a.cjs} +23 -19
  6. package/cjs/object-VTtA-k1a.cjs.map +1 -0
  7. package/cjs/object.cjs +2 -2
  8. package/cjs/{required-methods-BOVNRtci.cjs → required-methods-chT0TXQS.cjs} +197 -92
  9. package/cjs/required-methods-chT0TXQS.cjs.map +1 -0
  10. package/cjs/{string-DpDpgefH.cjs → string-edcPIpcU.cjs} +8 -8
  11. package/cjs/string-edcPIpcU.cjs.map +1 -0
  12. package/cjs/string.cjs +2 -2
  13. package/esm/config.d.mts +2 -1
  14. package/esm/config.d.mts.map +1 -1
  15. package/esm/config.mjs +1 -1
  16. package/esm/config.mjs.map +1 -1
  17. package/esm/factory/validate.d.mts +9 -6
  18. package/esm/factory/validate.d.mts.map +1 -1
  19. package/esm/factory/validate.mjs +12 -4
  20. package/esm/factory/validate.mjs.map +1 -1
  21. package/esm/factory/validators.d.mts +13 -13
  22. package/esm/factory/validators.d.mts.map +1 -1
  23. package/esm/factory/validators.mjs +8 -2
  24. package/esm/factory/validators.mjs.map +1 -1
  25. package/esm/helpers/date-helpers.d.mts +1 -1
  26. package/esm/helpers/date-helpers.d.mts.map +1 -1
  27. package/esm/helpers/date-helpers.mjs +1 -1
  28. package/esm/helpers/date-helpers.mjs.map +1 -1
  29. package/esm/helpers/file.utils.d.mts +1 -1
  30. package/esm/helpers/file.utils.d.mts.map +1 -1
  31. package/esm/helpers/file.utils.mjs +1 -1
  32. package/esm/helpers/file.utils.mjs.map +1 -1
  33. package/esm/helpers/get-field-value.d.mts +2 -1
  34. package/esm/helpers/get-field-value.d.mts.map +1 -1
  35. package/esm/helpers/get-field-value.mjs +1 -1
  36. package/esm/helpers/get-field-value.mjs.map +1 -1
  37. package/esm/helpers/is-empty-value.mjs +1 -1
  38. package/esm/helpers/is-empty-value.mjs.map +1 -1
  39. package/esm/helpers/path-helpers.d.mts +1 -1
  40. package/esm/helpers/path-helpers.d.mts.map +1 -1
  41. package/esm/helpers/path-helpers.mjs +1 -1
  42. package/esm/helpers/path-helpers.mjs.map +1 -1
  43. package/esm/helpers/validation-helpers.d.mts +2 -1
  44. package/esm/helpers/validation-helpers.d.mts.map +1 -1
  45. package/esm/helpers/validation-helpers.mjs +1 -1
  46. package/esm/helpers/validation-helpers.mjs.map +1 -1
  47. package/esm/index.d.mts +3 -3
  48. package/esm/mutators/array-mutators.d.mts +2 -1
  49. package/esm/mutators/array-mutators.d.mts.map +1 -1
  50. package/esm/mutators/array-mutators.mjs +1 -1
  51. package/esm/mutators/array-mutators.mjs.map +1 -1
  52. package/esm/mutators/boolean-mutators.d.mts +2 -1
  53. package/esm/mutators/boolean-mutators.d.mts.map +1 -1
  54. package/esm/mutators/boolean-mutators.mjs +1 -1
  55. package/esm/mutators/boolean-mutators.mjs.map +1 -1
  56. package/esm/mutators/date-mutators.d.mts +2 -1
  57. package/esm/mutators/date-mutators.d.mts.map +1 -1
  58. package/esm/mutators/date-mutators.mjs +1 -1
  59. package/esm/mutators/date-mutators.mjs.map +1 -1
  60. package/esm/mutators/number-mutators.d.mts +2 -1
  61. package/esm/mutators/number-mutators.d.mts.map +1 -1
  62. package/esm/mutators/number-mutators.mjs +1 -1
  63. package/esm/mutators/number-mutators.mjs.map +1 -1
  64. package/esm/mutators/object-mutators.d.mts +2 -1
  65. package/esm/mutators/object-mutators.d.mts.map +1 -1
  66. package/esm/mutators/object-mutators.mjs +1 -1
  67. package/esm/mutators/object-mutators.mjs.map +1 -1
  68. package/esm/mutators/scalar-mutators.d.mts +2 -1
  69. package/esm/mutators/scalar-mutators.d.mts.map +1 -1
  70. package/esm/mutators/scalar-mutators.mjs +1 -1
  71. package/esm/mutators/scalar-mutators.mjs.map +1 -1
  72. package/esm/mutators/string-mutators.d.mts +2 -1
  73. package/esm/mutators/string-mutators.d.mts.map +1 -1
  74. package/esm/mutators/string-mutators.mjs +3 -3
  75. package/esm/mutators/string-mutators.mjs.map +1 -1
  76. package/esm/object.d.mts +2 -4
  77. package/esm/object.d.mts.map +1 -1
  78. package/esm/object.mjs +1 -1
  79. package/esm/object.mjs.map +1 -1
  80. package/esm/plugins/plugin-system.d.mts +1 -1
  81. package/esm/plugins/plugin-system.d.mts.map +1 -1
  82. package/esm/plugins/plugin-system.mjs +1 -1
  83. package/esm/plugins/plugin-system.mjs.map +1 -1
  84. package/esm/rules/array/array-rules.d.mts +2 -1
  85. package/esm/rules/array/array-rules.d.mts.map +1 -1
  86. package/esm/rules/array/array-rules.mjs +1 -1
  87. package/esm/rules/array/array-rules.mjs.map +1 -1
  88. package/esm/rules/color/color-rules.d.mts +2 -1
  89. package/esm/rules/color/color-rules.d.mts.map +1 -1
  90. package/esm/rules/color/color-rules.mjs +1 -1
  91. package/esm/rules/color/color-rules.mjs.map +1 -1
  92. package/esm/rules/common/enum.d.mts +2 -1
  93. package/esm/rules/common/enum.d.mts.map +1 -1
  94. package/esm/rules/common/enum.mjs +1 -1
  95. package/esm/rules/common/enum.mjs.map +1 -1
  96. package/esm/rules/common/equals-field-rules.d.mts +2 -1
  97. package/esm/rules/common/equals-field-rules.d.mts.map +1 -1
  98. package/esm/rules/common/equals-field-rules.mjs +1 -1
  99. package/esm/rules/common/equals-field-rules.mjs.map +1 -1
  100. package/esm/rules/common/instanceof.d.mts +2 -1
  101. package/esm/rules/common/instanceof.d.mts.map +1 -1
  102. package/esm/rules/common/instanceof.mjs +1 -1
  103. package/esm/rules/common/instanceof.mjs.map +1 -1
  104. package/esm/rules/common/literal.d.mts +2 -1
  105. package/esm/rules/common/literal.d.mts.map +1 -1
  106. package/esm/rules/common/literal.mjs +1 -1
  107. package/esm/rules/common/literal.mjs.map +1 -1
  108. package/esm/rules/common/type-rules.d.mts +2 -1
  109. package/esm/rules/common/type-rules.d.mts.map +1 -1
  110. package/esm/rules/common/type-rules.mjs +1 -1
  111. package/esm/rules/common/type-rules.mjs.map +1 -1
  112. package/esm/rules/common/unknown-key.d.mts +2 -1
  113. package/esm/rules/common/unknown-key.d.mts.map +1 -1
  114. package/esm/rules/common/unknown-key.mjs +1 -1
  115. package/esm/rules/common/unknown-key.mjs.map +1 -1
  116. package/esm/rules/conditional/forbidden-if-rules.d.mts +2 -1
  117. package/esm/rules/conditional/forbidden-if-rules.d.mts.map +1 -1
  118. package/esm/rules/conditional/forbidden-if-rules.mjs +1 -1
  119. package/esm/rules/conditional/forbidden-if-rules.mjs.map +1 -1
  120. package/esm/rules/conditional/present-if-rules.d.mts +2 -1
  121. package/esm/rules/conditional/present-if-rules.d.mts.map +1 -1
  122. package/esm/rules/conditional/present-if-rules.mjs +1 -1
  123. package/esm/rules/conditional/present-if-rules.mjs.map +1 -1
  124. package/esm/rules/conditional/present-unless-rules.d.mts +2 -1
  125. package/esm/rules/conditional/present-unless-rules.d.mts.map +1 -1
  126. package/esm/rules/conditional/present-unless-rules.mjs +1 -1
  127. package/esm/rules/conditional/present-unless-rules.mjs.map +1 -1
  128. package/esm/rules/conditional/present-with-rules.d.mts +2 -1
  129. package/esm/rules/conditional/present-with-rules.d.mts.map +1 -1
  130. package/esm/rules/conditional/present-with-rules.mjs +1 -1
  131. package/esm/rules/conditional/present-with-rules.mjs.map +1 -1
  132. package/esm/rules/conditional/present-without-rules.d.mts +2 -1
  133. package/esm/rules/conditional/present-without-rules.d.mts.map +1 -1
  134. package/esm/rules/conditional/present-without-rules.mjs +1 -1
  135. package/esm/rules/conditional/present-without-rules.mjs.map +1 -1
  136. package/esm/rules/conditional/required-if-rules.d.mts +2 -1
  137. package/esm/rules/conditional/required-if-rules.d.mts.map +1 -1
  138. package/esm/rules/conditional/required-if-rules.mjs +1 -1
  139. package/esm/rules/conditional/required-if-rules.mjs.map +1 -1
  140. package/esm/rules/conditional/required-unless-rules.d.mts +2 -1
  141. package/esm/rules/conditional/required-unless-rules.d.mts.map +1 -1
  142. package/esm/rules/conditional/required-unless-rules.mjs +1 -1
  143. package/esm/rules/conditional/required-unless-rules.mjs.map +1 -1
  144. package/esm/rules/conditional/required-when-rule.d.mts +2 -1
  145. package/esm/rules/conditional/required-when-rule.d.mts.map +1 -1
  146. package/esm/rules/conditional/required-when-rule.mjs +1 -1
  147. package/esm/rules/conditional/required-when-rule.mjs.map +1 -1
  148. package/esm/rules/conditional/required-with-rules.d.mts +2 -1
  149. package/esm/rules/conditional/required-with-rules.d.mts.map +1 -1
  150. package/esm/rules/conditional/required-with-rules.mjs +1 -1
  151. package/esm/rules/conditional/required-with-rules.mjs.map +1 -1
  152. package/esm/rules/conditional/required-without-rules.d.mts +2 -1
  153. package/esm/rules/conditional/required-without-rules.d.mts.map +1 -1
  154. package/esm/rules/conditional/required-without-rules.mjs +1 -1
  155. package/esm/rules/conditional/required-without-rules.mjs.map +1 -1
  156. package/esm/rules/core/equal.d.mts +2 -1
  157. package/esm/rules/core/equal.d.mts.map +1 -1
  158. package/esm/rules/core/equal.mjs +1 -1
  159. package/esm/rules/core/equal.mjs.map +1 -1
  160. package/esm/rules/core/forbidden.d.mts +2 -1
  161. package/esm/rules/core/forbidden.d.mts.map +1 -1
  162. package/esm/rules/core/forbidden.mjs +1 -1
  163. package/esm/rules/core/forbidden.mjs.map +1 -1
  164. package/esm/rules/core/required.d.mts +2 -1
  165. package/esm/rules/core/required.d.mts.map +1 -1
  166. package/esm/rules/core/required.mjs +1 -1
  167. package/esm/rules/core/required.mjs.map +1 -1
  168. package/esm/rules/core/union.d.mts +9 -2
  169. package/esm/rules/core/union.d.mts.map +1 -1
  170. package/esm/rules/core/union.mjs +59 -11
  171. package/esm/rules/core/union.mjs.map +1 -1
  172. package/esm/rules/core/when.d.mts +2 -1
  173. package/esm/rules/core/when.d.mts.map +1 -1
  174. package/esm/rules/core/when.mjs +1 -1
  175. package/esm/rules/core/when.mjs.map +1 -1
  176. package/esm/rules/date/date-comparison-rules.d.mts +2 -1
  177. package/esm/rules/date/date-comparison-rules.d.mts.map +1 -1
  178. package/esm/rules/date/date-comparison-rules.mjs +1 -1
  179. package/esm/rules/date/date-comparison-rules.mjs.map +1 -1
  180. package/esm/rules/date/date-day-rules.d.mts +2 -1
  181. package/esm/rules/date/date-day-rules.d.mts.map +1 -1
  182. package/esm/rules/date/date-day-rules.mjs +1 -1
  183. package/esm/rules/date/date-day-rules.mjs.map +1 -1
  184. package/esm/rules/date/date-field-comparison-rules.d.mts +2 -1
  185. package/esm/rules/date/date-field-comparison-rules.d.mts.map +1 -1
  186. package/esm/rules/date/date-field-comparison-rules.mjs +1 -1
  187. package/esm/rules/date/date-field-comparison-rules.mjs.map +1 -1
  188. package/esm/rules/date/date-period-rules.d.mts +2 -1
  189. package/esm/rules/date/date-period-rules.d.mts.map +1 -1
  190. package/esm/rules/date/date-period-rules.mjs +1 -1
  191. package/esm/rules/date/date-period-rules.mjs.map +1 -1
  192. package/esm/rules/date/date-relative-rules.d.mts +2 -1
  193. package/esm/rules/date/date-relative-rules.d.mts.map +1 -1
  194. package/esm/rules/date/date-relative-rules.mjs +1 -1
  195. package/esm/rules/date/date-relative-rules.mjs.map +1 -1
  196. package/esm/rules/date/date-special-rules.d.mts +2 -1
  197. package/esm/rules/date/date-special-rules.d.mts.map +1 -1
  198. package/esm/rules/date/date-special-rules.mjs +1 -1
  199. package/esm/rules/date/date-special-rules.mjs.map +1 -1
  200. package/esm/rules/date/date.d.mts +2 -1
  201. package/esm/rules/date/date.d.mts.map +1 -1
  202. package/esm/rules/date/date.mjs +1 -1
  203. package/esm/rules/date/date.mjs.map +1 -1
  204. package/esm/rules/file/dimensions.d.mts +2 -1
  205. package/esm/rules/file/dimensions.d.mts.map +1 -1
  206. package/esm/rules/file/dimensions.mjs +1 -1
  207. package/esm/rules/file/dimensions.mjs.map +1 -1
  208. package/esm/rules/file/file-size.d.mts +2 -1
  209. package/esm/rules/file/file-size.d.mts.map +1 -1
  210. package/esm/rules/file/file-size.mjs +1 -1
  211. package/esm/rules/file/file-size.mjs.map +1 -1
  212. package/esm/rules/length/length-rules.d.mts +2 -1
  213. package/esm/rules/length/length-rules.d.mts.map +1 -1
  214. package/esm/rules/length/length-rules.mjs +1 -1
  215. package/esm/rules/length/length-rules.mjs.map +1 -1
  216. package/esm/rules/number/number-rules.d.mts +2 -1
  217. package/esm/rules/number/number-rules.d.mts.map +1 -1
  218. package/esm/rules/number/number-rules.mjs +1 -1
  219. package/esm/rules/number/number-rules.mjs.map +1 -1
  220. package/esm/rules/scalar/accepted-rule.mjs +1 -1
  221. package/esm/rules/scalar/accepted-rule.mjs.map +1 -1
  222. package/esm/rules/scalar/declined-rule.mjs +1 -1
  223. package/esm/rules/scalar/declined-rule.mjs.map +1 -1
  224. package/esm/rules/string/alpha.d.mts +2 -1
  225. package/esm/rules/string/alpha.d.mts.map +1 -1
  226. package/esm/rules/string/alpha.mjs +1 -1
  227. package/esm/rules/string/alpha.mjs.map +1 -1
  228. package/esm/rules/string/credit-card.d.mts +2 -1
  229. package/esm/rules/string/credit-card.d.mts.map +1 -1
  230. package/esm/rules/string/credit-card.mjs +1 -1
  231. package/esm/rules/string/credit-card.mjs.map +1 -1
  232. package/esm/rules/string/email.d.mts +2 -1
  233. package/esm/rules/string/email.d.mts.map +1 -1
  234. package/esm/rules/string/email.mjs +1 -1
  235. package/esm/rules/string/email.mjs.map +1 -1
  236. package/esm/rules/string/id-formats.d.mts +2 -1
  237. package/esm/rules/string/id-formats.d.mts.map +1 -1
  238. package/esm/rules/string/id-formats.mjs +1 -1
  239. package/esm/rules/string/id-formats.mjs.map +1 -1
  240. package/esm/rules/string/ip.d.mts +2 -1
  241. package/esm/rules/string/ip.d.mts.map +1 -1
  242. package/esm/rules/string/ip.mjs +1 -1
  243. package/esm/rules/string/ip.mjs.map +1 -1
  244. package/esm/rules/string/matches.d.mts +2 -1
  245. package/esm/rules/string/matches.d.mts.map +1 -1
  246. package/esm/rules/string/matches.mjs +1 -1
  247. package/esm/rules/string/matches.mjs.map +1 -1
  248. package/esm/rules/string/pattern.d.mts +2 -1
  249. package/esm/rules/string/pattern.d.mts.map +1 -1
  250. package/esm/rules/string/pattern.mjs +1 -1
  251. package/esm/rules/string/pattern.mjs.map +1 -1
  252. package/esm/rules/string/string-comparison.d.mts +2 -1
  253. package/esm/rules/string/string-comparison.d.mts.map +1 -1
  254. package/esm/rules/string/string-comparison.mjs +1 -1
  255. package/esm/rules/string/string-comparison.mjs.map +1 -1
  256. package/esm/rules/string/strong-password-rule.d.mts +2 -1
  257. package/esm/rules/string/strong-password-rule.d.mts.map +1 -1
  258. package/esm/rules/string/strong-password-rule.mjs +1 -1
  259. package/esm/rules/string/strong-password-rule.mjs.map +1 -1
  260. package/esm/rules/string/url.d.mts +2 -1
  261. package/esm/rules/string/url.d.mts.map +1 -1
  262. package/esm/rules/string/url.mjs +1 -1
  263. package/esm/rules/string/url.mjs.map +1 -1
  264. package/esm/rules/string/without-whitespace.d.mts +2 -1
  265. package/esm/rules/string/without-whitespace.d.mts.map +1 -1
  266. package/esm/rules/string/without-whitespace.mjs +1 -1
  267. package/esm/rules/string/without-whitespace.mjs.map +1 -1
  268. package/esm/standard-schema/json-schema.d.mts +1 -1
  269. package/esm/standard-schema/json-schema.d.mts.map +1 -1
  270. package/esm/standard-schema/json-schema.mjs +1 -1
  271. package/esm/standard-schema/json-schema.mjs.map +1 -1
  272. package/esm/standard-schema/map-result.d.mts +2 -1
  273. package/esm/standard-schema/map-result.d.mts.map +1 -1
  274. package/esm/standard-schema/map-result.mjs +1 -1
  275. package/esm/standard-schema/map-result.mjs.map +1 -1
  276. package/esm/standard-schema/types.d.mts +1 -1
  277. package/esm/standard-schema/types.d.mts.map +1 -1
  278. package/esm/string.d.mts +1 -1
  279. package/esm/string.d.mts.map +1 -1
  280. package/esm/string.mjs +1 -1
  281. package/esm/string.mjs.map +1 -1
  282. package/esm/types/conditional-types.d.mts +1 -1
  283. package/esm/types/conditional-types.d.mts.map +1 -1
  284. package/esm/types/context-types.d.mts +8 -2
  285. package/esm/types/context-types.d.mts.map +1 -1
  286. package/esm/types/data-transformer-types.d.mts +1 -1
  287. package/esm/types/data-transformer-types.d.mts.map +1 -1
  288. package/esm/types/date-types.d.mts +1 -1
  289. package/esm/types/date-types.d.mts.map +1 -1
  290. package/esm/types/date-types.mjs +1 -1
  291. package/esm/types/date-types.mjs.map +1 -1
  292. package/esm/types/file.types.d.mts +1 -1
  293. package/esm/types/file.types.d.mts.map +1 -1
  294. package/esm/types/inference-types.d.mts +22 -5
  295. package/esm/types/inference-types.d.mts.map +1 -1
  296. package/esm/types/mutator-types.d.mts +1 -1
  297. package/esm/types/mutator-types.d.mts.map +1 -1
  298. package/esm/types/result-types.d.mts +26 -2
  299. package/esm/types/result-types.d.mts.map +1 -1
  300. package/esm/types/rule-types.d.mts +11 -2
  301. package/esm/types/rule-types.d.mts.map +1 -1
  302. package/esm/types/schema-types.d.mts +1 -1
  303. package/esm/types/schema-types.d.mts.map +1 -1
  304. package/esm/validators/any-validator.d.mts +1 -1
  305. package/esm/validators/any-validator.d.mts.map +1 -1
  306. package/esm/validators/any-validator.mjs +1 -1
  307. package/esm/validators/any-validator.mjs.map +1 -1
  308. package/esm/validators/array-validator.d.mts +1 -1
  309. package/esm/validators/array-validator.d.mts.map +1 -1
  310. package/esm/validators/array-validator.mjs +4 -4
  311. package/esm/validators/array-validator.mjs.map +1 -1
  312. package/esm/validators/base-validator.d.mts +10 -3
  313. package/esm/validators/base-validator.d.mts.map +1 -1
  314. package/esm/validators/base-validator.mjs +67 -18
  315. package/esm/validators/base-validator.mjs.map +1 -1
  316. package/esm/validators/boolean-validator.d.mts +1 -1
  317. package/esm/validators/boolean-validator.d.mts.map +1 -1
  318. package/esm/validators/boolean-validator.mjs +1 -1
  319. package/esm/validators/boolean-validator.mjs.map +1 -1
  320. package/esm/validators/computed-validator.d.mts +1 -1
  321. package/esm/validators/computed-validator.d.mts.map +1 -1
  322. package/esm/validators/computed-validator.mjs +5 -5
  323. package/esm/validators/computed-validator.mjs.map +1 -1
  324. package/esm/validators/date-validator.d.mts +2 -1
  325. package/esm/validators/date-validator.d.mts.map +1 -1
  326. package/esm/validators/date-validator.mjs +1 -1
  327. package/esm/validators/date-validator.mjs.map +1 -1
  328. package/esm/validators/discriminated-union-validator.d.mts +8 -2
  329. package/esm/validators/discriminated-union-validator.d.mts.map +1 -1
  330. package/esm/validators/discriminated-union-validator.mjs +7 -2
  331. package/esm/validators/discriminated-union-validator.mjs.map +1 -1
  332. package/esm/validators/float-validator.d.mts +1 -1
  333. package/esm/validators/float-validator.d.mts.map +1 -1
  334. package/esm/validators/float-validator.mjs +1 -1
  335. package/esm/validators/float-validator.mjs.map +1 -1
  336. package/esm/validators/instanceof-validator.d.mts +1 -1
  337. package/esm/validators/instanceof-validator.d.mts.map +1 -1
  338. package/esm/validators/instanceof-validator.mjs +1 -1
  339. package/esm/validators/instanceof-validator.mjs.map +1 -1
  340. package/esm/validators/int-validator.d.mts +1 -1
  341. package/esm/validators/int-validator.d.mts.map +1 -1
  342. package/esm/validators/int-validator.mjs +1 -1
  343. package/esm/validators/int-validator.mjs.map +1 -1
  344. package/esm/validators/lazy-validator.d.mts +1 -1
  345. package/esm/validators/lazy-validator.d.mts.map +1 -1
  346. package/esm/validators/lazy-validator.mjs +2 -2
  347. package/esm/validators/lazy-validator.mjs.map +1 -1
  348. package/esm/validators/literal-validator.d.mts +1 -1
  349. package/esm/validators/literal-validator.d.mts.map +1 -1
  350. package/esm/validators/literal-validator.mjs +5 -2
  351. package/esm/validators/literal-validator.mjs.map +1 -1
  352. package/esm/validators/managed-validator.d.mts +1 -1
  353. package/esm/validators/managed-validator.d.mts.map +1 -1
  354. package/esm/validators/managed-validator.mjs +1 -1
  355. package/esm/validators/managed-validator.mjs.map +1 -1
  356. package/esm/validators/methods/equality-conditional-methods.d.mts +2 -1
  357. package/esm/validators/methods/equality-conditional-methods.d.mts.map +1 -1
  358. package/esm/validators/methods/equality-conditional-methods.mjs +1 -1
  359. package/esm/validators/methods/equality-conditional-methods.mjs.map +1 -1
  360. package/esm/validators/methods/forbidden-methods.d.mts +1 -1
  361. package/esm/validators/methods/forbidden-methods.d.mts.map +1 -1
  362. package/esm/validators/methods/forbidden-methods.mjs +1 -1
  363. package/esm/validators/methods/forbidden-methods.mjs.map +1 -1
  364. package/esm/validators/methods/present-methods.d.mts +1 -1
  365. package/esm/validators/methods/present-methods.d.mts.map +1 -1
  366. package/esm/validators/methods/present-methods.mjs +1 -1
  367. package/esm/validators/methods/present-methods.mjs.map +1 -1
  368. package/esm/validators/methods/required-methods.d.mts +2 -1
  369. package/esm/validators/methods/required-methods.d.mts.map +1 -1
  370. package/esm/validators/methods/required-methods.mjs +1 -1
  371. package/esm/validators/methods/required-methods.mjs.map +1 -1
  372. package/esm/validators/number-validator.d.mts +1 -1
  373. package/esm/validators/number-validator.d.mts.map +1 -1
  374. package/esm/validators/number-validator.mjs +1 -1
  375. package/esm/validators/number-validator.mjs.map +1 -1
  376. package/esm/validators/numeric-validator.d.mts +1 -1
  377. package/esm/validators/numeric-validator.d.mts.map +1 -1
  378. package/esm/validators/numeric-validator.mjs +1 -1
  379. package/esm/validators/numeric-validator.mjs.map +1 -1
  380. package/esm/validators/object-validator.d.mts +1 -1
  381. package/esm/validators/object-validator.d.mts.map +1 -1
  382. package/esm/validators/object-validator.mjs +14 -10
  383. package/esm/validators/object-validator.mjs.map +1 -1
  384. package/esm/validators/primitive-validator.d.mts +1 -1
  385. package/esm/validators/primitive-validator.d.mts.map +1 -1
  386. package/esm/validators/primitive-validator.mjs +1 -1
  387. package/esm/validators/primitive-validator.mjs.map +1 -1
  388. package/esm/validators/record-validator.d.mts +1 -1
  389. package/esm/validators/record-validator.d.mts.map +1 -1
  390. package/esm/validators/record-validator.mjs +4 -4
  391. package/esm/validators/record-validator.mjs.map +1 -1
  392. package/esm/validators/scalar-validator.d.mts +1 -1
  393. package/esm/validators/scalar-validator.d.mts.map +1 -1
  394. package/esm/validators/scalar-validator.mjs +1 -1
  395. package/esm/validators/scalar-validator.mjs.map +1 -1
  396. package/esm/validators/string-validator.d.mts +1 -1
  397. package/esm/validators/string-validator.d.mts.map +1 -1
  398. package/esm/validators/string-validator.mjs +1 -1
  399. package/esm/validators/string-validator.mjs.map +1 -1
  400. package/esm/validators/tuple-validator.d.mts +1 -1
  401. package/esm/validators/tuple-validator.d.mts.map +1 -1
  402. package/esm/validators/tuple-validator.mjs +4 -4
  403. package/esm/validators/tuple-validator.mjs.map +1 -1
  404. package/esm/validators/union-validator.d.mts +4 -2
  405. package/esm/validators/union-validator.d.mts.map +1 -1
  406. package/esm/validators/union-validator.mjs +4 -2
  407. package/esm/validators/union-validator.mjs.map +1 -1
  408. package/llms-full.txt +664 -533
  409. package/llms.txt +1 -1
  410. package/package.json +3 -2
  411. package/skills/bridge-standard-schema/SKILL.md +60 -36
  412. package/skills/compose-seal-modifiers/SKILL.md +89 -53
  413. package/skills/define-structural-shape/SKILL.md +41 -27
  414. package/skills/define-structural-shape/array-methods.md +27 -27
  415. package/skills/define-structural-shape/object-methods.md +38 -30
  416. package/skills/extend-seal-with-plugins/SKILL.md +39 -5
  417. package/skills/generate-json-schema/SKILL.md +13 -13
  418. package/skills/handle-seal-errors/SKILL.md +26 -28
  419. package/skills/index.md +4 -1
  420. package/skills/overview/SKILL.md +10 -2
  421. package/skills/pick-seal-primitive/SKILL.md +49 -45
  422. package/skills/pick-seal-primitive/date-methods.md +96 -96
  423. package/skills/pick-seal-primitive/number-methods.md +55 -55
  424. package/skills/pick-seal-primitive/string-methods.md +107 -102
  425. package/skills/seal-basics/SKILL.md +15 -15
  426. package/cjs/object-DubGC-xu.cjs.map +0 -1
  427. package/cjs/required-methods-BOVNRtci.cjs.map +0 -1
  428. package/cjs/string-DpDpgefH.cjs.map +0 -1
  429. package/esm/helpers/index.d.mts +0 -5
  430. package/esm/mutators/index.d.mts +0 -7
  431. package/esm/rules/array/index.d.mts +0 -1
  432. package/esm/rules/color/index.d.mts +0 -1
  433. package/esm/rules/common/index.d.mts +0 -6
  434. package/esm/rules/conditional/index.d.mts +0 -10
  435. package/esm/rules/core/index.d.mts +0 -5
  436. package/esm/rules/date/index.d.mts +0 -7
  437. package/esm/rules/file/index.d.mts +0 -2
  438. package/esm/rules/index.d.mts +0 -45
  439. package/esm/rules/length/index.d.mts +0 -1
  440. package/esm/rules/number/index.d.mts +0 -1
  441. package/esm/rules/string/index.d.mts +0 -11
  442. package/esm/standard-schema/index.d.mts +0 -3
  443. package/esm/types/index.d.mts +0 -10
@@ -1,7 +1,7 @@
1
1
  let _mongez_reinforcements = require("@mongez/reinforcements");
2
2
  let _mongez_supportive_is = require("@mongez/supportive-is");
3
3
 
4
- //#region ../seal/src/standard-schema/json-schema.ts
4
+ //#region ../../packages/seal/src/standard-schema/json-schema.ts
5
5
  /**
6
6
  * Apply nullable to a JSON Schema object based on the target dialect.
7
7
  *
@@ -80,7 +80,7 @@ function getRuleOptions(rules, ruleName) {
80
80
  }
81
81
 
82
82
  //#endregion
83
- //#region ../seal/src/config.ts
83
+ //#region ../../packages/seal/src/config.ts
84
84
  /**
85
85
  * Global Seal configuration
86
86
  */
@@ -118,9 +118,12 @@ function resetSealConfig() {
118
118
  }
119
119
 
120
120
  //#endregion
121
- //#region ../seal/src/factory/validate.ts
121
+ //#region ../../packages/seal/src/factory/validate.ts
122
122
  /**
123
- * Validate data against a schema
123
+ * Validate data against a schema.
124
+ *
125
+ * The result narrows on `isValid`: on success `data` is the schema's
126
+ * `Infer.Output`, on failure it is `undefined`.
124
127
  */
125
128
  const validate = async (schema, data, { context: extendedContext, ...configurations } = getSealConfig() || {}) => {
126
129
  const context = {
@@ -141,14 +144,19 @@ const validate = async (schema, data, { context: extendedContext, ...configurati
141
144
  };
142
145
  const result = await schema.validate(data, context);
143
146
  if (!result.isValid) return {
144
- ...result,
147
+ isValid: false,
148
+ errors: result.errors,
145
149
  data: void 0
146
150
  };
147
- return result;
151
+ return {
152
+ isValid: true,
153
+ errors: result.errors,
154
+ data: result.data
155
+ };
148
156
  };
149
157
 
150
158
  //#endregion
151
- //#region ../seal/src/helpers/validation-helpers.ts
159
+ //#region ../../packages/seal/src/helpers/validation-helpers.ts
152
160
  const VALID_RULE = { isValid: true };
153
161
  /**
154
162
  * Resolve a single attribute value through the full translation priority chain:
@@ -222,13 +230,13 @@ const invalidRule = (rule, context) => {
222
230
  };
223
231
 
224
232
  //#endregion
225
- //#region ../seal/src/helpers/is-empty-value.ts
233
+ //#region ../../packages/seal/src/helpers/is-empty-value.ts
226
234
  function isEmptyValue(value) {
227
235
  return (0, _mongez_supportive_is.isEmpty)(value) && !(0, _mongez_supportive_is.isObject)(value);
228
236
  }
229
237
 
230
238
  //#endregion
231
- //#region ../seal/src/helpers/date-helpers.ts
239
+ //#region ../../packages/seal/src/helpers/date-helpers.ts
232
240
  /**
233
241
  * Detect if value is a date value or field name
234
242
  *
@@ -250,7 +258,7 @@ function isDateValue(value) {
250
258
  }
251
259
 
252
260
  //#endregion
253
- //#region ../seal/src/helpers/file.utils.ts
261
+ //#region ../../packages/seal/src/helpers/file.utils.ts
254
262
  function resolveFileSize(size) {
255
263
  if (typeof size === "number") return size;
256
264
  switch (size.unit) {
@@ -281,7 +289,7 @@ function humanizeSize(sizeInBits) {
281
289
  }
282
290
 
283
291
  //#endregion
284
- //#region ../seal/src/helpers/get-field-value.ts
292
+ //#region ../../packages/seal/src/helpers/get-field-value.ts
285
293
  /**
286
294
  * Get field value based on scope from rule options
287
295
  *
@@ -322,7 +330,7 @@ function getFieldValue(rule, context, fieldKey = "field") {
322
330
  }
323
331
 
324
332
  //#endregion
325
- //#region ../seal/src/helpers/path-helpers.ts
333
+ //#region ../../packages/seal/src/helpers/path-helpers.ts
326
334
  /**
327
335
  * Set the key path for nested validation
328
336
  */
@@ -332,7 +340,7 @@ const setKeyPath = (path, key) => {
332
340
  };
333
341
 
334
342
  //#endregion
335
- //#region ../seal/src/rules/core/required.ts
343
+ //#region ../../packages/seal/src/rules/core/required.ts
336
344
  /**
337
345
  * Required rule - value must be present and not empty
338
346
  */
@@ -362,7 +370,7 @@ const presentRule = {
362
370
  };
363
371
 
364
372
  //#endregion
365
- //#region ../seal/src/standard-schema/map-result.ts
373
+ //#region ../../packages/seal/src/standard-schema/map-result.ts
366
374
  /**
367
375
  * Maps a Seal ValidationResult to a Standard Schema result shape.
368
376
  *
@@ -386,13 +394,14 @@ function mapToStandardResult(result) {
386
394
  }
387
395
 
388
396
  //#endregion
389
- //#region ../seal/src/validators/base-validator.ts
397
+ //#region ../../packages/seal/src/validators/base-validator.ts
390
398
  /**
391
399
  * Base validator class - foundation for all validators
392
400
  */
393
401
  var BaseValidator = class {
394
402
  constructor() {
395
403
  this.rules = [];
404
+ this.refinements = [];
396
405
  this.mutators = [];
397
406
  this.shouldOmit = false;
398
407
  this.isNullable = false;
@@ -652,6 +661,7 @@ var BaseValidator = class {
652
661
  const Constructor = this.constructor;
653
662
  const cloned = Object.create(Constructor.prototype);
654
663
  cloned.rules = [...this.rules];
664
+ cloned.refinements = [...this.refinements];
655
665
  cloned.mutators = [...this.mutators];
656
666
  cloned.dataTransformers = [...this.dataTransformers];
657
667
  cloned.defaultValue = this.defaultValue;
@@ -796,10 +806,12 @@ var BaseValidator = class {
796
806
  return this.addRule(rule, errorMessage, ruleOptions);
797
807
  }
798
808
  /**
799
- * Define custom rule
809
+ * Validate the successful output after type rules, children and transformers.
810
+ * Refinements are skipped for absent/null values and failed validation.
800
811
  */
801
812
  refine(callback) {
802
- return this.addRule({
813
+ const instance = this.instance;
814
+ instance.refinements.push(instance.createRule({
803
815
  name: "custom",
804
816
  async validate(value, context) {
805
817
  const result = await callback(value, context);
@@ -809,7 +821,30 @@ var BaseValidator = class {
809
821
  }
810
822
  return VALID_RULE;
811
823
  }
812
- });
824
+ }));
825
+ return instance;
826
+ }
827
+ /** Complete validation only after the entire output is available. */
828
+ async refineResult(result, context) {
829
+ if (!result.isValid || result.data == null) return result;
830
+ const errors = [];
831
+ for (const rule of this.refinements) {
832
+ this.setRuleAttributesList(rule);
833
+ const refined = await rule.validate(result.data, context);
834
+ if (!refined.isValid) {
835
+ errors.push({
836
+ type: rule.name,
837
+ error: refined.error,
838
+ input: refined.path ?? context.path
839
+ });
840
+ if (context.configurations?.firstErrorOnly ?? true) break;
841
+ }
842
+ }
843
+ return errors.length ? {
844
+ isValid: false,
845
+ errors,
846
+ data: void 0
847
+ } : result;
813
848
  }
814
849
  /**
815
850
  * Add mutator to the validator
@@ -902,6 +937,16 @@ var BaseValidator = class {
902
937
  * Validate the data
903
938
  */
904
939
  async validate(data, context) {
940
+ const result = await this.refineResult(await this.validateRules(data, context), context);
941
+ if (!result.isValid && this.hasCatch) return {
942
+ isValid: true,
943
+ errors: [],
944
+ data: typeof this.catchValue === "function" ? await this.catchValue(result.errors, data) : this.catchValue
945
+ };
946
+ return result;
947
+ }
948
+ /** Validate presence and value rules before containers descend into children. */
949
+ async validateRules(data, context) {
905
950
  if (data === null && this.isNullable) return {
906
951
  isValid: true,
907
952
  errors: [],
@@ -913,39 +958,51 @@ var BaseValidator = class {
913
958
  errors: [],
914
959
  data: null
915
960
  };
916
- const valueForRules = (isBlank ? void 0 : data) ?? this.getDefaultValue();
917
- const mutatedData = this.isOptional && valueForRules === void 0 ? void 0 : await this.mutate(valueForRules, context);
961
+ const input = isBlank ? void 0 : data;
962
+ let valueForRules = input ?? this.getDefaultValue();
963
+ const parentFilledDefault = context?.valueIsDefault === true;
964
+ if (parentFilledDefault) context.valueIsDefault = false;
965
+ const isUsableDefault = (value) => value !== void 0 && (value !== null || this.isNullable);
966
+ let blankMatchesDefault = false;
967
+ if (typeof input === "string" && input.trim() === "" && this.defaultValue !== void 0) {
968
+ const fallback = this.getDefaultValue();
969
+ if (typeof fallback === "string" && fallback.trim() === "") {
970
+ valueForRules = fallback;
971
+ blankMatchesDefault = true;
972
+ }
973
+ }
974
+ const usedDefault = blankMatchesDefault || input == null && isUsableDefault(valueForRules) || parentFilledDefault && isUsableDefault(input);
975
+ let mutatedData = this.isOptional && valueForRules === void 0 ? void 0 : await this.mutate(valueForRules, context);
918
976
  const errors = [];
919
977
  let isValid = true;
920
978
  const isFirstErrorOnly = context.configurations?.firstErrorOnly ?? true;
921
979
  const isEmpty = isEmptyValue(valueForRules);
922
- const skipEmptyRules = this.isOptional ? valueForRules === void 0 : isEmpty;
923
- const rulesToRun = this.requiredRule ? [this.requiredRule, ...this.rules] : this.rules;
980
+ const skipEmptyRules = usedDefault && isEmpty && valueForRules !== null && !this.matchesType(valueForRules) ? false : this.isOptional ? valueForRules === void 0 : isEmpty;
981
+ const rulesToRun = this.requiredRule && !usedDefault ? [this.requiredRule, ...this.rules] : this.rules;
924
982
  for (const rule of rulesToRun) {
925
983
  if ((rule.requiresValue ?? true) && skipEmptyRules) continue;
926
984
  this.setRuleAttributesList(rule);
927
985
  const result = await rule.validate(mutatedData, context);
986
+ if (result.isValid && "data" in result) mutatedData = result.data;
928
987
  if (result.isValid === false) {
929
988
  isValid = false;
930
- errors.push({
931
- type: rule.name,
989
+ const reported = result.errors?.length ? result.errors : [{
932
990
  error: result.error,
933
- input: result.path ?? context.path
991
+ path: result.path
992
+ }];
993
+ for (const { error, path } of reported) errors.push({
994
+ type: rule.name,
995
+ error,
996
+ input: path ?? context.path
934
997
  });
935
998
  if (isFirstErrorOnly) break;
936
999
  }
937
1000
  }
938
- const result = {
1001
+ return {
939
1002
  isValid,
940
1003
  errors,
941
1004
  data: mutatedData !== void 0 ? await this.startTransformationPipeline(mutatedData, context) : void 0
942
1005
  };
943
- if (result.isValid === false && this.hasCatch) return {
944
- isValid: true,
945
- errors: [],
946
- data: typeof this.catchValue === "function" ? await this.catchValue(result.errors, data) : this.catchValue
947
- };
948
- return result;
949
1006
  }
950
1007
  /**
951
1008
  * Set rule attributes list
@@ -1043,7 +1100,7 @@ var BaseValidator = class {
1043
1100
  };
1044
1101
 
1045
1102
  //#endregion
1046
- //#region ../seal/src/rules/core/equal.ts
1103
+ //#region ../../packages/seal/src/rules/core/equal.ts
1047
1104
  /**
1048
1105
  * Equal rule - value must be equal to a specific value
1049
1106
  */
@@ -1060,7 +1117,7 @@ const equalRule = {
1060
1117
  };
1061
1118
 
1062
1119
  //#endregion
1063
- //#region ../seal/src/rules/core/forbidden.ts
1120
+ //#region ../../packages/seal/src/rules/core/forbidden.ts
1064
1121
  /**
1065
1122
  * Forbidden rule - value must not be present
1066
1123
  */
@@ -1074,32 +1131,80 @@ const forbiddenRule = {
1074
1131
  };
1075
1132
 
1076
1133
  //#endregion
1077
- //#region ../seal/src/rules/core/union.ts
1134
+ //#region ../../packages/seal/src/rules/core/union.ts
1135
+ const describeFailure = (index, errors) => ({
1136
+ index,
1137
+ errors,
1138
+ literalMismatches: errors.filter((error) => error.type === "literal").length,
1139
+ depth: Math.max(0, ...errors.map((error) => error.input ? error.input.split(".").length : 0))
1140
+ });
1141
+ /**
1142
+ * Whether `candidate` is closer to the value than `best`:
1143
+ *
1144
+ * 1. Fewest mismatched literals. A literal that does not match (`kind: "owner"`
1145
+ * given `"member"`) says the value is a different member, while any other
1146
+ * error says it is this member with a bad field.
1147
+ * 2. Fewest errors.
1148
+ * 3. Deepest error: the member matched more of the value's structure.
1149
+ * 4. Declaration order (an earlier member wins a tie).
1150
+ */
1151
+ const isCloser = (candidate, best) => {
1152
+ if (candidate.literalMismatches !== best.literalMismatches) return candidate.literalMismatches < best.literalMismatches;
1153
+ if (candidate.errors.length !== best.errors.length) return candidate.errors.length < best.errors.length;
1154
+ if (candidate.depth !== best.depth) return candidate.depth > best.depth;
1155
+ return candidate.index < best.index;
1156
+ };
1078
1157
  /**
1079
- * Union rule - value must match at least one of the provided validators
1158
+ * Union rule - value must match at least one of the provided validators.
1159
+ *
1160
+ * Every member whose type matches the value is tried, in order, until one
1161
+ * passes. When none passes, the errors of the closest failed member (see
1162
+ * `isCloser`) are reported at their own paths with the `union` type: its
1163
+ * first error under `firstErrorOnly` (the default), all of them otherwise.
1164
+ * A custom union error message replaces them with a single error, as does the
1165
+ * default message when no member matches the value's type.
1080
1166
  */
1081
1167
  const unionRule = {
1082
1168
  name: "union",
1169
+ requiresValue: false,
1083
1170
  defaultErrorMessage: "Value must match one of the allowed types",
1084
1171
  async validate(value, context) {
1172
+ if (value === void 0) return VALID_RULE;
1085
1173
  const validators = this.context.options.validators;
1086
1174
  const firstErrorOnly = context.configurations?.firstErrorOnly ?? true;
1087
- const allErrors = [];
1088
- for (const validator of validators) {
1175
+ let closest;
1176
+ for (const [index, validator] of validators.entries()) {
1089
1177
  if (!validator.matchesType(value)) continue;
1090
- const result = await validator.validate(value, context);
1091
- if (result.isValid) return VALID_RULE;
1092
- const errorMsg = result.errors?.[0]?.error || "Validation failed";
1093
- allErrors.push(errorMsg);
1094
- if (firstErrorOnly) break;
1178
+ const result = await validator.validate(value, { ...context });
1179
+ if (result.isValid) return {
1180
+ isValid: true,
1181
+ data: result.data
1182
+ };
1183
+ const failure = describeFailure(index, result.errors?.length ? result.errors : [{
1184
+ type: "union",
1185
+ error: "Validation failed",
1186
+ input: context.path
1187
+ }]);
1188
+ if (!closest || isCloser(failure, closest)) closest = failure;
1095
1189
  }
1096
- if (allErrors.length > 0) this.context.errorMessage = firstErrorOnly ? allErrors[0] : allErrors.join("; ");
1097
- return invalidRule(this, context);
1190
+ const failed = invalidRule(this, context);
1191
+ if (!closest || this.context.errorMessage) return failed;
1192
+ const errors = (firstErrorOnly ? closest.errors.slice(0, 1) : closest.errors).map((error) => ({
1193
+ error: error.error,
1194
+ path: error.input
1195
+ }));
1196
+ const first = errors[0];
1197
+ return first ? {
1198
+ ...failed,
1199
+ error: first.error,
1200
+ path: first.path,
1201
+ errors
1202
+ } : failed;
1098
1203
  }
1099
1204
  };
1100
1205
 
1101
1206
  //#endregion
1102
- //#region ../seal/src/rules/core/when.ts
1207
+ //#region ../../packages/seal/src/rules/core/when.ts
1103
1208
  /**
1104
1209
  * When rule - conditional validation based on another field value
1105
1210
  */
@@ -1129,7 +1234,7 @@ const whenRule = {
1129
1234
  };
1130
1235
 
1131
1236
  //#endregion
1132
- //#region ../seal/src/rules/string/alpha.ts
1237
+ //#region ../../packages/seal/src/rules/string/alpha.ts
1133
1238
  /**
1134
1239
  * Alpha rule - allows only alphabetic characters
1135
1240
  */
@@ -1165,7 +1270,7 @@ const isNumericRule = {
1165
1270
  };
1166
1271
 
1167
1272
  //#endregion
1168
- //#region ../seal/src/rules/string/credit-card.ts
1273
+ //#region ../../packages/seal/src/rules/string/credit-card.ts
1169
1274
  /**
1170
1275
  * Credit card rule - validates credit card number
1171
1276
  */
@@ -1192,7 +1297,7 @@ const isCreditCardRule = {
1192
1297
  };
1193
1298
 
1194
1299
  //#endregion
1195
- //#region ../seal/src/rules/string/email.ts
1300
+ //#region ../../packages/seal/src/rules/string/email.ts
1196
1301
  /**
1197
1302
  * Email rule - validates email format
1198
1303
  */
@@ -1206,7 +1311,7 @@ const emailRule = {
1206
1311
  };
1207
1312
 
1208
1313
  //#endregion
1209
- //#region ../seal/src/rules/string/id-formats.ts
1314
+ //#region ../../packages/seal/src/rules/string/id-formats.ts
1210
1315
  /**
1211
1316
  * Modern ID format validators — UUID, CUID, ULID, nanoid.
1212
1317
  *
@@ -1305,7 +1410,7 @@ const nanoidRule = {
1305
1410
  };
1306
1411
 
1307
1412
  //#endregion
1308
- //#region ../seal/src/rules/string/ip.ts
1413
+ //#region ../../packages/seal/src/rules/string/ip.ts
1309
1414
  /**
1310
1415
  * Pure, dependency-free re-implementation of Node's `net.isIP`/`isIPv4`/`isIPv6`.
1311
1416
  * Mirrors the exact regex Node uses internally (lib/internal/net.js) so that
@@ -1366,7 +1471,7 @@ const ip6Rule = {
1366
1471
  };
1367
1472
 
1368
1473
  //#endregion
1369
- //#region ../seal/src/rules/string/matches.ts
1474
+ //#region ../../packages/seal/src/rules/string/matches.ts
1370
1475
  /**
1371
1476
  * Matches rule - value must match another field value
1372
1477
  */
@@ -1381,7 +1486,7 @@ const matchesRule = {
1381
1486
  };
1382
1487
 
1383
1488
  //#endregion
1384
- //#region ../seal/src/rules/string/pattern.ts
1489
+ //#region ../../packages/seal/src/rules/string/pattern.ts
1385
1490
  /**
1386
1491
  * Pattern rule - validates against regex pattern
1387
1492
  */
@@ -1396,7 +1501,7 @@ const patternRule = {
1396
1501
  };
1397
1502
 
1398
1503
  //#endregion
1399
- //#region ../seal/src/rules/string/string-comparison.ts
1504
+ //#region ../../packages/seal/src/rules/string/string-comparison.ts
1400
1505
  /**
1401
1506
  * Starts with rule
1402
1507
  */
@@ -1447,7 +1552,7 @@ const notContainsRule = {
1447
1552
  };
1448
1553
 
1449
1554
  //#endregion
1450
- //#region ../seal/src/rules/string/strong-password-rule.ts
1555
+ //#region ../../packages/seal/src/rules/string/strong-password-rule.ts
1451
1556
  /**
1452
1557
  * Strong Password rule - validates password strength
1453
1558
  * Requirements:
@@ -1473,7 +1578,7 @@ const strongPasswordRule = {
1473
1578
  };
1474
1579
 
1475
1580
  //#endregion
1476
- //#region ../seal/src/rules/string/url.ts
1581
+ //#region ../../packages/seal/src/rules/string/url.ts
1477
1582
  /**
1478
1583
  * URL rule - validates URL format
1479
1584
  */
@@ -1491,7 +1596,7 @@ const urlRule = {
1491
1596
  };
1492
1597
 
1493
1598
  //#endregion
1494
- //#region ../seal/src/rules/string/without-whitespace.ts
1599
+ //#region ../../packages/seal/src/rules/string/without-whitespace.ts
1495
1600
  /**
1496
1601
  * Without whitespace rule - value must not contain whitespace
1497
1602
  */
@@ -1505,7 +1610,7 @@ const withoutWhitespaceRule = {
1505
1610
  };
1506
1611
 
1507
1612
  //#endregion
1508
- //#region ../seal/src/rules/number/number-rules.ts
1613
+ //#region ../../packages/seal/src/rules/number/number-rules.ts
1509
1614
  /**
1510
1615
  * Min rule - value must be equal or greater than minimum
1511
1616
  * Supports field names with sibling scope
@@ -1695,7 +1800,7 @@ const betweenNumbersRule = {
1695
1800
  };
1696
1801
 
1697
1802
  //#endregion
1698
- //#region ../seal/src/rules/length/length-rules.ts
1803
+ //#region ../../packages/seal/src/rules/length/length-rules.ts
1699
1804
  /**
1700
1805
  * Min length rule - validates minimum length
1701
1806
  * Works for any value with a length property (strings, arrays, etc.)
@@ -1788,7 +1893,7 @@ const wordsRule = {
1788
1893
  };
1789
1894
 
1790
1895
  //#endregion
1791
- //#region ../seal/src/rules/array/array-rules.ts
1896
+ //#region ../../packages/seal/src/rules/array/array-rules.ts
1792
1897
  /**
1793
1898
  * Unique array rule - array must contain unique values
1794
1899
  */
@@ -1824,7 +1929,7 @@ const sortedArrayRule = {
1824
1929
  };
1825
1930
 
1826
1931
  //#endregion
1827
- //#region ../seal/src/types/date-types.ts
1932
+ //#region ../../packages/seal/src/types/date-types.ts
1828
1933
  /**
1829
1934
  * Week day numbers mapping
1830
1935
  */
@@ -1839,7 +1944,7 @@ const WEEK_DAYS = {
1839
1944
  };
1840
1945
 
1841
1946
  //#endregion
1842
- //#region ../seal/src/rules/date/date.ts
1947
+ //#region ../../packages/seal/src/rules/date/date.ts
1843
1948
  /**
1844
1949
  * Date rule - validates date format
1845
1950
  */
@@ -2065,7 +2170,7 @@ const weekDayRule = {
2065
2170
  };
2066
2171
 
2067
2172
  //#endregion
2068
- //#region ../seal/src/rules/date/date-comparison-rules.ts
2173
+ //#region ../../packages/seal/src/rules/date/date-comparison-rules.ts
2069
2174
  /**
2070
2175
  * Between dates rule - date must be between start and end dates
2071
2176
  */
@@ -2138,7 +2243,7 @@ const afterTodayRule = {
2138
2243
  };
2139
2244
 
2140
2245
  //#endregion
2141
- //#region ../seal/src/rules/date/date-day-rules.ts
2246
+ //#region ../../packages/seal/src/rules/date/date-day-rules.ts
2142
2247
  /**
2143
2248
  * Weekend rule - date must be Saturday or Sunday
2144
2249
  */
@@ -2193,7 +2298,7 @@ const businessDayRule = {
2193
2298
  };
2194
2299
 
2195
2300
  //#endregion
2196
- //#region ../seal/src/rules/date/date-field-comparison-rules.ts
2301
+ //#region ../../packages/seal/src/rules/date/date-field-comparison-rules.ts
2197
2302
  /**
2198
2303
  * Before field rule - date must be < given date or field
2199
2304
  * Smart detection: date value or field name
@@ -2267,7 +2372,7 @@ const sameAsFieldDateRule = {
2267
2372
  };
2268
2373
 
2269
2374
  //#endregion
2270
- //#region ../seal/src/rules/date/date-period-rules.ts
2375
+ //#region ../../packages/seal/src/rules/date/date-period-rules.ts
2271
2376
  const MONTHS = {
2272
2377
  1: "january",
2273
2378
  2: "february",
@@ -2661,7 +2766,7 @@ const maxDayRule = {
2661
2766
  };
2662
2767
 
2663
2768
  //#endregion
2664
- //#region ../seal/src/rules/date/date-relative-rules.ts
2769
+ //#region ../../packages/seal/src/rules/date/date-relative-rules.ts
2665
2770
  /**
2666
2771
  * Within days rule - date must be within X days from now (past or future)
2667
2772
  */
@@ -2711,7 +2816,7 @@ const withinFutureDaysRule = {
2711
2816
  };
2712
2817
 
2713
2818
  //#endregion
2714
- //#region ../seal/src/rules/date/date-special-rules.ts
2819
+ //#region ../../packages/seal/src/rules/date/date-special-rules.ts
2715
2820
  /**
2716
2821
  * Birthday rule - valid birthday (not in future, reasonable age)
2717
2822
  */
@@ -2764,7 +2869,7 @@ const leapYearRule = {
2764
2869
  };
2765
2870
 
2766
2871
  //#endregion
2767
- //#region ../seal/src/rules/file/dimensions.ts
2872
+ //#region ../../packages/seal/src/rules/file/dimensions.ts
2768
2873
  /**
2769
2874
  * Min width rule - image width validation
2770
2875
  */
@@ -2815,7 +2920,7 @@ const maxHeightRule = {
2815
2920
  };
2816
2921
 
2817
2922
  //#endregion
2818
- //#region ../seal/src/rules/file/file-size.ts
2923
+ //#region ../../packages/seal/src/rules/file/file-size.ts
2819
2924
  /**
2820
2925
  * Max file size rule
2821
2926
  */
@@ -2842,7 +2947,7 @@ const minFileSizeRule = {
2842
2947
  };
2843
2948
 
2844
2949
  //#endregion
2845
- //#region ../seal/src/rules/color/color-rules.ts
2950
+ //#region ../../packages/seal/src/rules/color/color-rules.ts
2846
2951
  /**
2847
2952
  * Color validation regex patterns
2848
2953
  */
@@ -2941,7 +3046,7 @@ const darkColorRule = {
2941
3046
  };
2942
3047
 
2943
3048
  //#endregion
2944
- //#region ../seal/src/rules/conditional/required-if-rules.ts
3049
+ //#region ../../packages/seal/src/rules/conditional/required-if-rules.ts
2945
3050
  /**
2946
3051
  * Required if rule - field is required if another field equals a specific value
2947
3052
  * Supports both global and sibling scope
@@ -3136,7 +3241,7 @@ const requiredIfAnyNotEmptyRule = {
3136
3241
  };
3137
3242
 
3138
3243
  //#endregion
3139
- //#region ../seal/src/rules/conditional/required-unless-rules.ts
3244
+ //#region ../../packages/seal/src/rules/conditional/required-unless-rules.ts
3140
3245
  /**
3141
3246
  * Required unless rule - field is required unless another field equals a specific value
3142
3247
  * Supports both global and sibling scope
@@ -3160,7 +3265,7 @@ const requiredUnlessRule = {
3160
3265
  };
3161
3266
 
3162
3267
  //#endregion
3163
- //#region ../seal/src/rules/conditional/required-when-rule.ts
3268
+ //#region ../../packages/seal/src/rules/conditional/required-when-rule.ts
3164
3269
  /**
3165
3270
  * Required when callback returns true.
3166
3271
  *
@@ -3186,7 +3291,7 @@ const requiredWhenRule = {
3186
3291
  };
3187
3292
 
3188
3293
  //#endregion
3189
- //#region ../seal/src/rules/conditional/required-with-rules.ts
3294
+ //#region ../../packages/seal/src/rules/conditional/required-with-rules.ts
3190
3295
  /**
3191
3296
  * Required with rule - field is required if another field is present
3192
3297
  * Supports both global and sibling scope
@@ -3244,7 +3349,7 @@ const requiredWithAnyRule = {
3244
3349
  };
3245
3350
 
3246
3351
  //#endregion
3247
- //#region ../seal/src/rules/conditional/required-without-rules.ts
3352
+ //#region ../../packages/seal/src/rules/conditional/required-without-rules.ts
3248
3353
  /**
3249
3354
  * Required without rule - field is required if another field is missing
3250
3355
  * Supports both global and sibling scope
@@ -3302,7 +3407,7 @@ const requiredWithoutAnyRule = {
3302
3407
  };
3303
3408
 
3304
3409
  //#endregion
3305
- //#region ../seal/src/rules/conditional/present-if-rules.ts
3410
+ //#region ../../packages/seal/src/rules/conditional/present-if-rules.ts
3306
3411
  /**
3307
3412
  * Present if rule - field must be present if another field equals a specific value
3308
3413
  * Supports both global and sibling scope
@@ -3392,7 +3497,7 @@ const presentIfNotInRule = {
3392
3497
  };
3393
3498
 
3394
3499
  //#endregion
3395
- //#region ../seal/src/rules/conditional/present-unless-rules.ts
3500
+ //#region ../../packages/seal/src/rules/conditional/present-unless-rules.ts
3396
3501
  /**
3397
3502
  * Present unless rule - field must be present unless another field equals a specific value
3398
3503
  * Supports both global and sibling scope
@@ -3416,7 +3521,7 @@ const presentUnlessRule = {
3416
3521
  };
3417
3522
 
3418
3523
  //#endregion
3419
- //#region ../seal/src/rules/conditional/present-with-rules.ts
3524
+ //#region ../../packages/seal/src/rules/conditional/present-with-rules.ts
3420
3525
  /**
3421
3526
  * Present with rule - field must be present if another field is present
3422
3527
  * Supports both global and sibling scope
@@ -3484,7 +3589,7 @@ const presentWithAnyRule = {
3484
3589
  };
3485
3590
 
3486
3591
  //#endregion
3487
- //#region ../seal/src/rules/conditional/present-without-rules.ts
3592
+ //#region ../../packages/seal/src/rules/conditional/present-without-rules.ts
3488
3593
  /**
3489
3594
  * Present without rule - field must be present if another field is missing
3490
3595
  * Supports both global and sibling scope
@@ -3552,7 +3657,7 @@ const presentWithoutAnyRule = {
3552
3657
  };
3553
3658
 
3554
3659
  //#endregion
3555
- //#region ../seal/src/rules/conditional/forbidden-if-rules.ts
3660
+ //#region ../../packages/seal/src/rules/conditional/forbidden-if-rules.ts
3556
3661
  /**
3557
3662
  * Forbidden if rule - field is forbidden if another field equals a specific value
3558
3663
  * Supports both global and sibling scope
@@ -3661,7 +3766,7 @@ const forbiddenIfNotInRule = {
3661
3766
  };
3662
3767
 
3663
3768
  //#endregion
3664
- //#region ../seal/src/rules/common/enum.ts
3769
+ //#region ../../packages/seal/src/rules/common/enum.ts
3665
3770
  /**
3666
3771
  * Enum rule - value must be one of the enum values
3667
3772
  */
@@ -3733,7 +3838,7 @@ const notAllowedValuesRule = {
3733
3838
  };
3734
3839
 
3735
3840
  //#endregion
3736
- //#region ../seal/src/rules/common/equals-field-rules.ts
3841
+ //#region ../../packages/seal/src/rules/common/equals-field-rules.ts
3737
3842
  /**
3738
3843
  * Equals field rule - value must equal another field's value
3739
3844
  * Supports both global and sibling scope
@@ -3769,7 +3874,7 @@ const notEqualsFieldRule = {
3769
3874
  };
3770
3875
 
3771
3876
  //#endregion
3772
- //#region ../seal/src/rules/common/instanceof.ts
3877
+ //#region ../../packages/seal/src/rules/common/instanceof.ts
3773
3878
  /**
3774
3879
  * InstanceOf rule - value must be an instance of the given constructor.
3775
3880
  *
@@ -3787,7 +3892,7 @@ const instanceofRule = {
3787
3892
  };
3788
3893
 
3789
3894
  //#endregion
3790
- //#region ../seal/src/rules/common/literal.ts
3895
+ //#region ../../packages/seal/src/rules/common/literal.ts
3791
3896
  /**
3792
3897
  * Literal rule - value must be strictly equal to one of the literal values.
3793
3898
  *
@@ -3813,7 +3918,7 @@ const literalRule = {
3813
3918
  };
3814
3919
 
3815
3920
  //#endregion
3816
- //#region ../seal/src/rules/common/type-rules.ts
3921
+ //#region ../../packages/seal/src/rules/common/type-rules.ts
3817
3922
  /**
3818
3923
  * String rule - validates string type
3819
3924
  */
@@ -3919,7 +4024,7 @@ const arrayRule = {
3919
4024
  };
3920
4025
 
3921
4026
  //#endregion
3922
- //#region ../seal/src/rules/common/unknown-key.ts
4027
+ //#region ../../packages/seal/src/rules/common/unknown-key.ts
3923
4028
  /**
3924
4029
  * Unknown key rule - validates that object doesn't have unknown keys
3925
4030
  */
@@ -3939,7 +4044,7 @@ const unknownKeyRule = {
3939
4044
  };
3940
4045
 
3941
4046
  //#endregion
3942
- //#region ../seal/src/validators/methods/equality-conditional-methods.ts
4047
+ //#region ../../packages/seal/src/validators/methods/equality-conditional-methods.ts
3943
4048
  /**
3944
4049
  * Marker re-exported by the validators barrel so the dts bundler keeps this
3945
4050
  * module (and its `declare module` augmentation) in the bundled `.d.ts`.
@@ -4065,7 +4170,7 @@ BaseValidator.prototype.whenSibling = function(siblingField, options) {
4065
4170
  };
4066
4171
 
4067
4172
  //#endregion
4068
- //#region ../seal/src/validators/methods/forbidden-methods.ts
4173
+ //#region ../../packages/seal/src/validators/methods/forbidden-methods.ts
4069
4174
  /**
4070
4175
  * Marker re-exported by the validators barrel so the dts bundler keeps this
4071
4176
  * module (and its `declare module` augmentation) in the bundled `.d.ts`.
@@ -4195,7 +4300,7 @@ BaseValidator.prototype.forbiddenIfNotInSibling = function(field, values, errorM
4195
4300
  };
4196
4301
 
4197
4302
  //#endregion
4198
- //#region ../seal/src/validators/methods/present-methods.ts
4303
+ //#region ../../packages/seal/src/validators/methods/present-methods.ts
4199
4304
  /**
4200
4305
  * Marker re-exported by the validators barrel so the dts bundler keeps this
4201
4306
  * module (and its `declare module` augmentation) in the bundled `.d.ts`.
@@ -4427,7 +4532,7 @@ BaseValidator.prototype.presentWithoutAnySiblings = function(fields, errorMessag
4427
4532
  };
4428
4533
 
4429
4534
  //#endregion
4430
- //#region ../seal/src/validators/methods/required-methods.ts
4535
+ //#region ../../packages/seal/src/validators/methods/required-methods.ts
4431
4536
  /**
4432
4537
  * Marker re-exported by the validators barrel so the dts bundler keeps this
4433
4538
  * module (and its `declare module` augmentation) in the bundled `.d.ts`.
@@ -5875,4 +5980,4 @@ Object.defineProperty(exports, 'yearRule', {
5875
5980
  return yearRule;
5876
5981
  }
5877
5982
  });
5878
- //# sourceMappingURL=required-methods-BOVNRtci.cjs.map
5983
+ //# sourceMappingURL=required-methods-chT0TXQS.cjs.map