@warlock.js/seal 4.0.174 → 4.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/index.cjs +8900 -0
- package/cjs/index.cjs.map +1 -0
- package/esm/config.d.mts +47 -0
- package/esm/config.d.mts.map +1 -0
- package/esm/config.mjs +40 -0
- package/esm/config.mjs.map +1 -0
- package/esm/factory/index.d.mts +2 -0
- package/esm/factory/index.mjs +4 -0
- package/esm/factory/validate.d.mts +16 -0
- package/esm/factory/validate.d.mts.map +1 -0
- package/esm/factory/validate.mjs +29 -0
- package/esm/factory/validate.mjs.map +1 -0
- package/esm/factory/validators.d.mts +75 -0
- package/esm/factory/validators.d.mts.map +1 -0
- package/esm/factory/validators.mjs +132 -0
- package/esm/factory/validators.mjs.map +1 -0
- package/esm/helpers/date-helpers.d.mts +19 -0
- package/esm/helpers/date-helpers.d.mts.map +1 -0
- package/esm/helpers/date-helpers.mjs +24 -0
- package/esm/helpers/date-helpers.mjs.map +1 -0
- package/esm/helpers/file.utils.d.mts +12 -0
- package/esm/helpers/file.utils.d.mts.map +1 -0
- package/esm/helpers/file.utils.mjs +33 -0
- package/esm/helpers/file.utils.mjs.map +1 -0
- package/esm/helpers/get-field-value.d.mts +42 -0
- package/esm/helpers/get-field-value.d.mts.map +1 -0
- package/esm/helpers/get-field-value.mjs +45 -0
- package/esm/helpers/get-field-value.mjs.map +1 -0
- package/esm/helpers/index.mjs +7 -0
- package/esm/helpers/is-empty-value.mjs +10 -0
- package/esm/helpers/is-empty-value.mjs.map +1 -0
- package/esm/helpers/path-helpers.d.mts +8 -0
- package/esm/helpers/path-helpers.d.mts.map +1 -0
- package/esm/helpers/path-helpers.mjs +12 -0
- package/esm/helpers/path-helpers.mjs.map +1 -0
- package/esm/helpers/validation-helpers.d.mts +36 -0
- package/esm/helpers/validation-helpers.d.mts.map +1 -0
- package/esm/helpers/validation-helpers.mjs +72 -0
- package/esm/helpers/validation-helpers.mjs.map +1 -0
- package/esm/index.d.mts +96 -0
- package/esm/index.mjs +92 -0
- package/esm/mutators/array-mutators.d.mts +16 -0
- package/esm/mutators/array-mutators.d.mts.map +1 -0
- package/esm/mutators/array-mutators.mjs +40 -0
- package/esm/mutators/array-mutators.mjs.map +1 -0
- package/esm/mutators/date-mutators.d.mts +43 -0
- package/esm/mutators/date-mutators.d.mts.map +1 -0
- package/esm/mutators/date-mutators.mjs +113 -0
- package/esm/mutators/date-mutators.mjs.map +1 -0
- package/esm/mutators/index.mjs +8 -0
- package/esm/mutators/number-mutators.d.mts +26 -0
- package/esm/mutators/number-mutators.d.mts.map +1 -0
- package/esm/mutators/number-mutators.mjs +53 -0
- package/esm/mutators/number-mutators.mjs.map +1 -0
- package/esm/mutators/object-mutators.d.mts +12 -0
- package/esm/mutators/object-mutators.d.mts.map +1 -0
- package/esm/mutators/object-mutators.mjs +37 -0
- package/esm/mutators/object-mutators.mjs.map +1 -0
- package/esm/mutators/scalar-mutators.d.mts +7 -0
- package/esm/mutators/scalar-mutators.d.mts.map +1 -0
- package/esm/mutators/scalar-mutators.mjs +9 -0
- package/esm/mutators/scalar-mutators.mjs.map +1 -0
- package/esm/mutators/string-mutators.d.mts +76 -0
- package/esm/mutators/string-mutators.d.mts.map +1 -0
- package/esm/mutators/string-mutators.mjs +169 -0
- package/esm/mutators/string-mutators.mjs.map +1 -0
- package/esm/plugins/plugin-system.d.mts +71 -0
- package/esm/plugins/plugin-system.d.mts.map +1 -0
- package/esm/plugins/plugin-system.mjs +64 -0
- package/esm/plugins/plugin-system.mjs.map +1 -0
- package/esm/rules/array/array-rules.d.mts +16 -0
- package/esm/rules/array/array-rules.d.mts.map +1 -0
- package/esm/rules/array/array-rules.mjs +41 -0
- package/esm/rules/array/array-rules.mjs.map +1 -0
- package/esm/rules/array/index.mjs +3 -0
- package/esm/rules/color/color-rules.d.mts +34 -0
- package/esm/rules/color/color-rules.d.mts.map +1 -0
- package/esm/rules/color/color-rules.mjs +104 -0
- package/esm/rules/color/color-rules.mjs.map +1 -0
- package/esm/rules/color/index.mjs +3 -0
- package/esm/rules/common/enum.d.mts +30 -0
- package/esm/rules/common/enum.d.mts.map +1 -0
- package/esm/rules/common/enum.mjs +77 -0
- package/esm/rules/common/enum.mjs.map +1 -0
- package/esm/rules/common/equals-field-rules.d.mts +22 -0
- package/esm/rules/common/equals-field-rules.d.mts.map +1 -0
- package/esm/rules/common/equals-field-rules.mjs +42 -0
- package/esm/rules/common/equals-field-rules.mjs.map +1 -0
- package/esm/rules/common/index.mjs +8 -0
- package/esm/rules/common/instanceof.d.mts +16 -0
- package/esm/rules/common/instanceof.d.mts.map +1 -0
- package/esm/rules/common/instanceof.mjs +23 -0
- package/esm/rules/common/instanceof.mjs.map +1 -0
- package/esm/rules/common/literal.d.mts +16 -0
- package/esm/rules/common/literal.d.mts.map +1 -0
- package/esm/rules/common/literal.mjs +29 -0
- package/esm/rules/common/literal.mjs.map +1 -0
- package/esm/rules/common/type-rules.d.mts +42 -0
- package/esm/rules/common/type-rules.d.mts.map +1 -0
- package/esm/rules/common/type-rules.mjs +112 -0
- package/esm/rules/common/type-rules.mjs.map +1 -0
- package/esm/rules/common/unknown-key.d.mts +14 -0
- package/esm/rules/common/unknown-key.d.mts.map +1 -0
- package/esm/rules/common/unknown-key.mjs +25 -0
- package/esm/rules/common/unknown-key.mjs.map +1 -0
- package/esm/rules/conditional/forbidden-if-rules.d.mts +58 -0
- package/esm/rules/conditional/forbidden-if-rules.d.mts.map +1 -0
- package/esm/rules/conditional/forbidden-if-rules.mjs +116 -0
- package/esm/rules/conditional/forbidden-if-rules.mjs.map +1 -0
- package/esm/rules/conditional/index.mjs +12 -0
- package/esm/rules/conditional/present-if-rules.d.mts +49 -0
- package/esm/rules/conditional/present-if-rules.d.mts.map +1 -0
- package/esm/rules/conditional/present-if-rules.mjs +97 -0
- package/esm/rules/conditional/present-if-rules.mjs.map +1 -0
- package/esm/rules/conditional/present-unless-rules.d.mts +15 -0
- package/esm/rules/conditional/present-unless-rules.d.mts.map +1 -0
- package/esm/rules/conditional/present-unless-rules.mjs +30 -0
- package/esm/rules/conditional/present-unless-rules.mjs.map +1 -0
- package/esm/rules/conditional/present-with-rules.d.mts +30 -0
- package/esm/rules/conditional/present-with-rules.d.mts.map +1 -0
- package/esm/rules/conditional/present-with-rules.mjs +75 -0
- package/esm/rules/conditional/present-with-rules.mjs.map +1 -0
- package/esm/rules/conditional/present-without-rules.d.mts +30 -0
- package/esm/rules/conditional/present-without-rules.d.mts.map +1 -0
- package/esm/rules/conditional/present-without-rules.mjs +75 -0
- package/esm/rules/conditional/present-without-rules.mjs.map +1 -0
- package/esm/rules/conditional/required-if-rules.d.mts +81 -0
- package/esm/rules/conditional/required-if-rules.d.mts.map +1 -0
- package/esm/rules/conditional/required-if-rules.mjs +203 -0
- package/esm/rules/conditional/required-if-rules.mjs.map +1 -0
- package/esm/rules/conditional/required-unless-rules.d.mts +15 -0
- package/esm/rules/conditional/required-unless-rules.d.mts.map +1 -0
- package/esm/rules/conditional/required-unless-rules.mjs +31 -0
- package/esm/rules/conditional/required-unless-rules.mjs.map +1 -0
- package/esm/rules/conditional/required-when-rule.d.mts +23 -0
- package/esm/rules/conditional/required-when-rule.d.mts.map +1 -0
- package/esm/rules/conditional/required-when-rule.mjs +32 -0
- package/esm/rules/conditional/required-when-rule.mjs.map +1 -0
- package/esm/rules/conditional/required-with-rules.d.mts +30 -0
- package/esm/rules/conditional/required-with-rules.d.mts.map +1 -0
- package/esm/rules/conditional/required-with-rules.mjs +66 -0
- package/esm/rules/conditional/required-with-rules.mjs.map +1 -0
- package/esm/rules/conditional/required-without-rules.d.mts +30 -0
- package/esm/rules/conditional/required-without-rules.d.mts.map +1 -0
- package/esm/rules/conditional/required-without-rules.mjs +66 -0
- package/esm/rules/conditional/required-without-rules.mjs.map +1 -0
- package/esm/rules/core/equal.d.mts +12 -0
- package/esm/rules/core/equal.d.mts.map +1 -0
- package/esm/rules/core/equal.mjs +22 -0
- package/esm/rules/core/equal.mjs.map +1 -0
- package/esm/rules/core/forbidden.d.mts +10 -0
- package/esm/rules/core/forbidden.d.mts.map +1 -0
- package/esm/rules/core/forbidden.mjs +20 -0
- package/esm/rules/core/forbidden.mjs.map +1 -0
- package/esm/rules/core/index.mjs +7 -0
- package/esm/rules/core/required.d.mts +15 -0
- package/esm/rules/core/required.d.mts.map +1 -0
- package/esm/rules/core/required.mjs +36 -0
- package/esm/rules/core/required.mjs.map +1 -0
- package/esm/rules/core/union.d.mts +13 -0
- package/esm/rules/core/union.d.mts.map +1 -0
- package/esm/rules/core/union.mjs +30 -0
- package/esm/rules/core/union.mjs.map +1 -0
- package/esm/rules/core/when.d.mts +11 -0
- package/esm/rules/core/when.d.mts.map +1 -0
- package/esm/rules/core/when.mjs +36 -0
- package/esm/rules/core/when.mjs.map +1 -0
- package/esm/rules/date/date-comparison-rules.d.mts +29 -0
- package/esm/rules/date/date-comparison-rules.d.mts.map +1 -0
- package/esm/rules/date/date-comparison-rules.mjs +78 -0
- package/esm/rules/date/date-comparison-rules.mjs.map +1 -0
- package/esm/rules/date/date-day-rules.d.mts +25 -0
- package/esm/rules/date/date-day-rules.d.mts.map +1 -0
- package/esm/rules/date/date-day-rules.mjs +61 -0
- package/esm/rules/date/date-day-rules.mjs.map +1 -0
- package/esm/rules/date/date-field-comparison-rules.d.mts +32 -0
- package/esm/rules/date/date-field-comparison-rules.d.mts.map +1 -0
- package/esm/rules/date/date-field-comparison-rules.mjs +81 -0
- package/esm/rules/date/date-field-comparison-rules.mjs.map +1 -0
- package/esm/rules/date/date-period-rules.d.mts +127 -0
- package/esm/rules/date/date-period-rules.d.mts.map +1 -0
- package/esm/rules/date/date-period-rules.mjs +398 -0
- package/esm/rules/date/date-period-rules.mjs.map +1 -0
- package/esm/rules/date/date-relative-rules.d.mts +24 -0
- package/esm/rules/date/date-relative-rules.d.mts.map +1 -0
- package/esm/rules/date/date-relative-rules.mjs +55 -0
- package/esm/rules/date/date-relative-rules.mjs.map +1 -0
- package/esm/rules/date/date-special-rules.d.mts +24 -0
- package/esm/rules/date/date-special-rules.d.mts.map +1 -0
- package/esm/rules/date/date-special-rules.mjs +58 -0
- package/esm/rules/date/date-special-rules.mjs.map +1 -0
- package/esm/rules/date/date.d.mts +97 -0
- package/esm/rules/date/date.d.mts.map +1 -0
- package/esm/rules/date/date.mjs +234 -0
- package/esm/rules/date/date.mjs.map +1 -0
- package/esm/rules/date/index.mjs +9 -0
- package/esm/rules/file/dimensions.d.mts +30 -0
- package/esm/rules/file/dimensions.d.mts.map +1 -0
- package/esm/rules/file/dimensions.mjs +56 -0
- package/esm/rules/file/dimensions.mjs.map +1 -0
- package/esm/rules/file/file-size.d.mts +18 -0
- package/esm/rules/file/file-size.d.mts.map +1 -0
- package/esm/rules/file/file-size.mjs +33 -0
- package/esm/rules/file/file-size.mjs.map +1 -0
- package/esm/rules/file/index.mjs +4 -0
- package/esm/rules/index.mjs +57 -0
- package/esm/rules/length/index.mjs +3 -0
- package/esm/rules/length/length-rules.d.mts +53 -0
- package/esm/rules/length/length-rules.d.mts.map +1 -0
- package/esm/rules/length/length-rules.mjs +98 -0
- package/esm/rules/length/length-rules.mjs.map +1 -0
- package/esm/rules/number/index.mjs +3 -0
- package/esm/rules/number/number-rules.d.mts +69 -0
- package/esm/rules/number/number-rules.d.mts.map +1 -0
- package/esm/rules/number/number-rules.mjs +196 -0
- package/esm/rules/number/number-rules.mjs.map +1 -0
- package/esm/rules/scalar/accepted-rule.mjs +116 -0
- package/esm/rules/scalar/accepted-rule.mjs.map +1 -0
- package/esm/rules/scalar/declined-rule.mjs +116 -0
- package/esm/rules/scalar/declined-rule.mjs.map +1 -0
- package/esm/rules/scalar/index.mjs +4 -0
- package/esm/rules/string/alpha.d.mts +18 -0
- package/esm/rules/string/alpha.d.mts.map +1 -0
- package/esm/rules/string/alpha.mjs +41 -0
- package/esm/rules/string/alpha.mjs.map +1 -0
- package/esm/rules/string/credit-card.d.mts +10 -0
- package/esm/rules/string/credit-card.d.mts.map +1 -0
- package/esm/rules/string/credit-card.mjs +32 -0
- package/esm/rules/string/credit-card.mjs.map +1 -0
- package/esm/rules/string/email.d.mts +10 -0
- package/esm/rules/string/email.d.mts.map +1 -0
- package/esm/rules/string/email.mjs +20 -0
- package/esm/rules/string/email.mjs.map +1 -0
- package/esm/rules/string/id-formats.d.mts +54 -0
- package/esm/rules/string/id-formats.d.mts.map +1 -0
- package/esm/rules/string/id-formats.mjs +104 -0
- package/esm/rules/string/id-formats.mjs.map +1 -0
- package/esm/rules/string/index.mjs +13 -0
- package/esm/rules/string/ip.d.mts +18 -0
- package/esm/rules/string/ip.d.mts.map +1 -0
- package/esm/rules/string/ip.mjs +42 -0
- package/esm/rules/string/ip.mjs.map +1 -0
- package/esm/rules/string/matches.d.mts +12 -0
- package/esm/rules/string/matches.d.mts.map +1 -0
- package/esm/rules/string/matches.mjs +21 -0
- package/esm/rules/string/matches.mjs.map +1 -0
- package/esm/rules/string/pattern.d.mts +12 -0
- package/esm/rules/string/pattern.d.mts.map +1 -0
- package/esm/rules/string/pattern.mjs +20 -0
- package/esm/rules/string/pattern.mjs.map +1 -0
- package/esm/rules/string/string-comparison.d.mts +30 -0
- package/esm/rules/string/string-comparison.d.mts.map +1 -0
- package/esm/rules/string/string-comparison.mjs +56 -0
- package/esm/rules/string/string-comparison.mjs.map +1 -0
- package/esm/rules/string/strong-password-rule.d.mts +18 -0
- package/esm/rules/string/strong-password-rule.d.mts.map +1 -0
- package/esm/rules/string/strong-password-rule.mjs +31 -0
- package/esm/rules/string/strong-password-rule.mjs.map +1 -0
- package/esm/rules/string/url.d.mts +10 -0
- package/esm/rules/string/url.d.mts.map +1 -0
- package/esm/rules/string/url.mjs +23 -0
- package/esm/rules/string/url.mjs.map +1 -0
- package/esm/rules/string/without-whitespace.d.mts +10 -0
- package/esm/rules/string/without-whitespace.d.mts.map +1 -0
- package/esm/rules/string/without-whitespace.mjs +19 -0
- package/esm/rules/string/without-whitespace.mjs.map +1 -0
- package/esm/standard-schema/json-schema.d.mts +65 -0
- package/esm/standard-schema/json-schema.d.mts.map +1 -0
- package/esm/standard-schema/json-schema.mjs +81 -0
- package/esm/standard-schema/json-schema.mjs.map +1 -0
- package/esm/standard-schema/map-result.d.mts +22 -0
- package/esm/standard-schema/map-result.d.mts.map +1 -0
- package/esm/standard-schema/map-result.mjs +26 -0
- package/esm/standard-schema/map-result.mjs.map +1 -0
- package/esm/standard-schema/types.d.mts +96 -0
- package/esm/standard-schema/types.d.mts.map +1 -0
- package/esm/types/conditional-types.d.mts +15 -0
- package/esm/types/conditional-types.d.mts.map +1 -0
- package/esm/types/context-types.d.mts +41 -0
- package/esm/types/context-types.d.mts.map +1 -0
- package/esm/types/data-transformer-types.d.mts +29 -0
- package/esm/types/data-transformer-types.d.mts.map +1 -0
- package/esm/types/date-types.d.mts +12 -0
- package/esm/types/date-types.d.mts.map +1 -0
- package/esm/types/date-types.mjs +17 -0
- package/esm/types/date-types.mjs.map +1 -0
- package/esm/types/file.types.d.mts +8 -0
- package/esm/types/file.types.d.mts.map +1 -0
- package/esm/types/inference-types.d.mts +178 -0
- package/esm/types/inference-types.d.mts.map +1 -0
- package/esm/types/mutator-types.d.mts +27 -0
- package/esm/types/mutator-types.d.mts.map +1 -0
- package/esm/types/result-types.d.mts +16 -0
- package/esm/types/result-types.d.mts.map +1 -0
- package/esm/types/rule-types.d.mts +52 -0
- package/esm/types/rule-types.d.mts.map +1 -0
- package/esm/types/schema-types.d.mts +10 -0
- package/esm/types/schema-types.d.mts.map +1 -0
- package/esm/validators/any-validator.d.mts +33 -0
- package/esm/validators/any-validator.d.mts.map +1 -0
- package/esm/validators/any-validator.mjs +35 -0
- package/esm/validators/any-validator.mjs.map +1 -0
- package/esm/validators/array-validator.d.mts +82 -0
- package/esm/validators/array-validator.d.mts.map +1 -0
- package/esm/validators/array-validator.mjs +176 -0
- package/esm/validators/array-validator.mjs.map +1 -0
- package/esm/validators/base-validator.d.mts +491 -0
- package/esm/validators/base-validator.d.mts.map +1 -0
- package/esm/validators/base-validator.mjs +656 -0
- package/esm/validators/base-validator.mjs.map +1 -0
- package/esm/validators/boolean-validator.d.mts +71 -0
- package/esm/validators/boolean-validator.d.mts.map +1 -0
- package/esm/validators/boolean-validator.mjs +126 -0
- package/esm/validators/boolean-validator.mjs.map +1 -0
- package/esm/validators/computed-validator.d.mts +80 -0
- package/esm/validators/computed-validator.d.mts.map +1 -0
- package/esm/validators/computed-validator.mjs +116 -0
- package/esm/validators/computed-validator.mjs.map +1 -0
- package/esm/validators/date-validator.d.mts +336 -0
- package/esm/validators/date-validator.d.mts.map +1 -0
- package/esm/validators/date-validator.mjs +637 -0
- package/esm/validators/date-validator.mjs.map +1 -0
- package/esm/validators/discriminated-union-validator.d.mts +67 -0
- package/esm/validators/discriminated-union-validator.d.mts.map +1 -0
- package/esm/validators/discriminated-union-validator.mjs +125 -0
- package/esm/validators/discriminated-union-validator.mjs.map +1 -0
- package/esm/validators/float-validator.d.mts +12 -0
- package/esm/validators/float-validator.d.mts.map +1 -0
- package/esm/validators/float-validator.mjs +18 -0
- package/esm/validators/float-validator.mjs.map +1 -0
- package/esm/validators/index.d.mts +22 -0
- package/esm/validators/index.mjs +28 -0
- package/esm/validators/instanceof-validator.d.mts +48 -0
- package/esm/validators/instanceof-validator.d.mts.map +1 -0
- package/esm/validators/instanceof-validator.mjs +63 -0
- package/esm/validators/instanceof-validator.mjs.map +1 -0
- package/esm/validators/int-validator.d.mts +23 -0
- package/esm/validators/int-validator.d.mts.map +1 -0
- package/esm/validators/int-validator.mjs +30 -0
- package/esm/validators/int-validator.mjs.map +1 -0
- package/esm/validators/lazy-validator.d.mts +70 -0
- package/esm/validators/lazy-validator.d.mts.map +1 -0
- package/esm/validators/lazy-validator.mjs +85 -0
- package/esm/validators/lazy-validator.mjs.map +1 -0
- package/esm/validators/literal-validator.d.mts +52 -0
- package/esm/validators/literal-validator.d.mts.map +1 -0
- package/esm/validators/literal-validator.mjs +67 -0
- package/esm/validators/literal-validator.mjs.map +1 -0
- package/esm/validators/managed-validator.d.mts +42 -0
- package/esm/validators/managed-validator.d.mts.map +1 -0
- package/esm/validators/managed-validator.mjs +39 -0
- package/esm/validators/managed-validator.mjs.map +1 -0
- package/esm/validators/methods/equality-conditional-methods.d.mts +90 -0
- package/esm/validators/methods/equality-conditional-methods.d.mts.map +1 -0
- package/esm/validators/methods/equality-conditional-methods.mjs +129 -0
- package/esm/validators/methods/equality-conditional-methods.mjs.map +1 -0
- package/esm/validators/methods/forbidden-methods.d.mts +58 -0
- package/esm/validators/methods/forbidden-methods.d.mts.map +1 -0
- package/esm/validators/methods/forbidden-methods.mjs +131 -0
- package/esm/validators/methods/forbidden-methods.mjs.map +1 -0
- package/esm/validators/methods/present-methods.d.mts +102 -0
- package/esm/validators/methods/present-methods.d.mts.map +1 -0
- package/esm/validators/methods/present-methods.mjs +235 -0
- package/esm/validators/methods/present-methods.mjs.map +1 -0
- package/esm/validators/methods/required-methods.d.mts +193 -0
- package/esm/validators/methods/required-methods.d.mts.map +1 -0
- package/esm/validators/methods/required-methods.mjs +347 -0
- package/esm/validators/methods/required-methods.mjs.map +1 -0
- package/esm/validators/number-validator.d.mts +170 -0
- package/esm/validators/number-validator.d.mts.map +1 -0
- package/esm/validators/number-validator.mjs +303 -0
- package/esm/validators/number-validator.mjs.map +1 -0
- package/esm/validators/numeric-validator.d.mts +19 -0
- package/esm/validators/numeric-validator.d.mts.map +1 -0
- package/esm/validators/numeric-validator.mjs +27 -0
- package/esm/validators/numeric-validator.mjs.map +1 -0
- package/esm/validators/object-validator.d.mts +253 -0
- package/esm/validators/object-validator.d.mts.map +1 -0
- package/esm/validators/object-validator.mjs +440 -0
- package/esm/validators/object-validator.mjs.map +1 -0
- package/esm/validators/primitive-validator.d.mts +74 -0
- package/esm/validators/primitive-validator.d.mts.map +1 -0
- package/esm/validators/primitive-validator.mjs +89 -0
- package/esm/validators/primitive-validator.mjs.map +1 -0
- package/esm/validators/record-validator.d.mts +63 -0
- package/esm/validators/record-validator.d.mts.map +1 -0
- package/esm/validators/record-validator.mjs +111 -0
- package/esm/validators/record-validator.mjs.map +1 -0
- package/esm/validators/scalar-validator.d.mts +97 -0
- package/esm/validators/scalar-validator.d.mts.map +1 -0
- package/esm/validators/scalar-validator.mjs +172 -0
- package/esm/validators/scalar-validator.mjs.map +1 -0
- package/esm/validators/string-validator.d.mts +224 -0
- package/esm/validators/string-validator.d.mts.map +1 -0
- package/esm/validators/string-validator.mjs +443 -0
- package/esm/validators/string-validator.mjs.map +1 -0
- package/esm/validators/tuple-validator.d.mts +66 -0
- package/esm/validators/tuple-validator.d.mts.map +1 -0
- package/esm/validators/tuple-validator.mjs +133 -0
- package/esm/validators/tuple-validator.mjs.map +1 -0
- package/esm/validators/union-validator.d.mts +59 -0
- package/esm/validators/union-validator.d.mts.map +1 -0
- package/esm/validators/union-validator.mjs +66 -0
- package/esm/validators/union-validator.mjs.map +1 -0
- package/llms-full.txt +2175 -0
- package/llms.txt +17 -0
- package/package.json +37 -48
- package/skills/bridge-standard-schema/SKILL.md +138 -0
- package/skills/compose-seal-modifiers/SKILL.md +271 -0
- package/skills/define-structural-shape/SKILL.md +138 -0
- package/skills/define-structural-shape/array-methods.md +78 -0
- package/skills/define-structural-shape/object-methods.md +166 -0
- package/skills/extend-seal-with-plugins/SKILL.md +178 -0
- package/skills/generate-json-schema/SKILL.md +143 -0
- package/skills/handle-seal-errors/SKILL.md +148 -0
- package/skills/overview/SKILL.md +72 -0
- package/skills/pick-seal-primitive/SKILL.md +133 -0
- package/skills/pick-seal-primitive/boolean-methods.md +71 -0
- package/skills/pick-seal-primitive/date-methods.md +175 -0
- package/skills/pick-seal-primitive/number-methods.md +123 -0
- package/skills/pick-seal-primitive/string-methods.md +169 -0
- package/skills/seal-basics/SKILL.md +106 -0
- package/cjs/config.d.ts +0 -48
- package/cjs/config.d.ts.map +0 -1
- package/cjs/config.js +0 -42
- package/cjs/config.js.map +0 -1
- package/cjs/factory/index.d.ts +0 -3
- package/cjs/factory/index.d.ts.map +0 -1
- package/cjs/factory/validate.d.ts +0 -8
- package/cjs/factory/validate.d.ts.map +0 -1
- package/cjs/factory/validate.js +0 -23
- package/cjs/factory/validate.js.map +0 -1
- package/cjs/factory/validators.d.ts +0 -56
- package/cjs/factory/validators.d.ts.map +0 -1
- package/cjs/factory/validators.js +0 -47
- package/cjs/factory/validators.js.map +0 -1
- package/cjs/helpers/date-helpers.d.ts +0 -16
- package/cjs/helpers/date-helpers.d.ts.map +0 -1
- package/cjs/helpers/date-helpers.js +0 -20
- package/cjs/helpers/date-helpers.js.map +0 -1
- package/cjs/helpers/file.utils.d.ts +0 -8
- package/cjs/helpers/file.utils.d.ts.map +0 -1
- package/cjs/helpers/file.utils.js +0 -29
- package/cjs/helpers/file.utils.js.map +0 -1
- package/cjs/helpers/get-field-value.d.ts +0 -37
- package/cjs/helpers/get-field-value.d.ts.map +0 -1
- package/cjs/helpers/get-field-value.js +0 -40
- package/cjs/helpers/get-field-value.js.map +0 -1
- package/cjs/helpers/index.d.ts +0 -6
- package/cjs/helpers/index.d.ts.map +0 -1
- package/cjs/helpers/is-empty-value.d.ts +0 -2
- package/cjs/helpers/is-empty-value.d.ts.map +0 -1
- package/cjs/helpers/is-empty-value.js +0 -3
- package/cjs/helpers/is-empty-value.js.map +0 -1
- package/cjs/helpers/path-helpers.d.ts +0 -5
- package/cjs/helpers/path-helpers.d.ts.map +0 -1
- package/cjs/helpers/path-helpers.js +0 -8
- package/cjs/helpers/path-helpers.js.map +0 -1
- package/cjs/helpers/validation-helpers.d.ts +0 -26
- package/cjs/helpers/validation-helpers.d.ts.map +0 -1
- package/cjs/helpers/validation-helpers.js +0 -74
- package/cjs/helpers/validation-helpers.js.map +0 -1
- package/cjs/index.d.ts +0 -30
- package/cjs/index.d.ts.map +0 -1
- package/cjs/index.js +0 -1
- package/cjs/index.js.map +0 -1
- package/cjs/mutators/array-mutators.d.ts +0 -12
- package/cjs/mutators/array-mutators.d.ts.map +0 -1
- package/cjs/mutators/array-mutators.js +0 -37
- package/cjs/mutators/array-mutators.js.map +0 -1
- package/cjs/mutators/date-mutators.d.ts +0 -39
- package/cjs/mutators/date-mutators.d.ts.map +0 -1
- package/cjs/mutators/date-mutators.js +0 -120
- package/cjs/mutators/date-mutators.js.map +0 -1
- package/cjs/mutators/index.d.ts +0 -7
- package/cjs/mutators/index.d.ts.map +0 -1
- package/cjs/mutators/number-mutators.d.ts +0 -22
- package/cjs/mutators/number-mutators.d.ts.map +0 -1
- package/cjs/mutators/number-mutators.js +0 -53
- package/cjs/mutators/number-mutators.js.map +0 -1
- package/cjs/mutators/object-mutators.d.ts +0 -8
- package/cjs/mutators/object-mutators.d.ts.map +0 -1
- package/cjs/mutators/object-mutators.js +0 -48
- package/cjs/mutators/object-mutators.js.map +0 -1
- package/cjs/mutators/scalar-mutators.d.ts +0 -3
- package/cjs/mutators/scalar-mutators.d.ts.map +0 -1
- package/cjs/mutators/scalar-mutators.js +0 -6
- package/cjs/mutators/scalar-mutators.js.map +0 -1
- package/cjs/mutators/string-mutators.d.ts +0 -72
- package/cjs/mutators/string-mutators.d.ts.map +0 -1
- package/cjs/mutators/string-mutators.js +0 -193
- package/cjs/mutators/string-mutators.js.map +0 -1
- package/cjs/plugins/index.d.ts +0 -7
- package/cjs/plugins/index.d.ts.map +0 -1
- package/cjs/plugins/plugin-system.d.ts +0 -71
- package/cjs/plugins/plugin-system.d.ts.map +0 -1
- package/cjs/plugins/plugin-system.js +0 -67
- package/cjs/plugins/plugin-system.js.map +0 -1
- package/cjs/rules/array/array-rules.d.ts +0 -12
- package/cjs/rules/array/array-rules.d.ts.map +0 -1
- package/cjs/rules/array/array-rules.js +0 -45
- package/cjs/rules/array/array-rules.js.map +0 -1
- package/cjs/rules/array/index.d.ts +0 -2
- package/cjs/rules/array/index.d.ts.map +0 -1
- package/cjs/rules/color/color-rules.d.ts +0 -30
- package/cjs/rules/color/color-rules.d.ts.map +0 -1
- package/cjs/rules/color/color-rules.js +0 -120
- package/cjs/rules/color/color-rules.js.map +0 -1
- package/cjs/rules/color/index.d.ts +0 -2
- package/cjs/rules/color/index.d.ts.map +0 -1
- package/cjs/rules/common/enum.d.ts +0 -26
- package/cjs/rules/common/enum.d.ts.map +0 -1
- package/cjs/rules/common/enum.js +0 -69
- package/cjs/rules/common/enum.js.map +0 -1
- package/cjs/rules/common/equals-field-rules.d.ts +0 -18
- package/cjs/rules/common/equals-field-rules.d.ts.map +0 -1
- package/cjs/rules/common/equals-field-rules.js +0 -39
- package/cjs/rules/common/equals-field-rules.js.map +0 -1
- package/cjs/rules/common/index.d.ts +0 -5
- package/cjs/rules/common/index.d.ts.map +0 -1
- package/cjs/rules/common/type-rules.d.ts +0 -38
- package/cjs/rules/common/type-rules.d.ts.map +0 -1
- package/cjs/rules/common/type-rules.js +0 -117
- package/cjs/rules/common/type-rules.js.map +0 -1
- package/cjs/rules/common/unknown-key.d.ts +0 -9
- package/cjs/rules/common/unknown-key.d.ts.map +0 -1
- package/cjs/rules/common/unknown-key.js +0 -17
- package/cjs/rules/common/unknown-key.js.map +0 -1
- package/cjs/rules/conditional/forbidden-if-rules.d.ts +0 -54
- package/cjs/rules/conditional/forbidden-if-rules.d.ts.map +0 -1
- package/cjs/rules/conditional/forbidden-if-rules.js +0 -118
- package/cjs/rules/conditional/forbidden-if-rules.js.map +0 -1
- package/cjs/rules/conditional/index.d.ts +0 -11
- package/cjs/rules/conditional/index.d.ts.map +0 -1
- package/cjs/rules/conditional/present-if-rules.d.ts +0 -45
- package/cjs/rules/conditional/present-if-rules.d.ts.map +0 -1
- package/cjs/rules/conditional/present-if-rules.js +0 -100
- package/cjs/rules/conditional/present-if-rules.js.map +0 -1
- package/cjs/rules/conditional/present-unless-rules.d.ts +0 -11
- package/cjs/rules/conditional/present-unless-rules.d.ts.map +0 -1
- package/cjs/rules/conditional/present-unless-rules.js +0 -22
- package/cjs/rules/conditional/present-unless-rules.js.map +0 -1
- package/cjs/rules/conditional/present-with-rules.d.ts +0 -26
- package/cjs/rules/conditional/present-with-rules.d.ts.map +0 -1
- package/cjs/rules/conditional/present-with-rules.js +0 -70
- package/cjs/rules/conditional/present-with-rules.js.map +0 -1
- package/cjs/rules/conditional/present-without-rules.d.ts +0 -26
- package/cjs/rules/conditional/present-without-rules.d.ts.map +0 -1
- package/cjs/rules/conditional/present-without-rules.js +0 -70
- package/cjs/rules/conditional/present-without-rules.js.map +0 -1
- package/cjs/rules/conditional/required-if-rules.d.ts +0 -77
- package/cjs/rules/conditional/required-if-rules.d.ts.map +0 -1
- package/cjs/rules/conditional/required-if-rules.js +0 -205
- package/cjs/rules/conditional/required-if-rules.js.map +0 -1
- package/cjs/rules/conditional/required-unless-rules.d.ts +0 -11
- package/cjs/rules/conditional/required-unless-rules.d.ts.map +0 -1
- package/cjs/rules/conditional/required-unless-rules.js +0 -22
- package/cjs/rules/conditional/required-unless-rules.js.map +0 -1
- package/cjs/rules/conditional/required-when-rule.d.ts +0 -18
- package/cjs/rules/conditional/required-when-rule.d.ts.map +0 -1
- package/cjs/rules/conditional/required-when-rule.js +0 -26
- package/cjs/rules/conditional/required-when-rule.js.map +0 -1
- package/cjs/rules/conditional/required-with-rules.d.ts +0 -26
- package/cjs/rules/conditional/required-with-rules.d.ts.map +0 -1
- package/cjs/rules/conditional/required-with-rules.js +0 -64
- package/cjs/rules/conditional/required-with-rules.js.map +0 -1
- package/cjs/rules/conditional/required-without-rules.d.ts +0 -26
- package/cjs/rules/conditional/required-without-rules.d.ts.map +0 -1
- package/cjs/rules/conditional/required-without-rules.js +0 -64
- package/cjs/rules/conditional/required-without-rules.js.map +0 -1
- package/cjs/rules/core/equal.d.ts +0 -8
- package/cjs/rules/core/equal.d.ts.map +0 -1
- package/cjs/rules/core/equal.js +0 -14
- package/cjs/rules/core/equal.js.map +0 -1
- package/cjs/rules/core/forbidden.d.ts +0 -6
- package/cjs/rules/core/forbidden.d.ts.map +0 -1
- package/cjs/rules/core/forbidden.js +0 -13
- package/cjs/rules/core/forbidden.js.map +0 -1
- package/cjs/rules/core/index.d.ts +0 -6
- package/cjs/rules/core/index.d.ts.map +0 -1
- package/cjs/rules/core/required.d.ts +0 -11
- package/cjs/rules/core/required.d.ts.map +0 -1
- package/cjs/rules/core/required.js +0 -31
- package/cjs/rules/core/required.js.map +0 -1
- package/cjs/rules/core/union.d.ts +0 -9
- package/cjs/rules/core/union.d.ts.map +0 -1
- package/cjs/rules/core/union.js +0 -40
- package/cjs/rules/core/union.js.map +0 -1
- package/cjs/rules/core/when.d.ts +0 -6
- package/cjs/rules/core/when.d.ts.map +0 -1
- package/cjs/rules/core/when.js +0 -40
- package/cjs/rules/core/when.js.map +0 -1
- package/cjs/rules/date/date-comparison-rules.d.ts +0 -25
- package/cjs/rules/date/date-comparison-rules.d.ts.map +0 -1
- package/cjs/rules/date/date-comparison-rules.js +0 -80
- package/cjs/rules/date/date-comparison-rules.js.map +0 -1
- package/cjs/rules/date/date-day-rules.d.ts +0 -21
- package/cjs/rules/date/date-day-rules.d.ts.map +0 -1
- package/cjs/rules/date/date-day-rules.js +0 -68
- package/cjs/rules/date/date-day-rules.js.map +0 -1
- package/cjs/rules/date/date-field-comparison-rules.d.ts +0 -28
- package/cjs/rules/date/date-field-comparison-rules.d.ts.map +0 -1
- package/cjs/rules/date/date-field-comparison-rules.js +0 -94
- package/cjs/rules/date/date-field-comparison-rules.js.map +0 -1
- package/cjs/rules/date/date-period-rules.d.ts +0 -124
- package/cjs/rules/date/date-period-rules.d.ts.map +0 -1
- package/cjs/rules/date/date-period-rules.js +0 -605
- package/cjs/rules/date/date-period-rules.js.map +0 -1
- package/cjs/rules/date/date-relative-rules.d.ts +0 -20
- package/cjs/rules/date/date-relative-rules.d.ts.map +0 -1
- package/cjs/rules/date/date-relative-rules.js +0 -60
- package/cjs/rules/date/date-relative-rules.js.map +0 -1
- package/cjs/rules/date/date-special-rules.d.ts +0 -20
- package/cjs/rules/date/date-special-rules.d.ts.map +0 -1
- package/cjs/rules/date/date-special-rules.js +0 -71
- package/cjs/rules/date/date-special-rules.js.map +0 -1
- package/cjs/rules/date/date.d.ts +0 -93
- package/cjs/rules/date/date.d.ts.map +0 -1
- package/cjs/rules/date/date.js +0 -288
- package/cjs/rules/date/date.js.map +0 -1
- package/cjs/rules/date/index.d.ts +0 -8
- package/cjs/rules/date/index.d.ts.map +0 -1
- package/cjs/rules/file/dimensions.d.ts +0 -26
- package/cjs/rules/file/dimensions.d.ts.map +0 -1
- package/cjs/rules/file/dimensions.js +0 -60
- package/cjs/rules/file/dimensions.js.map +0 -1
- package/cjs/rules/file/file-size.d.ts +0 -14
- package/cjs/rules/file/file-size.d.ts.map +0 -1
- package/cjs/rules/file/file-size.js +0 -30
- package/cjs/rules/file/file-size.js.map +0 -1
- package/cjs/rules/file/index.d.ts +0 -11
- package/cjs/rules/file/index.d.ts.map +0 -1
- package/cjs/rules/index.d.ts +0 -19
- package/cjs/rules/index.d.ts.map +0 -1
- package/cjs/rules/length/index.d.ts +0 -2
- package/cjs/rules/length/index.d.ts.map +0 -1
- package/cjs/rules/length/length-rules.d.ts +0 -49
- package/cjs/rules/length/length-rules.d.ts.map +0 -1
- package/cjs/rules/length/length-rules.js +0 -107
- package/cjs/rules/length/length-rules.js.map +0 -1
- package/cjs/rules/number/index.d.ts +0 -2
- package/cjs/rules/number/index.d.ts.map +0 -1
- package/cjs/rules/number/number-rules.d.ts +0 -65
- package/cjs/rules/number/number-rules.d.ts.map +0 -1
- package/cjs/rules/number/number-rules.js +0 -245
- package/cjs/rules/number/number-rules.js.map +0 -1
- package/cjs/rules/scalar/accepted-rule.d.ts +0 -39
- package/cjs/rules/scalar/accepted-rule.d.ts.map +0 -1
- package/cjs/rules/scalar/accepted-rule.js +0 -117
- package/cjs/rules/scalar/accepted-rule.js.map +0 -1
- package/cjs/rules/scalar/declined-rule.d.ts +0 -39
- package/cjs/rules/scalar/declined-rule.d.ts.map +0 -1
- package/cjs/rules/scalar/declined-rule.js +0 -117
- package/cjs/rules/scalar/declined-rule.js.map +0 -1
- package/cjs/rules/scalar/index.d.ts +0 -3
- package/cjs/rules/scalar/index.d.ts.map +0 -1
- package/cjs/rules/string/alpha.d.ts +0 -14
- package/cjs/rules/string/alpha.d.ts.map +0 -1
- package/cjs/rules/string/alpha.js +0 -39
- package/cjs/rules/string/alpha.js.map +0 -1
- package/cjs/rules/string/credit-card.d.ts +0 -6
- package/cjs/rules/string/credit-card.d.ts.map +0 -1
- package/cjs/rules/string/credit-card.js +0 -31
- package/cjs/rules/string/credit-card.js.map +0 -1
- package/cjs/rules/string/email.d.ts +0 -6
- package/cjs/rules/string/email.d.ts.map +0 -1
- package/cjs/rules/string/email.js +0 -13
- package/cjs/rules/string/email.js.map +0 -1
- package/cjs/rules/string/index.d.ts +0 -17
- package/cjs/rules/string/index.d.ts.map +0 -1
- package/cjs/rules/string/ip.d.ts +0 -14
- package/cjs/rules/string/ip.d.ts.map +0 -1
- package/cjs/rules/string/ip.js +0 -39
- package/cjs/rules/string/ip.js.map +0 -1
- package/cjs/rules/string/matches.d.ts +0 -8
- package/cjs/rules/string/matches.d.ts.map +0 -1
- package/cjs/rules/string/matches.js +0 -15
- package/cjs/rules/string/matches.js.map +0 -1
- package/cjs/rules/string/pattern.d.ts +0 -8
- package/cjs/rules/string/pattern.d.ts.map +0 -1
- package/cjs/rules/string/pattern.js +0 -14
- package/cjs/rules/string/pattern.js.map +0 -1
- package/cjs/rules/string/string-comparison.d.ts +0 -26
- package/cjs/rules/string/string-comparison.d.ts.map +0 -1
- package/cjs/rules/string/string-comparison.js +0 -56
- package/cjs/rules/string/string-comparison.js.map +0 -1
- package/cjs/rules/string/strong-password-rule.d.ts +0 -14
- package/cjs/rules/string/strong-password-rule.d.ts.map +0 -1
- package/cjs/rules/string/strong-password-rule.js +0 -38
- package/cjs/rules/string/strong-password-rule.js.map +0 -1
- package/cjs/rules/string/url.d.ts +0 -6
- package/cjs/rules/string/url.d.ts.map +0 -1
- package/cjs/rules/string/url.js +0 -16
- package/cjs/rules/string/url.js.map +0 -1
- package/cjs/rules/string/without-whitespace.d.ts +0 -6
- package/cjs/rules/string/without-whitespace.d.ts.map +0 -1
- package/cjs/rules/string/without-whitespace.js +0 -13
- package/cjs/rules/string/without-whitespace.js.map +0 -1
- package/cjs/standard-schema/index.d.ts +0 -4
- package/cjs/standard-schema/index.d.ts.map +0 -1
- package/cjs/standard-schema/json-schema.d.ts +0 -61
- package/cjs/standard-schema/json-schema.d.ts.map +0 -1
- package/cjs/standard-schema/json-schema.js +0 -85
- package/cjs/standard-schema/json-schema.js.map +0 -1
- package/cjs/standard-schema/map-result.d.ts +0 -18
- package/cjs/standard-schema/map-result.d.ts.map +0 -1
- package/cjs/standard-schema/map-result.js +0 -27
- package/cjs/standard-schema/map-result.js.map +0 -1
- package/cjs/standard-schema/types.d.ts +0 -93
- package/cjs/standard-schema/types.d.ts.map +0 -1
- package/cjs/types/conditional-types.d.ts +0 -15
- package/cjs/types/conditional-types.d.ts.map +0 -1
- package/cjs/types/context-types.d.ts +0 -47
- package/cjs/types/context-types.d.ts.map +0 -1
- package/cjs/types/data-transformer-types.d.ts +0 -25
- package/cjs/types/data-transformer-types.d.ts.map +0 -1
- package/cjs/types/date-types.d.ts +0 -9
- package/cjs/types/date-types.d.ts.map +0 -1
- package/cjs/types/date-types.js +0 -12
- package/cjs/types/date-types.js.map +0 -1
- package/cjs/types/file.types.d.ts +0 -5
- package/cjs/types/file.types.d.ts.map +0 -1
- package/cjs/types/index.d.ts +0 -11
- package/cjs/types/index.d.ts.map +0 -1
- package/cjs/types/inference-types.d.ts +0 -32
- package/cjs/types/inference-types.d.ts.map +0 -1
- package/cjs/types/mutator-types.d.ts +0 -27
- package/cjs/types/mutator-types.d.ts.map +0 -1
- package/cjs/types/result-types.d.ts +0 -19
- package/cjs/types/result-types.d.ts.map +0 -1
- package/cjs/types/rule-types.d.ts +0 -58
- package/cjs/types/rule-types.d.ts.map +0 -1
- package/cjs/types/schema-types.d.ts +0 -6
- package/cjs/types/schema-types.d.ts.map +0 -1
- package/cjs/validators/any-validator.d.ts +0 -29
- package/cjs/validators/any-validator.d.ts.map +0 -1
- package/cjs/validators/any-validator.js +0 -31
- package/cjs/validators/any-validator.js.map +0 -1
- package/cjs/validators/array-validator.d.ts +0 -72
- package/cjs/validators/array-validator.d.ts.map +0 -1
- package/cjs/validators/array-validator.js +0 -162
- package/cjs/validators/array-validator.js.map +0 -1
- package/cjs/validators/base-validator.d.ts +0 -425
- package/cjs/validators/base-validator.d.ts.map +0 -1
- package/cjs/validators/base-validator.js +0 -637
- package/cjs/validators/base-validator.js.map +0 -1
- package/cjs/validators/boolean-validator.d.ts +0 -67
- package/cjs/validators/boolean-validator.d.ts.map +0 -1
- package/cjs/validators/boolean-validator.js +0 -105
- package/cjs/validators/boolean-validator.js.map +0 -1
- package/cjs/validators/computed-validator.d.ts +0 -75
- package/cjs/validators/computed-validator.d.ts.map +0 -1
- package/cjs/validators/computed-validator.js +0 -124
- package/cjs/validators/computed-validator.js.map +0 -1
- package/cjs/validators/date-validator.d.ts +0 -330
- package/cjs/validators/date-validator.d.ts.map +0 -1
- package/cjs/validators/date-validator.js +0 -614
- package/cjs/validators/date-validator.js.map +0 -1
- package/cjs/validators/float-validator.d.ts +0 -8
- package/cjs/validators/float-validator.d.ts.map +0 -1
- package/cjs/validators/float-validator.js +0 -9
- package/cjs/validators/float-validator.js.map +0 -1
- package/cjs/validators/index.d.ts +0 -31
- package/cjs/validators/index.d.ts.map +0 -1
- package/cjs/validators/int-validator.d.ts +0 -19
- package/cjs/validators/int-validator.d.ts.map +0 -1
- package/cjs/validators/int-validator.js +0 -21
- package/cjs/validators/int-validator.js.map +0 -1
- package/cjs/validators/managed-validator.d.ts +0 -38
- package/cjs/validators/managed-validator.d.ts.map +0 -1
- package/cjs/validators/managed-validator.js +0 -34
- package/cjs/validators/managed-validator.js.map +0 -1
- package/cjs/validators/methods/equality-conditional-methods.d.ts +0 -88
- package/cjs/validators/methods/equality-conditional-methods.d.ts.map +0 -1
- package/cjs/validators/methods/equality-conditional-methods.js +0 -118
- package/cjs/validators/methods/equality-conditional-methods.js.map +0 -1
- package/cjs/validators/methods/forbidden-methods.d.ts +0 -58
- package/cjs/validators/methods/forbidden-methods.d.ts.map +0 -1
- package/cjs/validators/methods/forbidden-methods.js +0 -122
- package/cjs/validators/methods/forbidden-methods.js.map +0 -1
- package/cjs/validators/methods/present-methods.d.ts +0 -102
- package/cjs/validators/methods/present-methods.d.ts.map +0 -1
- package/cjs/validators/methods/present-methods.js +0 -229
- package/cjs/validators/methods/present-methods.js.map +0 -1
- package/cjs/validators/methods/required-methods.d.ts +0 -174
- package/cjs/validators/methods/required-methods.d.ts.map +0 -1
- package/cjs/validators/methods/required-methods.js +0 -246
- package/cjs/validators/methods/required-methods.js.map +0 -1
- package/cjs/validators/number-validator.d.ts +0 -166
- package/cjs/validators/number-validator.d.ts.map +0 -1
- package/cjs/validators/number-validator.js +0 -307
- package/cjs/validators/number-validator.js.map +0 -1
- package/cjs/validators/numeric-validator.d.ts +0 -15
- package/cjs/validators/numeric-validator.d.ts.map +0 -1
- package/cjs/validators/numeric-validator.js +0 -18
- package/cjs/validators/numeric-validator.js.map +0 -1
- package/cjs/validators/object-validator.d.ts +0 -233
- package/cjs/validators/object-validator.d.ts.map +0 -1
- package/cjs/validators/object-validator.js +0 -517
- package/cjs/validators/object-validator.js.map +0 -1
- package/cjs/validators/primitive-validator.d.ts +0 -70
- package/cjs/validators/primitive-validator.d.ts.map +0 -1
- package/cjs/validators/primitive-validator.js +0 -80
- package/cjs/validators/primitive-validator.js.map +0 -1
- package/cjs/validators/record-validator.d.ts +0 -54
- package/cjs/validators/record-validator.d.ts.map +0 -1
- package/cjs/validators/record-validator.js +0 -100
- package/cjs/validators/record-validator.js.map +0 -1
- package/cjs/validators/scalar-validator.d.ts +0 -93
- package/cjs/validators/scalar-validator.d.ts.map +0 -1
- package/cjs/validators/scalar-validator.js +0 -149
- package/cjs/validators/scalar-validator.js.map +0 -1
- package/cjs/validators/string-validator.d.ts +0 -189
- package/cjs/validators/string-validator.d.ts.map +0 -1
- package/cjs/validators/string-validator.js +0 -387
- package/cjs/validators/string-validator.js.map +0 -1
- package/cjs/validators/tuple-validator.d.ts +0 -56
- package/cjs/validators/tuple-validator.d.ts.map +0 -1
- package/cjs/validators/tuple-validator.js +0 -121
- package/cjs/validators/tuple-validator.js.map +0 -1
- package/cjs/validators/union-validator.d.ts +0 -55
- package/cjs/validators/union-validator.d.ts.map +0 -1
- package/cjs/validators/union-validator.js +0 -60
- package/cjs/validators/union-validator.js.map +0 -1
- package/esm/config.d.ts +0 -48
- package/esm/config.d.ts.map +0 -1
- package/esm/config.js +0 -42
- package/esm/config.js.map +0 -1
- package/esm/factory/index.d.ts +0 -3
- package/esm/factory/index.d.ts.map +0 -1
- package/esm/factory/validate.d.ts +0 -8
- package/esm/factory/validate.d.ts.map +0 -1
- package/esm/factory/validate.js +0 -23
- package/esm/factory/validate.js.map +0 -1
- package/esm/factory/validators.d.ts +0 -56
- package/esm/factory/validators.d.ts.map +0 -1
- package/esm/factory/validators.js +0 -47
- package/esm/factory/validators.js.map +0 -1
- package/esm/helpers/date-helpers.d.ts +0 -16
- package/esm/helpers/date-helpers.d.ts.map +0 -1
- package/esm/helpers/date-helpers.js +0 -20
- package/esm/helpers/date-helpers.js.map +0 -1
- package/esm/helpers/file.utils.d.ts +0 -8
- package/esm/helpers/file.utils.d.ts.map +0 -1
- package/esm/helpers/file.utils.js +0 -29
- package/esm/helpers/file.utils.js.map +0 -1
- package/esm/helpers/get-field-value.d.ts +0 -37
- package/esm/helpers/get-field-value.d.ts.map +0 -1
- package/esm/helpers/get-field-value.js +0 -40
- package/esm/helpers/get-field-value.js.map +0 -1
- package/esm/helpers/index.d.ts +0 -6
- package/esm/helpers/index.d.ts.map +0 -1
- package/esm/helpers/is-empty-value.d.ts +0 -2
- package/esm/helpers/is-empty-value.d.ts.map +0 -1
- package/esm/helpers/is-empty-value.js +0 -3
- package/esm/helpers/is-empty-value.js.map +0 -1
- package/esm/helpers/path-helpers.d.ts +0 -5
- package/esm/helpers/path-helpers.d.ts.map +0 -1
- package/esm/helpers/path-helpers.js +0 -8
- package/esm/helpers/path-helpers.js.map +0 -1
- package/esm/helpers/validation-helpers.d.ts +0 -26
- package/esm/helpers/validation-helpers.d.ts.map +0 -1
- package/esm/helpers/validation-helpers.js +0 -74
- package/esm/helpers/validation-helpers.js.map +0 -1
- package/esm/index.d.ts +0 -30
- package/esm/index.d.ts.map +0 -1
- package/esm/index.js +0 -1
- package/esm/index.js.map +0 -1
- package/esm/mutators/array-mutators.d.ts +0 -12
- package/esm/mutators/array-mutators.d.ts.map +0 -1
- package/esm/mutators/array-mutators.js +0 -37
- package/esm/mutators/array-mutators.js.map +0 -1
- package/esm/mutators/date-mutators.d.ts +0 -39
- package/esm/mutators/date-mutators.d.ts.map +0 -1
- package/esm/mutators/date-mutators.js +0 -120
- package/esm/mutators/date-mutators.js.map +0 -1
- package/esm/mutators/index.d.ts +0 -7
- package/esm/mutators/index.d.ts.map +0 -1
- package/esm/mutators/number-mutators.d.ts +0 -22
- package/esm/mutators/number-mutators.d.ts.map +0 -1
- package/esm/mutators/number-mutators.js +0 -53
- package/esm/mutators/number-mutators.js.map +0 -1
- package/esm/mutators/object-mutators.d.ts +0 -8
- package/esm/mutators/object-mutators.d.ts.map +0 -1
- package/esm/mutators/object-mutators.js +0 -48
- package/esm/mutators/object-mutators.js.map +0 -1
- package/esm/mutators/scalar-mutators.d.ts +0 -3
- package/esm/mutators/scalar-mutators.d.ts.map +0 -1
- package/esm/mutators/scalar-mutators.js +0 -6
- package/esm/mutators/scalar-mutators.js.map +0 -1
- package/esm/mutators/string-mutators.d.ts +0 -72
- package/esm/mutators/string-mutators.d.ts.map +0 -1
- package/esm/mutators/string-mutators.js +0 -193
- package/esm/mutators/string-mutators.js.map +0 -1
- package/esm/plugins/index.d.ts +0 -7
- package/esm/plugins/index.d.ts.map +0 -1
- package/esm/plugins/plugin-system.d.ts +0 -71
- package/esm/plugins/plugin-system.d.ts.map +0 -1
- package/esm/plugins/plugin-system.js +0 -67
- package/esm/plugins/plugin-system.js.map +0 -1
- package/esm/rules/array/array-rules.d.ts +0 -12
- package/esm/rules/array/array-rules.d.ts.map +0 -1
- package/esm/rules/array/array-rules.js +0 -45
- package/esm/rules/array/array-rules.js.map +0 -1
- package/esm/rules/array/index.d.ts +0 -2
- package/esm/rules/array/index.d.ts.map +0 -1
- package/esm/rules/color/color-rules.d.ts +0 -30
- package/esm/rules/color/color-rules.d.ts.map +0 -1
- package/esm/rules/color/color-rules.js +0 -120
- package/esm/rules/color/color-rules.js.map +0 -1
- package/esm/rules/color/index.d.ts +0 -2
- package/esm/rules/color/index.d.ts.map +0 -1
- package/esm/rules/common/enum.d.ts +0 -26
- package/esm/rules/common/enum.d.ts.map +0 -1
- package/esm/rules/common/enum.js +0 -69
- package/esm/rules/common/enum.js.map +0 -1
- package/esm/rules/common/equals-field-rules.d.ts +0 -18
- package/esm/rules/common/equals-field-rules.d.ts.map +0 -1
- package/esm/rules/common/equals-field-rules.js +0 -39
- package/esm/rules/common/equals-field-rules.js.map +0 -1
- package/esm/rules/common/index.d.ts +0 -5
- package/esm/rules/common/index.d.ts.map +0 -1
- package/esm/rules/common/type-rules.d.ts +0 -38
- package/esm/rules/common/type-rules.d.ts.map +0 -1
- package/esm/rules/common/type-rules.js +0 -117
- package/esm/rules/common/type-rules.js.map +0 -1
- package/esm/rules/common/unknown-key.d.ts +0 -9
- package/esm/rules/common/unknown-key.d.ts.map +0 -1
- package/esm/rules/common/unknown-key.js +0 -17
- package/esm/rules/common/unknown-key.js.map +0 -1
- package/esm/rules/conditional/forbidden-if-rules.d.ts +0 -54
- package/esm/rules/conditional/forbidden-if-rules.d.ts.map +0 -1
- package/esm/rules/conditional/forbidden-if-rules.js +0 -118
- package/esm/rules/conditional/forbidden-if-rules.js.map +0 -1
- package/esm/rules/conditional/index.d.ts +0 -11
- package/esm/rules/conditional/index.d.ts.map +0 -1
- package/esm/rules/conditional/present-if-rules.d.ts +0 -45
- package/esm/rules/conditional/present-if-rules.d.ts.map +0 -1
- package/esm/rules/conditional/present-if-rules.js +0 -100
- package/esm/rules/conditional/present-if-rules.js.map +0 -1
- package/esm/rules/conditional/present-unless-rules.d.ts +0 -11
- package/esm/rules/conditional/present-unless-rules.d.ts.map +0 -1
- package/esm/rules/conditional/present-unless-rules.js +0 -22
- package/esm/rules/conditional/present-unless-rules.js.map +0 -1
- package/esm/rules/conditional/present-with-rules.d.ts +0 -26
- package/esm/rules/conditional/present-with-rules.d.ts.map +0 -1
- package/esm/rules/conditional/present-with-rules.js +0 -70
- package/esm/rules/conditional/present-with-rules.js.map +0 -1
- package/esm/rules/conditional/present-without-rules.d.ts +0 -26
- package/esm/rules/conditional/present-without-rules.d.ts.map +0 -1
- package/esm/rules/conditional/present-without-rules.js +0 -70
- package/esm/rules/conditional/present-without-rules.js.map +0 -1
- package/esm/rules/conditional/required-if-rules.d.ts +0 -77
- package/esm/rules/conditional/required-if-rules.d.ts.map +0 -1
- package/esm/rules/conditional/required-if-rules.js +0 -205
- package/esm/rules/conditional/required-if-rules.js.map +0 -1
- package/esm/rules/conditional/required-unless-rules.d.ts +0 -11
- package/esm/rules/conditional/required-unless-rules.d.ts.map +0 -1
- package/esm/rules/conditional/required-unless-rules.js +0 -22
- package/esm/rules/conditional/required-unless-rules.js.map +0 -1
- package/esm/rules/conditional/required-when-rule.d.ts +0 -18
- package/esm/rules/conditional/required-when-rule.d.ts.map +0 -1
- package/esm/rules/conditional/required-when-rule.js +0 -26
- package/esm/rules/conditional/required-when-rule.js.map +0 -1
- package/esm/rules/conditional/required-with-rules.d.ts +0 -26
- package/esm/rules/conditional/required-with-rules.d.ts.map +0 -1
- package/esm/rules/conditional/required-with-rules.js +0 -64
- package/esm/rules/conditional/required-with-rules.js.map +0 -1
- package/esm/rules/conditional/required-without-rules.d.ts +0 -26
- package/esm/rules/conditional/required-without-rules.d.ts.map +0 -1
- package/esm/rules/conditional/required-without-rules.js +0 -64
- package/esm/rules/conditional/required-without-rules.js.map +0 -1
- package/esm/rules/core/equal.d.ts +0 -8
- package/esm/rules/core/equal.d.ts.map +0 -1
- package/esm/rules/core/equal.js +0 -14
- package/esm/rules/core/equal.js.map +0 -1
- package/esm/rules/core/forbidden.d.ts +0 -6
- package/esm/rules/core/forbidden.d.ts.map +0 -1
- package/esm/rules/core/forbidden.js +0 -13
- package/esm/rules/core/forbidden.js.map +0 -1
- package/esm/rules/core/index.d.ts +0 -6
- package/esm/rules/core/index.d.ts.map +0 -1
- package/esm/rules/core/required.d.ts +0 -11
- package/esm/rules/core/required.d.ts.map +0 -1
- package/esm/rules/core/required.js +0 -31
- package/esm/rules/core/required.js.map +0 -1
- package/esm/rules/core/union.d.ts +0 -9
- package/esm/rules/core/union.d.ts.map +0 -1
- package/esm/rules/core/union.js +0 -40
- package/esm/rules/core/union.js.map +0 -1
- package/esm/rules/core/when.d.ts +0 -6
- package/esm/rules/core/when.d.ts.map +0 -1
- package/esm/rules/core/when.js +0 -40
- package/esm/rules/core/when.js.map +0 -1
- package/esm/rules/date/date-comparison-rules.d.ts +0 -25
- package/esm/rules/date/date-comparison-rules.d.ts.map +0 -1
- package/esm/rules/date/date-comparison-rules.js +0 -80
- package/esm/rules/date/date-comparison-rules.js.map +0 -1
- package/esm/rules/date/date-day-rules.d.ts +0 -21
- package/esm/rules/date/date-day-rules.d.ts.map +0 -1
- package/esm/rules/date/date-day-rules.js +0 -68
- package/esm/rules/date/date-day-rules.js.map +0 -1
- package/esm/rules/date/date-field-comparison-rules.d.ts +0 -28
- package/esm/rules/date/date-field-comparison-rules.d.ts.map +0 -1
- package/esm/rules/date/date-field-comparison-rules.js +0 -94
- package/esm/rules/date/date-field-comparison-rules.js.map +0 -1
- package/esm/rules/date/date-period-rules.d.ts +0 -124
- package/esm/rules/date/date-period-rules.d.ts.map +0 -1
- package/esm/rules/date/date-period-rules.js +0 -605
- package/esm/rules/date/date-period-rules.js.map +0 -1
- package/esm/rules/date/date-relative-rules.d.ts +0 -20
- package/esm/rules/date/date-relative-rules.d.ts.map +0 -1
- package/esm/rules/date/date-relative-rules.js +0 -60
- package/esm/rules/date/date-relative-rules.js.map +0 -1
- package/esm/rules/date/date-special-rules.d.ts +0 -20
- package/esm/rules/date/date-special-rules.d.ts.map +0 -1
- package/esm/rules/date/date-special-rules.js +0 -71
- package/esm/rules/date/date-special-rules.js.map +0 -1
- package/esm/rules/date/date.d.ts +0 -93
- package/esm/rules/date/date.d.ts.map +0 -1
- package/esm/rules/date/date.js +0 -288
- package/esm/rules/date/date.js.map +0 -1
- package/esm/rules/date/index.d.ts +0 -8
- package/esm/rules/date/index.d.ts.map +0 -1
- package/esm/rules/file/dimensions.d.ts +0 -26
- package/esm/rules/file/dimensions.d.ts.map +0 -1
- package/esm/rules/file/dimensions.js +0 -60
- package/esm/rules/file/dimensions.js.map +0 -1
- package/esm/rules/file/file-size.d.ts +0 -14
- package/esm/rules/file/file-size.d.ts.map +0 -1
- package/esm/rules/file/file-size.js +0 -30
- package/esm/rules/file/file-size.js.map +0 -1
- package/esm/rules/file/index.d.ts +0 -11
- package/esm/rules/file/index.d.ts.map +0 -1
- package/esm/rules/index.d.ts +0 -19
- package/esm/rules/index.d.ts.map +0 -1
- package/esm/rules/length/index.d.ts +0 -2
- package/esm/rules/length/index.d.ts.map +0 -1
- package/esm/rules/length/length-rules.d.ts +0 -49
- package/esm/rules/length/length-rules.d.ts.map +0 -1
- package/esm/rules/length/length-rules.js +0 -107
- package/esm/rules/length/length-rules.js.map +0 -1
- package/esm/rules/number/index.d.ts +0 -2
- package/esm/rules/number/index.d.ts.map +0 -1
- package/esm/rules/number/number-rules.d.ts +0 -65
- package/esm/rules/number/number-rules.d.ts.map +0 -1
- package/esm/rules/number/number-rules.js +0 -245
- package/esm/rules/number/number-rules.js.map +0 -1
- package/esm/rules/scalar/accepted-rule.d.ts +0 -39
- package/esm/rules/scalar/accepted-rule.d.ts.map +0 -1
- package/esm/rules/scalar/accepted-rule.js +0 -117
- package/esm/rules/scalar/accepted-rule.js.map +0 -1
- package/esm/rules/scalar/declined-rule.d.ts +0 -39
- package/esm/rules/scalar/declined-rule.d.ts.map +0 -1
- package/esm/rules/scalar/declined-rule.js +0 -117
- package/esm/rules/scalar/declined-rule.js.map +0 -1
- package/esm/rules/scalar/index.d.ts +0 -3
- package/esm/rules/scalar/index.d.ts.map +0 -1
- package/esm/rules/string/alpha.d.ts +0 -14
- package/esm/rules/string/alpha.d.ts.map +0 -1
- package/esm/rules/string/alpha.js +0 -39
- package/esm/rules/string/alpha.js.map +0 -1
- package/esm/rules/string/credit-card.d.ts +0 -6
- package/esm/rules/string/credit-card.d.ts.map +0 -1
- package/esm/rules/string/credit-card.js +0 -31
- package/esm/rules/string/credit-card.js.map +0 -1
- package/esm/rules/string/email.d.ts +0 -6
- package/esm/rules/string/email.d.ts.map +0 -1
- package/esm/rules/string/email.js +0 -13
- package/esm/rules/string/email.js.map +0 -1
- package/esm/rules/string/index.d.ts +0 -17
- package/esm/rules/string/index.d.ts.map +0 -1
- package/esm/rules/string/ip.d.ts +0 -14
- package/esm/rules/string/ip.d.ts.map +0 -1
- package/esm/rules/string/ip.js +0 -39
- package/esm/rules/string/ip.js.map +0 -1
- package/esm/rules/string/matches.d.ts +0 -8
- package/esm/rules/string/matches.d.ts.map +0 -1
- package/esm/rules/string/matches.js +0 -15
- package/esm/rules/string/matches.js.map +0 -1
- package/esm/rules/string/pattern.d.ts +0 -8
- package/esm/rules/string/pattern.d.ts.map +0 -1
- package/esm/rules/string/pattern.js +0 -14
- package/esm/rules/string/pattern.js.map +0 -1
- package/esm/rules/string/string-comparison.d.ts +0 -26
- package/esm/rules/string/string-comparison.d.ts.map +0 -1
- package/esm/rules/string/string-comparison.js +0 -56
- package/esm/rules/string/string-comparison.js.map +0 -1
- package/esm/rules/string/strong-password-rule.d.ts +0 -14
- package/esm/rules/string/strong-password-rule.d.ts.map +0 -1
- package/esm/rules/string/strong-password-rule.js +0 -38
- package/esm/rules/string/strong-password-rule.js.map +0 -1
- package/esm/rules/string/url.d.ts +0 -6
- package/esm/rules/string/url.d.ts.map +0 -1
- package/esm/rules/string/url.js +0 -16
- package/esm/rules/string/url.js.map +0 -1
- package/esm/rules/string/without-whitespace.d.ts +0 -6
- package/esm/rules/string/without-whitespace.d.ts.map +0 -1
- package/esm/rules/string/without-whitespace.js +0 -13
- package/esm/rules/string/without-whitespace.js.map +0 -1
- package/esm/standard-schema/index.d.ts +0 -4
- package/esm/standard-schema/index.d.ts.map +0 -1
- package/esm/standard-schema/json-schema.d.ts +0 -61
- package/esm/standard-schema/json-schema.d.ts.map +0 -1
- package/esm/standard-schema/json-schema.js +0 -85
- package/esm/standard-schema/json-schema.js.map +0 -1
- package/esm/standard-schema/map-result.d.ts +0 -18
- package/esm/standard-schema/map-result.d.ts.map +0 -1
- package/esm/standard-schema/map-result.js +0 -27
- package/esm/standard-schema/map-result.js.map +0 -1
- package/esm/standard-schema/types.d.ts +0 -93
- package/esm/standard-schema/types.d.ts.map +0 -1
- package/esm/types/conditional-types.d.ts +0 -15
- package/esm/types/conditional-types.d.ts.map +0 -1
- package/esm/types/context-types.d.ts +0 -47
- package/esm/types/context-types.d.ts.map +0 -1
- package/esm/types/data-transformer-types.d.ts +0 -25
- package/esm/types/data-transformer-types.d.ts.map +0 -1
- package/esm/types/date-types.d.ts +0 -9
- package/esm/types/date-types.d.ts.map +0 -1
- package/esm/types/date-types.js +0 -12
- package/esm/types/date-types.js.map +0 -1
- package/esm/types/file.types.d.ts +0 -5
- package/esm/types/file.types.d.ts.map +0 -1
- package/esm/types/index.d.ts +0 -11
- package/esm/types/index.d.ts.map +0 -1
- package/esm/types/inference-types.d.ts +0 -32
- package/esm/types/inference-types.d.ts.map +0 -1
- package/esm/types/mutator-types.d.ts +0 -27
- package/esm/types/mutator-types.d.ts.map +0 -1
- package/esm/types/result-types.d.ts +0 -19
- package/esm/types/result-types.d.ts.map +0 -1
- package/esm/types/rule-types.d.ts +0 -58
- package/esm/types/rule-types.d.ts.map +0 -1
- package/esm/types/schema-types.d.ts +0 -6
- package/esm/types/schema-types.d.ts.map +0 -1
- package/esm/validators/any-validator.d.ts +0 -29
- package/esm/validators/any-validator.d.ts.map +0 -1
- package/esm/validators/any-validator.js +0 -31
- package/esm/validators/any-validator.js.map +0 -1
- package/esm/validators/array-validator.d.ts +0 -72
- package/esm/validators/array-validator.d.ts.map +0 -1
- package/esm/validators/array-validator.js +0 -162
- package/esm/validators/array-validator.js.map +0 -1
- package/esm/validators/base-validator.d.ts +0 -425
- package/esm/validators/base-validator.d.ts.map +0 -1
- package/esm/validators/base-validator.js +0 -637
- package/esm/validators/base-validator.js.map +0 -1
- package/esm/validators/boolean-validator.d.ts +0 -67
- package/esm/validators/boolean-validator.d.ts.map +0 -1
- package/esm/validators/boolean-validator.js +0 -105
- package/esm/validators/boolean-validator.js.map +0 -1
- package/esm/validators/computed-validator.d.ts +0 -75
- package/esm/validators/computed-validator.d.ts.map +0 -1
- package/esm/validators/computed-validator.js +0 -124
- package/esm/validators/computed-validator.js.map +0 -1
- package/esm/validators/date-validator.d.ts +0 -330
- package/esm/validators/date-validator.d.ts.map +0 -1
- package/esm/validators/date-validator.js +0 -614
- package/esm/validators/date-validator.js.map +0 -1
- package/esm/validators/float-validator.d.ts +0 -8
- package/esm/validators/float-validator.d.ts.map +0 -1
- package/esm/validators/float-validator.js +0 -9
- package/esm/validators/float-validator.js.map +0 -1
- package/esm/validators/index.d.ts +0 -31
- package/esm/validators/index.d.ts.map +0 -1
- package/esm/validators/int-validator.d.ts +0 -19
- package/esm/validators/int-validator.d.ts.map +0 -1
- package/esm/validators/int-validator.js +0 -21
- package/esm/validators/int-validator.js.map +0 -1
- package/esm/validators/managed-validator.d.ts +0 -38
- package/esm/validators/managed-validator.d.ts.map +0 -1
- package/esm/validators/managed-validator.js +0 -34
- package/esm/validators/managed-validator.js.map +0 -1
- package/esm/validators/methods/equality-conditional-methods.d.ts +0 -88
- package/esm/validators/methods/equality-conditional-methods.d.ts.map +0 -1
- package/esm/validators/methods/equality-conditional-methods.js +0 -118
- package/esm/validators/methods/equality-conditional-methods.js.map +0 -1
- package/esm/validators/methods/forbidden-methods.d.ts +0 -58
- package/esm/validators/methods/forbidden-methods.d.ts.map +0 -1
- package/esm/validators/methods/forbidden-methods.js +0 -122
- package/esm/validators/methods/forbidden-methods.js.map +0 -1
- package/esm/validators/methods/present-methods.d.ts +0 -102
- package/esm/validators/methods/present-methods.d.ts.map +0 -1
- package/esm/validators/methods/present-methods.js +0 -229
- package/esm/validators/methods/present-methods.js.map +0 -1
- package/esm/validators/methods/required-methods.d.ts +0 -174
- package/esm/validators/methods/required-methods.d.ts.map +0 -1
- package/esm/validators/methods/required-methods.js +0 -246
- package/esm/validators/methods/required-methods.js.map +0 -1
- package/esm/validators/number-validator.d.ts +0 -166
- package/esm/validators/number-validator.d.ts.map +0 -1
- package/esm/validators/number-validator.js +0 -307
- package/esm/validators/number-validator.js.map +0 -1
- package/esm/validators/numeric-validator.d.ts +0 -15
- package/esm/validators/numeric-validator.d.ts.map +0 -1
- package/esm/validators/numeric-validator.js +0 -18
- package/esm/validators/numeric-validator.js.map +0 -1
- package/esm/validators/object-validator.d.ts +0 -233
- package/esm/validators/object-validator.d.ts.map +0 -1
- package/esm/validators/object-validator.js +0 -517
- package/esm/validators/object-validator.js.map +0 -1
- package/esm/validators/primitive-validator.d.ts +0 -70
- package/esm/validators/primitive-validator.d.ts.map +0 -1
- package/esm/validators/primitive-validator.js +0 -80
- package/esm/validators/primitive-validator.js.map +0 -1
- package/esm/validators/record-validator.d.ts +0 -54
- package/esm/validators/record-validator.d.ts.map +0 -1
- package/esm/validators/record-validator.js +0 -100
- package/esm/validators/record-validator.js.map +0 -1
- package/esm/validators/scalar-validator.d.ts +0 -93
- package/esm/validators/scalar-validator.d.ts.map +0 -1
- package/esm/validators/scalar-validator.js +0 -149
- package/esm/validators/scalar-validator.js.map +0 -1
- package/esm/validators/string-validator.d.ts +0 -189
- package/esm/validators/string-validator.d.ts.map +0 -1
- package/esm/validators/string-validator.js +0 -387
- package/esm/validators/string-validator.js.map +0 -1
- package/esm/validators/tuple-validator.d.ts +0 -56
- package/esm/validators/tuple-validator.d.ts.map +0 -1
- package/esm/validators/tuple-validator.js +0 -121
- package/esm/validators/tuple-validator.js.map +0 -1
- package/esm/validators/union-validator.d.ts +0 -55
- package/esm/validators/union-validator.d.ts.map +0 -1
- package/esm/validators/union-validator.js +0 -60
- package/esm/validators/union-validator.js.map +0 -1
package/cjs/factory/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/factory/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { ValidationResult } from "../types";
|
|
2
|
-
import type { BaseValidator } from "../validators";
|
|
3
|
-
import { type ValidateOptions } from "./validators";
|
|
4
|
-
/**
|
|
5
|
-
* Validate data against a schema
|
|
6
|
-
*/
|
|
7
|
-
export declare const validate: <T extends BaseValidator<unknown, unknown>>(schema: T, data: any, { context: extendedContext, ...configurations }?: ValidateOptions) => Promise<ValidationResult>;
|
|
8
|
-
//# sourceMappingURL=validate.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"validate.d.ts","sourceRoot":"","sources":["../../src/factory/validate.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAiB,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAChE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AAEpD;;GAEG;AACH,eAAO,MAAM,QAAQ,+DAEb,GAAG,oDACwC,eAAe,KAC/D,QAAQ,gBAAgB,CAmB1B,CAAC"}
|
package/cjs/factory/validate.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
'use strict';var config=require('../config.js');/**
|
|
2
|
-
* Validate data against a schema
|
|
3
|
-
*/
|
|
4
|
-
const validate = async (schema, data, // Temporarily use any - will fix type inference
|
|
5
|
-
{ context: extendedContext, ...configurations } = config.getSealConfig() || {}) => {
|
|
6
|
-
const context = {
|
|
7
|
-
allValues: data,
|
|
8
|
-
parent: null,
|
|
9
|
-
value: data,
|
|
10
|
-
key: "",
|
|
11
|
-
path: "",
|
|
12
|
-
context: extendedContext,
|
|
13
|
-
rootContext: extendedContext,
|
|
14
|
-
translateRule(ruleTranslation) {
|
|
15
|
-
return configurations.translateRule?.(ruleTranslation) ?? "";
|
|
16
|
-
},
|
|
17
|
-
translateAttribute(attributeTranslation) {
|
|
18
|
-
return configurations.translateAttribute?.(attributeTranslation) ?? "";
|
|
19
|
-
},
|
|
20
|
-
configurations,
|
|
21
|
-
};
|
|
22
|
-
return await schema.validate(data, context);
|
|
23
|
-
};exports.validate=validate;//# sourceMappingURL=validate.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"validate.js","sources":["../../src/factory/validate.ts"],"sourcesContent":[null],"names":["getSealConfig"],"mappings":"gDAKA;;AAEG;AACU,MAAA,QAAQ,GAAG,OACtB,MAAS,EACT,IAAS;AACT,EAAE,OAAO,EAAE,eAAe,EAAE,GAAG,cAAc,EAAsB,GAAAA,oBAAa,EAAE,IAAI,EAAE,KAC3D;AAC7B,IAAA,MAAM,OAAO,GAAkB;AAC7B,QAAA,SAAS,EAAE,IAAI;AACf,QAAA,MAAM,EAAE,IAAI;AACZ,QAAA,KAAK,EAAE,IAAI;AACX,QAAA,GAAG,EAAE,EAAE;AACP,QAAA,IAAI,EAAE,EAAE;AACR,QAAA,OAAO,EAAE,eAAe;AACxB,QAAA,WAAW,EAAE,eAAe;AAC5B,QAAA,aAAa,CAAC,eAAe,EAAA;YAC3B,OAAO,cAAc,CAAC,aAAa,GAAG,eAAe,CAAC,IAAI,EAAE,CAAC;SAC9D;AACD,QAAA,kBAAkB,CAAC,oBAAoB,EAAA;YACrC,OAAO,cAAc,CAAC,kBAAkB,GAAG,oBAAoB,CAAC,IAAI,EAAE,CAAC;SACxE;QACD,cAAc;KACf,CAAC;IAEF,OAAO,MAAM,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;AAC9C"}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { SealConfig } from "../config";
|
|
2
|
-
import type { Schema, SchemaContext, ValidationResult } from "../types";
|
|
3
|
-
import { AnyValidator } from "../validators/any-validator";
|
|
4
|
-
import { ArrayValidator } from "../validators/array-validator";
|
|
5
|
-
import type { BaseValidator } from "../validators/base-validator";
|
|
6
|
-
import { BooleanValidator } from "../validators/boolean-validator";
|
|
7
|
-
import { ComputedValidator } from "../validators/computed-validator";
|
|
8
|
-
import { DateValidator } from "../validators/date-validator";
|
|
9
|
-
import { FloatValidator } from "../validators/float-validator";
|
|
10
|
-
import { IntValidator } from "../validators/int-validator";
|
|
11
|
-
import { ManagedValidator } from "../validators/managed-validator";
|
|
12
|
-
import { NumberValidator } from "../validators/number-validator";
|
|
13
|
-
import { NumericValidator } from "../validators/numeric-validator";
|
|
14
|
-
import { ObjectValidator } from "../validators/object-validator";
|
|
15
|
-
import { RecordValidator } from "../validators/record-validator";
|
|
16
|
-
import { ScalarValidator } from "../validators/scalar-validator";
|
|
17
|
-
import { StringValidator } from "../validators/string-validator";
|
|
18
|
-
import { TupleValidator } from "../validators/tuple-validator";
|
|
19
|
-
import { UnionValidator } from "../validators/union-validator";
|
|
20
|
-
/**
|
|
21
|
-
* Seal factory object - creates instances of validators
|
|
22
|
-
*
|
|
23
|
-
* Use 'v' to create validation schemas (seals) for your data
|
|
24
|
-
*/
|
|
25
|
-
export declare const v: ValidatorV;
|
|
26
|
-
export type ValidateOptions = {
|
|
27
|
-
context?: Record<string, any>;
|
|
28
|
-
} & SealConfig;
|
|
29
|
-
export interface ValidatorV {
|
|
30
|
-
object: <T extends Schema>(schema: T, errorMessage?: string) => ObjectValidator<T>;
|
|
31
|
-
any: () => AnyValidator;
|
|
32
|
-
array: <T extends BaseValidator>(validator: T, errorMessage?: string) => ArrayValidator & {
|
|
33
|
-
validator: T;
|
|
34
|
-
};
|
|
35
|
-
record: <T extends BaseValidator>(validator?: T, errorMessage?: string) => RecordValidator & {
|
|
36
|
-
valueValidator: T;
|
|
37
|
-
};
|
|
38
|
-
tuple: <T extends BaseValidator[]>(validators: T, errorMessage?: string) => TupleValidator & {
|
|
39
|
-
validators: T;
|
|
40
|
-
};
|
|
41
|
-
date: (errorMessage?: string) => DateValidator;
|
|
42
|
-
string: (errorMessage?: string) => StringValidator;
|
|
43
|
-
email: (errorMessage?: string) => StringValidator;
|
|
44
|
-
enum: (values: any, errorMessage?: string) => ScalarValidator;
|
|
45
|
-
number: (errorMessage?: string) => NumberValidator;
|
|
46
|
-
numeric: (errorMessage?: string) => NumericValidator;
|
|
47
|
-
int: (errorMessage?: string) => IntValidator;
|
|
48
|
-
float: (errorMessage?: string) => FloatValidator;
|
|
49
|
-
boolean: (errorMessage?: string) => BooleanValidator;
|
|
50
|
-
scalar: (errorMessage?: string) => ScalarValidator;
|
|
51
|
-
union: (validators: BaseValidator[], errorMessage?: string) => UnionValidator;
|
|
52
|
-
computed: <TResult = any>(callback: (data: any, context: SchemaContext) => TResult | Promise<TResult>, resultValidator?: BaseValidator) => ComputedValidator<TResult>;
|
|
53
|
-
managed: <TResult = any>(callback?: (context: SchemaContext) => TResult | Promise<TResult>, resultValidator?: BaseValidator) => ManagedValidator<TResult>;
|
|
54
|
-
validate: <T extends BaseValidator>(schema: T, data: any, options?: ValidateOptions) => Promise<ValidationResult>;
|
|
55
|
-
}
|
|
56
|
-
//# sourceMappingURL=validators.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"validators.d.ts","sourceRoot":"","sources":["../../src/factory/validators.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,KAAK,EAAE,MAAM,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AACxE,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAClE,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAG/D;;;;GAIG;AACH,eAAO,MAAM,CAAC,EAAE,UA8EU,CAAC;AAE3B,MAAM,MAAM,eAAe,GAAG;IAC5B,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC/B,GAAG,UAAU,CAAC;AAEf,MAAM,WAAW,UAAU;IACzB,MAAM,EAAE,CAAC,CAAC,SAAS,MAAM,EAAE,MAAM,EAAE,CAAC,EAAE,YAAY,CAAC,EAAE,MAAM,KAAK,eAAe,CAAC,CAAC,CAAC,CAAC;IACnF,GAAG,EAAE,MAAM,YAAY,CAAC;IACxB,KAAK,EAAE,CAAC,CAAC,SAAS,aAAa,EAC7B,SAAS,EAAE,CAAC,EACZ,YAAY,CAAC,EAAE,MAAM,KAClB,cAAc,GAAG;QACpB,SAAS,EAAE,CAAC,CAAC;KACd,CAAC;IACF,MAAM,EAAE,CAAC,CAAC,SAAS,aAAa,EAC9B,SAAS,CAAC,EAAE,CAAC,EACb,YAAY,CAAC,EAAE,MAAM,KAClB,eAAe,GAAG;QACrB,cAAc,EAAE,CAAC,CAAC;KACnB,CAAC;IACF,KAAK,EAAE,CAAC,CAAC,SAAS,aAAa,EAAE,EAC/B,UAAU,EAAE,CAAC,EACb,YAAY,CAAC,EAAE,MAAM,KAClB,cAAc,GAAG;QACpB,UAAU,EAAE,CAAC,CAAC;KACf,CAAC;IACF,IAAI,EAAE,CAAC,YAAY,CAAC,EAAE,MAAM,KAAK,aAAa,CAAC;IAC/C,MAAM,EAAE,CAAC,YAAY,CAAC,EAAE,MAAM,KAAK,eAAe,CAAC;IACnD,KAAK,EAAE,CAAC,YAAY,CAAC,EAAE,MAAM,KAAK,eAAe,CAAC;IAClD,IAAI,EAAE,CAAC,MAAM,EAAE,GAAG,EAAE,YAAY,CAAC,EAAE,MAAM,KAAK,eAAe,CAAC;IAC9D,MAAM,EAAE,CAAC,YAAY,CAAC,EAAE,MAAM,KAAK,eAAe,CAAC;IACnD,OAAO,EAAE,CAAC,YAAY,CAAC,EAAE,MAAM,KAAK,gBAAgB,CAAC;IACrD,GAAG,EAAE,CAAC,YAAY,CAAC,EAAE,MAAM,KAAK,YAAY,CAAC;IAC7C,KAAK,EAAE,CAAC,YAAY,CAAC,EAAE,MAAM,KAAK,cAAc,CAAC;IACjD,OAAO,EAAE,CAAC,YAAY,CAAC,EAAE,MAAM,KAAK,gBAAgB,CAAC;IACrD,MAAM,EAAE,CAAC,YAAY,CAAC,EAAE,MAAM,KAAK,eAAe,CAAC;IACnD,KAAK,EAAE,CAAC,UAAU,EAAE,aAAa,EAAE,EAAE,YAAY,CAAC,EAAE,MAAM,KAAK,cAAc,CAAC;IAC9E,QAAQ,EAAE,CAAC,OAAO,GAAG,GAAG,EACtB,QAAQ,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,OAAO,EAAE,aAAa,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,EAC3E,eAAe,CAAC,EAAE,aAAa,KAC5B,iBAAiB,CAAC,OAAO,CAAC,CAAC;IAChC,OAAO,EAAE,CAAC,OAAO,GAAG,GAAG,EACrB,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,aAAa,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,EACjE,eAAe,CAAC,EAAE,aAAa,KAC5B,gBAAgB,CAAC,OAAO,CAAC,CAAC;IAC/B,QAAQ,EAAE,CAAC,CAAC,SAAS,aAAa,EAChC,MAAM,EAAE,CAAC,EACT,IAAI,EAAE,GAAG,EACT,OAAO,CAAC,EAAE,eAAe,KACtB,OAAO,CAAC,gBAAgB,CAAC,CAAC;CAChC"}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
'use strict';var anyValidator=require('../validators/any-validator.js'),arrayValidator=require('../validators/array-validator.js'),booleanValidator=require('../validators/boolean-validator.js'),computedValidator=require('../validators/computed-validator.js'),dateValidator=require('../validators/date-validator.js'),floatValidator=require('../validators/float-validator.js'),intValidator=require('../validators/int-validator.js'),managedValidator=require('../validators/managed-validator.js'),numberValidator=require('../validators/number-validator.js'),numericValidator=require('../validators/numeric-validator.js'),objectValidator=require('../validators/object-validator.js'),recordValidator=require('../validators/record-validator.js'),scalarValidator=require('../validators/scalar-validator.js'),stringValidator=require('../validators/string-validator.js'),tupleValidator=require('../validators/tuple-validator.js'),unionValidator=require('../validators/union-validator.js'),validate=require('./validate.js');/**
|
|
2
|
-
* Seal factory object - creates instances of validators
|
|
3
|
-
*
|
|
4
|
-
* Use 'v' to create validation schemas (seals) for your data
|
|
5
|
-
*/
|
|
6
|
-
const v = {
|
|
7
|
-
/** Create an object validator */
|
|
8
|
-
object: (schema, errorMessage) => new objectValidator.ObjectValidator(schema, errorMessage),
|
|
9
|
-
/** Create an any validator */
|
|
10
|
-
any: () => new anyValidator.AnyValidator(),
|
|
11
|
-
/** Create an array validator */
|
|
12
|
-
array: (validator, errorMessage) => new arrayValidator.ArrayValidator(validator, errorMessage),
|
|
13
|
-
/** Create a record validator - object with dynamic keys and consistent value types */
|
|
14
|
-
record: (validator, errorMessage) => new recordValidator.RecordValidator(validator || v.any(), errorMessage),
|
|
15
|
-
/** Create a tuple validator - fixed-length array with position-specific types */
|
|
16
|
-
tuple: (validators, errorMessage) => new tupleValidator.TupleValidator(validators, errorMessage),
|
|
17
|
-
/** Create a date validator */
|
|
18
|
-
date: (errorMessage) => new dateValidator.DateValidator(errorMessage),
|
|
19
|
-
/** Create a string validator */
|
|
20
|
-
string: (errorMessage) => new stringValidator.StringValidator(errorMessage),
|
|
21
|
-
/** Create an email validator */
|
|
22
|
-
email: (emailErrorMessage, errorMessage) => new stringValidator.StringValidator(errorMessage).email(emailErrorMessage),
|
|
23
|
-
/** Create an enum validator */
|
|
24
|
-
enum: (values, errorMessage) => Array.isArray(values)
|
|
25
|
-
? new stringValidator.StringValidator().oneOf(values, errorMessage)
|
|
26
|
-
: new scalarValidator.ScalarValidator().enum(values, errorMessage),
|
|
27
|
-
/** Create a number validator */
|
|
28
|
-
number: (errorMessage) => new numberValidator.NumberValidator(errorMessage),
|
|
29
|
-
/** Create a numeric validator */
|
|
30
|
-
numeric: (errorMessage) => new numericValidator.NumericValidator(errorMessage),
|
|
31
|
-
/** Create an integer validator */
|
|
32
|
-
int: (errorMessage) => new intValidator.IntValidator(errorMessage),
|
|
33
|
-
/** Create a float validator */
|
|
34
|
-
float: (errorMessage) => new floatValidator.FloatValidator(errorMessage),
|
|
35
|
-
/** Create a boolean validator */
|
|
36
|
-
boolean: (errorMessage) => new booleanValidator.BooleanValidator(errorMessage),
|
|
37
|
-
/** Create a scalar validator */
|
|
38
|
-
scalar: (errorMessage) => new scalarValidator.ScalarValidator(errorMessage),
|
|
39
|
-
/** Create a union validator - validates against multiple types */
|
|
40
|
-
union: (validators, errorMessage) => new unionValidator.UnionValidator().union(validators, errorMessage),
|
|
41
|
-
/** Create a computed field validator - derives value from other validated fields */
|
|
42
|
-
computed: (callback, resultValidator) => new computedValidator.ComputedValidator(callback, resultValidator),
|
|
43
|
-
/** Create a managed field validator - framework-injected value */
|
|
44
|
-
managed: (callback, resultValidator) => new managedValidator.ManagedValidator(callback, resultValidator),
|
|
45
|
-
/** Validate data against a schema */
|
|
46
|
-
validate: validate.validate,
|
|
47
|
-
};exports.v=v;//# sourceMappingURL=validators.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"validators.js","sources":["../../src/factory/validators.ts"],"sourcesContent":[null],"names":["ObjectValidator","AnyValidator","ArrayValidator","RecordValidator","TupleValidator","DateValidator","StringValidator","ScalarValidator","NumberValidator","NumericValidator","IntValidator","FloatValidator","BooleanValidator","UnionValidator","ComputedValidator","ManagedValidator","validateFunction"],"mappings":"q/BAqBA;;;;AAIG;AACU,MAAA,CAAC,GAAe;;AAE3B,IAAA,MAAM,EAAE,CAAmB,MAAS,EAAE,YAAqB,KACzD,IAAIA,+BAAe,CAAI,MAAM,EAAE,YAAY,CAAC;;AAG9C,IAAA,GAAG,EAAE,MAAM,IAAIC,yBAAY,EAAE;;AAG7B,IAAA,KAAK,EAAE,CAA0B,SAAY,EAAE,YAAqB,KAClE,IAAIC,6BAAc,CAAC,SAAS,EAAE,YAAY,CAEzC;;AAGH,IAAA,MAAM,EAAE,CAA0B,SAAa,EAAE,YAAqB,KACpE,IAAIC,+BAAe,CAAC,SAAS,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,YAAY,CAErD;;AAGH,IAAA,KAAK,EAAE,CAA4B,UAAa,EAAE,YAAqB,KACrE,IAAIC,6BAAc,CAAC,UAAU,EAAE,YAAY,CAE1C;;IAGH,IAAI,EAAE,CAAC,YAAqB,KAAK,IAAIC,2BAAa,CAAC,YAAY,CAAC;;IAGhE,MAAM,EAAE,CAAC,YAAqB,KAAK,IAAIC,+BAAe,CAAC,YAAY,CAAC;;AAGpE,IAAA,KAAK,EAAE,CAAC,iBAA0B,EAAE,YAAqB,KACvD,IAAIA,+BAAe,CAAC,YAAY,CAAC,CAAC,KAAK,CAAC,iBAAiB,CAAC;;AAG5D,IAAA,IAAI,EAAE,CAAC,MAAW,EAAE,YAAqB,KACvC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC;UACjB,IAAIA,+BAAe,EAAE,CAAC,KAAK,CAAC,MAAM,EAAE,YAAY,CAAC;UACjD,IAAIC,+BAAe,EAAE,CAAC,IAAI,CAAC,MAAM,EAAE,YAAY,CAAC;;IAGtD,MAAM,EAAE,CAAC,YAAqB,KAAK,IAAIC,+BAAe,CAAC,YAAY,CAAC;;IAGpE,OAAO,EAAE,CAAC,YAAqB,KAAK,IAAIC,iCAAgB,CAAC,YAAY,CAAC;;IAGtE,GAAG,EAAE,CAAC,YAAqB,KAAK,IAAIC,yBAAY,CAAC,YAAY,CAAC;;IAG9D,KAAK,EAAE,CAAC,YAAqB,KAAK,IAAIC,6BAAc,CAAC,YAAY,CAAC;;IAGlE,OAAO,EAAE,CAAC,YAAqB,KAAK,IAAIC,iCAAgB,CAAC,YAAY,CAAC;;IAGtE,MAAM,EAAE,CAAC,YAAqB,KAAK,IAAIL,+BAAe,CAAC,YAAY,CAAC;;AAGpE,IAAA,KAAK,EAAE,CAAC,UAA2B,EAAE,YAAqB,KACxD,IAAIM,6BAAc,EAAE,CAAC,KAAK,CAAC,UAAU,EAAE,YAAY,CAAC;;AAGtD,IAAA,QAAQ,EAAE,CACR,QAA2E,EAC3E,eAA+B,KAC5B,IAAIC,mCAAiB,CAAU,QAAQ,EAAE,eAAe,CAAC;;AAG9D,IAAA,OAAO,EAAE,CACP,QAAgE,EAChE,eAA+B,KAC5B,IAAIC,iCAAgB,CAAU,QAAQ,EAAE,eAAe,CAAC;;AAG7D,IAAA,QAAQ,EAAEC,iBAAgB;"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Detect if value is a date value or field name
|
|
3
|
-
*
|
|
4
|
-
* Date values:
|
|
5
|
-
* - Date instance
|
|
6
|
-
* - Number (timestamp)
|
|
7
|
-
* - String with date separators (- or /)
|
|
8
|
-
*
|
|
9
|
-
* Field names:
|
|
10
|
-
* - Strings without - or /
|
|
11
|
-
*
|
|
12
|
-
* @param value - Value to check
|
|
13
|
-
* @returns true if it's a date value, false if it's a field name
|
|
14
|
-
*/
|
|
15
|
-
export declare function isDateValue(value: any): boolean;
|
|
16
|
-
//# sourceMappingURL=date-helpers.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"date-helpers.d.ts","sourceRoot":"","sources":["../../src/helpers/date-helpers.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,GAAG,GAAG,OAAO,CAM/C"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
'use strict';/**
|
|
2
|
-
* Detect if value is a date value or field name
|
|
3
|
-
*
|
|
4
|
-
* Date values:
|
|
5
|
-
* - Date instance
|
|
6
|
-
* - Number (timestamp)
|
|
7
|
-
* - String with date separators (- or /)
|
|
8
|
-
*
|
|
9
|
-
* Field names:
|
|
10
|
-
* - Strings without - or /
|
|
11
|
-
*
|
|
12
|
-
* @param value - Value to check
|
|
13
|
-
* @returns true if it's a date value, false if it's a field name
|
|
14
|
-
*/
|
|
15
|
-
function isDateValue(value) {
|
|
16
|
-
if (value instanceof Date)
|
|
17
|
-
return true;
|
|
18
|
-
const date = new Date(value);
|
|
19
|
-
return !isNaN(date.getTime());
|
|
20
|
-
}exports.isDateValue=isDateValue;//# sourceMappingURL=date-helpers.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"date-helpers.js","sources":["../../src/helpers/date-helpers.ts"],"sourcesContent":[null],"names":[],"mappings":"aAAA;;;;;;;;;;;;;AAaG;AACG,SAAU,WAAW,CAAC,KAAU,EAAA;IACpC,IAAI,KAAK,YAAY,IAAI;AAAE,QAAA,OAAO,IAAI,CAAC;AAEvC,IAAA,MAAM,IAAI,GAAG,IAAI,IAAI,CAAC,KAAK,CAAC,CAAC;IAE7B,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;AAChC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { FileSizeOption } from "../types/file.types";
|
|
2
|
-
export declare function resolveFileSize(size: number | FileSizeOption): number;
|
|
3
|
-
/**
|
|
4
|
-
* Convert the given size to a human size
|
|
5
|
-
* i.e 2MB, 0.5MB, 120KB, 1.5GB..etc
|
|
6
|
-
*/
|
|
7
|
-
export declare function humanizeSize(sizeInBits: number): string;
|
|
8
|
-
//# sourceMappingURL=file.utils.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"file.utils.d.ts","sourceRoot":"","sources":["../../src/helpers/file.utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAE1D,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,cAAc,GAAG,MAAM,CAerE;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAWvD"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
'use strict';function resolveFileSize(size) {
|
|
2
|
-
if (typeof size === "number") {
|
|
3
|
-
return size;
|
|
4
|
-
}
|
|
5
|
-
switch (size.unit) {
|
|
6
|
-
case "B":
|
|
7
|
-
return size.size;
|
|
8
|
-
case "KB":
|
|
9
|
-
return size.size * 1024;
|
|
10
|
-
case "MB":
|
|
11
|
-
return size.size * 1024 * 1024;
|
|
12
|
-
case "GB":
|
|
13
|
-
return size.size * 1024 * 1024 * 1024;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Convert the given size to a human size
|
|
18
|
-
* i.e 2MB, 0.5MB, 120KB, 1.5GB..etc
|
|
19
|
-
*/
|
|
20
|
-
function humanizeSize(sizeInBits) {
|
|
21
|
-
const units = ["B", "KB", "MB", "GB"];
|
|
22
|
-
let size = sizeInBits;
|
|
23
|
-
let unitIndex = 0;
|
|
24
|
-
while (size >= 1024 && unitIndex < units.length - 1) {
|
|
25
|
-
size /= 1024;
|
|
26
|
-
unitIndex++;
|
|
27
|
-
}
|
|
28
|
-
return `${Number.isInteger(size) ? size : size.toFixed(2)}${units[unitIndex]}`;
|
|
29
|
-
}exports.humanizeSize=humanizeSize;exports.resolveFileSize=resolveFileSize;//# sourceMappingURL=file.utils.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"file.utils.js","sources":["../../src/helpers/file.utils.ts"],"sourcesContent":[null],"names":[],"mappings":"aAEM,SAAU,eAAe,CAAC,IAA6B,EAAA;AAC3D,IAAA,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE;AAC5B,QAAA,OAAO,IAAI,CAAC;AACb,KAAA;IAED,QAAQ,IAAI,CAAC,IAAI;AACf,QAAA,KAAK,GAAG;YACN,OAAO,IAAI,CAAC,IAAI,CAAC;AACnB,QAAA,KAAK,IAAI;AACP,YAAA,OAAO,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;AAC1B,QAAA,KAAK,IAAI;AACP,YAAA,OAAO,IAAI,CAAC,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AACjC,QAAA,KAAK,IAAI;YACP,OAAO,IAAI,CAAC,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AACzC,KAAA;AACH,CAAC;AAED;;;AAGG;AACG,SAAU,YAAY,CAAC,UAAkB,EAAA;IAC7C,MAAM,KAAK,GAAG,CAAC,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;IACtC,IAAI,IAAI,GAAG,UAAU,CAAC;IACtB,IAAI,SAAS,GAAG,CAAC,CAAC;IAElB,OAAO,IAAI,IAAI,IAAI,IAAI,SAAS,GAAG,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE;QACnD,IAAI,IAAI,IAAI,CAAC;AACb,QAAA,SAAS,EAAE,CAAC;AACb,KAAA;IAED,OAAO,CAAA,EAAG,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,GAAG,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAG,EAAA,KAAK,CAAC,SAAS,CAAC,CAAA,CAAE,CAAC;AACjF"}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import type { ContextualSchemaRule, SchemaContext } from "../types";
|
|
2
|
-
/**
|
|
3
|
-
* Get field value based on scope from rule options
|
|
4
|
-
*
|
|
5
|
-
* This utility extracts a field value from either the global context or sibling context
|
|
6
|
-
* based on the `scope` option in the rule's context.
|
|
7
|
-
*
|
|
8
|
-
* @param rule - The contextual schema rule containing options with:
|
|
9
|
-
* - `field` (or custom fieldKey): The field name to extract
|
|
10
|
-
* - `scope` (optional): Either "global" (default) or "sibling"
|
|
11
|
-
* @param context - The schema validation context containing allValues and parent
|
|
12
|
-
* @param fieldKey - The key in rule.context.options that contains the field name (defaults to "field")
|
|
13
|
-
*
|
|
14
|
-
* @returns The value of the specified field from the appropriate source
|
|
15
|
-
*
|
|
16
|
-
* @example
|
|
17
|
-
* // In a validation rule with scope support:
|
|
18
|
-
* async validate(value: any, context) {
|
|
19
|
-
* const otherFieldValue = getFieldValue(this, context);
|
|
20
|
-
* // Extracts from context.allValues if scope is "global"
|
|
21
|
-
* // Extracts from context.parent if scope is "sibling"
|
|
22
|
-
* }
|
|
23
|
-
*
|
|
24
|
-
* @example
|
|
25
|
-
* // Using a custom field key:
|
|
26
|
-
* async validate(value: any, context) {
|
|
27
|
-
* const compareValue = getFieldValue(this, context, "compareField");
|
|
28
|
-
* // Looks for rule.context.options.compareField instead of .field
|
|
29
|
-
* }
|
|
30
|
-
*
|
|
31
|
-
* @remarks
|
|
32
|
-
* - **Global scope** (`scope: "global"`): Searches the entire input data (context.allValues)
|
|
33
|
-
* - **Sibling scope** (`scope: "sibling"`): Searches only within the parent object (context.parent)
|
|
34
|
-
* - Uses `@mongez/reinforcements.get()` to support nested paths (e.g., "user.email")
|
|
35
|
-
*/
|
|
36
|
-
export declare function getFieldValue(rule: ContextualSchemaRule, context: SchemaContext, fieldKey?: string): any;
|
|
37
|
-
//# sourceMappingURL=get-field-value.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-field-value.d.ts","sourceRoot":"","sources":["../../src/helpers/get-field-value.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEpE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,wBAAgB,aAAa,CAC3B,IAAI,EAAE,oBAAoB,EAC1B,OAAO,EAAE,aAAa,EACtB,QAAQ,SAAU,OAMnB"}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
'use strict';var reinforcements=require('@mongez/reinforcements');/**
|
|
2
|
-
* Get field value based on scope from rule options
|
|
3
|
-
*
|
|
4
|
-
* This utility extracts a field value from either the global context or sibling context
|
|
5
|
-
* based on the `scope` option in the rule's context.
|
|
6
|
-
*
|
|
7
|
-
* @param rule - The contextual schema rule containing options with:
|
|
8
|
-
* - `field` (or custom fieldKey): The field name to extract
|
|
9
|
-
* - `scope` (optional): Either "global" (default) or "sibling"
|
|
10
|
-
* @param context - The schema validation context containing allValues and parent
|
|
11
|
-
* @param fieldKey - The key in rule.context.options that contains the field name (defaults to "field")
|
|
12
|
-
*
|
|
13
|
-
* @returns The value of the specified field from the appropriate source
|
|
14
|
-
*
|
|
15
|
-
* @example
|
|
16
|
-
* // In a validation rule with scope support:
|
|
17
|
-
* async validate(value: any, context) {
|
|
18
|
-
* const otherFieldValue = getFieldValue(this, context);
|
|
19
|
-
* // Extracts from context.allValues if scope is "global"
|
|
20
|
-
* // Extracts from context.parent if scope is "sibling"
|
|
21
|
-
* }
|
|
22
|
-
*
|
|
23
|
-
* @example
|
|
24
|
-
* // Using a custom field key:
|
|
25
|
-
* async validate(value: any, context) {
|
|
26
|
-
* const compareValue = getFieldValue(this, context, "compareField");
|
|
27
|
-
* // Looks for rule.context.options.compareField instead of .field
|
|
28
|
-
* }
|
|
29
|
-
*
|
|
30
|
-
* @remarks
|
|
31
|
-
* - **Global scope** (`scope: "global"`): Searches the entire input data (context.allValues)
|
|
32
|
-
* - **Sibling scope** (`scope: "sibling"`): Searches only within the parent object (context.parent)
|
|
33
|
-
* - Uses `@mongez/reinforcements.get()` to support nested paths (e.g., "user.email")
|
|
34
|
-
*/
|
|
35
|
-
function getFieldValue(rule, context, fieldKey = "field") {
|
|
36
|
-
const field = rule.context.options[fieldKey];
|
|
37
|
-
const scope = rule.context.options.scope || "global";
|
|
38
|
-
const source = scope === "sibling" ? context.parent : context.allValues;
|
|
39
|
-
return reinforcements.get(source, field);
|
|
40
|
-
}exports.getFieldValue=getFieldValue;//# sourceMappingURL=get-field-value.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-field-value.js","sources":["../../src/helpers/get-field-value.ts"],"sourcesContent":[null],"names":["get"],"mappings":"kEAGA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiCG;AACG,SAAU,aAAa,CAC3B,IAA0B,EAC1B,OAAsB,EACtB,QAAQ,GAAG,OAAO,EAAA;IAElB,MAAM,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;IAC7C,MAAM,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,IAAI,QAAQ,CAAC;AACrD,IAAA,MAAM,MAAM,GAAG,KAAK,KAAK,SAAS,GAAG,OAAO,CAAC,MAAM,GAAG,OAAO,CAAC,SAAS,CAAC;AACxE,IAAA,OAAOA,kBAAG,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;AAC5B"}
|
package/cjs/helpers/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/helpers/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"is-empty-value.d.ts","sourceRoot":"","sources":["../../src/helpers/is-empty-value.ts"],"names":[],"mappings":"AAEA,wBAAgB,YAAY,CAAC,KAAK,EAAE,GAAG,WAEtC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"is-empty-value.js","sources":["../../src/helpers/is-empty-value.ts"],"sourcesContent":[null],"names":["isEmpty","isObject"],"mappings":"+DAEM,SAAU,YAAY,CAAC,KAAU,EAAA;IACrC,OAAOA,oBAAO,CAAC,KAAK,CAAC,IAAI,CAACC,qBAAQ,CAAC,KAAK,CAAC,CAAC;AAC5C"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"path-helpers.d.ts","sourceRoot":"","sources":["../../src/helpers/path-helpers.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,UAAU,SAAU,MAAM,OAAO,MAAM,KAAG,MAGtD,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"path-helpers.js","sources":["../../src/helpers/path-helpers.ts"],"sourcesContent":[null],"names":[],"mappings":"aAAA;;AAEG;MACU,UAAU,GAAG,CAAC,IAAY,EAAE,GAAW,KAAY;AAC9D,IAAA,IAAI,CAAC,IAAI;AAAE,QAAA,OAAO,GAAG,CAAC;AACtB,IAAA,OAAO,CAAG,EAAA,IAAI,CAAI,CAAA,EAAA,GAAG,EAAE,CAAC;AAC1B"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import type { ContextualSchemaRule, RuleResult, SchemaContext } from "../types";
|
|
2
|
-
export declare const VALID_RULE: RuleResult;
|
|
3
|
-
/**
|
|
4
|
-
* Resolve a single attribute value through the full translation priority chain:
|
|
5
|
-
* 1. attributesList[key] — developer direct text override (highest priority)
|
|
6
|
-
* 2. translatedAttributes[key] — developer explicit translation key
|
|
7
|
-
* 3. translator(rawValue) — auto-translate the raw value (fallback)
|
|
8
|
-
*
|
|
9
|
-
* Use this in rule bodies when you need per-item translation
|
|
10
|
-
* (e.g. translating each enum value before joining them).
|
|
11
|
-
*
|
|
12
|
-
* @example
|
|
13
|
-
* // Translate each enum value individually then join
|
|
14
|
-
* const enumList = enumValues
|
|
15
|
-
* .map(v => resolveTranslation(String(v), String(v), this, context))
|
|
16
|
-
* .join(", ");
|
|
17
|
-
* this.context.translationParams.enumList = enumList;
|
|
18
|
-
*/
|
|
19
|
-
export declare const resolveTranslation: ({ key, rawValue, rule, context, }: {
|
|
20
|
-
key: string;
|
|
21
|
-
rawValue: any;
|
|
22
|
-
rule: ContextualSchemaRule;
|
|
23
|
-
context: SchemaContext;
|
|
24
|
-
}) => string;
|
|
25
|
-
export declare const invalidRule: (rule: ContextualSchemaRule, context: SchemaContext) => RuleResult;
|
|
26
|
-
//# sourceMappingURL=validation-helpers.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"validation-helpers.d.ts","sourceRoot":"","sources":["../../src/helpers/validation-helpers.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAE,UAAU,EAAmB,aAAa,EAAE,MAAM,UAAU,CAAC;AAEjG,eAAO,MAAM,UAAU,EAAE,UAExB,CAAC;AACF;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,kBAAkB;SAMxB,MAAM;cACD,GAAG;UACP,oBAAoB;aACjB,aAAa;MACpB,MAeH,CAAC;AAKF,eAAO,MAAM,WAAW,SAAU,oBAAoB,WAAW,aAAa,KAAG,UA+ChF,CAAC"}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
'use strict';var config=require('../config.js');const VALID_RULE = {
|
|
2
|
-
isValid: true,
|
|
3
|
-
};
|
|
4
|
-
/**
|
|
5
|
-
* Resolve a single attribute value through the full translation priority chain:
|
|
6
|
-
* 1. attributesList[key] — developer direct text override (highest priority)
|
|
7
|
-
* 2. translatedAttributes[key] — developer explicit translation key
|
|
8
|
-
* 3. translator(rawValue) — auto-translate the raw value (fallback)
|
|
9
|
-
*
|
|
10
|
-
* Use this in rule bodies when you need per-item translation
|
|
11
|
-
* (e.g. translating each enum value before joining them).
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* // Translate each enum value individually then join
|
|
15
|
-
* const enumList = enumValues
|
|
16
|
-
* .map(v => resolveTranslation(String(v), String(v), this, context))
|
|
17
|
-
* .join(", ");
|
|
18
|
-
* this.context.translationParams.enumList = enumList;
|
|
19
|
-
*/
|
|
20
|
-
const resolveTranslation = ({ key, rawValue, rule, context, }) => {
|
|
21
|
-
const translator = config.getSealConfig().translateAttribute;
|
|
22
|
-
// 1. Direct text override wins
|
|
23
|
-
const direct = rule.context.attributesList?.[key];
|
|
24
|
-
if (direct && typeof direct === "string")
|
|
25
|
-
return direct;
|
|
26
|
-
if (!translator)
|
|
27
|
-
return String(rawValue ?? key);
|
|
28
|
-
// 2. Explicit translation key
|
|
29
|
-
const transKey = rule.context.translatedAttributes?.[key];
|
|
30
|
-
if (transKey)
|
|
31
|
-
return translator({ attribute: transKey, context, rule });
|
|
32
|
-
// 3. Auto-translate the raw value (fallback)
|
|
33
|
-
return translator({ attribute: String(rawValue ?? key), context, rule });
|
|
34
|
-
};
|
|
35
|
-
// Internal alias — invalidRule uses the same function without re-importing config
|
|
36
|
-
const resolveAttribute = resolveTranslation;
|
|
37
|
-
const invalidRule = (rule, context) => {
|
|
38
|
-
// `input` is always translatable — rules may add more (e.g., field references in sameAs)
|
|
39
|
-
// Rule-defined translatableParams override the default input if the key matches
|
|
40
|
-
const translatableWithInput = {
|
|
41
|
-
// Fall back to "schema" when validating at the root level (no key)
|
|
42
|
-
input: context.key || "schema",
|
|
43
|
-
...rule.context.translatableParams,
|
|
44
|
-
};
|
|
45
|
-
// Resolve all translatable params through the full priority chain
|
|
46
|
-
const resolvedParams = Object.fromEntries(Object.entries(translatableWithInput).map(([key, rawValue]) => [
|
|
47
|
-
key,
|
|
48
|
-
resolveAttribute({ key, rawValue, rule, context }),
|
|
49
|
-
]));
|
|
50
|
-
const attributes = {
|
|
51
|
-
path: context.path,
|
|
52
|
-
key: context.key,
|
|
53
|
-
value: context.value,
|
|
54
|
-
// Raw placeholders (:enumList, :min, :max, etc.) — no translation
|
|
55
|
-
...rule.context.translationParams,
|
|
56
|
-
// Translated placeholders (:input, :field, etc.) — override raws if key collides
|
|
57
|
-
...resolvedParams,
|
|
58
|
-
// Satisfy TypeScript's required field (always present via resolvedParams)
|
|
59
|
-
input: resolvedParams.input,
|
|
60
|
-
};
|
|
61
|
-
const rawError = rule.context.errorMessage ||
|
|
62
|
-
rule.errorMessage ||
|
|
63
|
-
context.translateRule?.({ rule, context, attributes }) ||
|
|
64
|
-
rule.defaultErrorMessage;
|
|
65
|
-
// Fallback interpolation: replace :placeholder patterns from attributes
|
|
66
|
-
// This kicks in when translateRule is absent or returns "" (not configured)
|
|
67
|
-
const error = rawError.replace(/:([a-zA-Z_]+)/g, (match, key) => key in attributes ? String(attributes[key]) : match);
|
|
68
|
-
return {
|
|
69
|
-
isValid: false,
|
|
70
|
-
error,
|
|
71
|
-
input: attributes.input,
|
|
72
|
-
path: context.path,
|
|
73
|
-
};
|
|
74
|
-
};exports.VALID_RULE=VALID_RULE;exports.invalidRule=invalidRule;exports.resolveTranslation=resolveTranslation;//# sourceMappingURL=validation-helpers.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"validation-helpers.js","sources":["../../src/helpers/validation-helpers.ts"],"sourcesContent":[null],"names":["getSealConfig"],"mappings":"gDAGa,MAAA,UAAU,GAAe;AACpC,IAAA,OAAO,EAAE,IAAI;EACb;AACF;;;;;;;;;;;;;;;AAeG;AACI,MAAM,kBAAkB,GAAG,CAAC,EACjC,GAAG,EACH,QAAQ,EACR,IAAI,EACJ,OAAO,GAMR,KAAY;AACX,IAAA,MAAM,UAAU,GAAGA,oBAAa,EAAE,CAAC,kBAAkB,CAAC;;IAGtD,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,cAAc,GAAG,GAAG,CAAC,CAAC;AAClD,IAAA,IAAI,MAAM,IAAI,OAAO,MAAM,KAAK,QAAQ;AAAE,QAAA,OAAO,MAAM,CAAC;AAExD,IAAA,IAAI,CAAC,UAAU;AAAE,QAAA,OAAO,MAAM,CAAC,QAAQ,IAAI,GAAG,CAAC,CAAC;;IAGhD,MAAM,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,oBAAoB,GAAG,GAAG,CAAC,CAAC;AAC1D,IAAA,IAAI,QAAQ;AAAE,QAAA,OAAO,UAAU,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;;AAGxE,IAAA,OAAO,UAAU,CAAC,EAAE,SAAS,EAAE,MAAM,CAAC,QAAQ,IAAI,GAAG,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;AAC3E,EAAE;AAEF;AACA,MAAM,gBAAgB,GAAG,kBAAkB,CAAC;MAE/B,WAAW,GAAG,CAAC,IAA0B,EAAE,OAAsB,KAAgB;;;AAG5F,IAAA,MAAM,qBAAqB,GAA2B;;AAEpD,QAAA,KAAK,EAAE,OAAO,CAAC,GAAG,IAAI,QAAQ;AAC9B,QAAA,GAAG,IAAI,CAAC,OAAO,CAAC,kBAAkB;KACnC,CAAC;;IAGF,MAAM,cAAc,GAAG,MAAM,CAAC,WAAW,CACvC,MAAM,CAAC,OAAO,CAAC,qBAAqB,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,QAAQ,CAAC,KAAK;QAC7D,GAAG;QACH,gBAAgB,CAAC,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;AACnD,KAAA,CAAC,CACH,CAAC;AAEF,IAAA,MAAM,UAAU,GAAkC;QAChD,IAAI,EAAE,OAAO,CAAC,IAAI;QAClB,GAAG,EAAE,OAAO,CAAC,GAAG;QAChB,KAAK,EAAE,OAAO,CAAC,KAAK;;AAEpB,QAAA,GAAG,IAAI,CAAC,OAAO,CAAC,iBAAiB;;AAEjC,QAAA,GAAG,cAAc;;QAEjB,KAAK,EAAE,cAAc,CAAC,KAAK;KAC5B,CAAC;AAEF,IAAA,MAAM,QAAQ,GACZ,IAAI,CAAC,OAAO,CAAC,YAAY;AACzB,QAAA,IAAI,CAAC,YAAY;QACjB,OAAO,CAAC,aAAa,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC;QACtD,IAAI,CAAC,mBAAoB,CAAC;;;AAI5B,IAAA,MAAM,KAAK,GAAG,QAAQ,CAAC,OAAO,CAAC,gBAAgB,EAAE,CAAC,KAAK,EAAE,GAAG,KAC1D,GAAG,IAAI,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC,GAA8B,CAAC,CAAC,GAAG,KAAK,CAC/E,CAAC;IAEF,OAAO;AACL,QAAA,OAAO,EAAE,KAAK;QACd,KAAK;QACL,KAAK,EAAE,UAAU,CAAC,KAAK;QACvB,IAAI,EAAE,OAAO,CAAC,IAAI;KACnB,CAAC;AACJ"}
|
package/cjs/index.d.ts
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Warlock Seal - Type-Safe Validation Library
|
|
3
|
-
*
|
|
4
|
-
* A powerful, framework-agnostic validation library with TypeScript support
|
|
5
|
-
*
|
|
6
|
-
* Package: @warlock.js/seal
|
|
7
|
-
*
|
|
8
|
-
* Cast validation seals on your schemas to protect your data!
|
|
9
|
-
*
|
|
10
|
-
* Structure:
|
|
11
|
-
* - validators/ - Core validators (framework-agnostic)
|
|
12
|
-
* - rules/ - Core validation rules
|
|
13
|
-
* - types/ - Type definitions
|
|
14
|
-
* - helpers/ - Utilities
|
|
15
|
-
* - mutators/ - Data transformations
|
|
16
|
-
* - factory/ - v object and validate function
|
|
17
|
-
*
|
|
18
|
-
* Framework-specific features (FileValidator, database rules) are in:
|
|
19
|
-
* @warlock.js/core/v (src/warlock/v/)
|
|
20
|
-
*/
|
|
21
|
-
export * from "./validators";
|
|
22
|
-
export * from "./types";
|
|
23
|
-
export * from "./helpers";
|
|
24
|
-
export * from "./mutators";
|
|
25
|
-
export * from "./rules";
|
|
26
|
-
export * from "./factory";
|
|
27
|
-
export * from "./plugins";
|
|
28
|
-
export * from "./config";
|
|
29
|
-
export * from "./standard-schema";
|
|
30
|
-
//# sourceMappingURL=index.d.ts.map
|
package/cjs/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAGH,cAAc,cAAc,CAAC;AAG7B,cAAc,SAAS,CAAC;AAGxB,cAAc,WAAW,CAAC;AAG1B,cAAc,YAAY,CAAC;AAG3B,cAAc,SAAS,CAAC;AAGxB,cAAc,WAAW,CAAC;AAG1B,cAAc,WAAW,CAAC;AAG1B,cAAc,UAAU,CAAC;AAGzB,cAAc,mBAAmB,CAAC"}
|
package/cjs/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict';var anyValidator=require('./validators/any-validator.js'),arrayValidator=require('./validators/array-validator.js'),baseValidator=require('./validators/base-validator.js');require('./validators/methods/equality-conditional-methods.js'),require('./validators/methods/forbidden-methods.js'),require('./validators/methods/present-methods.js'),require('./validators/methods/required-methods.js');var primitiveValidator=require('./validators/primitive-validator.js'),booleanValidator=require('./validators/boolean-validator.js'),computedValidator=require('./validators/computed-validator.js'),dateValidator=require('./validators/date-validator.js'),floatValidator=require('./validators/float-validator.js'),intValidator=require('./validators/int-validator.js'),managedValidator=require('./validators/managed-validator.js'),numberValidator=require('./validators/number-validator.js'),numericValidator=require('./validators/numeric-validator.js'),objectValidator=require('./validators/object-validator.js'),recordValidator=require('./validators/record-validator.js'),scalarValidator=require('./validators/scalar-validator.js'),stringValidator=require('./validators/string-validator.js'),tupleValidator=require('./validators/tuple-validator.js'),unionValidator=require('./validators/union-validator.js'),dateTypes=require('./types/date-types.js'),dateHelpers=require('./helpers/date-helpers.js'),file_utils=require('./helpers/file.utils.js'),getFieldValue=require('./helpers/get-field-value.js'),pathHelpers=require('./helpers/path-helpers.js'),validationHelpers=require('./helpers/validation-helpers.js'),arrayMutators=require('./mutators/array-mutators.js'),dateMutators=require('./mutators/date-mutators.js'),numberMutators=require('./mutators/number-mutators.js'),objectMutators=require('./mutators/object-mutators.js'),scalarMutators=require('./mutators/scalar-mutators.js'),stringMutators=require('./mutators/string-mutators.js'),equal=require('./rules/core/equal.js'),forbidden=require('./rules/core/forbidden.js'),required=require('./rules/core/required.js'),union=require('./rules/core/union.js'),when=require('./rules/core/when.js'),alpha=require('./rules/string/alpha.js'),creditCard=require('./rules/string/credit-card.js'),email=require('./rules/string/email.js'),ip=require('./rules/string/ip.js'),matches=require('./rules/string/matches.js'),pattern=require('./rules/string/pattern.js'),stringComparison=require('./rules/string/string-comparison.js'),strongPasswordRule=require('./rules/string/strong-password-rule.js'),url=require('./rules/string/url.js'),withoutWhitespace=require('./rules/string/without-whitespace.js'),numberRules=require('./rules/number/number-rules.js'),lengthRules=require('./rules/length/length-rules.js'),arrayRules=require('./rules/array/array-rules.js'),date=require('./rules/date/date.js'),dateComparisonRules=require('./rules/date/date-comparison-rules.js'),dateDayRules=require('./rules/date/date-day-rules.js'),dateFieldComparisonRules=require('./rules/date/date-field-comparison-rules.js'),datePeriodRules=require('./rules/date/date-period-rules.js'),dateRelativeRules=require('./rules/date/date-relative-rules.js'),dateSpecialRules=require('./rules/date/date-special-rules.js'),dimensions=require('./rules/file/dimensions.js'),fileSize=require('./rules/file/file-size.js'),colorRules=require('./rules/color/color-rules.js'),requiredIfRules=require('./rules/conditional/required-if-rules.js'),requiredUnlessRules=require('./rules/conditional/required-unless-rules.js'),requiredWhenRule=require('./rules/conditional/required-when-rule.js'),requiredWithRules=require('./rules/conditional/required-with-rules.js'),requiredWithoutRules=require('./rules/conditional/required-without-rules.js'),presentIfRules=require('./rules/conditional/present-if-rules.js'),presentUnlessRules=require('./rules/conditional/present-unless-rules.js'),presentWithRules=require('./rules/conditional/present-with-rules.js'),presentWithoutRules=require('./rules/conditional/present-without-rules.js'),forbiddenIfRules=require('./rules/conditional/forbidden-if-rules.js'),_enum=require('./rules/common/enum.js'),equalsFieldRules=require('./rules/common/equals-field-rules.js'),typeRules=require('./rules/common/type-rules.js'),unknownKey=require('./rules/common/unknown-key.js'),validate=require('./factory/validate.js'),validators=require('./factory/validators.js'),pluginSystem=require('./plugins/plugin-system.js'),config=require('./config.js'),mapResult=require('./standard-schema/map-result.js'),jsonSchema=require('./standard-schema/json-schema.js');exports.AnyValidator=anyValidator.AnyValidator;exports.ArrayValidator=arrayValidator.ArrayValidator;exports.BaseValidator=baseValidator.BaseValidator;exports.PrimitiveValidator=primitiveValidator.PrimitiveValidator;exports.BooleanValidator=booleanValidator.BooleanValidator;exports.ComputedValidator=computedValidator.ComputedValidator;exports.DateValidator=dateValidator.DateValidator;exports.FloatValidator=floatValidator.FloatValidator;exports.IntValidator=intValidator.IntValidator;exports.ManagedValidator=managedValidator.ManagedValidator;exports.NumberValidator=numberValidator.NumberValidator;exports.NumericValidator=numericValidator.NumericValidator;exports.ObjectValidator=objectValidator.ObjectValidator;exports.RecordValidator=recordValidator.RecordValidator;exports.ScalarValidator=scalarValidator.ScalarValidator;exports.StringValidator=stringValidator.StringValidator;exports.TupleValidator=tupleValidator.TupleValidator;exports.UnionValidator=unionValidator.UnionValidator;exports.WEEK_DAYS=dateTypes.WEEK_DAYS;exports.isDateValue=dateHelpers.isDateValue;exports.humanizeSize=file_utils.humanizeSize;exports.resolveFileSize=file_utils.resolveFileSize;exports.getFieldValue=getFieldValue.getFieldValue;exports.setKeyPath=pathHelpers.setKeyPath;exports.VALID_RULE=validationHelpers.VALID_RULE;exports.invalidRule=validationHelpers.invalidRule;exports.resolveTranslation=validationHelpers.resolveTranslation;exports.flipArrayMutator=arrayMutators.flipArrayMutator;exports.removeEmptyArrayElementsMutator=arrayMutators.removeEmptyArrayElementsMutator;exports.reverseArrayMutator=arrayMutators.reverseArrayMutator;exports.sortArrayMutator=arrayMutators.sortArrayMutator;exports.uniqueArrayMutator=arrayMutators.uniqueArrayMutator;exports.addDaysMutator=dateMutators.addDaysMutator;exports.addHoursMutator=dateMutators.addHoursMutator;exports.addMonthsMutator=dateMutators.addMonthsMutator;exports.addYearsMutator=dateMutators.addYearsMutator;exports.dateMutator=dateMutators.dateMutator;exports.toDateOnlyMutator=dateMutators.toDateOnlyMutator;exports.toEndOfDayMutator=dateMutators.toEndOfDayMutator;exports.toEndOfMonthMutator=dateMutators.toEndOfMonthMutator;exports.toEndOfYearMutator=dateMutators.toEndOfYearMutator;exports.toFormatMutator=dateMutators.toFormatMutator;exports.toISOStringMutator=dateMutators.toISOStringMutator;exports.toStartOfDayMutator=dateMutators.toStartOfDayMutator;exports.toStartOfMonthMutator=dateMutators.toStartOfMonthMutator;exports.toStartOfYearMutator=dateMutators.toStartOfYearMutator;exports.toTimeOnlyMutator=dateMutators.toTimeOnlyMutator;exports.toTimestampMutator=dateMutators.toTimestampMutator;exports.toUTCMutator=dateMutators.toUTCMutator;exports.absMutator=numberMutators.absMutator;exports.booleanMutator=numberMutators.booleanMutator;exports.ceilMutator=numberMutators.ceilMutator;exports.floorMutator=numberMutators.floorMutator;exports.numberMutator=numberMutators.numberMutator;exports.numericMutator=numberMutators.numericMutator;exports.roundMutator=numberMutators.roundMutator;exports.roundNumberMutator=numberMutators.roundNumberMutator;exports.toFixedMutator=numberMutators.toFixedMutator;exports.jsonMutator=objectMutators.jsonMutator;exports.objectTrimMutator=objectMutators.objectTrimMutator;exports.stripUnknownMutator=objectMutators.stripUnknownMutator;exports.stringMutator=scalarMutators.stringMutator;exports.alphaOnlyMutator=stringMutators.alphaOnlyMutator;exports.alphanumericOnlyMutator=stringMutators.alphanumericOnlyMutator;exports.appendMutator=stringMutators.appendMutator;exports.base64DecodeMutator=stringMutators.base64DecodeMutator;exports.base64EncodeMutator=stringMutators.base64EncodeMutator;exports.camelCaseMutator=stringMutators.camelCaseMutator;exports.capitalizeMutator=stringMutators.capitalizeMutator;exports.htmlEscapeMutator=stringMutators.htmlEscapeMutator;exports.kebabCaseMutator=stringMutators.kebabCaseMutator;exports.lowercaseMutator=stringMutators.lowercaseMutator;exports.ltrimMutator=stringMutators.ltrimMutator;exports.maskMutator=stringMutators.maskMutator;exports.padEndMutator=stringMutators.padEndMutator;exports.padStartMutator=stringMutators.padStartMutator;exports.pascalCaseMutator=stringMutators.pascalCaseMutator;exports.prependMutator=stringMutators.prependMutator;exports.removeNumbersMutator=stringMutators.removeNumbersMutator;exports.removeSpecialCharactersMutator=stringMutators.removeSpecialCharactersMutator;exports.repeatMutator=stringMutators.repeatMutator;exports.replaceAllMutator=stringMutators.replaceAllMutator;exports.replaceMutator=stringMutators.replaceMutator;exports.reverseMutator=stringMutators.reverseMutator;exports.rtrimMutator=stringMutators.rtrimMutator;exports.safeHtmlMutator=stringMutators.safeHtmlMutator;exports.slugMutator=stringMutators.slugMutator;exports.snakeCaseMutator=stringMutators.snakeCaseMutator;exports.stringifyMutator=stringMutators.stringifyMutator;exports.titleCaseMutator=stringMutators.titleCaseMutator;exports.trimMultipleWhitespaceMutator=stringMutators.trimMultipleWhitespaceMutator;exports.trimMutator=stringMutators.trimMutator;exports.truncateMutator=stringMutators.truncateMutator;exports.unescapeHtmlMutator=stringMutators.unescapeHtmlMutator;exports.uppercaseMutator=stringMutators.uppercaseMutator;exports.urlDecodeMutator=stringMutators.urlDecodeMutator;exports.urlEncodeMutator=stringMutators.urlEncodeMutator;exports.equalRule=equal.equalRule;exports.forbiddenRule=forbidden.forbiddenRule;exports.presentRule=required.presentRule;exports.requiredRule=required.requiredRule;exports.unionRule=union.unionRule;exports.whenRule=when.whenRule;exports.alphaNumericRule=alpha.alphaNumericRule;exports.alphaRule=alpha.alphaRule;exports.isNumericRule=alpha.isNumericRule;exports.isCreditCardRule=creditCard.isCreditCardRule;exports.emailRule=email.emailRule;exports.ip4Rule=ip.ip4Rule;exports.ip6Rule=ip.ip6Rule;exports.ipRule=ip.ipRule;exports.matchesRule=matches.matchesRule;exports.patternRule=pattern.patternRule;exports.containsRule=stringComparison.containsRule;exports.endsWithRule=stringComparison.endsWithRule;exports.notContainsRule=stringComparison.notContainsRule;exports.startsWithRule=stringComparison.startsWithRule;exports.strongPasswordRule=strongPasswordRule.strongPasswordRule;exports.urlRule=url.urlRule;exports.withoutWhitespaceRule=withoutWhitespace.withoutWhitespaceRule;exports.betweenNumbersRule=numberRules.betweenNumbersRule;exports.evenRule=numberRules.evenRule;exports.greaterThanRule=numberRules.greaterThanRule;exports.lessThanRule=numberRules.lessThanRule;exports.maxRule=numberRules.maxRule;exports.minRule=numberRules.minRule;exports.moduloRule=numberRules.moduloRule;exports.negativeRule=numberRules.negativeRule;exports.oddRule=numberRules.oddRule;exports.positiveRule=numberRules.positiveRule;exports.betweenLengthRule=lengthRules.betweenLengthRule;exports.lengthRule=lengthRules.lengthRule;exports.maxLengthRule=lengthRules.maxLengthRule;exports.maxWordsRule=lengthRules.maxWordsRule;exports.minLengthRule=lengthRules.minLengthRule;exports.minWordsRule=lengthRules.minWordsRule;exports.wordsRule=lengthRules.wordsRule;exports.sortedArrayRule=arrayRules.sortedArrayRule;exports.uniqueArrayRule=arrayRules.uniqueArrayRule;exports.ageRule=date.ageRule;exports.beforeHourRule=date.beforeHourRule;exports.beforeMinuteRule=date.beforeMinuteRule;exports.beforeTodayRule=date.beforeTodayRule;exports.betweenHoursRule=date.betweenHoursRule;exports.betweenMinutesRule=date.betweenMinutesRule;exports.dateRule=date.dateRule;exports.fromHourRule=date.fromHourRule;exports.fromMinuteRule=date.fromMinuteRule;exports.fromTodayRule=date.fromTodayRule;exports.maxAgeRule=date.maxAgeRule;exports.maxDateRule=date.maxDateRule;exports.minAgeRule=date.minAgeRule;exports.minDateRule=date.minDateRule;exports.weekDayRule=date.weekDayRule;exports.afterTodayRule=dateComparisonRules.afterTodayRule;exports.betweenDatesRule=dateComparisonRules.betweenDatesRule;exports.futureRule=dateComparisonRules.futureRule;exports.pastRule=dateComparisonRules.pastRule;exports.todayRule=dateComparisonRules.todayRule;exports.businessDayRule=dateDayRules.businessDayRule;exports.weekdayRule=dateDayRules.weekdayRule;exports.weekdaysRule=dateDayRules.weekdaysRule;exports.weekendRule=dateDayRules.weekendRule;exports.afterFieldRule=dateFieldComparisonRules.afterFieldRule;exports.beforeFieldRule=dateFieldComparisonRules.beforeFieldRule;exports.sameAsFieldDateRule=dateFieldComparisonRules.sameAsFieldDateRule;exports.betweenDaysRule=datePeriodRules.betweenDaysRule;exports.betweenMonthsRule=datePeriodRules.betweenMonthsRule;exports.betweenTimesRule=datePeriodRules.betweenTimesRule;exports.betweenYearsRule=datePeriodRules.betweenYearsRule;exports.maxDayRule=datePeriodRules.maxDayRule;exports.maxMonthRule=datePeriodRules.maxMonthRule;exports.maxYearRule=datePeriodRules.maxYearRule;exports.minDayRule=datePeriodRules.minDayRule;exports.minMonthRule=datePeriodRules.minMonthRule;exports.minYearRule=datePeriodRules.minYearRule;exports.monthRule=datePeriodRules.monthRule;exports.quarterRule=datePeriodRules.quarterRule;exports.yearRule=datePeriodRules.yearRule;exports.withinDaysRule=dateRelativeRules.withinDaysRule;exports.withinFutureDaysRule=dateRelativeRules.withinFutureDaysRule;exports.withinPastDaysRule=dateRelativeRules.withinPastDaysRule;exports.betweenAgeRule=dateSpecialRules.betweenAgeRule;exports.birthdayRule=dateSpecialRules.birthdayRule;exports.leapYearRule=dateSpecialRules.leapYearRule;exports.maxHeightRule=dimensions.maxHeightRule;exports.maxWidthRule=dimensions.maxWidthRule;exports.minHeightRule=dimensions.minHeightRule;exports.minWidthRule=dimensions.minWidthRule;exports.maxFileSizeRule=fileSize.maxFileSizeRule;exports.minFileSizeRule=fileSize.minFileSizeRule;exports.colorRule=colorRules.colorRule;exports.darkColorRule=colorRules.darkColorRule;exports.hexColorRule=colorRules.hexColorRule;exports.hslColorRule=colorRules.hslColorRule;exports.lightColorRule=colorRules.lightColorRule;exports.rgbColorRule=colorRules.rgbColorRule;exports.rgbaColorRule=colorRules.rgbaColorRule;exports.requiredIfAllEmptyRule=requiredIfRules.requiredIfAllEmptyRule;exports.requiredIfAllNotEmptyRule=requiredIfRules.requiredIfAllNotEmptyRule;exports.requiredIfAnyEmptyRule=requiredIfRules.requiredIfAnyEmptyRule;exports.requiredIfAnyNotEmptyRule=requiredIfRules.requiredIfAnyNotEmptyRule;exports.requiredIfEmptyRule=requiredIfRules.requiredIfEmptyRule;exports.requiredIfInRule=requiredIfRules.requiredIfInRule;exports.requiredIfNotEmptyRule=requiredIfRules.requiredIfNotEmptyRule;exports.requiredIfNotInRule=requiredIfRules.requiredIfNotInRule;exports.requiredIfRule=requiredIfRules.requiredIfRule;exports.requiredUnlessRule=requiredUnlessRules.requiredUnlessRule;exports.requiredWhenRule=requiredWhenRule.requiredWhenRule;exports.requiredWithAllRule=requiredWithRules.requiredWithAllRule;exports.requiredWithAnyRule=requiredWithRules.requiredWithAnyRule;exports.requiredWithRule=requiredWithRules.requiredWithRule;exports.requiredWithoutAllRule=requiredWithoutRules.requiredWithoutAllRule;exports.requiredWithoutAnyRule=requiredWithoutRules.requiredWithoutAnyRule;exports.requiredWithoutRule=requiredWithoutRules.requiredWithoutRule;exports.presentIfEmptyRule=presentIfRules.presentIfEmptyRule;exports.presentIfInRule=presentIfRules.presentIfInRule;exports.presentIfNotEmptyRule=presentIfRules.presentIfNotEmptyRule;exports.presentIfNotInRule=presentIfRules.presentIfNotInRule;exports.presentIfRule=presentIfRules.presentIfRule;exports.presentUnlessRule=presentUnlessRules.presentUnlessRule;exports.presentWithAllRule=presentWithRules.presentWithAllRule;exports.presentWithAnyRule=presentWithRules.presentWithAnyRule;exports.presentWithRule=presentWithRules.presentWithRule;exports.presentWithoutAllRule=presentWithoutRules.presentWithoutAllRule;exports.presentWithoutAnyRule=presentWithoutRules.presentWithoutAnyRule;exports.presentWithoutRule=presentWithoutRules.presentWithoutRule;exports.forbiddenIfEmptyRule=forbiddenIfRules.forbiddenIfEmptyRule;exports.forbiddenIfInRule=forbiddenIfRules.forbiddenIfInRule;exports.forbiddenIfNotEmptyRule=forbiddenIfRules.forbiddenIfNotEmptyRule;exports.forbiddenIfNotInRule=forbiddenIfRules.forbiddenIfNotInRule;exports.forbiddenIfNotRule=forbiddenIfRules.forbiddenIfNotRule;exports.forbiddenIfRule=forbiddenIfRules.forbiddenIfRule;exports.allowedValuesRule=_enum.allowedValuesRule;exports.enumRule=_enum.enumRule;exports.inRule=_enum.inRule;exports.notAllowedValuesRule=_enum.notAllowedValuesRule;exports.equalsFieldRule=equalsFieldRules.equalsFieldRule;exports.notEqualsFieldRule=equalsFieldRules.notEqualsFieldRule;exports.arrayRule=typeRules.arrayRule;exports.booleanRule=typeRules.booleanRule;exports.floatRule=typeRules.floatRule;exports.intRule=typeRules.intRule;exports.numberRule=typeRules.numberRule;exports.objectRule=typeRules.objectRule;exports.plainObjectRule=typeRules.plainObjectRule;exports.scalarRule=typeRules.scalarRule;exports.stringRule=typeRules.stringRule;exports.unknownKeyRule=unknownKey.unknownKeyRule;exports.validate=validate.validate;exports.v=validators.v;exports.getInstalledPlugins=pluginSystem.getInstalledPlugins;exports.hasPlugin=pluginSystem.hasPlugin;exports.registerPlugin=pluginSystem.registerPlugin;exports.unregisterPlugin=pluginSystem.unregisterPlugin;exports.configureSeal=config.configureSeal;exports.getSealConfig=config.getSealConfig;exports.resetSealConfig=config.resetSealConfig;exports.mapToStandardResult=mapResult.mapToStandardResult;exports.applyNullable=jsonSchema.applyNullable;exports.getRuleOptions=jsonSchema.getRuleOptions;exports.wrapNullableStrict=jsonSchema.wrapNullableStrict;//# sourceMappingURL=index.js.map
|
package/cjs/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { Mutator } from "../types";
|
|
2
|
-
/** Reverse array order */
|
|
3
|
-
export declare const flipArrayMutator: Mutator;
|
|
4
|
-
/** Reverse array order (alias) */
|
|
5
|
-
export declare const reverseArrayMutator: Mutator;
|
|
6
|
-
/** Sort array */
|
|
7
|
-
export declare const sortArrayMutator: Mutator;
|
|
8
|
-
/** Make array have only unique values */
|
|
9
|
-
export declare const uniqueArrayMutator: Mutator;
|
|
10
|
-
/** Remove empty elements from array */
|
|
11
|
-
export declare const removeEmptyArrayElementsMutator: Mutator;
|
|
12
|
-
//# sourceMappingURL=array-mutators.d.ts.map
|