@warlock.js/seal 5.18.0 → 5.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/esm/config.d.mts +1 -0
- package/esm/config.d.mts.map +1 -1
- package/esm/factory/validators.d.mts.map +1 -1
- package/esm/helpers/get-field-value.d.mts +1 -0
- package/esm/helpers/get-field-value.d.mts.map +1 -1
- package/esm/helpers/validation-helpers.d.mts +1 -0
- package/esm/helpers/validation-helpers.d.mts.map +1 -1
- package/esm/mutators/array-mutators.d.mts +1 -0
- package/esm/mutators/array-mutators.d.mts.map +1 -1
- package/esm/mutators/boolean-mutators.d.mts +1 -0
- package/esm/mutators/boolean-mutators.d.mts.map +1 -1
- package/esm/mutators/date-mutators.d.mts +1 -0
- package/esm/mutators/date-mutators.d.mts.map +1 -1
- package/esm/mutators/number-mutators.d.mts +1 -0
- package/esm/mutators/number-mutators.d.mts.map +1 -1
- package/esm/mutators/object-mutators.d.mts +1 -0
- package/esm/mutators/object-mutators.d.mts.map +1 -1
- package/esm/mutators/scalar-mutators.d.mts +1 -0
- package/esm/mutators/scalar-mutators.d.mts.map +1 -1
- package/esm/mutators/string-mutators.d.mts +1 -0
- package/esm/mutators/string-mutators.d.mts.map +1 -1
- package/esm/rules/array/array-rules.d.mts +1 -0
- package/esm/rules/array/array-rules.d.mts.map +1 -1
- package/esm/rules/color/color-rules.d.mts +1 -0
- package/esm/rules/color/color-rules.d.mts.map +1 -1
- package/esm/rules/common/enum.d.mts +1 -0
- package/esm/rules/common/enum.d.mts.map +1 -1
- package/esm/rules/common/equals-field-rules.d.mts +1 -0
- package/esm/rules/common/equals-field-rules.d.mts.map +1 -1
- package/esm/rules/common/instanceof.d.mts +1 -0
- package/esm/rules/common/instanceof.d.mts.map +1 -1
- package/esm/rules/common/literal.d.mts +1 -0
- package/esm/rules/common/literal.d.mts.map +1 -1
- package/esm/rules/common/type-rules.d.mts +1 -0
- package/esm/rules/common/type-rules.d.mts.map +1 -1
- package/esm/rules/common/unknown-key.d.mts +1 -0
- package/esm/rules/common/unknown-key.d.mts.map +1 -1
- package/esm/rules/conditional/forbidden-if-rules.d.mts +1 -0
- package/esm/rules/conditional/forbidden-if-rules.d.mts.map +1 -1
- package/esm/rules/conditional/present-if-rules.d.mts +1 -0
- package/esm/rules/conditional/present-if-rules.d.mts.map +1 -1
- package/esm/rules/conditional/present-unless-rules.d.mts +1 -0
- package/esm/rules/conditional/present-unless-rules.d.mts.map +1 -1
- package/esm/rules/conditional/present-with-rules.d.mts +1 -0
- package/esm/rules/conditional/present-with-rules.d.mts.map +1 -1
- package/esm/rules/conditional/present-without-rules.d.mts +1 -0
- package/esm/rules/conditional/present-without-rules.d.mts.map +1 -1
- package/esm/rules/conditional/required-if-rules.d.mts +1 -0
- package/esm/rules/conditional/required-if-rules.d.mts.map +1 -1
- package/esm/rules/conditional/required-unless-rules.d.mts +1 -0
- package/esm/rules/conditional/required-unless-rules.d.mts.map +1 -1
- package/esm/rules/conditional/required-when-rule.d.mts +1 -0
- package/esm/rules/conditional/required-when-rule.d.mts.map +1 -1
- package/esm/rules/conditional/required-with-rules.d.mts +1 -0
- package/esm/rules/conditional/required-with-rules.d.mts.map +1 -1
- package/esm/rules/conditional/required-without-rules.d.mts +1 -0
- package/esm/rules/conditional/required-without-rules.d.mts.map +1 -1
- package/esm/rules/core/equal.d.mts +1 -0
- package/esm/rules/core/equal.d.mts.map +1 -1
- package/esm/rules/core/forbidden.d.mts +1 -0
- package/esm/rules/core/forbidden.d.mts.map +1 -1
- package/esm/rules/core/required.d.mts +1 -0
- package/esm/rules/core/required.d.mts.map +1 -1
- package/esm/rules/core/union.d.mts.map +1 -1
- package/esm/rules/core/when.d.mts +1 -0
- package/esm/rules/core/when.d.mts.map +1 -1
- package/esm/rules/date/date-comparison-rules.d.mts +1 -0
- package/esm/rules/date/date-comparison-rules.d.mts.map +1 -1
- package/esm/rules/date/date-day-rules.d.mts +1 -0
- package/esm/rules/date/date-day-rules.d.mts.map +1 -1
- package/esm/rules/date/date-field-comparison-rules.d.mts +1 -0
- package/esm/rules/date/date-field-comparison-rules.d.mts.map +1 -1
- package/esm/rules/date/date-period-rules.d.mts +1 -0
- package/esm/rules/date/date-period-rules.d.mts.map +1 -1
- package/esm/rules/date/date-relative-rules.d.mts +1 -0
- package/esm/rules/date/date-relative-rules.d.mts.map +1 -1
- package/esm/rules/date/date-special-rules.d.mts +1 -0
- package/esm/rules/date/date-special-rules.d.mts.map +1 -1
- package/esm/rules/date/date.d.mts +1 -0
- package/esm/rules/date/date.d.mts.map +1 -1
- package/esm/rules/file/dimensions.d.mts +1 -0
- package/esm/rules/file/dimensions.d.mts.map +1 -1
- package/esm/rules/file/file-size.d.mts +1 -0
- package/esm/rules/file/file-size.d.mts.map +1 -1
- package/esm/rules/length/length-rules.d.mts +1 -0
- package/esm/rules/length/length-rules.d.mts.map +1 -1
- package/esm/rules/number/number-rules.d.mts +1 -0
- package/esm/rules/number/number-rules.d.mts.map +1 -1
- package/esm/rules/string/alpha.d.mts +1 -0
- package/esm/rules/string/alpha.d.mts.map +1 -1
- package/esm/rules/string/credit-card.d.mts +1 -0
- package/esm/rules/string/credit-card.d.mts.map +1 -1
- package/esm/rules/string/email.d.mts +1 -0
- package/esm/rules/string/email.d.mts.map +1 -1
- package/esm/rules/string/id-formats.d.mts +1 -0
- package/esm/rules/string/id-formats.d.mts.map +1 -1
- package/esm/rules/string/ip.d.mts +1 -0
- package/esm/rules/string/ip.d.mts.map +1 -1
- package/esm/rules/string/matches.d.mts +1 -0
- package/esm/rules/string/matches.d.mts.map +1 -1
- package/esm/rules/string/pattern.d.mts +1 -0
- package/esm/rules/string/pattern.d.mts.map +1 -1
- package/esm/rules/string/string-comparison.d.mts +1 -0
- package/esm/rules/string/string-comparison.d.mts.map +1 -1
- package/esm/rules/string/strong-password-rule.d.mts +1 -0
- package/esm/rules/string/strong-password-rule.d.mts.map +1 -1
- package/esm/rules/string/url.d.mts +1 -0
- package/esm/rules/string/url.d.mts.map +1 -1
- package/esm/rules/string/without-whitespace.d.mts +1 -0
- package/esm/rules/string/without-whitespace.d.mts.map +1 -1
- package/esm/standard-schema/map-result.d.mts +1 -0
- package/esm/standard-schema/map-result.d.mts.map +1 -1
- package/esm/validators/array-validator.d.mts.map +1 -1
- package/esm/validators/base-validator.d.mts +1 -0
- package/esm/validators/base-validator.d.mts.map +1 -1
- package/esm/validators/computed-validator.d.mts.map +1 -1
- package/esm/validators/date-validator.d.mts +1 -0
- package/esm/validators/date-validator.d.mts.map +1 -1
- package/esm/validators/discriminated-union-validator.d.mts.map +1 -1
- package/esm/validators/lazy-validator.d.mts.map +1 -1
- package/esm/validators/managed-validator.d.mts.map +1 -1
- package/esm/validators/methods/equality-conditional-methods.d.mts +1 -0
- package/esm/validators/methods/equality-conditional-methods.d.mts.map +1 -1
- package/esm/validators/methods/required-methods.d.mts +1 -0
- package/esm/validators/methods/required-methods.d.mts.map +1 -1
- package/esm/validators/object-validator.d.mts.map +1 -1
- package/esm/validators/record-validator.d.mts.map +1 -1
- package/esm/validators/tuple-validator.d.mts.map +1 -1
- package/llms-full.txt +9 -9
- package/llms.txt +9 -9
- package/package.json +1 -1
- package/skills/bridge-standard-schema/SKILL.md +1 -1
- package/skills/compose-seal-modifiers/SKILL.md +1 -1
- package/skills/define-structural-shape/SKILL.md +1 -1
- package/skills/extend-seal-with-plugins/SKILL.md +1 -1
- package/skills/generate-json-schema/SKILL.md +1 -1
- package/skills/handle-seal-errors/SKILL.md +1 -1
- package/skills/overview/SKILL.md +1 -1
- package/skills/pick-seal-primitive/SKILL.md +1 -1
- package/skills/seal-basics/SKILL.md +1 -1
- package/esm/helpers/index.d.mts +0 -5
- package/esm/mutators/index.d.mts +0 -7
- package/esm/rules/array/index.d.mts +0 -1
- package/esm/rules/color/index.d.mts +0 -1
- package/esm/rules/common/index.d.mts +0 -6
- package/esm/rules/conditional/index.d.mts +0 -10
- package/esm/rules/core/index.d.mts +0 -5
- package/esm/rules/date/index.d.mts +0 -7
- package/esm/rules/file/index.d.mts +0 -2
- package/esm/rules/index.d.mts +0 -45
- package/esm/rules/length/index.d.mts +0 -1
- package/esm/rules/number/index.d.mts +0 -1
- package/esm/rules/string/index.d.mts +0 -11
- package/esm/standard-schema/index.d.mts +0 -3
- package/esm/types/index.d.mts +0 -10
package/skills/overview/SKILL.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: overview
|
|
3
|
-
description:
|
|
3
|
+
description: "@warlock.js/seal overview for orientation and choosing the focused skill for the task."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# `@warlock.js/seal` — overview
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: pick-seal-primitive
|
|
3
|
-
description:
|
|
3
|
+
description: "Picking the right primitive in @warlock.js/seal; use when you need to choose seal primitive."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Picking the right primitive
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: seal-basics
|
|
3
|
-
description:
|
|
3
|
+
description: "Start here for @warlock.js/seal schemas, validation, parsing, and typed structural contracts."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Validate with seal
|
package/esm/helpers/index.d.mts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { isDateValue } from "./date-helpers.mjs";
|
|
2
|
-
import { humanizeSize, resolveFileSize } from "./file.utils.mjs";
|
|
3
|
-
import { getFieldValue } from "./get-field-value.mjs";
|
|
4
|
-
import { setKeyPath } from "./path-helpers.mjs";
|
|
5
|
-
import { VALID_RULE, invalidRule, resolveTranslation } from "./validation-helpers.mjs";
|
package/esm/mutators/index.d.mts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { flipArrayMutator, removeEmptyArrayElementsMutator, reverseArrayMutator, sortArrayMutator, uniqueArrayMutator } from "./array-mutators.mjs";
|
|
2
|
-
import { booleanCoerceMutator, formBooleanMutator } from "./boolean-mutators.mjs";
|
|
3
|
-
import { addDaysMutator, addHoursMutator, addMonthsMutator, addYearsMutator, dateMutator, toDateOnlyMutator, toEndOfDayMutator, toEndOfMonthMutator, toEndOfYearMutator, toFormatMutator, toISOStringMutator, toStartOfDayMutator, toStartOfMonthMutator, toStartOfYearMutator, toTimeOnlyMutator, toTimestampMutator, toUTCMutator } from "./date-mutators.mjs";
|
|
4
|
-
import { absMutator, booleanMutator, ceilMutator, floorMutator, numberMutator, numericMutator, roundMutator, roundNumberMutator, toFixedMutator } from "./number-mutators.mjs";
|
|
5
|
-
import { jsonMutator, objectTrimMutator, stripUnknownMutator } from "./object-mutators.mjs";
|
|
6
|
-
import { stringMutator } from "./scalar-mutators.mjs";
|
|
7
|
-
import { alphaOnlyMutator, alphanumericOnlyMutator, appendMutator, base64DecodeMutator, base64EncodeMutator, camelCaseMutator, capitalizeMutator, htmlEscapeMutator, kebabCaseMutator, lowercaseMutator, ltrimMutator, maskMutator, padEndMutator, padStartMutator, pascalCaseMutator, prependMutator, removeNumbersMutator, removeSpecialCharactersMutator, repeatMutator, replaceAllMutator, replaceMutator, reverseMutator, rtrimMutator, safeHtmlMutator, slugMutator, snakeCaseMutator, stringifyMutator, stripTagsMutator, titleCaseMutator, trimMultipleWhitespaceMutator, trimMutator, truncateMutator, unescapeHtmlMutator, uppercaseMutator, urlDecodeMutator, urlEncodeMutator } from "./string-mutators.mjs";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import { sortedArrayRule, uniqueArrayRule } from "./array-rules.mjs";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import { colorRule, darkColorRule, hexColorRule, hslColorRule, lightColorRule, rgbColorRule, rgbaColorRule } from "./color-rules.mjs";
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { allowedValuesRule, enumRule, inRule, notAllowedValuesRule } from "./enum.mjs";
|
|
2
|
-
import { equalsFieldRule, notEqualsFieldRule } from "./equals-field-rules.mjs";
|
|
3
|
-
import { instanceofRule } from "./instanceof.mjs";
|
|
4
|
-
import { literalRule } from "./literal.mjs";
|
|
5
|
-
import { arrayRule, booleanRule, floatRule, intRule, numberRule, objectRule, plainObjectRule, scalarRule, stringRule } from "./type-rules.mjs";
|
|
6
|
-
import { unknownKeyRule } from "./unknown-key.mjs";
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { requiredIfAllEmptyRule, requiredIfAllNotEmptyRule, requiredIfAnyEmptyRule, requiredIfAnyNotEmptyRule, requiredIfEmptyRule, requiredIfInRule, requiredIfNotEmptyRule, requiredIfNotInRule, requiredIfRule } from "./required-if-rules.mjs";
|
|
2
|
-
import { requiredUnlessRule } from "./required-unless-rules.mjs";
|
|
3
|
-
import { requiredWhenRule } from "./required-when-rule.mjs";
|
|
4
|
-
import { requiredWithAllRule, requiredWithAnyRule, requiredWithRule } from "./required-with-rules.mjs";
|
|
5
|
-
import { requiredWithoutAllRule, requiredWithoutAnyRule, requiredWithoutRule } from "./required-without-rules.mjs";
|
|
6
|
-
import { presentIfEmptyRule, presentIfInRule, presentIfNotEmptyRule, presentIfNotInRule, presentIfRule } from "./present-if-rules.mjs";
|
|
7
|
-
import { presentUnlessRule } from "./present-unless-rules.mjs";
|
|
8
|
-
import { presentWithAllRule, presentWithAnyRule, presentWithRule } from "./present-with-rules.mjs";
|
|
9
|
-
import { presentWithoutAllRule, presentWithoutAnyRule, presentWithoutRule } from "./present-without-rules.mjs";
|
|
10
|
-
import { forbiddenIfEmptyRule, forbiddenIfInRule, forbiddenIfNotEmptyRule, forbiddenIfNotInRule, forbiddenIfNotRule, forbiddenIfRule } from "./forbidden-if-rules.mjs";
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ageRule, beforeHourRule, beforeMinuteRule, beforeTodayRule, betweenHoursRule, betweenMinutesRule, dateRule, fromHourRule, fromMinuteRule, fromTodayRule, maxAgeRule, maxDateRule, minAgeRule, minDateRule, weekDayRule } from "./date.mjs";
|
|
2
|
-
import { afterTodayRule, betweenDatesRule, futureRule, pastRule, todayRule } from "./date-comparison-rules.mjs";
|
|
3
|
-
import { businessDayRule, weekdayRule, weekdaysRule, weekendRule } from "./date-day-rules.mjs";
|
|
4
|
-
import { afterFieldRule, beforeFieldRule, sameAsFieldDateRule } from "./date-field-comparison-rules.mjs";
|
|
5
|
-
import { Month, betweenDaysRule, betweenMonthsRule, betweenTimesRule, betweenYearsRule, maxDayRule, maxMonthRule, maxYearRule, minDayRule, minMonthRule, minYearRule, monthRule, quarterRule, yearRule } from "./date-period-rules.mjs";
|
|
6
|
-
import { withinDaysRule, withinFutureDaysRule, withinPastDaysRule } from "./date-relative-rules.mjs";
|
|
7
|
-
import { betweenAgeRule, birthdayRule, leapYearRule } from "./date-special-rules.mjs";
|
package/esm/rules/index.d.mts
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { equalRule } from "./core/equal.mjs";
|
|
2
|
-
import { forbiddenRule } from "./core/forbidden.mjs";
|
|
3
|
-
import { presentRule, requiredRule } from "./core/required.mjs";
|
|
4
|
-
import { unionRule } from "./core/union.mjs";
|
|
5
|
-
import { whenRule } from "./core/when.mjs";
|
|
6
|
-
import { alphaNumericRule, alphaRule, isNumericRule } from "./string/alpha.mjs";
|
|
7
|
-
import { isCreditCardRule } from "./string/credit-card.mjs";
|
|
8
|
-
import { emailRule } from "./string/email.mjs";
|
|
9
|
-
import { UUIDVersion, cuidRule, nanoidRule, ulidRule, uuidRule } from "./string/id-formats.mjs";
|
|
10
|
-
import { ip4Rule, ip6Rule, ipRule, isIP, isIPv4, isIPv6 } from "./string/ip.mjs";
|
|
11
|
-
import { matchesRule } from "./string/matches.mjs";
|
|
12
|
-
import { patternRule } from "./string/pattern.mjs";
|
|
13
|
-
import { containsRule, endsWithRule, notContainsRule, startsWithRule } from "./string/string-comparison.mjs";
|
|
14
|
-
import { strongPasswordRule } from "./string/strong-password-rule.mjs";
|
|
15
|
-
import { urlRule } from "./string/url.mjs";
|
|
16
|
-
import { withoutWhitespaceRule } from "./string/without-whitespace.mjs";
|
|
17
|
-
import { betweenNumbersRule, evenRule, greaterThanRule, lessThanRule, maxRule, minRule, moduloRule, negativeRule, oddRule, positiveRule } from "./number/number-rules.mjs";
|
|
18
|
-
import { betweenLengthRule, lengthRule, maxLengthRule, maxWordsRule, minLengthRule, minWordsRule, wordsRule } from "./length/length-rules.mjs";
|
|
19
|
-
import { sortedArrayRule, uniqueArrayRule } from "./array/array-rules.mjs";
|
|
20
|
-
import { ageRule, beforeHourRule, beforeMinuteRule, beforeTodayRule, betweenHoursRule, betweenMinutesRule, dateRule, fromHourRule, fromMinuteRule, fromTodayRule, maxAgeRule, maxDateRule, minAgeRule, minDateRule, weekDayRule } from "./date/date.mjs";
|
|
21
|
-
import { afterTodayRule, betweenDatesRule, futureRule, pastRule, todayRule } from "./date/date-comparison-rules.mjs";
|
|
22
|
-
import { businessDayRule, weekdayRule, weekdaysRule, weekendRule } from "./date/date-day-rules.mjs";
|
|
23
|
-
import { afterFieldRule, beforeFieldRule, sameAsFieldDateRule } from "./date/date-field-comparison-rules.mjs";
|
|
24
|
-
import { Month, betweenDaysRule, betweenMonthsRule, betweenTimesRule, betweenYearsRule, maxDayRule, maxMonthRule, maxYearRule, minDayRule, minMonthRule, minYearRule, monthRule, quarterRule, yearRule } from "./date/date-period-rules.mjs";
|
|
25
|
-
import { withinDaysRule, withinFutureDaysRule, withinPastDaysRule } from "./date/date-relative-rules.mjs";
|
|
26
|
-
import { betweenAgeRule, birthdayRule, leapYearRule } from "./date/date-special-rules.mjs";
|
|
27
|
-
import { maxHeightRule, maxWidthRule, minHeightRule, minWidthRule } from "./file/dimensions.mjs";
|
|
28
|
-
import { maxFileSizeRule, minFileSizeRule } from "./file/file-size.mjs";
|
|
29
|
-
import { colorRule, darkColorRule, hexColorRule, hslColorRule, lightColorRule, rgbColorRule, rgbaColorRule } from "./color/color-rules.mjs";
|
|
30
|
-
import { requiredIfAllEmptyRule, requiredIfAllNotEmptyRule, requiredIfAnyEmptyRule, requiredIfAnyNotEmptyRule, requiredIfEmptyRule, requiredIfInRule, requiredIfNotEmptyRule, requiredIfNotInRule, requiredIfRule } from "./conditional/required-if-rules.mjs";
|
|
31
|
-
import { requiredUnlessRule } from "./conditional/required-unless-rules.mjs";
|
|
32
|
-
import { requiredWhenRule } from "./conditional/required-when-rule.mjs";
|
|
33
|
-
import { requiredWithAllRule, requiredWithAnyRule, requiredWithRule } from "./conditional/required-with-rules.mjs";
|
|
34
|
-
import { requiredWithoutAllRule, requiredWithoutAnyRule, requiredWithoutRule } from "./conditional/required-without-rules.mjs";
|
|
35
|
-
import { presentIfEmptyRule, presentIfInRule, presentIfNotEmptyRule, presentIfNotInRule, presentIfRule } from "./conditional/present-if-rules.mjs";
|
|
36
|
-
import { presentUnlessRule } from "./conditional/present-unless-rules.mjs";
|
|
37
|
-
import { presentWithAllRule, presentWithAnyRule, presentWithRule } from "./conditional/present-with-rules.mjs";
|
|
38
|
-
import { presentWithoutAllRule, presentWithoutAnyRule, presentWithoutRule } from "./conditional/present-without-rules.mjs";
|
|
39
|
-
import { forbiddenIfEmptyRule, forbiddenIfInRule, forbiddenIfNotEmptyRule, forbiddenIfNotInRule, forbiddenIfNotRule, forbiddenIfRule } from "./conditional/forbidden-if-rules.mjs";
|
|
40
|
-
import { allowedValuesRule, enumRule, inRule, notAllowedValuesRule } from "./common/enum.mjs";
|
|
41
|
-
import { equalsFieldRule, notEqualsFieldRule } from "./common/equals-field-rules.mjs";
|
|
42
|
-
import { instanceofRule } from "./common/instanceof.mjs";
|
|
43
|
-
import { literalRule } from "./common/literal.mjs";
|
|
44
|
-
import { arrayRule, booleanRule, floatRule, intRule, numberRule, objectRule, plainObjectRule, scalarRule, stringRule } from "./common/type-rules.mjs";
|
|
45
|
-
import { unknownKeyRule } from "./common/unknown-key.mjs";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import { betweenLengthRule, lengthRule, maxLengthRule, maxWordsRule, minLengthRule, minWordsRule, wordsRule } from "./length-rules.mjs";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import { betweenNumbersRule, evenRule, greaterThanRule, lessThanRule, maxRule, minRule, moduloRule, negativeRule, oddRule, positiveRule } from "./number-rules.mjs";
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { alphaNumericRule, alphaRule, isNumericRule } from "./alpha.mjs";
|
|
2
|
-
import { isCreditCardRule } from "./credit-card.mjs";
|
|
3
|
-
import { emailRule } from "./email.mjs";
|
|
4
|
-
import { UUIDVersion, cuidRule, nanoidRule, ulidRule, uuidRule } from "./id-formats.mjs";
|
|
5
|
-
import { ip4Rule, ip6Rule, ipRule, isIP, isIPv4, isIPv6 } from "./ip.mjs";
|
|
6
|
-
import { matchesRule } from "./matches.mjs";
|
|
7
|
-
import { patternRule } from "./pattern.mjs";
|
|
8
|
-
import { containsRule, endsWithRule, notContainsRule, startsWithRule } from "./string-comparison.mjs";
|
|
9
|
-
import { strongPasswordRule } from "./strong-password-rule.mjs";
|
|
10
|
-
import { urlRule } from "./url.mjs";
|
|
11
|
-
import { withoutWhitespaceRule } from "./without-whitespace.mjs";
|
package/esm/types/index.d.mts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Schema } from "./schema-types.mjs";
|
|
2
|
-
import { ContextualSchemaRule, RuleResult, SchemaRule, SchemaRuleOptions, ValidationAttributesList } from "./rule-types.mjs";
|
|
3
|
-
import { AttributeTranslation, RuleTranslation, SchemaContext } from "./context-types.mjs";
|
|
4
|
-
import { ValidationResult } from "./result-types.mjs";
|
|
5
|
-
import { ContextualizedMutator, Mutator, MutatorContext } from "./mutator-types.mjs";
|
|
6
|
-
import { WhenRuleOptions } from "./conditional-types.mjs";
|
|
7
|
-
import { ContextualizedTransformer, SimpleTransformerCallback, TransformerCallback } from "./data-transformer-types.mjs";
|
|
8
|
-
import { Infer, InferInput, InferInputObjectShape, InferObjectShape, InferOutput, InferOutputObjectShape, IsInputOptionalKey, IsOptionalKey, IsOutputOptionalKey } from "./inference-types.mjs";
|
|
9
|
-
import { WEEK_DAYS, WeekDay } from "./date-types.mjs";
|
|
10
|
-
import { FileSizeOption } from "./file.types.mjs";
|