bguard 0.5.0 → 0.7.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/README.md +643 -7
- package/lib/InferType.d.mts +37 -3
- package/lib/InferType.d.ts +37 -3
- package/lib/asserts/array/index.d.mts +8 -3
- package/lib/asserts/array/index.d.ts +8 -3
- package/lib/asserts/array/index.js +6 -12
- package/lib/asserts/array/index.js.map +1 -1
- package/lib/asserts/array/index.mjs +6 -12
- package/lib/asserts/array/index.mjs.map +1 -1
- package/lib/asserts/array/maxArrayLength.d.mts +5 -2
- package/lib/asserts/array/maxArrayLength.d.ts +5 -2
- package/lib/asserts/array/maxArrayLength.js +5 -13
- package/lib/asserts/array/maxArrayLength.js.map +1 -1
- package/lib/asserts/array/maxArrayLength.mjs +5 -13
- package/lib/asserts/array/maxArrayLength.mjs.map +1 -1
- package/lib/asserts/array/minArrayLength.d.mts +5 -2
- package/lib/asserts/array/minArrayLength.d.ts +5 -2
- package/lib/asserts/array/minArrayLength.js +5 -13
- package/lib/asserts/array/minArrayLength.js.map +1 -1
- package/lib/asserts/array/minArrayLength.mjs +5 -13
- package/lib/asserts/array/minArrayLength.mjs.map +1 -1
- package/lib/asserts/bigint/bigintMax.d.mts +5 -2
- package/lib/asserts/bigint/bigintMax.d.ts +5 -2
- package/lib/asserts/bigint/bigintMax.js +4 -13
- package/lib/asserts/bigint/bigintMax.js.map +1 -1
- package/lib/asserts/bigint/bigintMax.mjs +4 -13
- package/lib/asserts/bigint/bigintMax.mjs.map +1 -1
- package/lib/asserts/bigint/bigintMaxExcluded.d.mts +5 -2
- package/lib/asserts/bigint/bigintMaxExcluded.d.ts +5 -2
- package/lib/asserts/bigint/bigintMaxExcluded.js +4 -13
- package/lib/asserts/bigint/bigintMaxExcluded.js.map +1 -1
- package/lib/asserts/bigint/bigintMaxExcluded.mjs +4 -13
- package/lib/asserts/bigint/bigintMaxExcluded.mjs.map +1 -1
- package/lib/asserts/bigint/bigintMin.d.mts +5 -2
- package/lib/asserts/bigint/bigintMin.d.ts +5 -2
- package/lib/asserts/bigint/bigintMin.js +4 -13
- package/lib/asserts/bigint/bigintMin.js.map +1 -1
- package/lib/asserts/bigint/bigintMin.mjs +4 -13
- package/lib/asserts/bigint/bigintMin.mjs.map +1 -1
- package/lib/asserts/bigint/bigintMinExcluded.d.mts +5 -2
- package/lib/asserts/bigint/bigintMinExcluded.d.ts +5 -2
- package/lib/asserts/bigint/bigintMinExcluded.js +4 -13
- package/lib/asserts/bigint/bigintMinExcluded.js.map +1 -1
- package/lib/asserts/bigint/bigintMinExcluded.mjs +4 -13
- package/lib/asserts/bigint/bigintMinExcluded.mjs.map +1 -1
- package/lib/asserts/bigint/index.d.mts +35 -4
- package/lib/asserts/bigint/index.d.ts +35 -4
- package/lib/asserts/bigint/index.js +9 -16
- package/lib/asserts/bigint/index.js.map +1 -1
- package/lib/asserts/bigint/index.mjs +9 -16
- package/lib/asserts/bigint/index.mjs.map +1 -1
- package/lib/asserts/boolean/index.d.mts +32 -3
- package/lib/asserts/boolean/index.d.ts +32 -3
- package/lib/asserts/boolean/index.js +7 -13
- package/lib/asserts/boolean/index.js.map +1 -1
- package/lib/asserts/boolean/index.mjs +7 -13
- package/lib/asserts/boolean/index.mjs.map +1 -1
- package/lib/asserts/coerce/index.d.mts +52 -0
- package/lib/asserts/coerce/index.d.ts +52 -0
- package/lib/asserts/coerce/index.js +21 -0
- package/lib/asserts/coerce/index.js.map +1 -0
- package/lib/asserts/coerce/index.mjs +21 -0
- package/lib/asserts/date/dateMax.d.mts +5 -2
- package/lib/asserts/date/dateMax.d.ts +5 -2
- package/lib/asserts/date/dateMax.js +5 -22
- package/lib/asserts/date/dateMax.js.map +1 -1
- package/lib/asserts/date/dateMax.mjs +5 -22
- package/lib/asserts/date/dateMax.mjs.map +1 -1
- package/lib/asserts/date/dateMin.d.mts +5 -2
- package/lib/asserts/date/dateMin.d.ts +5 -2
- package/lib/asserts/date/dateMin.js +5 -22
- package/lib/asserts/date/dateMin.js.map +1 -1
- package/lib/asserts/date/dateMin.mjs +5 -22
- package/lib/asserts/date/dateMin.mjs.map +1 -1
- package/lib/asserts/date/index.d.mts +7 -3
- package/lib/asserts/date/index.d.ts +7 -3
- package/lib/asserts/date/index.js +6 -12
- package/lib/asserts/date/index.js.map +1 -1
- package/lib/asserts/date/index.mjs +6 -12
- package/lib/asserts/date/index.mjs.map +1 -1
- package/lib/asserts/intersection/index.d.mts +36 -0
- package/lib/asserts/intersection/index.d.ts +36 -0
- package/lib/asserts/intersection/index.js +13 -0
- package/lib/asserts/intersection/index.js.map +1 -0
- package/lib/asserts/intersection/index.mjs +13 -0
- package/lib/asserts/lazy/index.d.mts +42 -0
- package/lib/asserts/lazy/index.d.ts +42 -0
- package/lib/asserts/lazy/index.js +12 -0
- package/lib/asserts/lazy/index.js.map +1 -0
- package/lib/asserts/lazy/index.mjs +12 -0
- package/lib/asserts/mix/equalTo.d.mts +5 -2
- package/lib/asserts/mix/equalTo.d.ts +5 -2
- package/lib/asserts/mix/equalTo.js +4 -4
- package/lib/asserts/mix/equalTo.mjs +3 -3
- package/lib/asserts/mix/index.d.mts +12 -6
- package/lib/asserts/mix/index.d.ts +12 -6
- package/lib/asserts/mix/index.js +6 -11
- package/lib/asserts/mix/index.js.map +1 -1
- package/lib/asserts/mix/index.mjs +6 -11
- package/lib/asserts/mix/index.mjs.map +1 -1
- package/lib/asserts/mix/oneOfValues.d.mts +5 -2
- package/lib/asserts/mix/oneOfValues.d.ts +5 -2
- package/lib/asserts/mix/oneOfValues.js +4 -4
- package/lib/asserts/mix/oneOfValues.mjs +3 -3
- package/lib/asserts/number/index.d.mts +29 -3
- package/lib/asserts/number/index.d.ts +29 -3
- package/lib/asserts/number/index.js +9 -16
- package/lib/asserts/number/index.js.map +1 -1
- package/lib/asserts/number/index.mjs +9 -16
- package/lib/asserts/number/index.mjs.map +1 -1
- package/lib/asserts/number/max.d.mts +5 -2
- package/lib/asserts/number/max.d.ts +5 -2
- package/lib/asserts/number/max.js +5 -13
- package/lib/asserts/number/max.js.map +1 -1
- package/lib/asserts/number/max.mjs +5 -13
- package/lib/asserts/number/max.mjs.map +1 -1
- package/lib/asserts/number/maxExcluded.d.mts +5 -2
- package/lib/asserts/number/maxExcluded.d.ts +5 -2
- package/lib/asserts/number/maxExcluded.js +5 -13
- package/lib/asserts/number/maxExcluded.js.map +1 -1
- package/lib/asserts/number/maxExcluded.mjs +5 -13
- package/lib/asserts/number/maxExcluded.mjs.map +1 -1
- package/lib/asserts/number/min.d.mts +5 -2
- package/lib/asserts/number/min.d.ts +5 -2
- package/lib/asserts/number/min.js +5 -13
- package/lib/asserts/number/min.js.map +1 -1
- package/lib/asserts/number/min.mjs +5 -13
- package/lib/asserts/number/min.mjs.map +1 -1
- package/lib/asserts/number/minExcluded.d.mts +5 -2
- package/lib/asserts/number/minExcluded.d.ts +5 -2
- package/lib/asserts/number/minExcluded.js +5 -13
- package/lib/asserts/number/minExcluded.js.map +1 -1
- package/lib/asserts/number/minExcluded.mjs +5 -13
- package/lib/asserts/number/minExcluded.mjs.map +1 -1
- package/lib/asserts/number/negative.d.mts +5 -2
- package/lib/asserts/number/negative.d.ts +5 -2
- package/lib/asserts/number/negative.js +5 -13
- package/lib/asserts/number/negative.js.map +1 -1
- package/lib/asserts/number/negative.mjs +5 -13
- package/lib/asserts/number/negative.mjs.map +1 -1
- package/lib/asserts/number/positive.d.mts +5 -2
- package/lib/asserts/number/positive.d.ts +5 -2
- package/lib/asserts/number/positive.js +5 -13
- package/lib/asserts/number/positive.js.map +1 -1
- package/lib/asserts/number/positive.mjs +5 -13
- package/lib/asserts/number/positive.mjs.map +1 -1
- package/lib/asserts/object/extend.d.mts +29 -0
- package/lib/asserts/object/extend.d.ts +29 -0
- package/lib/asserts/object/extend.js +14 -0
- package/lib/asserts/object/extend.js.map +1 -0
- package/lib/asserts/object/extend.mjs +14 -0
- package/lib/asserts/object/index.d.mts +28 -4
- package/lib/asserts/object/index.d.ts +28 -4
- package/lib/asserts/object/index.js +7 -11
- package/lib/asserts/object/index.js.map +1 -1
- package/lib/asserts/object/index.mjs +8 -12
- package/lib/asserts/object/index.mjs.map +1 -1
- package/lib/asserts/object/maxKeys.d.mts +5 -2
- package/lib/asserts/object/maxKeys.d.ts +5 -2
- package/lib/asserts/object/maxKeys.js +5 -16
- package/lib/asserts/object/maxKeys.js.map +1 -1
- package/lib/asserts/object/maxKeys.mjs +5 -16
- package/lib/asserts/object/maxKeys.mjs.map +1 -1
- package/lib/asserts/object/omit.d.mts +27 -0
- package/lib/asserts/object/omit.d.ts +27 -0
- package/lib/asserts/object/omit.js +14 -0
- package/lib/asserts/object/omit.js.map +1 -0
- package/lib/asserts/object/omit.mjs +14 -0
- package/lib/asserts/object/partial.d.mts +34 -0
- package/lib/asserts/object/partial.d.ts +34 -0
- package/lib/asserts/object/partial.js +14 -0
- package/lib/asserts/object/partial.js.map +1 -0
- package/lib/asserts/object/partial.mjs +14 -0
- package/lib/asserts/object/pick.d.mts +32 -0
- package/lib/asserts/object/pick.d.ts +32 -0
- package/lib/asserts/object/pick.js +17 -0
- package/lib/asserts/object/pick.js.map +1 -0
- package/lib/asserts/object/pick.mjs +17 -0
- package/lib/asserts/object/required.d.mts +39 -0
- package/lib/asserts/object/required.d.ts +39 -0
- package/lib/asserts/object/required.js +14 -0
- package/lib/asserts/object/required.js.map +1 -0
- package/lib/asserts/object/required.mjs +14 -0
- package/lib/asserts/record/index.d.mts +28 -0
- package/lib/asserts/record/index.d.ts +28 -0
- package/lib/asserts/record/index.js +12 -0
- package/lib/asserts/record/index.js.map +1 -0
- package/lib/asserts/record/index.mjs +12 -0
- package/lib/asserts/string/atLeastOneDigit.d.mts +5 -2
- package/lib/asserts/string/atLeastOneDigit.d.ts +5 -2
- package/lib/asserts/string/atLeastOneDigit.js +4 -14
- package/lib/asserts/string/atLeastOneDigit.js.map +1 -1
- package/lib/asserts/string/atLeastOneDigit.mjs +4 -14
- package/lib/asserts/string/atLeastOneDigit.mjs.map +1 -1
- package/lib/asserts/string/atLeastOneLowerChar.d.mts +5 -2
- package/lib/asserts/string/atLeastOneLowerChar.d.ts +5 -2
- package/lib/asserts/string/atLeastOneLowerChar.js +4 -15
- package/lib/asserts/string/atLeastOneLowerChar.js.map +1 -1
- package/lib/asserts/string/atLeastOneLowerChar.mjs +4 -15
- package/lib/asserts/string/atLeastOneLowerChar.mjs.map +1 -1
- package/lib/asserts/string/atLeastOneSpecialChar.d.mts +5 -2
- package/lib/asserts/string/atLeastOneSpecialChar.d.ts +5 -2
- package/lib/asserts/string/atLeastOneSpecialChar.js +5 -19
- package/lib/asserts/string/atLeastOneSpecialChar.js.map +1 -1
- package/lib/asserts/string/atLeastOneSpecialChar.mjs +4 -18
- package/lib/asserts/string/atLeastOneSpecialChar.mjs.map +1 -1
- package/lib/asserts/string/atLeastOneUpperChar.d.mts +5 -2
- package/lib/asserts/string/atLeastOneUpperChar.d.ts +5 -2
- package/lib/asserts/string/atLeastOneUpperChar.js +4 -15
- package/lib/asserts/string/atLeastOneUpperChar.js.map +1 -1
- package/lib/asserts/string/atLeastOneUpperChar.mjs +4 -15
- package/lib/asserts/string/atLeastOneUpperChar.mjs.map +1 -1
- package/lib/asserts/string/contains.d.mts +5 -2
- package/lib/asserts/string/contains.d.ts +5 -2
- package/lib/asserts/string/contains.js +4 -15
- package/lib/asserts/string/contains.js.map +1 -1
- package/lib/asserts/string/contains.mjs +4 -15
- package/lib/asserts/string/contains.mjs.map +1 -1
- package/lib/asserts/string/email.d.mts +5 -2
- package/lib/asserts/string/email.d.ts +5 -2
- package/lib/asserts/string/email.js +5 -14
- package/lib/asserts/string/email.js.map +1 -1
- package/lib/asserts/string/email.mjs +5 -14
- package/lib/asserts/string/email.mjs.map +1 -1
- package/lib/asserts/string/endsWith.d.mts +5 -2
- package/lib/asserts/string/endsWith.d.ts +5 -2
- package/lib/asserts/string/endsWith.js +4 -15
- package/lib/asserts/string/endsWith.js.map +1 -1
- package/lib/asserts/string/endsWith.mjs +4 -15
- package/lib/asserts/string/endsWith.mjs.map +1 -1
- package/lib/asserts/string/index.d.mts +34 -3
- package/lib/asserts/string/index.d.ts +34 -3
- package/lib/asserts/string/index.js +10 -16
- package/lib/asserts/string/index.js.map +1 -1
- package/lib/asserts/string/index.mjs +10 -16
- package/lib/asserts/string/index.mjs.map +1 -1
- package/lib/asserts/string/isValidDate.d.mts +5 -2
- package/lib/asserts/string/isValidDate.d.ts +5 -2
- package/lib/asserts/string/isValidDate.js +5 -18
- package/lib/asserts/string/isValidDate.js.map +1 -1
- package/lib/asserts/string/isValidDate.mjs +5 -18
- package/lib/asserts/string/isValidDate.mjs.map +1 -1
- package/lib/asserts/string/isValidDateTime.d.mts +5 -2
- package/lib/asserts/string/isValidDateTime.d.ts +5 -2
- package/lib/asserts/string/isValidDateTime.js +5 -25
- package/lib/asserts/string/isValidDateTime.js.map +1 -1
- package/lib/asserts/string/isValidDateTime.mjs +5 -25
- package/lib/asserts/string/isValidDateTime.mjs.map +1 -1
- package/lib/asserts/string/isValidTime.d.mts +5 -2
- package/lib/asserts/string/isValidTime.d.ts +5 -2
- package/lib/asserts/string/isValidTime.js +5 -25
- package/lib/asserts/string/isValidTime.js.map +1 -1
- package/lib/asserts/string/isValidTime.mjs +5 -25
- package/lib/asserts/string/isValidTime.mjs.map +1 -1
- package/lib/asserts/string/lowerCase.d.mts +5 -2
- package/lib/asserts/string/lowerCase.d.ts +5 -2
- package/lib/asserts/string/lowerCase.js +4 -13
- package/lib/asserts/string/lowerCase.js.map +1 -1
- package/lib/asserts/string/lowerCase.mjs +4 -13
- package/lib/asserts/string/lowerCase.mjs.map +1 -1
- package/lib/asserts/string/maxLength.d.mts +5 -2
- package/lib/asserts/string/maxLength.d.ts +5 -2
- package/lib/asserts/string/maxLength.js +5 -13
- package/lib/asserts/string/maxLength.js.map +1 -1
- package/lib/asserts/string/maxLength.mjs +5 -13
- package/lib/asserts/string/maxLength.mjs.map +1 -1
- package/lib/asserts/string/minLength.d.mts +5 -2
- package/lib/asserts/string/minLength.d.ts +5 -2
- package/lib/asserts/string/minLength.js +5 -13
- package/lib/asserts/string/minLength.js.map +1 -1
- package/lib/asserts/string/minLength.mjs +5 -13
- package/lib/asserts/string/minLength.mjs.map +1 -1
- package/lib/asserts/string/regExp.d.mts +5 -2
- package/lib/asserts/string/regExp.d.ts +5 -2
- package/lib/asserts/string/regExp.js +5 -13
- package/lib/asserts/string/regExp.js.map +1 -1
- package/lib/asserts/string/regExp.mjs +5 -13
- package/lib/asserts/string/regExp.mjs.map +1 -1
- package/lib/asserts/string/startsWith.d.mts +5 -2
- package/lib/asserts/string/startsWith.d.ts +5 -2
- package/lib/asserts/string/startsWith.js +4 -15
- package/lib/asserts/string/startsWith.js.map +1 -1
- package/lib/asserts/string/startsWith.mjs +4 -15
- package/lib/asserts/string/startsWith.mjs.map +1 -1
- package/lib/asserts/string/upperCase.d.mts +5 -2
- package/lib/asserts/string/upperCase.d.ts +5 -2
- package/lib/asserts/string/upperCase.js +4 -15
- package/lib/asserts/string/upperCase.js.map +1 -1
- package/lib/asserts/string/upperCase.mjs +4 -15
- package/lib/asserts/string/upperCase.mjs.map +1 -1
- package/lib/asserts/string/uuid.d.mts +5 -2
- package/lib/asserts/string/uuid.d.ts +5 -2
- package/lib/asserts/string/uuid.js +5 -16
- package/lib/asserts/string/uuid.js.map +1 -1
- package/lib/asserts/string/uuid.mjs +5 -16
- package/lib/asserts/string/uuid.mjs.map +1 -1
- package/lib/asserts/string/uuidV1.d.mts +5 -2
- package/lib/asserts/string/uuidV1.d.ts +5 -2
- package/lib/asserts/string/uuidV1.js +4 -16
- package/lib/asserts/string/uuidV1.js.map +1 -1
- package/lib/asserts/string/uuidV1.mjs +4 -16
- package/lib/asserts/string/uuidV1.mjs.map +1 -1
- package/lib/asserts/string/uuidV2.d.mts +5 -2
- package/lib/asserts/string/uuidV2.d.ts +5 -2
- package/lib/asserts/string/uuidV2.js +4 -16
- package/lib/asserts/string/uuidV2.js.map +1 -1
- package/lib/asserts/string/uuidV2.mjs +4 -16
- package/lib/asserts/string/uuidV2.mjs.map +1 -1
- package/lib/asserts/string/uuidV3.d.mts +5 -2
- package/lib/asserts/string/uuidV3.d.ts +5 -2
- package/lib/asserts/string/uuidV3.js +4 -16
- package/lib/asserts/string/uuidV3.js.map +1 -1
- package/lib/asserts/string/uuidV3.mjs +4 -16
- package/lib/asserts/string/uuidV3.mjs.map +1 -1
- package/lib/asserts/string/uuidV4.d.mts +5 -2
- package/lib/asserts/string/uuidV4.d.ts +5 -2
- package/lib/asserts/string/uuidV4.js +4 -16
- package/lib/asserts/string/uuidV4.js.map +1 -1
- package/lib/asserts/string/uuidV4.mjs +4 -16
- package/lib/asserts/string/uuidV4.mjs.map +1 -1
- package/lib/asserts/string/uuidV5.d.mts +5 -2
- package/lib/asserts/string/uuidV5.d.ts +5 -2
- package/lib/asserts/string/uuidV5.js +4 -16
- package/lib/asserts/string/uuidV5.js.map +1 -1
- package/lib/asserts/string/uuidV5.mjs +4 -16
- package/lib/asserts/string/uuidV5.mjs.map +1 -1
- package/lib/asserts/string/validUrl.d.mts +5 -2
- package/lib/asserts/string/validUrl.d.ts +5 -2
- package/lib/asserts/string/validUrl.js +5 -20
- package/lib/asserts/string/validUrl.js.map +1 -1
- package/lib/asserts/string/validUrl.mjs +5 -20
- package/lib/asserts/string/validUrl.mjs.map +1 -1
- package/lib/asserts/tuple/index.d.mts +28 -0
- package/lib/asserts/tuple/index.d.ts +28 -0
- package/lib/asserts/tuple/index.js +12 -0
- package/lib/asserts/tuple/index.js.map +1 -0
- package/lib/asserts/tuple/index.mjs +12 -0
- package/lib/asserts/union/index.d.mts +29 -0
- package/lib/asserts/union/index.d.ts +29 -0
- package/lib/asserts/union/index.js +12 -0
- package/lib/asserts/union/index.js.map +1 -0
- package/lib/asserts/union/index.mjs +12 -0
- package/lib/chunk-2AYQ7GRP.js +33 -0
- package/lib/chunk-2AYQ7GRP.js.map +1 -0
- package/lib/chunk-2KLV3CHA.js +20 -0
- package/lib/chunk-2KLV3CHA.js.map +1 -0
- package/lib/chunk-2X6V3ODY.js +20 -0
- package/lib/chunk-2X6V3ODY.js.map +1 -0
- package/lib/chunk-346TIMNH.mjs +18 -0
- package/lib/chunk-346TIMNH.mjs.map +1 -0
- package/lib/{chunk-32MKEBKR.js → chunk-3D6TPN7F.js} +3 -3
- package/lib/chunk-3D6TPN7F.js.map +1 -0
- package/lib/chunk-3OAUE5VW.js +28 -0
- package/lib/chunk-3OAUE5VW.js.map +1 -0
- package/lib/chunk-3PTVMZY7.js +22 -0
- package/lib/chunk-3PTVMZY7.js.map +1 -0
- package/lib/chunk-3T5QKF7X.mjs +18 -0
- package/lib/chunk-3T5QKF7X.mjs.map +1 -0
- package/lib/chunk-45K4AUO3.js +22 -0
- package/lib/chunk-45K4AUO3.js.map +1 -0
- package/lib/chunk-4AZOGLHD.mjs +21 -0
- package/lib/chunk-4AZOGLHD.mjs.map +1 -0
- package/lib/chunk-54F462SS.mjs +21 -0
- package/lib/chunk-54F462SS.mjs.map +1 -0
- package/lib/chunk-55P4YTMX.mjs +20 -0
- package/lib/chunk-55P4YTMX.mjs.map +1 -0
- package/lib/chunk-5PIGAEGL.mjs +22 -0
- package/lib/chunk-5PIGAEGL.mjs.map +1 -0
- package/lib/chunk-5U5CYDRB.mjs +21 -0
- package/lib/chunk-5U5CYDRB.mjs.map +1 -0
- package/lib/chunk-5VZDHJKM.mjs +68 -0
- package/lib/chunk-5VZDHJKM.mjs.map +1 -0
- package/lib/chunk-5WLWZKC6.mjs +21 -0
- package/lib/chunk-5WLWZKC6.mjs.map +1 -0
- package/lib/chunk-5WV7FMW7.mjs +33 -0
- package/lib/chunk-5WV7FMW7.mjs.map +1 -0
- package/lib/{chunk-QWPHP26D.mjs → chunk-65X7NTUS.mjs} +18 -9
- package/lib/chunk-65X7NTUS.mjs.map +1 -0
- package/lib/chunk-6LUSV3SS.js +595 -0
- package/lib/chunk-6LUSV3SS.js.map +1 -0
- package/lib/chunk-7A4RN5UD.js +21 -0
- package/lib/chunk-7A4RN5UD.js.map +1 -0
- package/lib/chunk-7CNZKYPM.js +21 -0
- package/lib/chunk-7CNZKYPM.js.map +1 -0
- package/lib/chunk-7F4P72SG.mjs +18 -0
- package/lib/chunk-7F4P72SG.mjs.map +1 -0
- package/lib/chunk-A36G62K5.mjs +49 -0
- package/lib/chunk-A36G62K5.mjs.map +1 -0
- package/lib/chunk-A5OEVSSV.js +21 -0
- package/lib/chunk-A5OEVSSV.js.map +1 -0
- package/lib/chunk-ABSZMCDX.mjs +21 -0
- package/lib/chunk-ABSZMCDX.mjs.map +1 -0
- package/lib/chunk-ALXDH7GS.js +23 -0
- package/lib/chunk-ALXDH7GS.js.map +1 -0
- package/lib/chunk-AO6DKPJZ.js +49 -0
- package/lib/chunk-AO6DKPJZ.js.map +1 -0
- package/lib/chunk-AYJCGPXI.mjs +20 -0
- package/lib/chunk-AYJCGPXI.mjs.map +1 -0
- package/lib/chunk-AYSJLD4S.mjs +28 -0
- package/lib/chunk-AYSJLD4S.mjs.map +1 -0
- package/lib/{chunk-XG6K6N3A.mjs → chunk-B2R5S6OH.mjs} +9 -6
- package/lib/chunk-B2R5S6OH.mjs.map +1 -0
- package/lib/chunk-B3IWQRZF.mjs +22 -0
- package/lib/chunk-B3IWQRZF.mjs.map +1 -0
- package/lib/chunk-B4WB3UB7.js +20 -0
- package/lib/chunk-B4WB3UB7.js.map +1 -0
- package/lib/chunk-BZ6R6RWE.mjs +19 -0
- package/lib/chunk-BZ6R6RWE.mjs.map +1 -0
- package/lib/chunk-C6ICGQEX.mjs +21 -0
- package/lib/chunk-C6ICGQEX.mjs.map +1 -0
- package/lib/{chunk-ASZW6XRM.mjs → chunk-C76DLZFD.mjs} +4 -2
- package/lib/{chunk-ASZW6XRM.mjs.map → chunk-C76DLZFD.mjs.map} +1 -1
- package/lib/chunk-CJCIOMS7.mjs +66 -0
- package/lib/chunk-CJCIOMS7.mjs.map +1 -0
- package/lib/chunk-CLRHVTVY.js +50 -0
- package/lib/chunk-CLRHVTVY.js.map +1 -0
- package/lib/chunk-CWYS6MUA.js +18 -0
- package/lib/chunk-CWYS6MUA.js.map +1 -0
- package/lib/{chunk-P54CF5QN.mjs → chunk-D42AL6CN.mjs} +2 -2
- package/lib/chunk-D42AL6CN.mjs.map +1 -0
- package/lib/chunk-D4YY45O2.mjs +21 -0
- package/lib/chunk-D4YY45O2.mjs.map +1 -0
- package/lib/chunk-DKGRAVID.js +70 -0
- package/lib/chunk-DKGRAVID.js.map +1 -0
- package/lib/chunk-DLEDKNPD.mjs +21 -0
- package/lib/chunk-DLEDKNPD.mjs.map +1 -0
- package/lib/chunk-DPXTSNEX.js +23 -0
- package/lib/chunk-DPXTSNEX.js.map +1 -0
- package/lib/chunk-ECLNZ233.js +26 -0
- package/lib/chunk-ECLNZ233.js.map +1 -0
- package/lib/chunk-EEKYR5IA.js +19 -0
- package/lib/chunk-EEKYR5IA.js.map +1 -0
- package/lib/chunk-EJCCIGXH.js +31 -0
- package/lib/chunk-EJCCIGXH.js.map +1 -0
- package/lib/chunk-EN745GWN.js +33 -0
- package/lib/chunk-EN745GWN.js.map +1 -0
- package/lib/chunk-ETBJ4NF4.mjs +21 -0
- package/lib/chunk-ETBJ4NF4.mjs.map +1 -0
- package/lib/chunk-EVM26M2C.js +66 -0
- package/lib/chunk-EVM26M2C.js.map +1 -0
- package/lib/chunk-FJEBPEGR.js +21 -0
- package/lib/chunk-FJEBPEGR.js.map +1 -0
- package/lib/chunk-FTHEF6SB.js +14 -0
- package/lib/chunk-FTHEF6SB.js.map +1 -0
- package/lib/chunk-G2VC3SQB.js +22 -0
- package/lib/chunk-G2VC3SQB.js.map +1 -0
- package/lib/chunk-G6YZVGWC.mjs +21 -0
- package/lib/chunk-G6YZVGWC.mjs.map +1 -0
- package/lib/chunk-GSLVYDXO.js +18 -0
- package/lib/chunk-GSLVYDXO.js.map +1 -0
- package/lib/chunk-GTGXSQKC.js +21 -0
- package/lib/chunk-GTGXSQKC.js.map +1 -0
- package/lib/chunk-GYLCPX6O.js +68 -0
- package/lib/chunk-GYLCPX6O.js.map +1 -0
- package/lib/chunk-H3FXZTYS.mjs +18 -0
- package/lib/chunk-H3FXZTYS.mjs.map +1 -0
- package/lib/chunk-HKDDJSN2.mjs +21 -0
- package/lib/chunk-HKDDJSN2.mjs.map +1 -0
- package/lib/{chunk-YSCVE4PJ.mjs → chunk-IIL6D2UL.mjs} +2 -2
- package/lib/chunk-IIL6D2UL.mjs.map +1 -0
- package/lib/chunk-IWNVHB2K.mjs +22 -0
- package/lib/chunk-IWNVHB2K.mjs.map +1 -0
- package/lib/chunk-JF7KZZ7R.js +21 -0
- package/lib/chunk-JF7KZZ7R.js.map +1 -0
- package/lib/chunk-JHONMWCE.js +27 -0
- package/lib/chunk-JHONMWCE.js.map +1 -0
- package/lib/chunk-JLEQOYDW.js +59 -0
- package/lib/chunk-JLEQOYDW.js.map +1 -0
- package/lib/chunk-JND3VAPR.mjs +19 -0
- package/lib/chunk-JND3VAPR.mjs.map +1 -0
- package/lib/chunk-K4YXIN2V.mjs +33 -0
- package/lib/chunk-K4YXIN2V.mjs.map +1 -0
- package/lib/chunk-K6QYFFMX.mjs +21 -0
- package/lib/chunk-K6QYFFMX.mjs.map +1 -0
- package/lib/{chunk-CCNK27CX.mjs → chunk-KAFZGQ2W.mjs} +17 -11
- package/lib/chunk-KAFZGQ2W.mjs.map +1 -0
- package/lib/chunk-KDPYWGMJ.js +24 -0
- package/lib/chunk-KDPYWGMJ.js.map +1 -0
- package/lib/chunk-KGNT5T35.mjs +70 -0
- package/lib/chunk-KGNT5T35.mjs.map +1 -0
- package/lib/chunk-KIVIWBIY.js +21 -0
- package/lib/chunk-KIVIWBIY.js.map +1 -0
- package/lib/chunk-KZBW5WCK.js +21 -0
- package/lib/chunk-KZBW5WCK.js.map +1 -0
- package/lib/chunk-L36PQXUB.js +21 -0
- package/lib/chunk-L36PQXUB.js.map +1 -0
- package/lib/chunk-L7YFDMZU.js +78 -0
- package/lib/chunk-L7YFDMZU.js.map +1 -0
- package/lib/chunk-LDZFOOWN.mjs +595 -0
- package/lib/chunk-LDZFOOWN.mjs.map +1 -0
- package/lib/{chunk-42J6CHIO.js → chunk-LHEU4XAC.js} +4 -2
- package/lib/chunk-LHEU4XAC.js.map +1 -0
- package/lib/chunk-LNBZ7SJR.js +26 -0
- package/lib/chunk-LNBZ7SJR.js.map +1 -0
- package/lib/chunk-M7EMQU7U.mjs +28 -0
- package/lib/chunk-M7EMQU7U.mjs.map +1 -0
- package/lib/chunk-MOHROZTD.mjs +20 -0
- package/lib/chunk-MOHROZTD.mjs.map +1 -0
- package/lib/chunk-MQGE7GIK.mjs +26 -0
- package/lib/chunk-MQGE7GIK.mjs.map +1 -0
- package/lib/chunk-NC7E2FQR.mjs +21 -0
- package/lib/chunk-NC7E2FQR.mjs.map +1 -0
- package/lib/chunk-NM3VRT77.mjs +120 -0
- package/lib/chunk-NM3VRT77.mjs.map +1 -0
- package/lib/chunk-NM4TCTZM.mjs +70 -0
- package/lib/chunk-NM4TCTZM.mjs.map +1 -0
- package/lib/chunk-NXS5ULAJ.mjs +22 -0
- package/lib/chunk-NXS5ULAJ.mjs.map +1 -0
- package/lib/chunk-NZOANK7A.js +18 -0
- package/lib/chunk-NZOANK7A.js.map +1 -0
- package/lib/{chunk-ZTCXXAKD.mjs → chunk-O2WD4JBG.mjs} +8 -2
- package/lib/chunk-O2WD4JBG.mjs.map +1 -0
- package/lib/chunk-O4FVL7CA.js +33 -0
- package/lib/chunk-O4FVL7CA.js.map +1 -0
- package/lib/chunk-O646PJXY.mjs +23 -0
- package/lib/chunk-O646PJXY.mjs.map +1 -0
- package/lib/chunk-OHJ2EB4T.js +20 -0
- package/lib/chunk-OHJ2EB4T.js.map +1 -0
- package/lib/{chunk-UTPG4GZB.js → chunk-OPA6AXSH.js} +3 -3
- package/lib/chunk-OPA6AXSH.js.map +1 -0
- package/lib/chunk-OQB5UGWG.mjs +24 -0
- package/lib/chunk-OQB5UGWG.mjs.map +1 -0
- package/lib/chunk-ORQBVFHY.js +18 -0
- package/lib/chunk-ORQBVFHY.js.map +1 -0
- package/lib/chunk-OW7RK5YW.js +21 -0
- package/lib/chunk-OW7RK5YW.js.map +1 -0
- package/lib/chunk-OY5DJBRV.mjs +21 -0
- package/lib/chunk-OY5DJBRV.mjs.map +1 -0
- package/lib/chunk-P2SQQBVB.js +22 -0
- package/lib/chunk-P2SQQBVB.js.map +1 -0
- package/lib/chunk-P6CI5ITJ.js +22 -0
- package/lib/chunk-P6CI5ITJ.js.map +1 -0
- package/lib/chunk-P6M6QZU5.mjs +24 -0
- package/lib/chunk-P6M6QZU5.mjs.map +1 -0
- package/lib/chunk-PFADKWMO.js +19 -0
- package/lib/chunk-PFADKWMO.js.map +1 -0
- package/lib/chunk-POPLWPM4.mjs +19 -0
- package/lib/chunk-POPLWPM4.mjs.map +1 -0
- package/lib/chunk-POQZCV3D.js +20 -0
- package/lib/chunk-POQZCV3D.js.map +1 -0
- package/lib/chunk-QM4MJTTD.mjs +24 -0
- package/lib/chunk-QM4MJTTD.mjs.map +1 -0
- package/lib/chunk-QNA4O6AU.js +21 -0
- package/lib/chunk-QNA4O6AU.js.map +1 -0
- package/lib/chunk-RCD6EO4Q.mjs +21 -0
- package/lib/chunk-RCD6EO4Q.mjs.map +1 -0
- package/lib/chunk-RDJK3X4J.mjs +21 -0
- package/lib/chunk-RDJK3X4J.mjs.map +1 -0
- package/lib/chunk-RXU74KSN.mjs +20 -0
- package/lib/chunk-RXU74KSN.mjs.map +1 -0
- package/lib/chunk-S6N4N4FT.js +21 -0
- package/lib/chunk-S6N4N4FT.js.map +1 -0
- package/lib/chunk-SGWF66HS.js +21 -0
- package/lib/chunk-SGWF66HS.js.map +1 -0
- package/lib/chunk-SKMDZ4S6.mjs +23 -0
- package/lib/chunk-SKMDZ4S6.mjs.map +1 -0
- package/lib/chunk-SVRCKC65.js +120 -0
- package/lib/chunk-SVRCKC65.js.map +1 -0
- package/lib/chunk-SY2V2V54.js +28 -0
- package/lib/chunk-SY2V2V54.js.map +1 -0
- package/lib/chunk-SZO4SUUG.js +21 -0
- package/lib/chunk-SZO4SUUG.js.map +1 -0
- package/lib/chunk-TCHVA6VG.js +24 -0
- package/lib/chunk-TCHVA6VG.js.map +1 -0
- package/lib/chunk-TJ7IQSHU.js +21 -0
- package/lib/chunk-TJ7IQSHU.js.map +1 -0
- package/lib/chunk-TLLR2DXI.js +70 -0
- package/lib/chunk-TLLR2DXI.js.map +1 -0
- package/lib/chunk-TPSWNY5K.mjs +20 -0
- package/lib/chunk-TPSWNY5K.mjs.map +1 -0
- package/lib/chunk-UCHEFFWR.js +79 -0
- package/lib/chunk-UCHEFFWR.js.map +1 -0
- package/lib/chunk-UIJIIIOA.js +21 -0
- package/lib/chunk-UIJIIIOA.js.map +1 -0
- package/lib/chunk-UMS4M7FU.mjs +22 -0
- package/lib/chunk-UMS4M7FU.mjs.map +1 -0
- package/lib/chunk-UN5S46LE.mjs +28 -0
- package/lib/chunk-UN5S46LE.mjs.map +1 -0
- package/lib/chunk-UWONIZJZ.mjs +78 -0
- package/lib/chunk-UWONIZJZ.mjs.map +1 -0
- package/lib/chunk-UYAF7QRD.mjs +22 -0
- package/lib/chunk-UYAF7QRD.mjs.map +1 -0
- package/lib/chunk-VERUOTB3.mjs +10 -0
- package/lib/chunk-VERUOTB3.mjs.map +1 -0
- package/lib/chunk-VGOAXY26.js +24 -0
- package/lib/chunk-VGOAXY26.js.map +1 -0
- package/lib/chunk-VKSBOWCE.mjs +50 -0
- package/lib/chunk-VKSBOWCE.mjs.map +1 -0
- package/lib/chunk-VT2JBMWQ.mjs +27 -0
- package/lib/chunk-VT2JBMWQ.mjs.map +1 -0
- package/lib/chunk-VWHKNZLG.js +18 -0
- package/lib/chunk-VWHKNZLG.js.map +1 -0
- package/lib/chunk-WL7BV4XV.mjs +33 -0
- package/lib/chunk-WL7BV4XV.mjs.map +1 -0
- package/lib/chunk-WOPNDC4R.js +10 -0
- package/lib/chunk-WOPNDC4R.js.map +1 -0
- package/lib/chunk-X6SI76NQ.js +22 -0
- package/lib/chunk-X6SI76NQ.js.map +1 -0
- package/lib/chunk-YETYTLAD.mjs +18 -0
- package/lib/chunk-YETYTLAD.mjs.map +1 -0
- package/lib/chunk-YJUYGFG2.mjs +26 -0
- package/lib/chunk-YJUYGFG2.mjs.map +1 -0
- package/lib/chunk-YJZXJKM4.mjs +79 -0
- package/lib/chunk-YJZXJKM4.mjs.map +1 -0
- package/lib/chunk-YOF36UOS.js +19 -0
- package/lib/chunk-YOF36UOS.js.map +1 -0
- package/lib/{chunk-EMOOEIPZ.mjs → chunk-YQP44G45.mjs} +2 -2
- package/lib/chunk-YQP44G45.mjs.map +1 -0
- package/lib/chunk-Z7LBOQRQ.js +28 -0
- package/lib/chunk-Z7LBOQRQ.js.map +1 -0
- package/lib/chunk-ZIBHO6FI.js +20 -0
- package/lib/chunk-ZIBHO6FI.js.map +1 -0
- package/lib/{chunk-EXVTHIT5.js → chunk-ZJGY6EOE.js} +19 -10
- package/lib/chunk-ZJGY6EOE.js.map +1 -0
- package/lib/chunk-ZQKVVWD5.mjs +20 -0
- package/lib/chunk-ZQKVVWD5.mjs.map +1 -0
- package/lib/{chunk-FIDPCCCW.js → chunk-ZWFSAKQK.js} +8 -2
- package/lib/chunk-ZWFSAKQK.js.map +1 -0
- package/lib/codeGen.d.mts +3 -2
- package/lib/codeGen.d.ts +3 -2
- package/lib/codeGen.js +3 -45
- package/lib/codeGen.js.map +1 -1
- package/lib/codeGen.mjs +4 -46
- package/lib/codeGen.mjs.map +1 -1
- package/lib/commonTypes.d.mts +45 -1
- package/lib/commonTypes.d.ts +45 -1
- package/lib/core.d.mts +330 -0
- package/lib/core.d.ts +330 -0
- package/lib/core.js +21 -0
- package/lib/core.js.map +1 -0
- package/lib/core.mjs +21 -0
- package/lib/exceptions.d.mts +5 -1
- package/lib/exceptions.d.ts +5 -1
- package/lib/exceptions.js +2 -2
- package/lib/exceptions.mjs +1 -1
- package/lib/formatErrors.d.mts +40 -0
- package/lib/formatErrors.d.ts +40 -0
- package/lib/formatErrors.js +9 -0
- package/lib/formatErrors.js.map +1 -0
- package/lib/formatErrors.mjs +9 -0
- package/lib/formatErrors.mjs.map +1 -0
- package/lib/helpers/constants.d.mts +2 -1
- package/lib/helpers/constants.d.ts +2 -1
- package/lib/helpers/constants.js +4 -2
- package/lib/helpers/constants.js.map +1 -1
- package/lib/helpers/constants.mjs +5 -3
- package/lib/helpers/jsonSchemaConstraint.d.mts +18 -0
- package/lib/helpers/jsonSchemaConstraint.d.ts +18 -0
- package/lib/helpers/jsonSchemaConstraint.js +7 -0
- package/lib/helpers/jsonSchemaConstraint.js.map +1 -0
- package/lib/helpers/jsonSchemaConstraint.mjs +7 -0
- package/lib/helpers/jsonSchemaConstraint.mjs.map +1 -0
- package/lib/helpers/quoteStringLiteral.d.mts +3 -0
- package/lib/helpers/quoteStringLiteral.d.ts +3 -0
- package/lib/helpers/quoteStringLiteral.js +7 -0
- package/lib/helpers/quoteStringLiteral.js.map +1 -0
- package/lib/helpers/quoteStringLiteral.mjs +7 -0
- package/lib/helpers/quoteStringLiteral.mjs.map +1 -0
- package/lib/helpers/setStrictType.d.mts +3 -2
- package/lib/helpers/setStrictType.d.ts +3 -2
- package/lib/helpers/setStrictType.js +3 -4
- package/lib/helpers/setStrictType.js.map +1 -1
- package/lib/helpers/setStrictType.mjs +2 -3
- package/lib/index.d.mts +66 -5
- package/lib/index.d.ts +66 -5
- package/lib/index.js +266 -5
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +267 -6
- package/lib/standardSchema.d.mts +44 -0
- package/lib/standardSchema.d.ts +44 -0
- package/lib/standardSchema.js +1 -0
- package/lib/standardSchema.js.map +1 -0
- package/lib/standardSchema.mjs +1 -0
- package/lib/standardSchema.mjs.map +1 -0
- package/lib/toJSONSchema.d.mts +44 -0
- package/lib/toJSONSchema.d.ts +44 -0
- package/lib/toJSONSchema.js +12 -0
- package/lib/toJSONSchema.js.map +1 -0
- package/lib/toJSONSchema.mjs +12 -0
- package/lib/toJSONSchema.mjs.map +1 -0
- package/lib/translationMap.d.mts +10 -1
- package/lib/translationMap.d.ts +10 -1
- package/lib/translationMap.js +3 -3
- package/lib/translationMap.mjs +2 -2
- package/package.json +194 -52
- package/lib/CommonSchema-BIfYCtcQ.d.mts +0 -110
- package/lib/CommonSchema-DIDMH9R7.d.ts +0 -110
- package/lib/ExceptionContext.d.mts +0 -16
- package/lib/ExceptionContext.d.ts +0 -16
- package/lib/ExceptionContext.js +0 -11
- package/lib/ExceptionContext.js.map +0 -1
- package/lib/ExceptionContext.mjs +0 -11
- package/lib/chunk-32MKEBKR.js.map +0 -1
- package/lib/chunk-3ZQ4ORQH.js +0 -14
- package/lib/chunk-3ZQ4ORQH.js.map +0 -1
- package/lib/chunk-42J6CHIO.js.map +0 -1
- package/lib/chunk-BURPSYZ3.js +0 -53
- package/lib/chunk-BURPSYZ3.js.map +0 -1
- package/lib/chunk-CCNK27CX.mjs.map +0 -1
- package/lib/chunk-EMOOEIPZ.mjs.map +0 -1
- package/lib/chunk-EXVTHIT5.js.map +0 -1
- package/lib/chunk-FIDPCCCW.js.map +0 -1
- package/lib/chunk-FNBYM254.js +0 -41
- package/lib/chunk-FNBYM254.js.map +0 -1
- package/lib/chunk-IFQLPXCZ.mjs +0 -111
- package/lib/chunk-IFQLPXCZ.mjs.map +0 -1
- package/lib/chunk-MMWS3SXR.js +0 -136
- package/lib/chunk-MMWS3SXR.js.map +0 -1
- package/lib/chunk-MQRXWXHP.mjs +0 -83
- package/lib/chunk-MQRXWXHP.mjs.map +0 -1
- package/lib/chunk-MRRMV2GM.mjs +0 -63
- package/lib/chunk-MRRMV2GM.mjs.map +0 -1
- package/lib/chunk-P4Q22AZA.js +0 -28
- package/lib/chunk-P4Q22AZA.js.map +0 -1
- package/lib/chunk-P54CF5QN.mjs.map +0 -1
- package/lib/chunk-PE55R4KH.js +0 -83
- package/lib/chunk-PE55R4KH.js.map +0 -1
- package/lib/chunk-PGEXAFA5.js +0 -20
- package/lib/chunk-PGEXAFA5.js.map +0 -1
- package/lib/chunk-PQ4GCO3Q.js +0 -111
- package/lib/chunk-PQ4GCO3Q.js.map +0 -1
- package/lib/chunk-QWPHP26D.mjs.map +0 -1
- package/lib/chunk-RAJF6LMF.js +0 -63
- package/lib/chunk-RAJF6LMF.js.map +0 -1
- package/lib/chunk-RG5NYH2I.js +0 -65
- package/lib/chunk-RG5NYH2I.js.map +0 -1
- package/lib/chunk-U3DJ354I.mjs +0 -65
- package/lib/chunk-U3DJ354I.mjs.map +0 -1
- package/lib/chunk-UEYMBPZN.mjs +0 -136
- package/lib/chunk-UEYMBPZN.mjs.map +0 -1
- package/lib/chunk-UTPG4GZB.js.map +0 -1
- package/lib/chunk-VIFJBTQO.mjs +0 -20
- package/lib/chunk-VIFJBTQO.mjs.map +0 -1
- package/lib/chunk-W2SQHSOS.mjs +0 -58
- package/lib/chunk-W2SQHSOS.mjs.map +0 -1
- package/lib/chunk-XG6K6N3A.mjs.map +0 -1
- package/lib/chunk-XT5E3MPI.mjs +0 -41
- package/lib/chunk-XT5E3MPI.mjs.map +0 -1
- package/lib/chunk-YSCVE4PJ.mjs.map +0 -1
- package/lib/chunk-ZG373PNB.js +0 -58
- package/lib/chunk-ZG373PNB.js.map +0 -1
- package/lib/chunk-ZTCXXAKD.mjs.map +0 -1
- package/lib/helpers/core.d.mts +0 -4
- package/lib/helpers/core.d.ts +0 -4
- package/lib/helpers/core.js +0 -10
- package/lib/helpers/core.js.map +0 -1
- package/lib/helpers/core.mjs +0 -10
- package/lib/parse.d.mts +0 -62
- package/lib/parse.d.ts +0 -62
- package/lib/parse.js +0 -11
- package/lib/parse.js.map +0 -1
- package/lib/parse.mjs +0 -11
- package/lib/parseOrFail.d.mts +0 -44
- package/lib/parseOrFail.d.ts +0 -44
- package/lib/parseOrFail.js +0 -11
- package/lib/parseOrFail.js.map +0 -1
- package/lib/parseOrFail.mjs +0 -11
- package/lib/schemas/ArraySchema.d.mts +0 -12
- package/lib/schemas/ArraySchema.d.ts +0 -12
- package/lib/schemas/ArraySchema.js +0 -13
- package/lib/schemas/ArraySchema.js.map +0 -1
- package/lib/schemas/ArraySchema.mjs +0 -13
- package/lib/schemas/BigIntSchema.d.mts +0 -31
- package/lib/schemas/BigIntSchema.d.ts +0 -31
- package/lib/schemas/BigIntSchema.js +0 -17
- package/lib/schemas/BigIntSchema.js.map +0 -1
- package/lib/schemas/BigIntSchema.mjs +0 -17
- package/lib/schemas/BooleanSchema.d.mts +0 -26
- package/lib/schemas/BooleanSchema.d.ts +0 -26
- package/lib/schemas/BooleanSchema.js +0 -14
- package/lib/schemas/BooleanSchema.js.map +0 -1
- package/lib/schemas/BooleanSchema.mjs +0 -14
- package/lib/schemas/CommonSchema.d.mts +0 -4
- package/lib/schemas/CommonSchema.d.ts +0 -4
- package/lib/schemas/CommonSchema.js +0 -12
- package/lib/schemas/CommonSchema.js.map +0 -1
- package/lib/schemas/CommonSchema.mjs +0 -12
- package/lib/schemas/DateSchema.d.mts +0 -11
- package/lib/schemas/DateSchema.d.ts +0 -11
- package/lib/schemas/DateSchema.js +0 -13
- package/lib/schemas/DateSchema.js.map +0 -1
- package/lib/schemas/DateSchema.mjs +0 -13
- package/lib/schemas/NumberSchema.d.mts +0 -30
- package/lib/schemas/NumberSchema.d.ts +0 -30
- package/lib/schemas/NumberSchema.js +0 -17
- package/lib/schemas/NumberSchema.js.map +0 -1
- package/lib/schemas/NumberSchema.mjs +0 -17
- package/lib/schemas/ObjectSchema.d.mts +0 -30
- package/lib/schemas/ObjectSchema.d.ts +0 -30
- package/lib/schemas/ObjectSchema.js +0 -13
- package/lib/schemas/ObjectSchema.js.map +0 -1
- package/lib/schemas/ObjectSchema.mjs +0 -13
- package/lib/schemas/StringSchema.d.mts +0 -31
- package/lib/schemas/StringSchema.d.ts +0 -31
- package/lib/schemas/StringSchema.js +0 -17
- package/lib/schemas/StringSchema.js.map +0 -1
- package/lib/schemas/StringSchema.mjs +0 -17
- /package/lib/{ExceptionContext.mjs.map → asserts/coerce/index.mjs.map} +0 -0
- /package/lib/{helpers/core.mjs.map → asserts/intersection/index.mjs.map} +0 -0
- /package/lib/{parse.mjs.map → asserts/lazy/index.mjs.map} +0 -0
- /package/lib/{parseOrFail.mjs.map → asserts/object/extend.mjs.map} +0 -0
- /package/lib/{schemas/ArraySchema.mjs.map → asserts/object/omit.mjs.map} +0 -0
- /package/lib/{schemas/BigIntSchema.mjs.map → asserts/object/partial.mjs.map} +0 -0
- /package/lib/{schemas/BooleanSchema.mjs.map → asserts/object/pick.mjs.map} +0 -0
- /package/lib/{schemas/CommonSchema.mjs.map → asserts/object/required.mjs.map} +0 -0
- /package/lib/{schemas/DateSchema.mjs.map → asserts/record/index.mjs.map} +0 -0
- /package/lib/{schemas/NumberSchema.mjs.map → asserts/tuple/index.mjs.map} +0 -0
- /package/lib/{schemas/ObjectSchema.mjs.map → asserts/union/index.mjs.map} +0 -0
- /package/lib/{schemas/StringSchema.mjs.map → core.mjs.map} +0 -0
package/lib/parseOrFail.d.mts
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { InferType } from './InferType.mjs';
|
|
2
|
-
import { C as CommonSchema } from './CommonSchema-BIfYCtcQ.mjs';
|
|
3
|
-
import './commonTypes.mjs';
|
|
4
|
-
import './ExceptionContext.mjs';
|
|
5
|
-
|
|
6
|
-
interface ParseOptions {
|
|
7
|
-
/**
|
|
8
|
-
* Set language keyword to map error messages.
|
|
9
|
-
* @default 'default'
|
|
10
|
-
* @example 'sr' or 'Serbia' or any string to identify language
|
|
11
|
-
*/
|
|
12
|
-
lng?: string;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Parses and validates a value against the provided schema, returning a type-safe result.
|
|
16
|
-
*
|
|
17
|
-
* This function will throw a `ValidationError` if the value does not conform to the schema.
|
|
18
|
-
* The inferred TypeScript type of the returned value will match the structure defined by the schema.
|
|
19
|
-
*
|
|
20
|
-
* @template T
|
|
21
|
-
* @param {T} schema - The schema to validate the received value against. This schema dictates the expected structure and type of the value.
|
|
22
|
-
* @param {unknown} receivedValue - The value to be validated and parsed according to the schema.
|
|
23
|
-
* @param {ParseOptions} options - Options
|
|
24
|
-
* @param {ParseOptions.lng} options.lng - Set language keyword to map Error message
|
|
25
|
-
* @returns {InferType<T>} The validated value, with its TypeScript type inferred from the schema.
|
|
26
|
-
*
|
|
27
|
-
* @throws {ValidationError} If the received value does not match the schema, a `ValidationError` will be thrown.
|
|
28
|
-
* @throws {Error} If an unexpected error occurs during validation, an error will be thrown with a generic message.
|
|
29
|
-
*
|
|
30
|
-
* @example
|
|
31
|
-
* const schema = object({
|
|
32
|
-
* name: string(),
|
|
33
|
-
* age: number(),
|
|
34
|
-
* });
|
|
35
|
-
*
|
|
36
|
-
* const result = parseOrFail(schema, { name: 'Alice', age: 30 });
|
|
37
|
-
* // result will be inferred as { name: string; age: number }
|
|
38
|
-
*
|
|
39
|
-
* parseOrFail(schema, { name: 'Alice', age: '30' });
|
|
40
|
-
* // Throws ValidationError because 'age' should be a number, not a string.
|
|
41
|
-
*/
|
|
42
|
-
declare function parseOrFail<T extends CommonSchema>(schema: T, receivedValue: unknown, options?: ParseOptions): InferType<T>;
|
|
43
|
-
|
|
44
|
-
export { parseOrFail };
|
package/lib/parseOrFail.d.ts
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { InferType } from './InferType.js';
|
|
2
|
-
import { C as CommonSchema } from './CommonSchema-DIDMH9R7.js';
|
|
3
|
-
import './commonTypes.js';
|
|
4
|
-
import './ExceptionContext.js';
|
|
5
|
-
|
|
6
|
-
interface ParseOptions {
|
|
7
|
-
/**
|
|
8
|
-
* Set language keyword to map error messages.
|
|
9
|
-
* @default 'default'
|
|
10
|
-
* @example 'sr' or 'Serbia' or any string to identify language
|
|
11
|
-
*/
|
|
12
|
-
lng?: string;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Parses and validates a value against the provided schema, returning a type-safe result.
|
|
16
|
-
*
|
|
17
|
-
* This function will throw a `ValidationError` if the value does not conform to the schema.
|
|
18
|
-
* The inferred TypeScript type of the returned value will match the structure defined by the schema.
|
|
19
|
-
*
|
|
20
|
-
* @template T
|
|
21
|
-
* @param {T} schema - The schema to validate the received value against. This schema dictates the expected structure and type of the value.
|
|
22
|
-
* @param {unknown} receivedValue - The value to be validated and parsed according to the schema.
|
|
23
|
-
* @param {ParseOptions} options - Options
|
|
24
|
-
* @param {ParseOptions.lng} options.lng - Set language keyword to map Error message
|
|
25
|
-
* @returns {InferType<T>} The validated value, with its TypeScript type inferred from the schema.
|
|
26
|
-
*
|
|
27
|
-
* @throws {ValidationError} If the received value does not match the schema, a `ValidationError` will be thrown.
|
|
28
|
-
* @throws {Error} If an unexpected error occurs during validation, an error will be thrown with a generic message.
|
|
29
|
-
*
|
|
30
|
-
* @example
|
|
31
|
-
* const schema = object({
|
|
32
|
-
* name: string(),
|
|
33
|
-
* age: number(),
|
|
34
|
-
* });
|
|
35
|
-
*
|
|
36
|
-
* const result = parseOrFail(schema, { name: 'Alice', age: 30 });
|
|
37
|
-
* // result will be inferred as { name: string; age: number }
|
|
38
|
-
*
|
|
39
|
-
* parseOrFail(schema, { name: 'Alice', age: '30' });
|
|
40
|
-
* // Throws ValidationError because 'age' should be a number, not a string.
|
|
41
|
-
*/
|
|
42
|
-
declare function parseOrFail<T extends CommonSchema>(schema: T, receivedValue: unknown, options?: ParseOptions): InferType<T>;
|
|
43
|
-
|
|
44
|
-
export { parseOrFail };
|
package/lib/parseOrFail.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
-
|
|
3
|
-
var _chunkPQ4GCO3Qjs = require('./chunk-PQ4GCO3Q.js');
|
|
4
|
-
require('./chunk-EXVTHIT5.js');
|
|
5
|
-
require('./chunk-PE55R4KH.js');
|
|
6
|
-
require('./chunk-VBTWYDEM.js');
|
|
7
|
-
require('./chunk-FIDPCCCW.js');
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
exports.parseOrFail = _chunkPQ4GCO3Qjs.parseOrFail;
|
|
11
|
-
//# sourceMappingURL=parseOrFail.js.map
|
package/lib/parseOrFail.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/bguard/bguard/lib/parseOrFail.js"],"names":[],"mappings":"AAAA;AACE;AACF,sDAA4B;AAC5B,+BAA4B;AAC5B,+BAA4B;AAC5B,+BAA4B;AAC5B,+BAA4B;AAC5B;AACE;AACF,mDAAC","file":"/home/runner/work/bguard/bguard/lib/parseOrFail.js"}
|
package/lib/parseOrFail.mjs
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
parseOrFail
|
|
3
|
-
} from "./chunk-IFQLPXCZ.mjs";
|
|
4
|
-
import "./chunk-QWPHP26D.mjs";
|
|
5
|
-
import "./chunk-MQRXWXHP.mjs";
|
|
6
|
-
import "./chunk-YBVMP4EI.mjs";
|
|
7
|
-
import "./chunk-ZTCXXAKD.mjs";
|
|
8
|
-
export {
|
|
9
|
-
parseOrFail
|
|
10
|
-
};
|
|
11
|
-
//# sourceMappingURL=parseOrFail.mjs.map
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { C as CommonSchema, V as ValidatorContext } from '../CommonSchema-BIfYCtcQ.mjs';
|
|
2
|
-
import '../ExceptionContext.mjs';
|
|
3
|
-
import '../commonTypes.mjs';
|
|
4
|
-
import '../InferType.mjs';
|
|
5
|
-
|
|
6
|
-
declare class ArraySchema extends CommonSchema {
|
|
7
|
-
protected _array: number;
|
|
8
|
-
constructor(ctx: ValidatorContext, arraySchema: CommonSchema);
|
|
9
|
-
private validateArrayEntry;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export { ArraySchema };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { C as CommonSchema, V as ValidatorContext } from '../CommonSchema-DIDMH9R7.js';
|
|
2
|
-
import '../ExceptionContext.js';
|
|
3
|
-
import '../commonTypes.js';
|
|
4
|
-
import '../InferType.js';
|
|
5
|
-
|
|
6
|
-
declare class ArraySchema extends CommonSchema {
|
|
7
|
-
protected _array: number;
|
|
8
|
-
constructor(ctx: ValidatorContext, arraySchema: CommonSchema);
|
|
9
|
-
private validateArrayEntry;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export { ArraySchema };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
-
|
|
3
|
-
var _chunkP4Q22AZAjs = require('../chunk-P4Q22AZA.js');
|
|
4
|
-
require('../chunk-MMWS3SXR.js');
|
|
5
|
-
require('../chunk-PQ4GCO3Q.js');
|
|
6
|
-
require('../chunk-EXVTHIT5.js');
|
|
7
|
-
require('../chunk-PE55R4KH.js');
|
|
8
|
-
require('../chunk-VBTWYDEM.js');
|
|
9
|
-
require('../chunk-FIDPCCCW.js');
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
exports.ArraySchema = _chunkP4Q22AZAjs.ArraySchema;
|
|
13
|
-
//# sourceMappingURL=ArraySchema.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/bguard/bguard/lib/schemas/ArraySchema.js"],"names":[],"mappings":"AAAA;AACE;AACF,uDAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACF,mDAAC","file":"/home/runner/work/bguard/bguard/lib/schemas/ArraySchema.js"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ArraySchema
|
|
3
|
-
} from "../chunk-XG6K6N3A.mjs";
|
|
4
|
-
import "../chunk-UEYMBPZN.mjs";
|
|
5
|
-
import "../chunk-IFQLPXCZ.mjs";
|
|
6
|
-
import "../chunk-QWPHP26D.mjs";
|
|
7
|
-
import "../chunk-MQRXWXHP.mjs";
|
|
8
|
-
import "../chunk-YBVMP4EI.mjs";
|
|
9
|
-
import "../chunk-ZTCXXAKD.mjs";
|
|
10
|
-
export {
|
|
11
|
-
ArraySchema
|
|
12
|
-
};
|
|
13
|
-
//# sourceMappingURL=ArraySchema.mjs.map
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { WithBGuardType } from '../commonTypes.mjs';
|
|
2
|
-
import { C as CommonSchema } from '../CommonSchema-BIfYCtcQ.mjs';
|
|
3
|
-
import '../ExceptionContext.mjs';
|
|
4
|
-
import '../InferType.mjs';
|
|
5
|
-
|
|
6
|
-
declare class BigIntSchema extends CommonSchema {
|
|
7
|
-
protected _bigint: number;
|
|
8
|
-
private limit;
|
|
9
|
-
/**
|
|
10
|
-
* Restricts the schema to exactly match the specified value and infers the literal value as the TypeScript type.
|
|
11
|
-
*
|
|
12
|
-
* @param expectedValue - The value that the schema must exactly match.
|
|
13
|
-
* @returns - The schema instance restricted to the specified value, with the literal value inferred as the TypeScript type
|
|
14
|
-
*
|
|
15
|
-
* @example - bigint().equalTo(42n); // Infers the type 42n
|
|
16
|
-
*/
|
|
17
|
-
equalTo<Y extends bigint>(expectedValue: Y): WithBGuardType<this, Y>;
|
|
18
|
-
/**
|
|
19
|
-
* Restricts the schema to match one of the specified values and infers the union of those values as the TypeScript type.
|
|
20
|
-
*
|
|
21
|
-
* @param expectedValues - An array of values that the schema can match.
|
|
22
|
-
* @returns - The schema instance restricted to one of the specified values, with the union of those values inferred as the TypeScript type.
|
|
23
|
-
*
|
|
24
|
-
* @example
|
|
25
|
-
* bigint().oneOfValues([5n, 7n]); // Infers the type 5n | 7n
|
|
26
|
-
*/
|
|
27
|
-
oneOfValues<Y extends bigint>(expectedValue: Y[]): WithBGuardType<this, Y>;
|
|
28
|
-
private limitCheck;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export { BigIntSchema };
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { WithBGuardType } from '../commonTypes.js';
|
|
2
|
-
import { C as CommonSchema } from '../CommonSchema-DIDMH9R7.js';
|
|
3
|
-
import '../ExceptionContext.js';
|
|
4
|
-
import '../InferType.js';
|
|
5
|
-
|
|
6
|
-
declare class BigIntSchema extends CommonSchema {
|
|
7
|
-
protected _bigint: number;
|
|
8
|
-
private limit;
|
|
9
|
-
/**
|
|
10
|
-
* Restricts the schema to exactly match the specified value and infers the literal value as the TypeScript type.
|
|
11
|
-
*
|
|
12
|
-
* @param expectedValue - The value that the schema must exactly match.
|
|
13
|
-
* @returns - The schema instance restricted to the specified value, with the literal value inferred as the TypeScript type
|
|
14
|
-
*
|
|
15
|
-
* @example - bigint().equalTo(42n); // Infers the type 42n
|
|
16
|
-
*/
|
|
17
|
-
equalTo<Y extends bigint>(expectedValue: Y): WithBGuardType<this, Y>;
|
|
18
|
-
/**
|
|
19
|
-
* Restricts the schema to match one of the specified values and infers the union of those values as the TypeScript type.
|
|
20
|
-
*
|
|
21
|
-
* @param expectedValues - An array of values that the schema can match.
|
|
22
|
-
* @returns - The schema instance restricted to one of the specified values, with the union of those values inferred as the TypeScript type.
|
|
23
|
-
*
|
|
24
|
-
* @example
|
|
25
|
-
* bigint().oneOfValues([5n, 7n]); // Infers the type 5n | 7n
|
|
26
|
-
*/
|
|
27
|
-
oneOfValues<Y extends bigint>(expectedValue: Y[]): WithBGuardType<this, Y>;
|
|
28
|
-
private limitCheck;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export { BigIntSchema };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
-
|
|
3
|
-
var _chunkRG5NYH2Ijs = require('../chunk-RG5NYH2I.js');
|
|
4
|
-
require('../chunk-UTPG4GZB.js');
|
|
5
|
-
require('../chunk-32MKEBKR.js');
|
|
6
|
-
require('../chunk-42J6CHIO.js');
|
|
7
|
-
require('../chunk-3ZQ4ORQH.js');
|
|
8
|
-
require('../chunk-MMWS3SXR.js');
|
|
9
|
-
require('../chunk-PQ4GCO3Q.js');
|
|
10
|
-
require('../chunk-EXVTHIT5.js');
|
|
11
|
-
require('../chunk-PE55R4KH.js');
|
|
12
|
-
require('../chunk-VBTWYDEM.js');
|
|
13
|
-
require('../chunk-FIDPCCCW.js');
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
exports.BigIntSchema = _chunkRG5NYH2Ijs.BigIntSchema;
|
|
17
|
-
//# sourceMappingURL=BigIntSchema.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/bguard/bguard/lib/schemas/BigIntSchema.js"],"names":[],"mappings":"AAAA;AACE;AACF,uDAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACF,qDAAC","file":"/home/runner/work/bguard/bguard/lib/schemas/BigIntSchema.js"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
BigIntSchema
|
|
3
|
-
} from "../chunk-U3DJ354I.mjs";
|
|
4
|
-
import "../chunk-EMOOEIPZ.mjs";
|
|
5
|
-
import "../chunk-P54CF5QN.mjs";
|
|
6
|
-
import "../chunk-ASZW6XRM.mjs";
|
|
7
|
-
import "../chunk-YSCVE4PJ.mjs";
|
|
8
|
-
import "../chunk-UEYMBPZN.mjs";
|
|
9
|
-
import "../chunk-IFQLPXCZ.mjs";
|
|
10
|
-
import "../chunk-QWPHP26D.mjs";
|
|
11
|
-
import "../chunk-MQRXWXHP.mjs";
|
|
12
|
-
import "../chunk-YBVMP4EI.mjs";
|
|
13
|
-
import "../chunk-ZTCXXAKD.mjs";
|
|
14
|
-
export {
|
|
15
|
-
BigIntSchema
|
|
16
|
-
};
|
|
17
|
-
//# sourceMappingURL=BigIntSchema.mjs.map
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { C as CommonSchema } from '../CommonSchema-BIfYCtcQ.mjs';
|
|
2
|
-
import { WithBGuardType } from '../commonTypes.mjs';
|
|
3
|
-
import '../ExceptionContext.mjs';
|
|
4
|
-
import '../InferType.mjs';
|
|
5
|
-
|
|
6
|
-
declare class BooleanSchema extends CommonSchema {
|
|
7
|
-
protected _boolean: number;
|
|
8
|
-
/**
|
|
9
|
-
* Restricts the schema to exactly match the boolean value true and infers the true value as the TypeScript type.
|
|
10
|
-
*
|
|
11
|
-
* @returns - The schema instance restricted to the value true, with the true value inferred as the TypeScript type
|
|
12
|
-
*
|
|
13
|
-
* @example - boolean().onlyTrue(); // Infers the type true
|
|
14
|
-
*/
|
|
15
|
-
onlyTrue(): WithBGuardType<this, true>;
|
|
16
|
-
/**
|
|
17
|
-
* Restricts the schema to exactly match the boolean value false and infers the false value as the TypeScript type.
|
|
18
|
-
*
|
|
19
|
-
* @returns - The schema instance restricted to the value false, with the false value inferred as the TypeScript type
|
|
20
|
-
*
|
|
21
|
-
* @example - boolean().onlyFalse(); // Infers the type false
|
|
22
|
-
*/
|
|
23
|
-
onlyFalse(): WithBGuardType<this, false>;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export { BooleanSchema };
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { C as CommonSchema } from '../CommonSchema-DIDMH9R7.js';
|
|
2
|
-
import { WithBGuardType } from '../commonTypes.js';
|
|
3
|
-
import '../ExceptionContext.js';
|
|
4
|
-
import '../InferType.js';
|
|
5
|
-
|
|
6
|
-
declare class BooleanSchema extends CommonSchema {
|
|
7
|
-
protected _boolean: number;
|
|
8
|
-
/**
|
|
9
|
-
* Restricts the schema to exactly match the boolean value true and infers the true value as the TypeScript type.
|
|
10
|
-
*
|
|
11
|
-
* @returns - The schema instance restricted to the value true, with the true value inferred as the TypeScript type
|
|
12
|
-
*
|
|
13
|
-
* @example - boolean().onlyTrue(); // Infers the type true
|
|
14
|
-
*/
|
|
15
|
-
onlyTrue(): WithBGuardType<this, true>;
|
|
16
|
-
/**
|
|
17
|
-
* Restricts the schema to exactly match the boolean value false and infers the false value as the TypeScript type.
|
|
18
|
-
*
|
|
19
|
-
* @returns - The schema instance restricted to the value false, with the false value inferred as the TypeScript type
|
|
20
|
-
*
|
|
21
|
-
* @example - boolean().onlyFalse(); // Infers the type false
|
|
22
|
-
*/
|
|
23
|
-
onlyFalse(): WithBGuardType<this, false>;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export { BooleanSchema };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
-
|
|
3
|
-
var _chunkFNBYM254js = require('../chunk-FNBYM254.js');
|
|
4
|
-
require('../chunk-3ZQ4ORQH.js');
|
|
5
|
-
require('../chunk-MMWS3SXR.js');
|
|
6
|
-
require('../chunk-PQ4GCO3Q.js');
|
|
7
|
-
require('../chunk-EXVTHIT5.js');
|
|
8
|
-
require('../chunk-PE55R4KH.js');
|
|
9
|
-
require('../chunk-VBTWYDEM.js');
|
|
10
|
-
require('../chunk-FIDPCCCW.js');
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
exports.BooleanSchema = _chunkFNBYM254js.BooleanSchema;
|
|
14
|
-
//# sourceMappingURL=BooleanSchema.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/bguard/bguard/lib/schemas/BooleanSchema.js"],"names":[],"mappings":"AAAA;AACE;AACF,uDAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACF,uDAAC","file":"/home/runner/work/bguard/bguard/lib/schemas/BooleanSchema.js"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
BooleanSchema
|
|
3
|
-
} from "../chunk-XT5E3MPI.mjs";
|
|
4
|
-
import "../chunk-YSCVE4PJ.mjs";
|
|
5
|
-
import "../chunk-UEYMBPZN.mjs";
|
|
6
|
-
import "../chunk-IFQLPXCZ.mjs";
|
|
7
|
-
import "../chunk-QWPHP26D.mjs";
|
|
8
|
-
import "../chunk-MQRXWXHP.mjs";
|
|
9
|
-
import "../chunk-YBVMP4EI.mjs";
|
|
10
|
-
import "../chunk-ZTCXXAKD.mjs";
|
|
11
|
-
export {
|
|
12
|
-
BooleanSchema
|
|
13
|
-
};
|
|
14
|
-
//# sourceMappingURL=BooleanSchema.mjs.map
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
-
|
|
3
|
-
var _chunkMMWS3SXRjs = require('../chunk-MMWS3SXR.js');
|
|
4
|
-
require('../chunk-PQ4GCO3Q.js');
|
|
5
|
-
require('../chunk-EXVTHIT5.js');
|
|
6
|
-
require('../chunk-PE55R4KH.js');
|
|
7
|
-
require('../chunk-VBTWYDEM.js');
|
|
8
|
-
require('../chunk-FIDPCCCW.js');
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
exports.CommonSchema = _chunkMMWS3SXRjs.CommonSchema;
|
|
12
|
-
//# sourceMappingURL=CommonSchema.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/bguard/bguard/lib/schemas/CommonSchema.js"],"names":[],"mappings":"AAAA;AACE;AACF,uDAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACF,qDAAC","file":"/home/runner/work/bguard/bguard/lib/schemas/CommonSchema.js"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
CommonSchema
|
|
3
|
-
} from "../chunk-UEYMBPZN.mjs";
|
|
4
|
-
import "../chunk-IFQLPXCZ.mjs";
|
|
5
|
-
import "../chunk-QWPHP26D.mjs";
|
|
6
|
-
import "../chunk-MQRXWXHP.mjs";
|
|
7
|
-
import "../chunk-YBVMP4EI.mjs";
|
|
8
|
-
import "../chunk-ZTCXXAKD.mjs";
|
|
9
|
-
export {
|
|
10
|
-
CommonSchema
|
|
11
|
-
};
|
|
12
|
-
//# sourceMappingURL=CommonSchema.mjs.map
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { C as CommonSchema, V as ValidatorContext } from '../CommonSchema-BIfYCtcQ.mjs';
|
|
2
|
-
import '../ExceptionContext.mjs';
|
|
3
|
-
import '../commonTypes.mjs';
|
|
4
|
-
import '../InferType.mjs';
|
|
5
|
-
|
|
6
|
-
declare class DateSchema extends CommonSchema {
|
|
7
|
-
protected _date: number;
|
|
8
|
-
constructor(ctx: ValidatorContext);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export { DateSchema };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { C as CommonSchema, V as ValidatorContext } from '../CommonSchema-DIDMH9R7.js';
|
|
2
|
-
import '../ExceptionContext.js';
|
|
3
|
-
import '../commonTypes.js';
|
|
4
|
-
import '../InferType.js';
|
|
5
|
-
|
|
6
|
-
declare class DateSchema extends CommonSchema {
|
|
7
|
-
protected _date: number;
|
|
8
|
-
constructor(ctx: ValidatorContext);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export { DateSchema };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
-
|
|
3
|
-
var _chunkPGEXAFA5js = require('../chunk-PGEXAFA5.js');
|
|
4
|
-
require('../chunk-MMWS3SXR.js');
|
|
5
|
-
require('../chunk-PQ4GCO3Q.js');
|
|
6
|
-
require('../chunk-EXVTHIT5.js');
|
|
7
|
-
require('../chunk-PE55R4KH.js');
|
|
8
|
-
require('../chunk-VBTWYDEM.js');
|
|
9
|
-
require('../chunk-FIDPCCCW.js');
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
exports.DateSchema = _chunkPGEXAFA5js.DateSchema;
|
|
13
|
-
//# sourceMappingURL=DateSchema.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/bguard/bguard/lib/schemas/DateSchema.js"],"names":[],"mappings":"AAAA;AACE;AACF,uDAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACF,iDAAC","file":"/home/runner/work/bguard/bguard/lib/schemas/DateSchema.js"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
DateSchema
|
|
3
|
-
} from "../chunk-VIFJBTQO.mjs";
|
|
4
|
-
import "../chunk-UEYMBPZN.mjs";
|
|
5
|
-
import "../chunk-IFQLPXCZ.mjs";
|
|
6
|
-
import "../chunk-QWPHP26D.mjs";
|
|
7
|
-
import "../chunk-MQRXWXHP.mjs";
|
|
8
|
-
import "../chunk-YBVMP4EI.mjs";
|
|
9
|
-
import "../chunk-ZTCXXAKD.mjs";
|
|
10
|
-
export {
|
|
11
|
-
DateSchema
|
|
12
|
-
};
|
|
13
|
-
//# sourceMappingURL=DateSchema.mjs.map
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { WithBGuardType } from '../commonTypes.mjs';
|
|
2
|
-
import { C as CommonSchema } from '../CommonSchema-BIfYCtcQ.mjs';
|
|
3
|
-
import '../ExceptionContext.mjs';
|
|
4
|
-
import '../InferType.mjs';
|
|
5
|
-
|
|
6
|
-
declare class NumberSchema extends CommonSchema {
|
|
7
|
-
protected _number: number;
|
|
8
|
-
private limit;
|
|
9
|
-
/**
|
|
10
|
-
* Restricts the schema to exactly match the specified value and infers the literal value as the TypeScript type.
|
|
11
|
-
*
|
|
12
|
-
* @param expectedValue - The value that the schema must exactly match.
|
|
13
|
-
* @returns - The schema instance restricted to the specified value, with the literal value inferred as the TypeScript type
|
|
14
|
-
*
|
|
15
|
-
* @example - number().equalTo(42); // Infers the type 42
|
|
16
|
-
*/
|
|
17
|
-
equalTo<Y extends number>(expectedValue: Y): WithBGuardType<this, Y>;
|
|
18
|
-
/**
|
|
19
|
-
* Restricts the schema to match one of the specified values and infers the union of those values as the TypeScript type.
|
|
20
|
-
*
|
|
21
|
-
* @param expectedValues - An array of values that the schema can match.
|
|
22
|
-
* @returns - The schema instance restricted to one of the specified values, with the union of those values inferred as the TypeScript type.
|
|
23
|
-
*
|
|
24
|
-
* @example
|
|
25
|
-
* number().oneOfValues([5, 7]); // Infers the type 5 | 7
|
|
26
|
-
*/
|
|
27
|
-
oneOfValues<Y extends number>(expectedValue: Y[]): WithBGuardType<this, Y>;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export { NumberSchema };
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { WithBGuardType } from '../commonTypes.js';
|
|
2
|
-
import { C as CommonSchema } from '../CommonSchema-DIDMH9R7.js';
|
|
3
|
-
import '../ExceptionContext.js';
|
|
4
|
-
import '../InferType.js';
|
|
5
|
-
|
|
6
|
-
declare class NumberSchema extends CommonSchema {
|
|
7
|
-
protected _number: number;
|
|
8
|
-
private limit;
|
|
9
|
-
/**
|
|
10
|
-
* Restricts the schema to exactly match the specified value and infers the literal value as the TypeScript type.
|
|
11
|
-
*
|
|
12
|
-
* @param expectedValue - The value that the schema must exactly match.
|
|
13
|
-
* @returns - The schema instance restricted to the specified value, with the literal value inferred as the TypeScript type
|
|
14
|
-
*
|
|
15
|
-
* @example - number().equalTo(42); // Infers the type 42
|
|
16
|
-
*/
|
|
17
|
-
equalTo<Y extends number>(expectedValue: Y): WithBGuardType<this, Y>;
|
|
18
|
-
/**
|
|
19
|
-
* Restricts the schema to match one of the specified values and infers the union of those values as the TypeScript type.
|
|
20
|
-
*
|
|
21
|
-
* @param expectedValues - An array of values that the schema can match.
|
|
22
|
-
* @returns - The schema instance restricted to one of the specified values, with the union of those values inferred as the TypeScript type.
|
|
23
|
-
*
|
|
24
|
-
* @example
|
|
25
|
-
* number().oneOfValues([5, 7]); // Infers the type 5 | 7
|
|
26
|
-
*/
|
|
27
|
-
oneOfValues<Y extends number>(expectedValue: Y[]): WithBGuardType<this, Y>;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export { NumberSchema };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
-
|
|
3
|
-
var _chunkZG373PNBjs = require('../chunk-ZG373PNB.js');
|
|
4
|
-
require('../chunk-UTPG4GZB.js');
|
|
5
|
-
require('../chunk-32MKEBKR.js');
|
|
6
|
-
require('../chunk-42J6CHIO.js');
|
|
7
|
-
require('../chunk-3ZQ4ORQH.js');
|
|
8
|
-
require('../chunk-MMWS3SXR.js');
|
|
9
|
-
require('../chunk-PQ4GCO3Q.js');
|
|
10
|
-
require('../chunk-EXVTHIT5.js');
|
|
11
|
-
require('../chunk-PE55R4KH.js');
|
|
12
|
-
require('../chunk-VBTWYDEM.js');
|
|
13
|
-
require('../chunk-FIDPCCCW.js');
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
exports.NumberSchema = _chunkZG373PNBjs.NumberSchema;
|
|
17
|
-
//# sourceMappingURL=NumberSchema.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/bguard/bguard/lib/schemas/NumberSchema.js"],"names":[],"mappings":"AAAA;AACE;AACF,uDAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACF,qDAAC","file":"/home/runner/work/bguard/bguard/lib/schemas/NumberSchema.js"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
NumberSchema
|
|
3
|
-
} from "../chunk-W2SQHSOS.mjs";
|
|
4
|
-
import "../chunk-EMOOEIPZ.mjs";
|
|
5
|
-
import "../chunk-P54CF5QN.mjs";
|
|
6
|
-
import "../chunk-ASZW6XRM.mjs";
|
|
7
|
-
import "../chunk-YSCVE4PJ.mjs";
|
|
8
|
-
import "../chunk-UEYMBPZN.mjs";
|
|
9
|
-
import "../chunk-IFQLPXCZ.mjs";
|
|
10
|
-
import "../chunk-QWPHP26D.mjs";
|
|
11
|
-
import "../chunk-MQRXWXHP.mjs";
|
|
12
|
-
import "../chunk-YBVMP4EI.mjs";
|
|
13
|
-
import "../chunk-ZTCXXAKD.mjs";
|
|
14
|
-
export {
|
|
15
|
-
NumberSchema
|
|
16
|
-
};
|
|
17
|
-
//# sourceMappingURL=NumberSchema.mjs.map
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { C as CommonSchema, V as ValidatorContext, O as ObjectShapeSchemaType } from '../CommonSchema-BIfYCtcQ.mjs';
|
|
2
|
-
import '../ExceptionContext.mjs';
|
|
3
|
-
import '../commonTypes.mjs';
|
|
4
|
-
import '../InferType.mjs';
|
|
5
|
-
|
|
6
|
-
declare class ObjectSchema extends CommonSchema {
|
|
7
|
-
protected _object: number;
|
|
8
|
-
constructor(ctx: ValidatorContext, shapeSchema: ObjectShapeSchemaType);
|
|
9
|
-
private validateObjectEntry;
|
|
10
|
-
/**
|
|
11
|
-
* Allows unrecognized properties in the validated object.
|
|
12
|
-
* When this method is called, the validation will not fail
|
|
13
|
-
* if the received object contains properties not specified
|
|
14
|
-
* in the validation schema.
|
|
15
|
-
*
|
|
16
|
-
* @returns {this} The current ObjectSchema instance.
|
|
17
|
-
*
|
|
18
|
-
* @example
|
|
19
|
-
* const userSchema = object({
|
|
20
|
-
* name: string(),
|
|
21
|
-
* age: number(),
|
|
22
|
-
* }).allowUnrecognized();
|
|
23
|
-
*
|
|
24
|
-
* parseOrFail(userSchema, ({ name: 'John', age: 30, extra: 'value' }););
|
|
25
|
-
* // No error thrown
|
|
26
|
-
*/
|
|
27
|
-
allowUnrecognized(): this;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export { ObjectSchema };
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { C as CommonSchema, V as ValidatorContext, O as ObjectShapeSchemaType } from '../CommonSchema-DIDMH9R7.js';
|
|
2
|
-
import '../ExceptionContext.js';
|
|
3
|
-
import '../commonTypes.js';
|
|
4
|
-
import '../InferType.js';
|
|
5
|
-
|
|
6
|
-
declare class ObjectSchema extends CommonSchema {
|
|
7
|
-
protected _object: number;
|
|
8
|
-
constructor(ctx: ValidatorContext, shapeSchema: ObjectShapeSchemaType);
|
|
9
|
-
private validateObjectEntry;
|
|
10
|
-
/**
|
|
11
|
-
* Allows unrecognized properties in the validated object.
|
|
12
|
-
* When this method is called, the validation will not fail
|
|
13
|
-
* if the received object contains properties not specified
|
|
14
|
-
* in the validation schema.
|
|
15
|
-
*
|
|
16
|
-
* @returns {this} The current ObjectSchema instance.
|
|
17
|
-
*
|
|
18
|
-
* @example
|
|
19
|
-
* const userSchema = object({
|
|
20
|
-
* name: string(),
|
|
21
|
-
* age: number(),
|
|
22
|
-
* }).allowUnrecognized();
|
|
23
|
-
*
|
|
24
|
-
* parseOrFail(userSchema, ({ name: 'John', age: 30, extra: 'value' }););
|
|
25
|
-
* // No error thrown
|
|
26
|
-
*/
|
|
27
|
-
allowUnrecognized(): this;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export { ObjectSchema };
|