bguard 0.2.0 → 0.4.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 +777 -447
- package/lib/CommonSchema-DOh3bsL-.d.ts +110 -0
- package/lib/CommonSchema-wi9MOXGF.d.mts +110 -0
- package/lib/InferType.d.mts +6 -14
- package/lib/InferType.d.ts +6 -14
- package/lib/asserts/array/index.d.mts +6 -5
- package/lib/asserts/array/index.d.ts +6 -5
- package/lib/asserts/array/index.js +8 -6
- package/lib/asserts/array/index.js.map +1 -1
- package/lib/asserts/array/index.mjs +7 -5
- package/lib/asserts/array/index.mjs.map +1 -1
- package/lib/asserts/array/maxArrayLength.d.mts +22 -0
- package/lib/asserts/array/maxArrayLength.d.ts +22 -0
- package/lib/asserts/array/maxArrayLength.js +20 -0
- package/lib/asserts/array/maxArrayLength.js.map +1 -0
- package/lib/asserts/array/maxArrayLength.mjs +20 -0
- package/lib/asserts/array/maxArrayLength.mjs.map +1 -0
- package/lib/asserts/array/minArrayLength.d.mts +22 -0
- package/lib/asserts/array/minArrayLength.d.ts +22 -0
- package/lib/asserts/array/minArrayLength.js +20 -0
- package/lib/asserts/array/minArrayLength.js.map +1 -0
- package/lib/asserts/array/minArrayLength.mjs +20 -0
- package/lib/asserts/array/minArrayLength.mjs.map +1 -0
- package/lib/asserts/bigint/bigintMax.js +4 -4
- package/lib/asserts/bigint/bigintMax.mjs +2 -2
- package/lib/asserts/bigint/bigintMaxExcluded.js +4 -4
- package/lib/asserts/bigint/bigintMaxExcluded.mjs +2 -2
- package/lib/asserts/bigint/bigintMin.js +4 -4
- package/lib/asserts/bigint/bigintMin.mjs +2 -2
- package/lib/asserts/bigint/bigintMinExcluded.js +4 -4
- package/lib/asserts/bigint/bigintMinExcluded.mjs +2 -2
- package/lib/asserts/bigint/index.d.mts +5 -4
- package/lib/asserts/bigint/index.d.ts +5 -4
- package/lib/asserts/bigint/index.js +11 -10
- package/lib/asserts/bigint/index.js.map +1 -1
- package/lib/asserts/bigint/index.mjs +10 -9
- package/lib/asserts/bigint/index.mjs.map +1 -1
- package/lib/asserts/boolean/index.d.mts +5 -4
- package/lib/asserts/boolean/index.d.ts +5 -4
- package/lib/asserts/boolean/index.js +9 -7
- package/lib/asserts/boolean/index.js.map +1 -1
- package/lib/asserts/boolean/index.mjs +8 -6
- package/lib/asserts/boolean/index.mjs.map +1 -1
- package/lib/asserts/date/dateMax.js +6 -6
- package/lib/asserts/date/dateMax.js.map +1 -1
- package/lib/asserts/date/dateMax.mjs +5 -5
- package/lib/asserts/date/dateMax.mjs.map +1 -1
- package/lib/asserts/date/dateMin.js +6 -6
- package/lib/asserts/date/dateMin.js.map +1 -1
- package/lib/asserts/date/dateMin.mjs +5 -5
- package/lib/asserts/date/dateMin.mjs.map +1 -1
- package/lib/asserts/date/index.d.mts +5 -4
- package/lib/asserts/date/index.d.ts +5 -4
- package/lib/asserts/date/index.js +8 -6
- package/lib/asserts/date/index.js.map +1 -1
- package/lib/asserts/date/index.mjs +7 -5
- package/lib/asserts/date/index.mjs.map +1 -1
- package/lib/asserts/mix/equalTo.js +4 -4
- package/lib/asserts/mix/equalTo.mjs +3 -3
- package/lib/asserts/mix/index.d.mts +5 -4
- package/lib/asserts/mix/index.d.ts +5 -4
- package/lib/asserts/mix/index.js +7 -5
- package/lib/asserts/mix/index.js.map +1 -1
- package/lib/asserts/mix/index.mjs +6 -4
- package/lib/asserts/mix/index.mjs.map +1 -1
- package/lib/asserts/mix/oneOfValues.js +4 -4
- package/lib/asserts/mix/oneOfValues.mjs +3 -3
- package/lib/asserts/number/index.d.mts +4 -3
- package/lib/asserts/number/index.d.ts +4 -3
- package/lib/asserts/number/index.js +11 -10
- package/lib/asserts/number/index.js.map +1 -1
- package/lib/asserts/number/index.mjs +10 -9
- package/lib/asserts/number/index.mjs.map +1 -1
- package/lib/asserts/number/max.js +4 -4
- package/lib/asserts/number/max.mjs +2 -2
- package/lib/asserts/number/maxExcluded.js +4 -4
- package/lib/asserts/number/maxExcluded.mjs +2 -2
- package/lib/asserts/number/min.js +4 -4
- package/lib/asserts/number/min.mjs +2 -2
- package/lib/asserts/number/minExcluded.js +4 -4
- package/lib/asserts/number/minExcluded.mjs +2 -2
- package/lib/asserts/number/negative.js +4 -4
- package/lib/asserts/number/negative.mjs +2 -2
- package/lib/asserts/number/positive.js +4 -4
- package/lib/asserts/number/positive.mjs +2 -2
- package/lib/asserts/object/index.d.mts +6 -5
- package/lib/asserts/object/index.d.ts +6 -5
- package/lib/asserts/object/index.js +8 -6
- package/lib/asserts/object/index.js.map +1 -1
- package/lib/asserts/object/index.mjs +7 -5
- package/lib/asserts/object/index.mjs.map +1 -1
- package/lib/asserts/object/maxKeys.d.mts +30 -0
- package/lib/asserts/object/maxKeys.d.ts +30 -0
- package/lib/asserts/object/maxKeys.js +23 -0
- package/lib/asserts/object/maxKeys.js.map +1 -0
- package/lib/asserts/object/maxKeys.mjs +23 -0
- package/lib/asserts/object/maxKeys.mjs.map +1 -0
- package/lib/asserts/string/atLeastOneDigit.js +4 -4
- package/lib/asserts/string/atLeastOneDigit.mjs +2 -2
- package/lib/asserts/string/atLeastOneLowerChar.js +4 -4
- package/lib/asserts/string/atLeastOneLowerChar.mjs +2 -2
- package/lib/asserts/string/atLeastOneSpecialChar.js +4 -4
- package/lib/asserts/string/atLeastOneSpecialChar.mjs +2 -2
- package/lib/asserts/string/atLeastOneUpperChar.js +4 -4
- package/lib/asserts/string/atLeastOneUpperChar.mjs +2 -2
- package/lib/asserts/string/contains.js +4 -4
- package/lib/asserts/string/contains.mjs +2 -2
- package/lib/asserts/string/email.js +4 -4
- package/lib/asserts/string/email.mjs +2 -2
- package/lib/asserts/string/endsWith.js +4 -4
- package/lib/asserts/string/endsWith.mjs +2 -2
- package/lib/asserts/string/index.d.mts +5 -4
- package/lib/asserts/string/index.d.ts +5 -4
- package/lib/asserts/string/index.js +11 -10
- package/lib/asserts/string/index.js.map +1 -1
- package/lib/asserts/string/index.mjs +10 -9
- package/lib/asserts/string/index.mjs.map +1 -1
- package/lib/asserts/string/isValidDate.d.mts +21 -0
- package/lib/asserts/string/isValidDate.d.ts +21 -0
- package/lib/asserts/string/isValidDate.js +25 -0
- package/lib/asserts/string/isValidDate.js.map +1 -0
- package/lib/asserts/string/isValidDate.mjs +25 -0
- package/lib/asserts/string/isValidDate.mjs.map +1 -0
- package/lib/asserts/string/isValidDateTime.d.mts +35 -0
- package/lib/asserts/string/isValidDateTime.d.ts +35 -0
- package/lib/asserts/string/isValidDateTime.js +32 -0
- package/lib/asserts/string/isValidDateTime.js.map +1 -0
- package/lib/asserts/string/isValidDateTime.mjs +32 -0
- package/lib/asserts/string/isValidDateTime.mjs.map +1 -0
- package/lib/asserts/string/isValidTime.d.mts +29 -0
- package/lib/asserts/string/isValidTime.d.ts +29 -0
- package/lib/asserts/string/isValidTime.js +32 -0
- package/lib/asserts/string/isValidTime.js.map +1 -0
- package/lib/asserts/string/isValidTime.mjs +32 -0
- package/lib/asserts/string/isValidTime.mjs.map +1 -0
- package/lib/asserts/string/lowerCase.js +4 -4
- package/lib/asserts/string/lowerCase.mjs +2 -2
- package/lib/asserts/string/maxLength.js +4 -4
- package/lib/asserts/string/maxLength.mjs +2 -2
- package/lib/asserts/string/minLength.js +4 -4
- package/lib/asserts/string/minLength.mjs +2 -2
- package/lib/asserts/string/regExp.js +4 -4
- package/lib/asserts/string/regExp.mjs +2 -2
- package/lib/asserts/string/startsWith.js +4 -4
- package/lib/asserts/string/startsWith.mjs +2 -2
- package/lib/asserts/string/upperCase.js +4 -4
- package/lib/asserts/string/upperCase.mjs +2 -2
- package/lib/asserts/string/uuid.js +4 -4
- package/lib/asserts/string/uuid.mjs +2 -2
- package/lib/asserts/string/uuidV1.js +4 -4
- package/lib/asserts/string/uuidV1.mjs +2 -2
- package/lib/asserts/string/uuidV2.js +4 -4
- package/lib/asserts/string/uuidV2.mjs +2 -2
- package/lib/asserts/string/uuidV3.js +4 -4
- package/lib/asserts/string/uuidV3.mjs +2 -2
- package/lib/asserts/string/uuidV4.js +4 -4
- package/lib/asserts/string/uuidV4.mjs +2 -2
- package/lib/asserts/string/uuidV5.js +4 -4
- package/lib/asserts/string/uuidV5.mjs +2 -2
- package/lib/asserts/string/validUrl.js +4 -4
- package/lib/asserts/string/validUrl.mjs +2 -2
- package/lib/{chunk-QLVLZRHT.js → chunk-2KQASECD.js} +5 -5
- package/lib/chunk-2KQASECD.js.map +1 -0
- package/lib/{chunk-WK4O3HH4.js → chunk-5P6AZJCN.js} +6 -5
- package/lib/chunk-5P6AZJCN.js.map +1 -0
- package/lib/{chunk-VGF3Y2EK.js → chunk-5WHCMWXK.js} +12 -9
- package/lib/chunk-5WHCMWXK.js.map +1 -0
- package/lib/{chunk-CQWI6YRI.js → chunk-5YYRBKDP.js} +4 -4
- package/lib/{chunk-CQWI6YRI.js.map → chunk-5YYRBKDP.js.map} +1 -1
- package/lib/{chunk-PJI3DRGP.mjs → chunk-6D5W7SSQ.mjs} +4 -4
- package/lib/chunk-6D5W7SSQ.mjs.map +1 -0
- package/lib/chunk-7NBOVYSP.mjs +136 -0
- package/lib/chunk-7NBOVYSP.mjs.map +1 -0
- package/lib/{chunk-XZTZC73V.mjs → chunk-BNCT7NOR.mjs} +36 -14
- package/lib/chunk-BNCT7NOR.mjs.map +1 -0
- package/lib/{chunk-M6OCVAUD.mjs → chunk-C3EDEQ3W.mjs} +3 -3
- package/lib/{chunk-Z7OEFOAD.mjs → chunk-CHUPE6SJ.mjs} +8 -8
- package/lib/chunk-CHUPE6SJ.mjs.map +1 -0
- package/lib/{chunk-4SR7J2I4.js → chunk-ECBOZ3BM.js} +8 -8
- package/lib/chunk-ECBOZ3BM.js.map +1 -0
- package/lib/{chunk-7XFLH6R2.mjs → chunk-FGZKNBDP.mjs} +6 -5
- package/lib/chunk-FGZKNBDP.mjs.map +1 -0
- package/lib/{chunk-TP5I237J.mjs → chunk-FP5QAEVQ.mjs} +14 -12
- package/lib/chunk-FP5QAEVQ.mjs.map +1 -0
- package/lib/{chunk-MTJJKWTP.js → chunk-G55SHHAR.js} +10 -8
- package/lib/chunk-G55SHHAR.js.map +1 -0
- package/lib/{chunk-QV4JDW3T.mjs → chunk-H32B3NHW.mjs} +2 -2
- package/lib/{chunk-54RHVQFA.mjs → chunk-H6LHV3EA.mjs} +2 -2
- package/lib/{chunk-WPHJ4QTB.js → chunk-HP3DRZWK.js} +5 -5
- package/lib/{chunk-WPHJ4QTB.js.map → chunk-HP3DRZWK.js.map} +1 -1
- package/lib/{chunk-4SPM2CSQ.js → chunk-IZ3CBVEE.js} +5 -5
- package/lib/{chunk-4SPM2CSQ.js.map → chunk-IZ3CBVEE.js.map} +1 -1
- package/lib/{chunk-YPAUFM3S.mjs → chunk-K7X6DVM2.mjs} +3 -3
- package/lib/{chunk-PEWNA24X.mjs → chunk-LPR3G5T3.mjs} +4 -4
- package/lib/chunk-LPR3G5T3.mjs.map +1 -0
- package/lib/{chunk-XFR7Y4XX.mjs → chunk-MHBY5OIQ.mjs} +3 -3
- package/lib/chunk-MHBY5OIQ.mjs.map +1 -0
- package/lib/{chunk-5EIBKBYS.js → chunk-MLNQZ445.js} +13 -13
- package/lib/chunk-MLNQZ445.js.map +1 -0
- package/lib/chunk-QIDWASOC.js +14 -0
- package/lib/{chunk-LWAEUS2F.js.map → chunk-QIDWASOC.js.map} +1 -1
- package/lib/chunk-SHJVKSEZ.js +136 -0
- package/lib/chunk-SHJVKSEZ.js.map +1 -0
- package/lib/{chunk-MRWZVTNH.mjs → chunk-TRGMD7LA.mjs} +7 -5
- package/lib/chunk-TRGMD7LA.mjs.map +1 -0
- package/lib/{chunk-5AO66YV5.mjs → chunk-TV5IZY4L.mjs} +9 -6
- package/lib/chunk-TV5IZY4L.mjs.map +1 -0
- package/lib/{chunk-N6YMNLXG.js → chunk-U4USIJV3.js} +11 -11
- package/lib/chunk-U4USIJV3.js.map +1 -0
- package/lib/{chunk-SEIKS6G7.js → chunk-UUY7DPHK.js} +19 -15
- package/lib/chunk-UUY7DPHK.js.map +1 -0
- package/lib/{chunk-356HMXOP.js → chunk-VBTWYDEM.js} +4 -4
- package/lib/chunk-VBTWYDEM.js.map +1 -0
- package/lib/chunk-VW4RMQD4.js +28 -0
- package/lib/chunk-VW4RMQD4.js.map +1 -0
- package/lib/{chunk-UV4I7JZR.mjs → chunk-WK4FJ5GD.mjs} +16 -12
- package/lib/chunk-WK4FJ5GD.mjs.map +1 -0
- package/lib/chunk-X762EUSZ.js +91 -0
- package/lib/chunk-X762EUSZ.js.map +1 -0
- package/lib/{chunk-GDSB7CDN.mjs → chunk-YBVMP4EI.mjs} +4 -4
- package/lib/chunk-YBVMP4EI.mjs.map +1 -0
- package/lib/{chunk-PVOHKGBW.mjs → chunk-YUMUCQKL.mjs} +4 -4
- package/lib/chunk-YUMUCQKL.mjs.map +1 -0
- package/lib/{chunk-32J4WVLE.js → chunk-Z6QU36MM.js} +17 -15
- package/lib/chunk-Z6QU36MM.js.map +1 -0
- package/lib/codeGen.d.mts +2 -1
- package/lib/codeGen.d.ts +2 -1
- package/lib/codeGen.js +4 -4
- package/lib/codeGen.mjs +3 -3
- package/lib/commonTypes.d.mts +26 -2
- package/lib/commonTypes.d.ts +26 -2
- package/lib/exceptions.d.mts +3 -2
- package/lib/exceptions.d.ts +3 -2
- package/lib/exceptions.js +2 -2
- package/lib/exceptions.mjs +1 -1
- package/lib/helpers/core.d.mts +2 -1
- package/lib/helpers/core.d.ts +2 -1
- package/lib/helpers/core.js +4 -4
- package/lib/helpers/core.mjs +3 -3
- package/lib/helpers/isValidDateInner.d.mts +3 -0
- package/lib/helpers/isValidDateInner.d.ts +3 -0
- package/lib/helpers/isValidDateInner.js +7 -0
- package/lib/helpers/isValidDateInner.js.map +1 -0
- package/lib/helpers/isValidDateInner.mjs +7 -0
- package/lib/helpers/setStrictType.d.mts +2 -1
- package/lib/helpers/setStrictType.d.ts +2 -1
- package/lib/helpers/setStrictType.js +5 -5
- package/lib/helpers/setStrictType.mjs +4 -4
- package/lib/index.d.mts +1 -8
- package/lib/index.d.ts +1 -8
- package/lib/index.js +7 -7
- package/lib/index.mjs +6 -6
- package/lib/parse.d.mts +1 -8
- package/lib/parse.d.ts +1 -8
- package/lib/parse.js +6 -6
- package/lib/parse.mjs +5 -5
- package/lib/parseOrFail.d.mts +1 -8
- package/lib/parseOrFail.d.ts +1 -8
- package/lib/parseOrFail.js +6 -6
- package/lib/parseOrFail.mjs +5 -5
- package/lib/schemas/ArraySchema.d.mts +4 -7
- package/lib/schemas/ArraySchema.d.ts +4 -7
- package/lib/schemas/ArraySchema.js +8 -6
- package/lib/schemas/ArraySchema.js.map +1 -1
- package/lib/schemas/ArraySchema.mjs +7 -5
- package/lib/schemas/BigIntSchema.d.mts +8 -10
- package/lib/schemas/BigIntSchema.d.ts +8 -10
- package/lib/schemas/BigIntSchema.js +11 -10
- package/lib/schemas/BigIntSchema.js.map +1 -1
- package/lib/schemas/BigIntSchema.mjs +10 -9
- package/lib/schemas/BooleanSchema.d.mts +7 -10
- package/lib/schemas/BooleanSchema.d.ts +7 -10
- package/lib/schemas/BooleanSchema.js +9 -7
- package/lib/schemas/BooleanSchema.js.map +1 -1
- package/lib/schemas/BooleanSchema.mjs +8 -6
- package/lib/schemas/CommonSchema.d.mts +2 -1
- package/lib/schemas/CommonSchema.d.ts +2 -1
- package/lib/schemas/CommonSchema.js +7 -5
- package/lib/schemas/CommonSchema.js.map +1 -1
- package/lib/schemas/CommonSchema.mjs +6 -4
- package/lib/schemas/DateSchema.d.mts +3 -2
- package/lib/schemas/DateSchema.d.ts +3 -2
- package/lib/schemas/DateSchema.js +8 -6
- package/lib/schemas/DateSchema.js.map +1 -1
- package/lib/schemas/DateSchema.mjs +7 -5
- package/lib/schemas/NumberSchema.d.mts +7 -10
- package/lib/schemas/NumberSchema.d.ts +7 -10
- package/lib/schemas/NumberSchema.js +11 -10
- package/lib/schemas/NumberSchema.js.map +1 -1
- package/lib/schemas/NumberSchema.mjs +10 -9
- package/lib/schemas/ObjectSchema.d.mts +4 -6
- package/lib/schemas/ObjectSchema.d.ts +4 -6
- package/lib/schemas/ObjectSchema.js +8 -6
- package/lib/schemas/ObjectSchema.js.map +1 -1
- package/lib/schemas/ObjectSchema.mjs +7 -5
- package/lib/schemas/StringSchema.d.mts +8 -10
- package/lib/schemas/StringSchema.d.ts +8 -10
- package/lib/schemas/StringSchema.js +11 -10
- package/lib/schemas/StringSchema.js.map +1 -1
- package/lib/schemas/StringSchema.mjs +10 -9
- package/lib/translationMap.js +3 -3
- package/lib/translationMap.mjs +2 -2
- package/package.json +1 -1
- package/lib/CommonSchema-9RtxTxdX.d.ts +0 -63
- package/lib/CommonSchema-DJmQ3F_9.d.mts +0 -63
- package/lib/chunk-2OINKFOA.js +0 -28
- package/lib/chunk-2OINKFOA.js.map +0 -1
- package/lib/chunk-32J4WVLE.js.map +0 -1
- package/lib/chunk-356HMXOP.js.map +0 -1
- package/lib/chunk-4SR7J2I4.js.map +0 -1
- package/lib/chunk-4UF67IQ2.mjs +0 -42
- package/lib/chunk-4UF67IQ2.mjs.map +0 -1
- package/lib/chunk-5AO66YV5.mjs.map +0 -1
- package/lib/chunk-5EIBKBYS.js.map +0 -1
- package/lib/chunk-7GIRQ5EA.js +0 -69
- package/lib/chunk-7GIRQ5EA.js.map +0 -1
- package/lib/chunk-7XFLH6R2.mjs.map +0 -1
- package/lib/chunk-EQNVYAKS.js +0 -42
- package/lib/chunk-EQNVYAKS.js.map +0 -1
- package/lib/chunk-GDSB7CDN.mjs.map +0 -1
- package/lib/chunk-LWAEUS2F.js +0 -14
- package/lib/chunk-MRWZVTNH.mjs.map +0 -1
- package/lib/chunk-MTJJKWTP.js.map +0 -1
- package/lib/chunk-N6YMNLXG.js.map +0 -1
- package/lib/chunk-PEWNA24X.mjs.map +0 -1
- package/lib/chunk-PJI3DRGP.mjs.map +0 -1
- package/lib/chunk-PVOHKGBW.mjs.map +0 -1
- package/lib/chunk-QLVLZRHT.js.map +0 -1
- package/lib/chunk-SEIKS6G7.js.map +0 -1
- package/lib/chunk-TP5I237J.mjs.map +0 -1
- package/lib/chunk-UV4I7JZR.mjs.map +0 -1
- package/lib/chunk-VGF3Y2EK.js.map +0 -1
- package/lib/chunk-WK4O3HH4.js.map +0 -1
- package/lib/chunk-XFR7Y4XX.mjs.map +0 -1
- package/lib/chunk-XZTZC73V.mjs.map +0 -1
- package/lib/chunk-Z7OEFOAD.mjs.map +0 -1
- package/lib/helpers/isValidDate.d.mts +0 -3
- package/lib/helpers/isValidDate.d.ts +0 -3
- package/lib/helpers/isValidDate.js +0 -7
- package/lib/helpers/isValidDate.js.map +0 -1
- package/lib/helpers/isValidDate.mjs +0 -7
- /package/lib/{chunk-M6OCVAUD.mjs.map → chunk-C3EDEQ3W.mjs.map} +0 -0
- /package/lib/{chunk-QV4JDW3T.mjs.map → chunk-H32B3NHW.mjs.map} +0 -0
- /package/lib/{chunk-54RHVQFA.mjs.map → chunk-H6LHV3EA.mjs.map} +0 -0
- /package/lib/{chunk-YPAUFM3S.mjs.map → chunk-K7X6DVM2.mjs.map} +0 -0
- /package/lib/helpers/{isValidDate.mjs.map → isValidDateInner.mjs.map} +0 -0
package/lib/index.d.mts
CHANGED
|
@@ -3,12 +3,5 @@ export { parse } from './parse.mjs';
|
|
|
3
3
|
export { parseOrFail } from './parseOrFail.mjs';
|
|
4
4
|
export { BuildSchemaError, ValidationError, guardException } from './exceptions.mjs';
|
|
5
5
|
export { clearLocales, setLocale, setToDefaultLocale } from './translationMap.mjs';
|
|
6
|
-
import './schemas/ArraySchema.mjs';
|
|
7
|
-
import './CommonSchema-DJmQ3F_9.mjs';
|
|
8
6
|
import './commonTypes.mjs';
|
|
9
|
-
import './
|
|
10
|
-
import './schemas/BooleanSchema.mjs';
|
|
11
|
-
import './schemas/DateSchema.mjs';
|
|
12
|
-
import './schemas/NumberSchema.mjs';
|
|
13
|
-
import './schemas/ObjectSchema.mjs';
|
|
14
|
-
import './schemas/StringSchema.mjs';
|
|
7
|
+
import './CommonSchema-wi9MOXGF.mjs';
|
package/lib/index.d.ts
CHANGED
|
@@ -3,12 +3,5 @@ export { parse } from './parse.js';
|
|
|
3
3
|
export { parseOrFail } from './parseOrFail.js';
|
|
4
4
|
export { BuildSchemaError, ValidationError, guardException } from './exceptions.js';
|
|
5
5
|
export { clearLocales, setLocale, setToDefaultLocale } from './translationMap.js';
|
|
6
|
-
import './schemas/ArraySchema.js';
|
|
7
|
-
import './CommonSchema-9RtxTxdX.js';
|
|
8
6
|
import './commonTypes.js';
|
|
9
|
-
import './
|
|
10
|
-
import './schemas/BooleanSchema.js';
|
|
11
|
-
import './schemas/DateSchema.js';
|
|
12
|
-
import './schemas/NumberSchema.js';
|
|
13
|
-
import './schemas/ObjectSchema.js';
|
|
14
|
-
import './schemas/StringSchema.js';
|
|
7
|
+
import './CommonSchema-DOh3bsL-.js';
|
package/lib/index.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk5WHCMWXKjs = require('./chunk-5WHCMWXK.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
7
|
-
require('./chunk-
|
|
8
|
-
require('./chunk-
|
|
6
|
+
var _chunkG55SHHARjs = require('./chunk-G55SHHAR.js');
|
|
7
|
+
require('./chunk-X762EUSZ.js');
|
|
8
|
+
require('./chunk-VBTWYDEM.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunk5YYRBKDPjs = require('./chunk-5YYRBKDP.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunk5P6AZJCNjs = require('./chunk-5P6AZJCN.js');
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
@@ -25,5 +25,5 @@ var _chunkWK4O3HH4js = require('./chunk-WK4O3HH4.js');
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
exports.BuildSchemaError =
|
|
28
|
+
exports.BuildSchemaError = _chunk5P6AZJCNjs.BuildSchemaError; exports.ValidationError = _chunk5P6AZJCNjs.ValidationError; exports.clearLocales = _chunk5YYRBKDPjs.clearLocales; exports.guardException = _chunk5P6AZJCNjs.guardException; exports.parse = _chunk5WHCMWXKjs.parse; exports.parseOrFail = _chunkG55SHHARjs.parseOrFail; exports.setLocale = _chunk5YYRBKDPjs.setLocale; exports.setToDefaultLocale = _chunk5YYRBKDPjs.setToDefaultLocale;
|
|
29
29
|
//# sourceMappingURL=index.js.map
|
package/lib/index.mjs
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
parse
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-TV5IZY4L.mjs";
|
|
4
4
|
import {
|
|
5
5
|
parseOrFail
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-TRGMD7LA.mjs";
|
|
7
|
+
import "./chunk-BNCT7NOR.mjs";
|
|
8
|
+
import "./chunk-YBVMP4EI.mjs";
|
|
9
9
|
import {
|
|
10
10
|
clearLocales,
|
|
11
11
|
setLocale,
|
|
12
12
|
setToDefaultLocale
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-H32B3NHW.mjs";
|
|
14
14
|
import {
|
|
15
15
|
BuildSchemaError,
|
|
16
16
|
ValidationError,
|
|
17
17
|
guardException
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-FGZKNBDP.mjs";
|
|
19
19
|
export {
|
|
20
20
|
BuildSchemaError,
|
|
21
21
|
ValidationError,
|
package/lib/parse.d.mts
CHANGED
|
@@ -1,13 +1,6 @@
|
|
|
1
1
|
import { InferType } from './InferType.mjs';
|
|
2
|
-
import { C as CommonSchema } from './CommonSchema-
|
|
2
|
+
import { C as CommonSchema } from './CommonSchema-wi9MOXGF.mjs';
|
|
3
3
|
import { ValidationErrorData } from './commonTypes.mjs';
|
|
4
|
-
import './schemas/ArraySchema.mjs';
|
|
5
|
-
import './schemas/BigIntSchema.mjs';
|
|
6
|
-
import './schemas/BooleanSchema.mjs';
|
|
7
|
-
import './schemas/DateSchema.mjs';
|
|
8
|
-
import './schemas/NumberSchema.mjs';
|
|
9
|
-
import './schemas/ObjectSchema.mjs';
|
|
10
|
-
import './schemas/StringSchema.mjs';
|
|
11
4
|
|
|
12
5
|
interface ParseOptions {
|
|
13
6
|
/**
|
package/lib/parse.d.ts
CHANGED
|
@@ -1,13 +1,6 @@
|
|
|
1
1
|
import { InferType } from './InferType.js';
|
|
2
|
-
import { C as CommonSchema } from './CommonSchema-
|
|
2
|
+
import { C as CommonSchema } from './CommonSchema-DOh3bsL-.js';
|
|
3
3
|
import { ValidationErrorData } from './commonTypes.js';
|
|
4
|
-
import './schemas/ArraySchema.js';
|
|
5
|
-
import './schemas/BigIntSchema.js';
|
|
6
|
-
import './schemas/BooleanSchema.js';
|
|
7
|
-
import './schemas/DateSchema.js';
|
|
8
|
-
import './schemas/NumberSchema.js';
|
|
9
|
-
import './schemas/ObjectSchema.js';
|
|
10
|
-
import './schemas/StringSchema.js';
|
|
11
4
|
|
|
12
5
|
interface ParseOptions {
|
|
13
6
|
/**
|
package/lib/parse.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
5
|
-
require('./chunk-
|
|
6
|
-
require('./chunk-
|
|
7
|
-
require('./chunk-
|
|
3
|
+
var _chunk5WHCMWXKjs = require('./chunk-5WHCMWXK.js');
|
|
4
|
+
require('./chunk-X762EUSZ.js');
|
|
5
|
+
require('./chunk-VBTWYDEM.js');
|
|
6
|
+
require('./chunk-5YYRBKDP.js');
|
|
7
|
+
require('./chunk-5P6AZJCN.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
exports.parse =
|
|
10
|
+
exports.parse = _chunk5WHCMWXKjs.parse;
|
|
11
11
|
//# sourceMappingURL=parse.js.map
|
package/lib/parse.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
parse
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-TV5IZY4L.mjs";
|
|
4
|
+
import "./chunk-BNCT7NOR.mjs";
|
|
5
|
+
import "./chunk-YBVMP4EI.mjs";
|
|
6
|
+
import "./chunk-H32B3NHW.mjs";
|
|
7
|
+
import "./chunk-FGZKNBDP.mjs";
|
|
8
8
|
export {
|
|
9
9
|
parse
|
|
10
10
|
};
|
package/lib/parseOrFail.d.mts
CHANGED
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
import { InferType } from './InferType.mjs';
|
|
2
|
-
import { C as CommonSchema } from './CommonSchema-
|
|
3
|
-
import './schemas/ArraySchema.mjs';
|
|
4
|
-
import './schemas/BigIntSchema.mjs';
|
|
5
|
-
import './schemas/BooleanSchema.mjs';
|
|
6
|
-
import './schemas/DateSchema.mjs';
|
|
7
|
-
import './schemas/NumberSchema.mjs';
|
|
8
|
-
import './schemas/ObjectSchema.mjs';
|
|
9
|
-
import './schemas/StringSchema.mjs';
|
|
2
|
+
import { C as CommonSchema } from './CommonSchema-wi9MOXGF.mjs';
|
|
10
3
|
import './commonTypes.mjs';
|
|
11
4
|
|
|
12
5
|
interface ParseOptions {
|
package/lib/parseOrFail.d.ts
CHANGED
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
import { InferType } from './InferType.js';
|
|
2
|
-
import { C as CommonSchema } from './CommonSchema-
|
|
3
|
-
import './schemas/ArraySchema.js';
|
|
4
|
-
import './schemas/BigIntSchema.js';
|
|
5
|
-
import './schemas/BooleanSchema.js';
|
|
6
|
-
import './schemas/DateSchema.js';
|
|
7
|
-
import './schemas/NumberSchema.js';
|
|
8
|
-
import './schemas/ObjectSchema.js';
|
|
9
|
-
import './schemas/StringSchema.js';
|
|
2
|
+
import { C as CommonSchema } from './CommonSchema-DOh3bsL-.js';
|
|
10
3
|
import './commonTypes.js';
|
|
11
4
|
|
|
12
5
|
interface ParseOptions {
|
package/lib/parseOrFail.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
5
|
-
require('./chunk-
|
|
6
|
-
require('./chunk-
|
|
7
|
-
require('./chunk-
|
|
3
|
+
var _chunkG55SHHARjs = require('./chunk-G55SHHAR.js');
|
|
4
|
+
require('./chunk-X762EUSZ.js');
|
|
5
|
+
require('./chunk-VBTWYDEM.js');
|
|
6
|
+
require('./chunk-5YYRBKDP.js');
|
|
7
|
+
require('./chunk-5P6AZJCN.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
exports.parseOrFail =
|
|
10
|
+
exports.parseOrFail = _chunkG55SHHARjs.parseOrFail;
|
|
11
11
|
//# sourceMappingURL=parseOrFail.js.map
|
package/lib/parseOrFail.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
parseOrFail
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-TRGMD7LA.mjs";
|
|
4
|
+
import "./chunk-BNCT7NOR.mjs";
|
|
5
|
+
import "./chunk-YBVMP4EI.mjs";
|
|
6
|
+
import "./chunk-H32B3NHW.mjs";
|
|
7
|
+
import "./chunk-FGZKNBDP.mjs";
|
|
8
8
|
export {
|
|
9
9
|
parseOrFail
|
|
10
10
|
};
|
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
import { C as CommonSchema, V as ValidatorContext } from '../CommonSchema-
|
|
1
|
+
import { C as CommonSchema, V as ValidatorContext } from '../CommonSchema-wi9MOXGF.mjs';
|
|
2
|
+
import '../InferType.mjs';
|
|
2
3
|
import '../commonTypes.mjs';
|
|
3
4
|
|
|
4
5
|
declare class ArraySchema extends CommonSchema {
|
|
5
|
-
_array: number;
|
|
6
|
+
protected _array: number;
|
|
6
7
|
constructor(ctx: ValidatorContext, arraySchema: CommonSchema);
|
|
7
8
|
private validateArrayEntry;
|
|
8
9
|
}
|
|
9
|
-
type WithArray<Y extends CommonSchema> = ArraySchema & {
|
|
10
|
-
validation_array: Y;
|
|
11
|
-
};
|
|
12
|
-
type ExtractFromArray<T> = T extends WithArray<infer X> ? X : never;
|
|
13
10
|
|
|
14
|
-
export { ArraySchema
|
|
11
|
+
export { ArraySchema };
|
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
import { C as CommonSchema, V as ValidatorContext } from '../CommonSchema-
|
|
1
|
+
import { C as CommonSchema, V as ValidatorContext } from '../CommonSchema-DOh3bsL-.js';
|
|
2
|
+
import '../InferType.js';
|
|
2
3
|
import '../commonTypes.js';
|
|
3
4
|
|
|
4
5
|
declare class ArraySchema extends CommonSchema {
|
|
5
|
-
_array: number;
|
|
6
|
+
protected _array: number;
|
|
6
7
|
constructor(ctx: ValidatorContext, arraySchema: CommonSchema);
|
|
7
8
|
private validateArrayEntry;
|
|
8
9
|
}
|
|
9
|
-
type WithArray<Y extends CommonSchema> = ArraySchema & {
|
|
10
|
-
validation_array: Y;
|
|
11
|
-
};
|
|
12
|
-
type ExtractFromArray<T> = T extends WithArray<infer X> ? X : never;
|
|
13
10
|
|
|
14
|
-
export { ArraySchema
|
|
11
|
+
export { ArraySchema };
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
5
|
-
require('../chunk-
|
|
6
|
-
require('../chunk-
|
|
7
|
-
require('../chunk-
|
|
3
|
+
var _chunkVW4RMQD4js = require('../chunk-VW4RMQD4.js');
|
|
4
|
+
require('../chunk-SHJVKSEZ.js');
|
|
5
|
+
require('../chunk-G55SHHAR.js');
|
|
6
|
+
require('../chunk-X762EUSZ.js');
|
|
7
|
+
require('../chunk-VBTWYDEM.js');
|
|
8
|
+
require('../chunk-5YYRBKDP.js');
|
|
9
|
+
require('../chunk-5P6AZJCN.js');
|
|
8
10
|
|
|
9
11
|
|
|
10
|
-
exports.ArraySchema =
|
|
12
|
+
exports.ArraySchema = _chunkVW4RMQD4js.ArraySchema;
|
|
11
13
|
//# sourceMappingURL=ArraySchema.js.map
|
|
@@ -1 +1 @@
|
|
|
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;AACE;AACF,mDAAC","file":"/home/runner/work/bguard/bguard/lib/schemas/ArraySchema.js"}
|
|
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,10 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ArraySchema
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-LPR3G5T3.mjs";
|
|
4
|
+
import "../chunk-7NBOVYSP.mjs";
|
|
5
|
+
import "../chunk-TRGMD7LA.mjs";
|
|
6
|
+
import "../chunk-BNCT7NOR.mjs";
|
|
7
|
+
import "../chunk-YBVMP4EI.mjs";
|
|
8
|
+
import "../chunk-H32B3NHW.mjs";
|
|
9
|
+
import "../chunk-FGZKNBDP.mjs";
|
|
8
10
|
export {
|
|
9
11
|
ArraySchema
|
|
10
12
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import '../
|
|
1
|
+
import { WithBGuardType } from '../commonTypes.mjs';
|
|
2
|
+
import { C as CommonSchema } from '../CommonSchema-wi9MOXGF.mjs';
|
|
3
|
+
import '../InferType.mjs';
|
|
3
4
|
|
|
4
5
|
declare class BigIntSchema extends CommonSchema {
|
|
5
|
-
_bigint: number;
|
|
6
|
+
protected _bigint: number;
|
|
6
7
|
private limit;
|
|
7
8
|
/**
|
|
8
9
|
* Restricts the schema to exactly match the specified value and infers the literal value as the TypeScript type.
|
|
@@ -12,7 +13,7 @@ declare class BigIntSchema extends CommonSchema {
|
|
|
12
13
|
*
|
|
13
14
|
* @example - bigint().equalTo(42n); // Infers the type 42n
|
|
14
15
|
*/
|
|
15
|
-
equalTo<Y extends bigint>(expectedValue: Y):
|
|
16
|
+
equalTo<Y extends bigint>(expectedValue: Y): WithBGuardType<this, Y>;
|
|
16
17
|
/**
|
|
17
18
|
* Restricts the schema to match one of the specified values and infers the union of those values as the TypeScript type.
|
|
18
19
|
*
|
|
@@ -22,11 +23,8 @@ declare class BigIntSchema extends CommonSchema {
|
|
|
22
23
|
* @example
|
|
23
24
|
* bigint().oneOfValues([5n, 7n]); // Infers the type 5n | 7n
|
|
24
25
|
*/
|
|
25
|
-
oneOfValues<Y extends bigint>(expectedValue: Y[]):
|
|
26
|
+
oneOfValues<Y extends bigint>(expectedValue: Y[]): WithBGuardType<this, Y>;
|
|
27
|
+
private limitCheck;
|
|
26
28
|
}
|
|
27
|
-
type WithBigInt<T extends BigIntSchema, Y = bigint> = T & {
|
|
28
|
-
validation_bigint: Y;
|
|
29
|
-
};
|
|
30
|
-
type ExtractFromBigInt<T> = T extends WithBigInt<BigIntSchema, infer Y> ? Y : never;
|
|
31
29
|
|
|
32
|
-
export { BigIntSchema
|
|
30
|
+
export { BigIntSchema };
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import '../
|
|
1
|
+
import { WithBGuardType } from '../commonTypes.js';
|
|
2
|
+
import { C as CommonSchema } from '../CommonSchema-DOh3bsL-.js';
|
|
3
|
+
import '../InferType.js';
|
|
3
4
|
|
|
4
5
|
declare class BigIntSchema extends CommonSchema {
|
|
5
|
-
_bigint: number;
|
|
6
|
+
protected _bigint: number;
|
|
6
7
|
private limit;
|
|
7
8
|
/**
|
|
8
9
|
* Restricts the schema to exactly match the specified value and infers the literal value as the TypeScript type.
|
|
@@ -12,7 +13,7 @@ declare class BigIntSchema extends CommonSchema {
|
|
|
12
13
|
*
|
|
13
14
|
* @example - bigint().equalTo(42n); // Infers the type 42n
|
|
14
15
|
*/
|
|
15
|
-
equalTo<Y extends bigint>(expectedValue: Y):
|
|
16
|
+
equalTo<Y extends bigint>(expectedValue: Y): WithBGuardType<this, Y>;
|
|
16
17
|
/**
|
|
17
18
|
* Restricts the schema to match one of the specified values and infers the union of those values as the TypeScript type.
|
|
18
19
|
*
|
|
@@ -22,11 +23,8 @@ declare class BigIntSchema extends CommonSchema {
|
|
|
22
23
|
* @example
|
|
23
24
|
* bigint().oneOfValues([5n, 7n]); // Infers the type 5n | 7n
|
|
24
25
|
*/
|
|
25
|
-
oneOfValues<Y extends bigint>(expectedValue: Y[]):
|
|
26
|
+
oneOfValues<Y extends bigint>(expectedValue: Y[]): WithBGuardType<this, Y>;
|
|
27
|
+
private limitCheck;
|
|
26
28
|
}
|
|
27
|
-
type WithBigInt<T extends BigIntSchema, Y = bigint> = T & {
|
|
28
|
-
validation_bigint: Y;
|
|
29
|
-
};
|
|
30
|
-
type ExtractFromBigInt<T> = T extends WithBigInt<BigIntSchema, infer Y> ? Y : never;
|
|
31
29
|
|
|
32
|
-
export { BigIntSchema
|
|
30
|
+
export { BigIntSchema };
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
5
|
-
require('../chunk-
|
|
3
|
+
var _chunkUUY7DPHKjs = require('../chunk-UUY7DPHK.js');
|
|
4
|
+
require('../chunk-HP3DRZWK.js');
|
|
5
|
+
require('../chunk-IZ3CBVEE.js');
|
|
6
6
|
require('../chunk-42J6CHIO.js');
|
|
7
|
-
require('../chunk-
|
|
8
|
-
require('../chunk-
|
|
9
|
-
require('../chunk-
|
|
10
|
-
require('../chunk-
|
|
11
|
-
require('../chunk-
|
|
12
|
-
require('../chunk-
|
|
7
|
+
require('../chunk-QIDWASOC.js');
|
|
8
|
+
require('../chunk-SHJVKSEZ.js');
|
|
9
|
+
require('../chunk-G55SHHAR.js');
|
|
10
|
+
require('../chunk-X762EUSZ.js');
|
|
11
|
+
require('../chunk-VBTWYDEM.js');
|
|
12
|
+
require('../chunk-5YYRBKDP.js');
|
|
13
|
+
require('../chunk-5P6AZJCN.js');
|
|
13
14
|
|
|
14
15
|
|
|
15
|
-
exports.BigIntSchema =
|
|
16
|
+
exports.BigIntSchema = _chunkUUY7DPHKjs.BigIntSchema;
|
|
16
17
|
//# sourceMappingURL=BigIntSchema.js.map
|
|
@@ -1 +1 @@
|
|
|
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;AACE;AACF,qDAAC","file":"/home/runner/work/bguard/bguard/lib/schemas/BigIntSchema.js"}
|
|
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,15 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BigIntSchema
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-WK4FJ5GD.mjs";
|
|
4
|
+
import "../chunk-C3EDEQ3W.mjs";
|
|
5
|
+
import "../chunk-K7X6DVM2.mjs";
|
|
6
6
|
import "../chunk-ASZW6XRM.mjs";
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-H6LHV3EA.mjs";
|
|
8
|
+
import "../chunk-7NBOVYSP.mjs";
|
|
9
|
+
import "../chunk-TRGMD7LA.mjs";
|
|
10
|
+
import "../chunk-BNCT7NOR.mjs";
|
|
11
|
+
import "../chunk-YBVMP4EI.mjs";
|
|
12
|
+
import "../chunk-H32B3NHW.mjs";
|
|
13
|
+
import "../chunk-FGZKNBDP.mjs";
|
|
13
14
|
export {
|
|
14
15
|
BigIntSchema
|
|
15
16
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { C as CommonSchema } from '../CommonSchema-
|
|
2
|
-
import '../commonTypes.mjs';
|
|
1
|
+
import { C as CommonSchema } from '../CommonSchema-wi9MOXGF.mjs';
|
|
2
|
+
import { WithBGuardType } from '../commonTypes.mjs';
|
|
3
|
+
import '../InferType.mjs';
|
|
3
4
|
|
|
4
5
|
declare class BooleanSchema extends CommonSchema {
|
|
5
|
-
_boolean: number;
|
|
6
|
+
protected _boolean: number;
|
|
6
7
|
/**
|
|
7
8
|
* Restricts the schema to exactly match the boolean value true and infers the true value as the TypeScript type.
|
|
8
9
|
*
|
|
@@ -10,7 +11,7 @@ declare class BooleanSchema extends CommonSchema {
|
|
|
10
11
|
*
|
|
11
12
|
* @example - boolean().onlyTrue(); // Infers the type true
|
|
12
13
|
*/
|
|
13
|
-
onlyTrue():
|
|
14
|
+
onlyTrue(): WithBGuardType<this, true>;
|
|
14
15
|
/**
|
|
15
16
|
* Restricts the schema to exactly match the boolean value false and infers the false value as the TypeScript type.
|
|
16
17
|
*
|
|
@@ -18,11 +19,7 @@ declare class BooleanSchema extends CommonSchema {
|
|
|
18
19
|
*
|
|
19
20
|
* @example - boolean().onlyFalse(); // Infers the type false
|
|
20
21
|
*/
|
|
21
|
-
onlyFalse():
|
|
22
|
+
onlyFalse(): WithBGuardType<this, false>;
|
|
22
23
|
}
|
|
23
|
-
type WithBoolean<T extends BooleanSchema, Y = boolean> = T & {
|
|
24
|
-
validation_boolean: Y;
|
|
25
|
-
};
|
|
26
|
-
type ExtractFromBoolean<T> = T extends WithBoolean<BooleanSchema, infer Y> ? Y : never;
|
|
27
24
|
|
|
28
|
-
export { BooleanSchema
|
|
25
|
+
export { BooleanSchema };
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { C as CommonSchema } from '../CommonSchema-
|
|
2
|
-
import '../commonTypes.js';
|
|
1
|
+
import { C as CommonSchema } from '../CommonSchema-DOh3bsL-.js';
|
|
2
|
+
import { WithBGuardType } from '../commonTypes.js';
|
|
3
|
+
import '../InferType.js';
|
|
3
4
|
|
|
4
5
|
declare class BooleanSchema extends CommonSchema {
|
|
5
|
-
_boolean: number;
|
|
6
|
+
protected _boolean: number;
|
|
6
7
|
/**
|
|
7
8
|
* Restricts the schema to exactly match the boolean value true and infers the true value as the TypeScript type.
|
|
8
9
|
*
|
|
@@ -10,7 +11,7 @@ declare class BooleanSchema extends CommonSchema {
|
|
|
10
11
|
*
|
|
11
12
|
* @example - boolean().onlyTrue(); // Infers the type true
|
|
12
13
|
*/
|
|
13
|
-
onlyTrue():
|
|
14
|
+
onlyTrue(): WithBGuardType<this, true>;
|
|
14
15
|
/**
|
|
15
16
|
* Restricts the schema to exactly match the boolean value false and infers the false value as the TypeScript type.
|
|
16
17
|
*
|
|
@@ -18,11 +19,7 @@ declare class BooleanSchema extends CommonSchema {
|
|
|
18
19
|
*
|
|
19
20
|
* @example - boolean().onlyFalse(); // Infers the type false
|
|
20
21
|
*/
|
|
21
|
-
onlyFalse():
|
|
22
|
+
onlyFalse(): WithBGuardType<this, false>;
|
|
22
23
|
}
|
|
23
|
-
type WithBoolean<T extends BooleanSchema, Y = boolean> = T & {
|
|
24
|
-
validation_boolean: Y;
|
|
25
|
-
};
|
|
26
|
-
type ExtractFromBoolean<T> = T extends WithBoolean<BooleanSchema, infer Y> ? Y : never;
|
|
27
24
|
|
|
28
|
-
export { BooleanSchema
|
|
25
|
+
export { BooleanSchema };
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
5
|
-
require('../chunk-
|
|
6
|
-
require('../chunk-
|
|
7
|
-
require('../chunk-
|
|
8
|
-
require('../chunk-
|
|
3
|
+
var _chunkECBOZ3BMjs = require('../chunk-ECBOZ3BM.js');
|
|
4
|
+
require('../chunk-QIDWASOC.js');
|
|
5
|
+
require('../chunk-SHJVKSEZ.js');
|
|
6
|
+
require('../chunk-G55SHHAR.js');
|
|
7
|
+
require('../chunk-X762EUSZ.js');
|
|
8
|
+
require('../chunk-VBTWYDEM.js');
|
|
9
|
+
require('../chunk-5YYRBKDP.js');
|
|
10
|
+
require('../chunk-5P6AZJCN.js');
|
|
9
11
|
|
|
10
12
|
|
|
11
|
-
exports.BooleanSchema =
|
|
13
|
+
exports.BooleanSchema = _chunkECBOZ3BMjs.BooleanSchema;
|
|
12
14
|
//# sourceMappingURL=BooleanSchema.js.map
|
|
@@ -1 +1 @@
|
|
|
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;AACE;AACF,uDAAC","file":"/home/runner/work/bguard/bguard/lib/schemas/BooleanSchema.js"}
|
|
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,11 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BooleanSchema
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-6D5W7SSQ.mjs";
|
|
4
|
+
import "../chunk-H6LHV3EA.mjs";
|
|
5
|
+
import "../chunk-7NBOVYSP.mjs";
|
|
6
|
+
import "../chunk-TRGMD7LA.mjs";
|
|
7
|
+
import "../chunk-BNCT7NOR.mjs";
|
|
8
|
+
import "../chunk-YBVMP4EI.mjs";
|
|
9
|
+
import "../chunk-H32B3NHW.mjs";
|
|
10
|
+
import "../chunk-FGZKNBDP.mjs";
|
|
9
11
|
export {
|
|
10
12
|
BooleanSchema
|
|
11
13
|
};
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import '../InferType.mjs';
|
|
1
2
|
import '../commonTypes.mjs';
|
|
2
|
-
export { C as CommonSchema,
|
|
3
|
+
export { C as CommonSchema, M as MapMixTypes, O as ObjectShapeSchemaType, V as ValidatorContext } from '../CommonSchema-wi9MOXGF.mjs';
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import '../InferType.js';
|
|
1
2
|
import '../commonTypes.js';
|
|
2
|
-
export { C as CommonSchema,
|
|
3
|
+
export { C as CommonSchema, M as MapMixTypes, O as ObjectShapeSchemaType, V as ValidatorContext } from '../CommonSchema-DOh3bsL-.js';
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
5
|
-
require('../chunk-
|
|
6
|
-
require('../chunk-
|
|
3
|
+
var _chunkSHJVKSEZjs = require('../chunk-SHJVKSEZ.js');
|
|
4
|
+
require('../chunk-G55SHHAR.js');
|
|
5
|
+
require('../chunk-X762EUSZ.js');
|
|
6
|
+
require('../chunk-VBTWYDEM.js');
|
|
7
|
+
require('../chunk-5YYRBKDP.js');
|
|
8
|
+
require('../chunk-5P6AZJCN.js');
|
|
7
9
|
|
|
8
10
|
|
|
9
|
-
exports.CommonSchema =
|
|
11
|
+
exports.CommonSchema = _chunkSHJVKSEZjs.CommonSchema;
|
|
10
12
|
//# sourceMappingURL=CommonSchema.js.map
|
|
@@ -1 +1 @@
|
|
|
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;AACE;AACF,qDAAC","file":"/home/runner/work/bguard/bguard/lib/schemas/CommonSchema.js"}
|
|
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,9 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CommonSchema
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-7NBOVYSP.mjs";
|
|
4
|
+
import "../chunk-TRGMD7LA.mjs";
|
|
5
|
+
import "../chunk-BNCT7NOR.mjs";
|
|
6
|
+
import "../chunk-YBVMP4EI.mjs";
|
|
7
|
+
import "../chunk-H32B3NHW.mjs";
|
|
8
|
+
import "../chunk-FGZKNBDP.mjs";
|
|
7
9
|
export {
|
|
8
10
|
CommonSchema
|
|
9
11
|
};
|