@duplojs/utils 1.1.15 → 1.2.16
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/dist/array/reduce.cjs +25 -0
- package/dist/array/reduce.mjs +25 -0
- package/dist/array/reduceRight.cjs +25 -0
- package/dist/array/reduceRight.mjs +25 -0
- package/dist/array/types/extractTuple.d.ts +1 -1
- package/dist/common/asyncInnerPipe.d.ts +16 -11
- package/dist/common/asyncPipe.d.ts +16 -11
- package/dist/common/builder.cjs +5 -11
- package/dist/common/builder.d.ts +7 -7
- package/dist/common/builder.mjs +4 -10
- package/dist/common/createKindIdentifier.cjs +23 -0
- package/dist/common/createKindIdentifier.mjs +23 -0
- package/dist/common/equal.d.ts +4 -4
- package/dist/common/errorKindNamespace.cjs +9 -0
- package/dist/common/errorKindNamespace.d.ts +1 -0
- package/dist/common/errorKindNamespace.mjs +7 -0
- package/dist/common/forwardLog.cjs +8 -0
- package/dist/common/forwardLog.d.ts +1 -0
- package/dist/common/forwardLog.mjs +6 -0
- package/dist/common/index.d.ts +3 -0
- package/dist/common/innerPipe.d.ts +16 -11
- package/dist/common/instanceOf.cjs +25 -0
- package/dist/common/instanceOf.mjs +25 -0
- package/dist/common/kind.d.ts +1 -0
- package/dist/common/override.cjs +61 -0
- package/dist/common/override.d.ts +18 -0
- package/dist/common/override.mjs +59 -0
- package/dist/common/pipe.d.ts +16 -11
- package/dist/common/stringToBytes.cjs +4 -9
- package/dist/common/stringToBytes.d.ts +4 -4
- package/dist/common/stringToBytes.mjs +4 -9
- package/dist/common/stringToMillisecond.cjs +4 -9
- package/dist/common/stringToMillisecond.d.ts +4 -4
- package/dist/common/stringToMillisecond.mjs +4 -9
- package/dist/common/types/objectEntry.d.ts +1 -1
- package/dist/dataParser/base.cjs +27 -2
- package/dist/dataParser/base.d.ts +3 -0
- package/dist/dataParser/base.mjs +27 -2
- package/dist/dataParser/baseExtended.cjs +65 -5
- package/dist/dataParser/baseExtended.d.ts +3 -0
- package/dist/dataParser/baseExtended.mjs +65 -5
- package/dist/dataParser/extended/array.cjs +50 -4
- package/dist/dataParser/extended/array.d.ts +3 -0
- package/dist/dataParser/extended/array.mjs +50 -4
- package/dist/dataParser/extended/bigint.cjs +50 -4
- package/dist/dataParser/extended/bigint.d.ts +3 -0
- package/dist/dataParser/extended/bigint.mjs +50 -4
- package/dist/dataParser/extended/boolean.cjs +50 -4
- package/dist/dataParser/extended/boolean.d.ts +3 -0
- package/dist/dataParser/extended/boolean.mjs +50 -4
- package/dist/dataParser/extended/coerce/bigint.cjs +21 -4
- package/dist/dataParser/extended/coerce/bigint.mjs +21 -4
- package/dist/dataParser/extended/coerce/boolean.cjs +21 -4
- package/dist/dataParser/extended/coerce/boolean.mjs +21 -4
- package/dist/dataParser/extended/coerce/date.cjs +33 -0
- package/dist/dataParser/extended/coerce/date.d.ts +7 -0
- package/dist/dataParser/extended/coerce/date.mjs +31 -0
- package/dist/dataParser/extended/coerce/empty.cjs +21 -4
- package/dist/dataParser/extended/coerce/empty.mjs +21 -4
- package/dist/dataParser/extended/coerce/index.cjs +2 -0
- package/dist/dataParser/extended/coerce/index.d.ts +1 -0
- package/dist/dataParser/extended/coerce/index.mjs +1 -0
- package/dist/dataParser/extended/coerce/nil.cjs +21 -4
- package/dist/dataParser/extended/coerce/nil.mjs +21 -4
- package/dist/dataParser/extended/coerce/number.cjs +21 -4
- package/dist/dataParser/extended/coerce/number.mjs +21 -4
- package/dist/dataParser/extended/coerce/string.cjs +21 -4
- package/dist/dataParser/extended/coerce/string.mjs +21 -4
- package/dist/dataParser/extended/date.cjs +60 -0
- package/dist/dataParser/extended/date.d.ts +23 -0
- package/dist/dataParser/extended/date.mjs +58 -0
- package/dist/dataParser/extended/empty.cjs +50 -4
- package/dist/dataParser/extended/empty.d.ts +3 -0
- package/dist/dataParser/extended/empty.mjs +50 -4
- package/dist/dataParser/extended/index.cjs +15 -0
- package/dist/dataParser/extended/index.d.ts +3 -0
- package/dist/dataParser/extended/index.mjs +2 -0
- package/dist/dataParser/extended/lazy.cjs +50 -4
- package/dist/dataParser/extended/lazy.d.ts +5 -2
- package/dist/dataParser/extended/lazy.mjs +50 -4
- package/dist/dataParser/extended/literal.cjs +50 -4
- package/dist/dataParser/extended/literal.d.ts +3 -0
- package/dist/dataParser/extended/literal.mjs +50 -4
- package/dist/dataParser/extended/nil.cjs +50 -4
- package/dist/dataParser/extended/nil.d.ts +3 -0
- package/dist/dataParser/extended/nil.mjs +50 -4
- package/dist/dataParser/extended/nullable.cjs +50 -4
- package/dist/dataParser/extended/nullable.d.ts +3 -0
- package/dist/dataParser/extended/nullable.mjs +50 -4
- package/dist/dataParser/extended/number.cjs +50 -4
- package/dist/dataParser/extended/number.d.ts +3 -0
- package/dist/dataParser/extended/number.mjs +50 -4
- package/dist/dataParser/extended/object.cjs +65 -5
- package/dist/dataParser/extended/object.d.ts +5 -0
- package/dist/dataParser/extended/object.mjs +65 -5
- package/dist/dataParser/extended/optional.cjs +50 -4
- package/dist/dataParser/extended/optional.d.ts +3 -0
- package/dist/dataParser/extended/optional.mjs +50 -4
- package/dist/dataParser/extended/pipe.cjs +50 -4
- package/dist/dataParser/extended/pipe.d.ts +3 -0
- package/dist/dataParser/extended/pipe.mjs +50 -4
- package/dist/dataParser/extended/record.cjs +50 -4
- package/dist/dataParser/extended/record.d.ts +3 -0
- package/dist/dataParser/extended/record.mjs +50 -4
- package/dist/dataParser/extended/recover.cjs +50 -4
- package/dist/dataParser/extended/recover.d.ts +3 -0
- package/dist/dataParser/extended/recover.mjs +50 -4
- package/dist/dataParser/extended/string.cjs +51 -5
- package/dist/dataParser/extended/string.d.ts +3 -0
- package/dist/dataParser/extended/string.mjs +51 -5
- package/dist/dataParser/extended/templateLiteral.cjs +50 -4
- package/dist/dataParser/extended/templateLiteral.d.ts +3 -0
- package/dist/dataParser/extended/templateLiteral.mjs +50 -4
- package/dist/dataParser/extended/transform.cjs +50 -4
- package/dist/dataParser/extended/transform.d.ts +3 -0
- package/dist/dataParser/extended/transform.mjs +50 -4
- package/dist/dataParser/extended/tuple.cjs +52 -6
- package/dist/dataParser/extended/tuple.d.ts +3 -0
- package/dist/dataParser/extended/tuple.mjs +52 -6
- package/dist/dataParser/extended/union.cjs +50 -4
- package/dist/dataParser/extended/union.d.ts +3 -0
- package/dist/dataParser/extended/union.mjs +50 -4
- package/dist/dataParser/extended/unknown.cjs +50 -4
- package/dist/dataParser/extended/unknown.d.ts +3 -0
- package/dist/dataParser/extended/unknown.mjs +50 -4
- package/dist/dataParser/identifier.cjs +3 -0
- package/dist/dataParser/identifier.d.ts +52 -10
- package/dist/dataParser/identifier.mjs +3 -0
- package/dist/dataParser/index.cjs +25 -18
- package/dist/dataParser/index.mjs +4 -1
- package/dist/dataParser/kind.cjs +25 -0
- package/dist/dataParser/kind.mjs +25 -0
- package/dist/dataParser/parsers/array/index.cjs +36 -1
- package/dist/dataParser/parsers/array/index.d.ts +3 -0
- package/dist/dataParser/parsers/array/index.mjs +32 -1
- package/dist/dataParser/parsers/bigint/index.cjs +36 -1
- package/dist/dataParser/parsers/bigint/index.d.ts +3 -0
- package/dist/dataParser/parsers/bigint/index.mjs +32 -1
- package/dist/dataParser/parsers/boolean.cjs +30 -1
- package/dist/dataParser/parsers/boolean.d.ts +3 -0
- package/dist/dataParser/parsers/boolean.mjs +30 -1
- package/dist/dataParser/parsers/coerce/bigint.cjs +21 -4
- package/dist/dataParser/parsers/coerce/bigint.mjs +21 -4
- package/dist/dataParser/parsers/coerce/boolean.cjs +21 -4
- package/dist/dataParser/parsers/coerce/boolean.mjs +21 -4
- package/dist/dataParser/parsers/coerce/date.cjs +33 -0
- package/dist/dataParser/parsers/coerce/date.d.ts +6 -0
- package/dist/dataParser/parsers/coerce/date.mjs +31 -0
- package/dist/dataParser/parsers/coerce/empty.cjs +21 -4
- package/dist/dataParser/parsers/coerce/empty.mjs +21 -4
- package/dist/dataParser/parsers/coerce/index.cjs +2 -0
- package/dist/dataParser/parsers/coerce/index.d.ts +1 -0
- package/dist/dataParser/parsers/coerce/index.mjs +1 -0
- package/dist/dataParser/parsers/coerce/nil.cjs +21 -4
- package/dist/dataParser/parsers/coerce/nil.mjs +21 -4
- package/dist/dataParser/parsers/coerce/number.cjs +21 -4
- package/dist/dataParser/parsers/coerce/number.mjs +21 -4
- package/dist/dataParser/parsers/coerce/string.cjs +21 -4
- package/dist/dataParser/parsers/coerce/string.mjs +21 -4
- package/dist/dataParser/parsers/date.cjs +79 -0
- package/dist/dataParser/parsers/date.d.ts +28 -0
- package/dist/dataParser/parsers/date.mjs +76 -0
- package/dist/dataParser/parsers/empty.cjs +30 -1
- package/dist/dataParser/parsers/empty.d.ts +3 -0
- package/dist/dataParser/parsers/empty.mjs +30 -1
- package/dist/dataParser/parsers/index.d.ts +1 -0
- package/dist/dataParser/parsers/lazy.cjs +34 -4
- package/dist/dataParser/parsers/lazy.d.ts +7 -4
- package/dist/dataParser/parsers/lazy.mjs +34 -4
- package/dist/dataParser/parsers/literal.cjs +31 -4
- package/dist/dataParser/parsers/literal.d.ts +3 -0
- package/dist/dataParser/parsers/literal.mjs +31 -4
- package/dist/dataParser/parsers/nil.cjs +30 -1
- package/dist/dataParser/parsers/nil.d.ts +3 -0
- package/dist/dataParser/parsers/nil.mjs +30 -1
- package/dist/dataParser/parsers/nullable.cjs +30 -1
- package/dist/dataParser/parsers/nullable.d.ts +3 -0
- package/dist/dataParser/parsers/nullable.mjs +30 -1
- package/dist/dataParser/parsers/number/index.cjs +40 -1
- package/dist/dataParser/parsers/number/index.d.ts +3 -0
- package/dist/dataParser/parsers/number/index.mjs +33 -1
- package/dist/dataParser/parsers/{object.cjs → object/index.cjs} +39 -12
- package/dist/dataParser/parsers/{object.d.ts → object/index.d.ts} +16 -12
- package/dist/dataParser/parsers/{object.mjs → object/index.mjs} +39 -12
- package/dist/dataParser/parsers/object/omit.cjs +42 -0
- package/dist/dataParser/parsers/object/omit.d.ts +6 -0
- package/dist/dataParser/parsers/object/omit.mjs +40 -0
- package/dist/dataParser/parsers/object/pick.cjs +42 -0
- package/dist/dataParser/parsers/object/pick.d.ts +6 -0
- package/dist/dataParser/parsers/object/pick.mjs +40 -0
- package/dist/dataParser/parsers/optional.cjs +30 -1
- package/dist/dataParser/parsers/optional.d.ts +3 -0
- package/dist/dataParser/parsers/optional.mjs +30 -1
- package/dist/dataParser/parsers/pipe.cjs +30 -1
- package/dist/dataParser/parsers/pipe.d.ts +3 -0
- package/dist/dataParser/parsers/pipe.mjs +30 -1
- package/dist/dataParser/parsers/record/findRecordRequiredKey.cjs +26 -0
- package/dist/dataParser/parsers/record/findRecordRequiredKey.mjs +26 -0
- package/dist/dataParser/parsers/record/index.cjs +30 -1
- package/dist/dataParser/parsers/record/index.d.ts +3 -0
- package/dist/dataParser/parsers/record/index.mjs +30 -1
- package/dist/dataParser/parsers/recover.cjs +30 -1
- package/dist/dataParser/parsers/recover.d.ts +3 -0
- package/dist/dataParser/parsers/recover.mjs +30 -1
- package/dist/dataParser/parsers/string/index.cjs +47 -1
- package/dist/dataParser/parsers/string/index.d.ts +3 -0
- package/dist/dataParser/parsers/string/index.mjs +35 -1
- package/dist/dataParser/parsers/templateLiteral/createTemplateLiteralPattern.cjs +26 -0
- package/dist/dataParser/parsers/templateLiteral/createTemplateLiteralPattern.mjs +26 -0
- package/dist/dataParser/parsers/templateLiteral/index.cjs +28 -1
- package/dist/dataParser/parsers/templateLiteral/index.d.ts +3 -0
- package/dist/dataParser/parsers/templateLiteral/index.mjs +28 -1
- package/dist/dataParser/parsers/transform.cjs +30 -1
- package/dist/dataParser/parsers/transform.d.ts +3 -0
- package/dist/dataParser/parsers/transform.mjs +30 -1
- package/dist/dataParser/parsers/tuple.cjs +30 -1
- package/dist/dataParser/parsers/tuple.d.ts +3 -0
- package/dist/dataParser/parsers/tuple.mjs +30 -1
- package/dist/dataParser/parsers/union.cjs +30 -1
- package/dist/dataParser/parsers/union.d.ts +3 -0
- package/dist/dataParser/parsers/union.mjs +30 -1
- package/dist/dataParser/parsers/unknown.cjs +30 -1
- package/dist/dataParser/parsers/unknown.d.ts +3 -0
- package/dist/dataParser/parsers/unknown.mjs +30 -1
- package/dist/dataParser/types/dataParsers.d.ts +2 -2
- package/dist/date/closestTo.cjs +32 -0
- package/dist/date/closestTo.d.ts +7 -0
- package/dist/date/closestTo.mjs +30 -0
- package/dist/date/constants.cjs +29 -0
- package/dist/date/constants.d.ts +13 -0
- package/dist/date/constants.mjs +15 -0
- package/dist/date/create.cjs +75 -0
- package/dist/date/create.d.ts +16 -0
- package/dist/date/create.mjs +73 -0
- package/dist/date/createOrThrow.cjs +52 -0
- package/dist/date/createOrThrow.d.ts +10 -0
- package/dist/date/createOrThrow.mjs +49 -0
- package/dist/date/each.cjs +47 -0
- package/dist/date/each.d.ts +5 -0
- package/dist/date/each.mjs +45 -0
- package/dist/date/getters/getDayOfMonth.cjs +47 -0
- package/dist/date/getters/getDayOfMonth.d.ts +2 -0
- package/dist/date/getters/getDayOfMonth.mjs +45 -0
- package/dist/date/getters/getDayOfWeek.cjs +57 -0
- package/dist/date/getters/getDayOfWeek.d.ts +2 -0
- package/dist/date/getters/getDayOfWeek.mjs +55 -0
- package/dist/date/getters/getDayOfYear.cjs +64 -0
- package/dist/date/getters/getDayOfYear.d.ts +2 -0
- package/dist/date/getters/getDayOfYear.mjs +62 -0
- package/dist/date/getters/getFirstDayOfMonth.cjs +14 -0
- package/dist/date/getters/getFirstDayOfMonth.d.ts +2 -0
- package/dist/date/getters/getFirstDayOfMonth.mjs +12 -0
- package/dist/date/getters/getFirstDayOfWeek.cjs +16 -0
- package/dist/date/getters/getFirstDayOfWeek.d.ts +2 -0
- package/dist/date/getters/getFirstDayOfWeek.mjs +14 -0
- package/dist/date/getters/getHour.cjs +48 -0
- package/dist/date/getters/getHour.d.ts +2 -0
- package/dist/date/getters/getHour.mjs +46 -0
- package/dist/date/getters/getLastDayOfMonth.cjs +14 -0
- package/dist/date/getters/getLastDayOfMonth.d.ts +2 -0
- package/dist/date/getters/getLastDayOfMonth.mjs +12 -0
- package/dist/date/getters/getLastDayOfWeek.cjs +16 -0
- package/dist/date/getters/getLastDayOfWeek.d.ts +2 -0
- package/dist/date/getters/getLastDayOfWeek.mjs +14 -0
- package/dist/date/getters/getMilliseconds.cjs +40 -0
- package/dist/date/getters/getMilliseconds.d.ts +2 -0
- package/dist/date/getters/getMilliseconds.mjs +38 -0
- package/dist/date/getters/getMinute.cjs +47 -0
- package/dist/date/getters/getMinute.d.ts +2 -0
- package/dist/date/getters/getMinute.mjs +45 -0
- package/dist/date/getters/getMonth.cjs +47 -0
- package/dist/date/getters/getMonth.d.ts +2 -0
- package/dist/date/getters/getMonth.mjs +45 -0
- package/dist/date/getters/getSecond.cjs +47 -0
- package/dist/date/getters/getSecond.d.ts +2 -0
- package/dist/date/getters/getSecond.mjs +45 -0
- package/dist/date/getters/getWeekOfYear.cjs +67 -0
- package/dist/date/getters/getWeekOfYear.d.ts +2 -0
- package/dist/date/getters/getWeekOfYear.mjs +65 -0
- package/dist/date/getters/getYear.cjs +47 -0
- package/dist/date/getters/getYear.d.ts +2 -0
- package/dist/date/getters/getYear.mjs +45 -0
- package/dist/date/getters/index.d.ts +15 -0
- package/dist/date/index.cjs +121 -0
- package/dist/date/index.d.ts +18 -0
- package/dist/date/index.mjs +51 -0
- package/dist/date/isSafeTimestamp.cjs +15 -0
- package/dist/date/isSafeTimestamp.d.ts +1 -0
- package/dist/date/isSafeTimestamp.mjs +13 -0
- package/dist/date/now.cjs +8 -0
- package/dist/date/now.d.ts +1 -0
- package/dist/date/now.mjs +6 -0
- package/dist/date/operators/addDays.cjs +20 -0
- package/dist/date/operators/addDays.d.ts +4 -0
- package/dist/date/operators/addDays.mjs +18 -0
- package/dist/date/operators/addHours.cjs +20 -0
- package/dist/date/operators/addHours.d.ts +4 -0
- package/dist/date/operators/addHours.mjs +18 -0
- package/dist/date/operators/addMilliseconds.cjs +19 -0
- package/dist/date/operators/addMilliseconds.d.ts +4 -0
- package/dist/date/operators/addMilliseconds.mjs +17 -0
- package/dist/date/operators/addMinutes.cjs +20 -0
- package/dist/date/operators/addMinutes.d.ts +4 -0
- package/dist/date/operators/addMinutes.mjs +18 -0
- package/dist/date/operators/addMonths.cjs +19 -0
- package/dist/date/operators/addMonths.d.ts +4 -0
- package/dist/date/operators/addMonths.mjs +17 -0
- package/dist/date/operators/addSeconds.cjs +20 -0
- package/dist/date/operators/addSeconds.d.ts +4 -0
- package/dist/date/operators/addSeconds.mjs +18 -0
- package/dist/date/operators/addWeeks.cjs +20 -0
- package/dist/date/operators/addWeeks.d.ts +4 -0
- package/dist/date/operators/addWeeks.mjs +18 -0
- package/dist/date/operators/addYears.cjs +19 -0
- package/dist/date/operators/addYears.d.ts +4 -0
- package/dist/date/operators/addYears.mjs +17 -0
- package/dist/date/operators/between.cjs +17 -0
- package/dist/date/operators/between.d.ts +3 -0
- package/dist/date/operators/between.mjs +15 -0
- package/dist/date/operators/betweenThan.cjs +17 -0
- package/dist/date/operators/betweenThan.d.ts +3 -0
- package/dist/date/operators/betweenThan.mjs +15 -0
- package/dist/date/operators/greater.cjs +16 -0
- package/dist/date/operators/greater.d.ts +3 -0
- package/dist/date/operators/greater.mjs +14 -0
- package/dist/date/operators/greaterThan.cjs +16 -0
- package/dist/date/operators/greaterThan.d.ts +3 -0
- package/dist/date/operators/greaterThan.mjs +14 -0
- package/dist/date/operators/index.d.ts +22 -0
- package/dist/date/operators/less.cjs +16 -0
- package/dist/date/operators/less.d.ts +3 -0
- package/dist/date/operators/less.mjs +14 -0
- package/dist/date/operators/lessThan.cjs +16 -0
- package/dist/date/operators/lessThan.d.ts +3 -0
- package/dist/date/operators/lessThan.mjs +14 -0
- package/dist/date/operators/subtractDays.cjs +20 -0
- package/dist/date/operators/subtractDays.d.ts +4 -0
- package/dist/date/operators/subtractDays.mjs +18 -0
- package/dist/date/operators/subtractHours.cjs +20 -0
- package/dist/date/operators/subtractHours.d.ts +4 -0
- package/dist/date/operators/subtractHours.mjs +18 -0
- package/dist/date/operators/subtractMilliseconds.cjs +19 -0
- package/dist/date/operators/subtractMilliseconds.d.ts +4 -0
- package/dist/date/operators/subtractMilliseconds.mjs +17 -0
- package/dist/date/operators/subtractMinutes.cjs +20 -0
- package/dist/date/operators/subtractMinutes.d.ts +4 -0
- package/dist/date/operators/subtractMinutes.mjs +18 -0
- package/dist/date/operators/subtractMonths.cjs +19 -0
- package/dist/date/operators/subtractMonths.d.ts +4 -0
- package/dist/date/operators/subtractMonths.mjs +17 -0
- package/dist/date/operators/subtractSeconds.cjs +20 -0
- package/dist/date/operators/subtractSeconds.d.ts +4 -0
- package/dist/date/operators/subtractSeconds.mjs +18 -0
- package/dist/date/operators/subtractWeeks.cjs +20 -0
- package/dist/date/operators/subtractWeeks.d.ts +4 -0
- package/dist/date/operators/subtractWeeks.mjs +18 -0
- package/dist/date/operators/subtractYears.cjs +19 -0
- package/dist/date/operators/subtractYears.d.ts +4 -0
- package/dist/date/operators/subtractYears.mjs +17 -0
- package/dist/date/round.cjs +23 -0
- package/dist/date/round.d.ts +3 -0
- package/dist/date/round.mjs +21 -0
- package/dist/date/toISOString.cjs +10 -0
- package/dist/date/toISOString.d.ts +2 -0
- package/dist/date/toISOString.mjs +8 -0
- package/dist/date/toNative.cjs +10 -0
- package/dist/date/toNative.d.ts +2 -0
- package/dist/date/toNative.mjs +8 -0
- package/dist/date/toTimestamp.cjs +58 -0
- package/dist/date/toTimestamp.d.ts +10 -0
- package/dist/date/toTimestamp.mjs +55 -0
- package/dist/date/today.cjs +8 -0
- package/dist/date/today.d.ts +1 -0
- package/dist/date/today.mjs +6 -0
- package/dist/date/tomorrow.cjs +10 -0
- package/dist/date/tomorrow.d.ts +1 -0
- package/dist/date/tomorrow.mjs +8 -0
- package/dist/date/types/index.d.ts +6 -0
- package/dist/date/types/isLeapYear.d.ts +8 -0
- package/dist/date/types/month.d.ts +9 -0
- package/dist/date/types/theDate.d.ts +1 -0
- package/dist/date/types/time.d.ts +5 -0
- package/dist/date/types/timezone.cjs +606 -0
- package/dist/date/types/timezone.d.ts +604 -0
- package/dist/date/types/timezone.mjs +604 -0
- package/dist/date/types/unit.d.ts +1 -0
- package/dist/date/yesterday.cjs +10 -0
- package/dist/date/yesterday.d.ts +1 -0
- package/dist/date/yesterday.mjs +8 -0
- package/dist/either/bool/falsy.cjs +22 -1
- package/dist/either/bool/falsy.mjs +22 -1
- package/dist/either/bool/truthy.cjs +23 -2
- package/dist/either/bool/truthy.mjs +23 -2
- package/dist/either/future/create.cjs +25 -2
- package/dist/either/future/create.mjs +25 -2
- package/dist/either/future/error.cjs +21 -0
- package/dist/either/future/error.mjs +21 -0
- package/dist/either/future/success.cjs +21 -0
- package/dist/either/future/success.mjs +21 -0
- package/dist/either/hasInformation.cjs +6 -1
- package/dist/either/hasInformation.d.ts +1 -0
- package/dist/either/hasInformation.mjs +6 -1
- package/dist/either/kind.cjs +24 -0
- package/dist/either/kind.mjs +24 -0
- package/dist/either/left/when.cjs +25 -0
- package/dist/either/left/when.mjs +25 -0
- package/dist/either/nullable/empty.cjs +22 -1
- package/dist/either/nullable/empty.mjs +22 -1
- package/dist/either/nullable/filled.cjs +23 -2
- package/dist/either/nullable/filled.mjs +23 -2
- package/dist/either/nullish/empty.cjs +22 -1
- package/dist/either/nullish/empty.mjs +22 -1
- package/dist/either/nullish/filled.cjs +23 -2
- package/dist/either/nullish/filled.mjs +23 -2
- package/dist/either/optional/empty.cjs +21 -0
- package/dist/either/optional/empty.mjs +21 -0
- package/dist/either/optional/filled.cjs +23 -2
- package/dist/either/optional/filled.mjs +23 -2
- package/dist/either/right/asyncPipe.cjs +25 -1
- package/dist/either/right/asyncPipe.d.ts +5 -0
- package/dist/either/right/asyncPipe.mjs +25 -1
- package/dist/either/right/pipe.cjs +25 -1
- package/dist/either/right/pipe.d.ts +5 -0
- package/dist/either/right/pipe.mjs +25 -1
- package/dist/either/right/when.cjs +25 -0
- package/dist/either/right/when.mjs +25 -0
- package/dist/either/whenHasInformation.cjs +25 -1
- package/dist/either/whenHasInformation.d.ts +2 -2
- package/dist/either/whenHasInformation.mjs +25 -1
- package/dist/generator/asyncReduce.cjs +25 -0
- package/dist/generator/asyncReduce.mjs +25 -0
- package/dist/generator/reduce.cjs +25 -0
- package/dist/generator/reduce.mjs +25 -0
- package/dist/index.cjs +9 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.mjs +6 -0
- package/dist/number/between.cjs +12 -0
- package/dist/number/between.d.ts +2 -0
- package/dist/number/between.mjs +10 -0
- package/dist/number/betweenThan.cjs +12 -0
- package/dist/number/betweenThan.d.ts +2 -0
- package/dist/number/betweenThan.mjs +10 -0
- package/dist/number/index.cjs +4 -0
- package/dist/number/index.d.ts +3 -0
- package/dist/number/index.mjs +2 -0
- package/dist/number/types/index.d.ts +1 -0
- package/dist/number/types/positiveNumber.d.ts +1 -0
- package/dist/object/deepDiscriminate.cjs +25 -0
- package/dist/object/deepDiscriminate.mjs +25 -0
- package/dist/object/discriminate.cjs +25 -0
- package/dist/object/discriminate.mjs +25 -0
- package/dist/object/entries.cjs +25 -0
- package/dist/object/entries.mjs +25 -0
- package/dist/object/entry.d.ts +2 -2
- package/dist/object/fromEntries.d.ts +5 -3
- package/dist/object/keys.cjs +25 -0
- package/dist/object/keys.mjs +25 -0
- package/dist/object/values.cjs +25 -0
- package/dist/object/values.mjs +25 -0
- package/dist/pattern/exhaustive.cjs +25 -0
- package/dist/pattern/exhaustive.mjs +25 -0
- package/dist/pattern/index.cjs +5 -2
- package/dist/pattern/index.mjs +2 -1
- package/dist/pattern/match/builder.cjs +82 -0
- package/dist/pattern/match/builder.d.ts +30 -0
- package/dist/pattern/match/builder.mjs +79 -0
- package/dist/pattern/match/index.cjs +28 -0
- package/dist/pattern/{match.d.ts → match/index.d.ts} +7 -4
- package/dist/pattern/match/index.mjs +25 -0
- package/dist/pattern/otherwise.cjs +25 -0
- package/dist/pattern/otherwise.mjs +25 -0
- package/dist/pattern/result.cjs +25 -0
- package/dist/pattern/result.mjs +25 -0
- package/dist/pattern/types/complexUnMatchedValue/array.d.ts +1 -1
- package/dist/string/replace.cjs +15 -0
- package/dist/string/replace.d.ts +10 -2
- package/dist/string/replace.mjs +15 -0
- package/package.json +6 -1
- package/dist/pattern/match.cjs +0 -18
- package/dist/pattern/match.mjs +0 -16
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import '../../common/stringToBytes.mjs';
|
|
2
|
+
import '../../common/stringToMillisecond.mjs';
|
|
3
|
+
import '../../common/globalStore.mjs';
|
|
4
|
+
import '../../common/builder.mjs';
|
|
5
|
+
import '../../either/bool/falsy.mjs';
|
|
6
|
+
import '../../either/bool/truthy.mjs';
|
|
7
|
+
import '../../either/bool/base.mjs';
|
|
8
|
+
import '../../either/left/create.mjs';
|
|
9
|
+
import '../../either/left/error.mjs';
|
|
10
|
+
import '../../either/left/fail.mjs';
|
|
11
|
+
import '../../either/kind.mjs';
|
|
12
|
+
import '../../either/right/success.mjs';
|
|
13
|
+
import '../../either/right/create.mjs';
|
|
14
|
+
import '../../either/right/ok.mjs';
|
|
15
|
+
import '../../either/future/success.mjs';
|
|
16
|
+
import '../../either/future/error.mjs';
|
|
17
|
+
import '../../either/future/base.mjs';
|
|
18
|
+
import '../../either/nullable/empty.mjs';
|
|
19
|
+
import '../../either/nullable/filled.mjs';
|
|
20
|
+
import '../../either/nullable/base.mjs';
|
|
21
|
+
import '../../either/nullish/empty.mjs';
|
|
22
|
+
import '../../either/nullish/filled.mjs';
|
|
23
|
+
import '../../either/nullish/base.mjs';
|
|
24
|
+
import '../../either/optional/empty.mjs';
|
|
25
|
+
import '../../either/optional/filled.mjs';
|
|
26
|
+
import '../../either/optional/base.mjs';
|
|
27
|
+
import { createOverride } from '../../common/override.mjs';
|
|
28
|
+
import { dataParserExtendedInit } from '../baseExtended.mjs';
|
|
29
|
+
import '../parsers/string/index.mjs';
|
|
30
|
+
import '../parsers/object/index.mjs';
|
|
31
|
+
import '../parsers/number/index.mjs';
|
|
32
|
+
import { date as date$1 } from '../parsers/date.mjs';
|
|
33
|
+
import '../parsers/literal.mjs';
|
|
34
|
+
import '../parsers/union.mjs';
|
|
35
|
+
import '../parsers/array/index.mjs';
|
|
36
|
+
import '../parsers/bigint/index.mjs';
|
|
37
|
+
import '../parsers/tuple.mjs';
|
|
38
|
+
import '../parsers/transform.mjs';
|
|
39
|
+
import '../parsers/nil.mjs';
|
|
40
|
+
import '../parsers/boolean.mjs';
|
|
41
|
+
import '../parsers/empty.mjs';
|
|
42
|
+
import '../parsers/templateLiteral/index.mjs';
|
|
43
|
+
import '../parsers/pipe.mjs';
|
|
44
|
+
import '../parsers/optional.mjs';
|
|
45
|
+
import '../parsers/nullable.mjs';
|
|
46
|
+
import '../parsers/lazy.mjs';
|
|
47
|
+
import '../parsers/unknown.mjs';
|
|
48
|
+
import '../parsers/record/index.mjs';
|
|
49
|
+
import '../parsers/refine.mjs';
|
|
50
|
+
import '../parsers/recover.mjs';
|
|
51
|
+
|
|
52
|
+
function date(definition) {
|
|
53
|
+
const self = dataParserExtendedInit(date$1(definition), {});
|
|
54
|
+
return date.overrideHandler.apply(self);
|
|
55
|
+
}
|
|
56
|
+
date.overrideHandler = createOverride("@duplojs/utils/data-parser-extended/date");
|
|
57
|
+
|
|
58
|
+
export { date };
|
|
@@ -1,14 +1,60 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
require('
|
|
3
|
+
require('../../common/stringToBytes.cjs');
|
|
4
|
+
require('../../common/stringToMillisecond.cjs');
|
|
5
5
|
require('../../common/globalStore.cjs');
|
|
6
6
|
require('../../common/builder.cjs');
|
|
7
|
+
require('../../either/bool/falsy.cjs');
|
|
8
|
+
require('../../either/bool/truthy.cjs');
|
|
9
|
+
require('../../either/bool/base.cjs');
|
|
10
|
+
require('../../either/left/create.cjs');
|
|
11
|
+
require('../../either/left/error.cjs');
|
|
12
|
+
require('../../either/left/fail.cjs');
|
|
13
|
+
require('../../either/kind.cjs');
|
|
14
|
+
require('../../either/right/success.cjs');
|
|
15
|
+
require('../../either/right/create.cjs');
|
|
16
|
+
require('../../either/right/ok.cjs');
|
|
17
|
+
require('../../either/future/success.cjs');
|
|
18
|
+
require('../../either/future/error.cjs');
|
|
19
|
+
require('../../either/future/base.cjs');
|
|
20
|
+
require('../../either/nullable/empty.cjs');
|
|
21
|
+
require('../../either/nullable/filled.cjs');
|
|
22
|
+
require('../../either/nullable/base.cjs');
|
|
23
|
+
require('../../either/nullish/empty.cjs');
|
|
24
|
+
require('../../either/nullish/filled.cjs');
|
|
25
|
+
require('../../either/nullish/base.cjs');
|
|
26
|
+
require('../../either/optional/empty.cjs');
|
|
27
|
+
require('../../either/optional/filled.cjs');
|
|
28
|
+
require('../../either/optional/base.cjs');
|
|
29
|
+
var override = require('../../common/override.cjs');
|
|
30
|
+
var baseExtended = require('../baseExtended.cjs');
|
|
31
|
+
require('../parsers/string/index.cjs');
|
|
32
|
+
require('../parsers/object/index.cjs');
|
|
33
|
+
require('../parsers/number/index.cjs');
|
|
34
|
+
require('../parsers/date.cjs');
|
|
35
|
+
require('../parsers/literal.cjs');
|
|
36
|
+
require('../parsers/union.cjs');
|
|
37
|
+
require('../parsers/array/index.cjs');
|
|
38
|
+
require('../parsers/bigint/index.cjs');
|
|
39
|
+
require('../parsers/tuple.cjs');
|
|
40
|
+
require('../parsers/transform.cjs');
|
|
41
|
+
require('../parsers/nil.cjs');
|
|
42
|
+
require('../parsers/boolean.cjs');
|
|
7
43
|
var empty$1 = require('../parsers/empty.cjs');
|
|
8
|
-
require('
|
|
44
|
+
require('../parsers/templateLiteral/index.cjs');
|
|
45
|
+
require('../parsers/pipe.cjs');
|
|
46
|
+
require('../parsers/optional.cjs');
|
|
47
|
+
require('../parsers/nullable.cjs');
|
|
48
|
+
require('../parsers/lazy.cjs');
|
|
49
|
+
require('../parsers/unknown.cjs');
|
|
50
|
+
require('../parsers/record/index.cjs');
|
|
51
|
+
require('../parsers/refine.cjs');
|
|
52
|
+
require('../parsers/recover.cjs');
|
|
9
53
|
|
|
10
54
|
function empty(definition) {
|
|
11
|
-
|
|
55
|
+
const self = baseExtended.dataParserExtendedInit(empty$1.empty(definition), {});
|
|
56
|
+
return empty.overrideHandler.apply(self);
|
|
12
57
|
}
|
|
58
|
+
empty.overrideHandler = override.createOverride("@duplojs/utils/data-parser-extended/empty");
|
|
13
59
|
|
|
14
60
|
exports.empty = empty;
|
|
@@ -17,4 +17,7 @@ export interface DataParserEmptyExtended<GenericDefinition extends dataParsers.D
|
|
|
17
17
|
]>>;
|
|
18
18
|
}
|
|
19
19
|
export declare function empty<const GenericDefinition extends Partial<dataParsers.DataParserDefinitionEmpty> = never>(definition?: GenericDefinition): DataParserEmptyExtended<MergeDefinition<dataParsers.DataParserDefinitionEmpty, NeverCoalescing<GenericDefinition, {}>>>;
|
|
20
|
+
export declare namespace empty {
|
|
21
|
+
var overrideHandler: import("../../common").OverrideHandler<DataParserEmptyExtended<dataParsers.DataParserDefinitionEmpty>>;
|
|
22
|
+
}
|
|
20
23
|
export {};
|
|
@@ -1,12 +1,58 @@
|
|
|
1
|
-
import
|
|
2
|
-
import '
|
|
1
|
+
import '../../common/stringToBytes.mjs';
|
|
2
|
+
import '../../common/stringToMillisecond.mjs';
|
|
3
3
|
import '../../common/globalStore.mjs';
|
|
4
4
|
import '../../common/builder.mjs';
|
|
5
|
+
import '../../either/bool/falsy.mjs';
|
|
6
|
+
import '../../either/bool/truthy.mjs';
|
|
7
|
+
import '../../either/bool/base.mjs';
|
|
8
|
+
import '../../either/left/create.mjs';
|
|
9
|
+
import '../../either/left/error.mjs';
|
|
10
|
+
import '../../either/left/fail.mjs';
|
|
11
|
+
import '../../either/kind.mjs';
|
|
12
|
+
import '../../either/right/success.mjs';
|
|
13
|
+
import '../../either/right/create.mjs';
|
|
14
|
+
import '../../either/right/ok.mjs';
|
|
15
|
+
import '../../either/future/success.mjs';
|
|
16
|
+
import '../../either/future/error.mjs';
|
|
17
|
+
import '../../either/future/base.mjs';
|
|
18
|
+
import '../../either/nullable/empty.mjs';
|
|
19
|
+
import '../../either/nullable/filled.mjs';
|
|
20
|
+
import '../../either/nullable/base.mjs';
|
|
21
|
+
import '../../either/nullish/empty.mjs';
|
|
22
|
+
import '../../either/nullish/filled.mjs';
|
|
23
|
+
import '../../either/nullish/base.mjs';
|
|
24
|
+
import '../../either/optional/empty.mjs';
|
|
25
|
+
import '../../either/optional/filled.mjs';
|
|
26
|
+
import '../../either/optional/base.mjs';
|
|
27
|
+
import { createOverride } from '../../common/override.mjs';
|
|
28
|
+
import { dataParserExtendedInit } from '../baseExtended.mjs';
|
|
29
|
+
import '../parsers/string/index.mjs';
|
|
30
|
+
import '../parsers/object/index.mjs';
|
|
31
|
+
import '../parsers/number/index.mjs';
|
|
32
|
+
import '../parsers/date.mjs';
|
|
33
|
+
import '../parsers/literal.mjs';
|
|
34
|
+
import '../parsers/union.mjs';
|
|
35
|
+
import '../parsers/array/index.mjs';
|
|
36
|
+
import '../parsers/bigint/index.mjs';
|
|
37
|
+
import '../parsers/tuple.mjs';
|
|
38
|
+
import '../parsers/transform.mjs';
|
|
39
|
+
import '../parsers/nil.mjs';
|
|
40
|
+
import '../parsers/boolean.mjs';
|
|
5
41
|
import { empty as empty$1 } from '../parsers/empty.mjs';
|
|
6
|
-
import '
|
|
42
|
+
import '../parsers/templateLiteral/index.mjs';
|
|
43
|
+
import '../parsers/pipe.mjs';
|
|
44
|
+
import '../parsers/optional.mjs';
|
|
45
|
+
import '../parsers/nullable.mjs';
|
|
46
|
+
import '../parsers/lazy.mjs';
|
|
47
|
+
import '../parsers/unknown.mjs';
|
|
48
|
+
import '../parsers/record/index.mjs';
|
|
49
|
+
import '../parsers/refine.mjs';
|
|
50
|
+
import '../parsers/recover.mjs';
|
|
7
51
|
|
|
8
52
|
function empty(definition) {
|
|
9
|
-
|
|
53
|
+
const self = dataParserExtendedInit(empty$1(definition), {});
|
|
54
|
+
return empty.overrideHandler.apply(self);
|
|
10
55
|
}
|
|
56
|
+
empty.overrideHandler = createOverride("@duplojs/utils/data-parser-extended/empty");
|
|
11
57
|
|
|
12
58
|
export { empty };
|
|
@@ -5,6 +5,7 @@ var string = require('./string.cjs');
|
|
|
5
5
|
var array = require('./array.cjs');
|
|
6
6
|
var bigint = require('./bigint.cjs');
|
|
7
7
|
var number = require('./number.cjs');
|
|
8
|
+
var date = require('./date.cjs');
|
|
8
9
|
var transform = require('./transform.cjs');
|
|
9
10
|
var union = require('./union.cjs');
|
|
10
11
|
var boolean = require('./boolean.cjs');
|
|
@@ -21,6 +22,7 @@ var templateLiteral = require('./templateLiteral.cjs');
|
|
|
21
22
|
var tuple = require('./tuple.cjs');
|
|
22
23
|
var unknown = require('./unknown.cjs');
|
|
23
24
|
var recover = require('./recover.cjs');
|
|
25
|
+
var error = require('../error.cjs');
|
|
24
26
|
|
|
25
27
|
|
|
26
28
|
|
|
@@ -32,6 +34,7 @@ exports.array = array.array;
|
|
|
32
34
|
exports.bigint = bigint.bigint;
|
|
33
35
|
exports.int = number.int;
|
|
34
36
|
exports.number = number.number;
|
|
37
|
+
exports.date = date.date;
|
|
35
38
|
exports.transform = transform.transform;
|
|
36
39
|
exports.union = union.union;
|
|
37
40
|
exports.boolean = boolean.boolean;
|
|
@@ -48,3 +51,15 @@ exports.templateLiteral = templateLiteral.templateLiteral;
|
|
|
48
51
|
exports.tuple = tuple.tuple;
|
|
49
52
|
exports.unknown = unknown.unknown;
|
|
50
53
|
exports.recover = recover.recover;
|
|
54
|
+
exports.SymbolDataParserErrorIssue = error.SymbolDataParserErrorIssue;
|
|
55
|
+
exports.SymbolDataParserErrorIssueLabel = error.SymbolDataParserErrorIssueLabel;
|
|
56
|
+
exports.SymbolDataParserErrorPromiseIssue = error.SymbolDataParserErrorPromiseIssue;
|
|
57
|
+
exports.SymbolDataParserErrorPromiseIssueLabel = error.SymbolDataParserErrorPromiseIssueLabel;
|
|
58
|
+
exports.addIssue = error.addIssue;
|
|
59
|
+
exports.addPromiseIssue = error.addPromiseIssue;
|
|
60
|
+
exports.createError = error.createError;
|
|
61
|
+
exports.errorIssueKind = error.errorIssueKind;
|
|
62
|
+
exports.errorKind = error.errorKind;
|
|
63
|
+
exports.errorPromiseIssueKind = error.errorPromiseIssueKind;
|
|
64
|
+
exports.popErrorPath = error.popErrorPath;
|
|
65
|
+
exports.setErrorPath = error.setErrorPath;
|
|
@@ -3,6 +3,7 @@ export * from "./string";
|
|
|
3
3
|
export * from "./array";
|
|
4
4
|
export * from "./bigint";
|
|
5
5
|
export * from "./number";
|
|
6
|
+
export * from "./date";
|
|
6
7
|
export * from "./transform";
|
|
7
8
|
export * from "./union";
|
|
8
9
|
export * from "./boolean";
|
|
@@ -21,3 +22,5 @@ export * from "./tuple";
|
|
|
21
22
|
export * from "./union";
|
|
22
23
|
export * from "./unknown";
|
|
23
24
|
export * from "./recover";
|
|
25
|
+
export * from "../error";
|
|
26
|
+
export { type Contract, type Output, type Input } from "../base";
|
|
@@ -4,6 +4,7 @@ export { email, string, url } from './string.mjs';
|
|
|
4
4
|
export { array } from './array.mjs';
|
|
5
5
|
export { bigint } from './bigint.mjs';
|
|
6
6
|
export { int, number } from './number.mjs';
|
|
7
|
+
export { date } from './date.mjs';
|
|
7
8
|
export { transform } from './transform.mjs';
|
|
8
9
|
export { union } from './union.mjs';
|
|
9
10
|
export { boolean } from './boolean.mjs';
|
|
@@ -20,3 +21,4 @@ export { templateLiteral } from './templateLiteral.mjs';
|
|
|
20
21
|
export { tuple } from './tuple.mjs';
|
|
21
22
|
export { unknown } from './unknown.mjs';
|
|
22
23
|
export { recover } from './recover.mjs';
|
|
24
|
+
export { SymbolDataParserErrorIssue, SymbolDataParserErrorIssueLabel, SymbolDataParserErrorPromiseIssue, SymbolDataParserErrorPromiseIssueLabel, addIssue, addPromiseIssue, createError, errorIssueKind, errorKind, errorPromiseIssueKind, popErrorPath, setErrorPath } from '../error.mjs';
|
|
@@ -1,14 +1,60 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
require('
|
|
3
|
+
require('../../common/stringToBytes.cjs');
|
|
4
|
+
require('../../common/stringToMillisecond.cjs');
|
|
5
5
|
require('../../common/globalStore.cjs');
|
|
6
6
|
require('../../common/builder.cjs');
|
|
7
|
-
require('../../
|
|
7
|
+
require('../../either/bool/falsy.cjs');
|
|
8
|
+
require('../../either/bool/truthy.cjs');
|
|
9
|
+
require('../../either/bool/base.cjs');
|
|
10
|
+
require('../../either/left/create.cjs');
|
|
11
|
+
require('../../either/left/error.cjs');
|
|
12
|
+
require('../../either/left/fail.cjs');
|
|
13
|
+
require('../../either/kind.cjs');
|
|
14
|
+
require('../../either/right/success.cjs');
|
|
15
|
+
require('../../either/right/create.cjs');
|
|
16
|
+
require('../../either/right/ok.cjs');
|
|
17
|
+
require('../../either/future/success.cjs');
|
|
18
|
+
require('../../either/future/error.cjs');
|
|
19
|
+
require('../../either/future/base.cjs');
|
|
20
|
+
require('../../either/nullable/empty.cjs');
|
|
21
|
+
require('../../either/nullable/filled.cjs');
|
|
22
|
+
require('../../either/nullable/base.cjs');
|
|
23
|
+
require('../../either/nullish/empty.cjs');
|
|
24
|
+
require('../../either/nullish/filled.cjs');
|
|
25
|
+
require('../../either/nullish/base.cjs');
|
|
26
|
+
require('../../either/optional/empty.cjs');
|
|
27
|
+
require('../../either/optional/filled.cjs');
|
|
28
|
+
require('../../either/optional/base.cjs');
|
|
29
|
+
var override = require('../../common/override.cjs');
|
|
30
|
+
var baseExtended = require('../baseExtended.cjs');
|
|
31
|
+
require('../parsers/string/index.cjs');
|
|
32
|
+
require('../parsers/object/index.cjs');
|
|
33
|
+
require('../parsers/number/index.cjs');
|
|
34
|
+
require('../parsers/date.cjs');
|
|
35
|
+
require('../parsers/literal.cjs');
|
|
36
|
+
require('../parsers/union.cjs');
|
|
37
|
+
require('../parsers/array/index.cjs');
|
|
38
|
+
require('../parsers/bigint/index.cjs');
|
|
39
|
+
require('../parsers/tuple.cjs');
|
|
40
|
+
require('../parsers/transform.cjs');
|
|
41
|
+
require('../parsers/nil.cjs');
|
|
42
|
+
require('../parsers/boolean.cjs');
|
|
43
|
+
require('../parsers/empty.cjs');
|
|
44
|
+
require('../parsers/templateLiteral/index.cjs');
|
|
45
|
+
require('../parsers/pipe.cjs');
|
|
46
|
+
require('../parsers/optional.cjs');
|
|
47
|
+
require('../parsers/nullable.cjs');
|
|
8
48
|
var lazy$1 = require('../parsers/lazy.cjs');
|
|
49
|
+
require('../parsers/unknown.cjs');
|
|
50
|
+
require('../parsers/record/index.cjs');
|
|
51
|
+
require('../parsers/refine.cjs');
|
|
52
|
+
require('../parsers/recover.cjs');
|
|
9
53
|
|
|
10
54
|
function lazy(getter, definition) {
|
|
11
|
-
|
|
55
|
+
const self = baseExtended.dataParserExtendedInit(lazy$1.lazy(getter, definition), {});
|
|
56
|
+
return lazy.overrideHandler.apply(self);
|
|
12
57
|
}
|
|
58
|
+
lazy.overrideHandler = override.createOverride("@duplojs/utils/data-parser-extended/lazy");
|
|
13
59
|
|
|
14
60
|
exports.lazy = lazy;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type FixDeepFunctionInfer, type NeverCoalescing } from "../../common";
|
|
1
|
+
import { type Memoized, type FixDeepFunctionInfer, type NeverCoalescing } from "../../common";
|
|
2
2
|
import { type DataParserExtended } from "../baseExtended";
|
|
3
3
|
import { type AddCheckersToDefinition, type MergeDefinition } from "../types";
|
|
4
4
|
import * as dataParsers from "../parsers";
|
|
@@ -17,6 +17,9 @@ export interface DataParserLazyExtended<GenericDefinition extends dataParsers.Da
|
|
|
17
17
|
]>>;
|
|
18
18
|
}
|
|
19
19
|
export declare function lazy<GenericDataParser extends DataParser, const GenericDefinition extends Partial<dataParsers.DataParserDefinitionLazy> = never>(getter: () => GenericDataParser, definition?: GenericDefinition): DataParserLazyExtended<MergeDefinition<dataParsers.DataParserDefinitionLazy, NeverCoalescing<GenericDefinition, {}> & {
|
|
20
|
-
getter
|
|
20
|
+
getter: Memoized<GenericDataParser>;
|
|
21
21
|
}>>;
|
|
22
|
+
export declare namespace lazy {
|
|
23
|
+
var overrideHandler: import("../../common").OverrideHandler<DataParserLazyExtended<dataParsers.DataParserDefinitionLazy>>;
|
|
24
|
+
}
|
|
22
25
|
export {};
|
|
@@ -1,12 +1,58 @@
|
|
|
1
|
-
import
|
|
2
|
-
import '
|
|
1
|
+
import '../../common/stringToBytes.mjs';
|
|
2
|
+
import '../../common/stringToMillisecond.mjs';
|
|
3
3
|
import '../../common/globalStore.mjs';
|
|
4
4
|
import '../../common/builder.mjs';
|
|
5
|
-
import '../../
|
|
5
|
+
import '../../either/bool/falsy.mjs';
|
|
6
|
+
import '../../either/bool/truthy.mjs';
|
|
7
|
+
import '../../either/bool/base.mjs';
|
|
8
|
+
import '../../either/left/create.mjs';
|
|
9
|
+
import '../../either/left/error.mjs';
|
|
10
|
+
import '../../either/left/fail.mjs';
|
|
11
|
+
import '../../either/kind.mjs';
|
|
12
|
+
import '../../either/right/success.mjs';
|
|
13
|
+
import '../../either/right/create.mjs';
|
|
14
|
+
import '../../either/right/ok.mjs';
|
|
15
|
+
import '../../either/future/success.mjs';
|
|
16
|
+
import '../../either/future/error.mjs';
|
|
17
|
+
import '../../either/future/base.mjs';
|
|
18
|
+
import '../../either/nullable/empty.mjs';
|
|
19
|
+
import '../../either/nullable/filled.mjs';
|
|
20
|
+
import '../../either/nullable/base.mjs';
|
|
21
|
+
import '../../either/nullish/empty.mjs';
|
|
22
|
+
import '../../either/nullish/filled.mjs';
|
|
23
|
+
import '../../either/nullish/base.mjs';
|
|
24
|
+
import '../../either/optional/empty.mjs';
|
|
25
|
+
import '../../either/optional/filled.mjs';
|
|
26
|
+
import '../../either/optional/base.mjs';
|
|
27
|
+
import { createOverride } from '../../common/override.mjs';
|
|
28
|
+
import { dataParserExtendedInit } from '../baseExtended.mjs';
|
|
29
|
+
import '../parsers/string/index.mjs';
|
|
30
|
+
import '../parsers/object/index.mjs';
|
|
31
|
+
import '../parsers/number/index.mjs';
|
|
32
|
+
import '../parsers/date.mjs';
|
|
33
|
+
import '../parsers/literal.mjs';
|
|
34
|
+
import '../parsers/union.mjs';
|
|
35
|
+
import '../parsers/array/index.mjs';
|
|
36
|
+
import '../parsers/bigint/index.mjs';
|
|
37
|
+
import '../parsers/tuple.mjs';
|
|
38
|
+
import '../parsers/transform.mjs';
|
|
39
|
+
import '../parsers/nil.mjs';
|
|
40
|
+
import '../parsers/boolean.mjs';
|
|
41
|
+
import '../parsers/empty.mjs';
|
|
42
|
+
import '../parsers/templateLiteral/index.mjs';
|
|
43
|
+
import '../parsers/pipe.mjs';
|
|
44
|
+
import '../parsers/optional.mjs';
|
|
45
|
+
import '../parsers/nullable.mjs';
|
|
6
46
|
import { lazy as lazy$1 } from '../parsers/lazy.mjs';
|
|
47
|
+
import '../parsers/unknown.mjs';
|
|
48
|
+
import '../parsers/record/index.mjs';
|
|
49
|
+
import '../parsers/refine.mjs';
|
|
50
|
+
import '../parsers/recover.mjs';
|
|
7
51
|
|
|
8
52
|
function lazy(getter, definition) {
|
|
9
|
-
|
|
53
|
+
const self = dataParserExtendedInit(lazy$1(getter, definition), {});
|
|
54
|
+
return lazy.overrideHandler.apply(self);
|
|
10
55
|
}
|
|
56
|
+
lazy.overrideHandler = createOverride("@duplojs/utils/data-parser-extended/lazy");
|
|
11
57
|
|
|
12
58
|
export { lazy };
|
|
@@ -1,14 +1,60 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
require('
|
|
3
|
+
require('../../common/stringToBytes.cjs');
|
|
4
|
+
require('../../common/stringToMillisecond.cjs');
|
|
5
5
|
require('../../common/globalStore.cjs');
|
|
6
6
|
require('../../common/builder.cjs');
|
|
7
|
+
require('../../either/bool/falsy.cjs');
|
|
8
|
+
require('../../either/bool/truthy.cjs');
|
|
9
|
+
require('../../either/bool/base.cjs');
|
|
10
|
+
require('../../either/left/create.cjs');
|
|
11
|
+
require('../../either/left/error.cjs');
|
|
12
|
+
require('../../either/left/fail.cjs');
|
|
13
|
+
require('../../either/kind.cjs');
|
|
14
|
+
require('../../either/right/success.cjs');
|
|
15
|
+
require('../../either/right/create.cjs');
|
|
16
|
+
require('../../either/right/ok.cjs');
|
|
17
|
+
require('../../either/future/success.cjs');
|
|
18
|
+
require('../../either/future/error.cjs');
|
|
19
|
+
require('../../either/future/base.cjs');
|
|
20
|
+
require('../../either/nullable/empty.cjs');
|
|
21
|
+
require('../../either/nullable/filled.cjs');
|
|
22
|
+
require('../../either/nullable/base.cjs');
|
|
23
|
+
require('../../either/nullish/empty.cjs');
|
|
24
|
+
require('../../either/nullish/filled.cjs');
|
|
25
|
+
require('../../either/nullish/base.cjs');
|
|
26
|
+
require('../../either/optional/empty.cjs');
|
|
27
|
+
require('../../either/optional/filled.cjs');
|
|
28
|
+
require('../../either/optional/base.cjs');
|
|
29
|
+
var override = require('../../common/override.cjs');
|
|
30
|
+
var baseExtended = require('../baseExtended.cjs');
|
|
31
|
+
require('../parsers/string/index.cjs');
|
|
32
|
+
require('../parsers/object/index.cjs');
|
|
33
|
+
require('../parsers/number/index.cjs');
|
|
34
|
+
require('../parsers/date.cjs');
|
|
7
35
|
var literal$1 = require('../parsers/literal.cjs');
|
|
8
|
-
require('
|
|
36
|
+
require('../parsers/union.cjs');
|
|
37
|
+
require('../parsers/array/index.cjs');
|
|
38
|
+
require('../parsers/bigint/index.cjs');
|
|
39
|
+
require('../parsers/tuple.cjs');
|
|
40
|
+
require('../parsers/transform.cjs');
|
|
41
|
+
require('../parsers/nil.cjs');
|
|
42
|
+
require('../parsers/boolean.cjs');
|
|
43
|
+
require('../parsers/empty.cjs');
|
|
44
|
+
require('../parsers/templateLiteral/index.cjs');
|
|
45
|
+
require('../parsers/pipe.cjs');
|
|
46
|
+
require('../parsers/optional.cjs');
|
|
47
|
+
require('../parsers/nullable.cjs');
|
|
48
|
+
require('../parsers/lazy.cjs');
|
|
49
|
+
require('../parsers/unknown.cjs');
|
|
50
|
+
require('../parsers/record/index.cjs');
|
|
51
|
+
require('../parsers/refine.cjs');
|
|
52
|
+
require('../parsers/recover.cjs');
|
|
9
53
|
|
|
10
54
|
function literal(value, definition) {
|
|
11
|
-
|
|
55
|
+
const self = baseExtended.dataParserExtendedInit(literal$1.literal(value, definition), {});
|
|
56
|
+
return literal.overrideHandler.apply(self);
|
|
12
57
|
}
|
|
58
|
+
literal.overrideHandler = override.createOverride("@duplojs/utils/data-parser-extended/literal");
|
|
13
59
|
|
|
14
60
|
exports.literal = literal;
|
|
@@ -19,4 +19,7 @@ export interface DataParserLiteralExtended<GenericDefinition extends dataParsers
|
|
|
19
19
|
export declare function literal<const GenericValue extends dataParsers.LiteralValue, const GenericDefinition extends Partial<Omit<dataParsers.DataParserDefinitionLiteral, "value">> = never>(value: GenericValue | GenericValue[], definition?: GenericDefinition): DataParserLiteralExtended<MergeDefinition<dataParsers.DataParserDefinitionLiteral, NeverCoalescing<GenericDefinition, {}> & {
|
|
20
20
|
value: GenericValue[];
|
|
21
21
|
}>>;
|
|
22
|
+
export declare namespace literal {
|
|
23
|
+
var overrideHandler: import("../../common").OverrideHandler<DataParserLiteralExtended<dataParsers.DataParserDefinitionLiteral>>;
|
|
24
|
+
}
|
|
22
25
|
export {};
|
|
@@ -1,12 +1,58 @@
|
|
|
1
|
-
import
|
|
2
|
-
import '
|
|
1
|
+
import '../../common/stringToBytes.mjs';
|
|
2
|
+
import '../../common/stringToMillisecond.mjs';
|
|
3
3
|
import '../../common/globalStore.mjs';
|
|
4
4
|
import '../../common/builder.mjs';
|
|
5
|
+
import '../../either/bool/falsy.mjs';
|
|
6
|
+
import '../../either/bool/truthy.mjs';
|
|
7
|
+
import '../../either/bool/base.mjs';
|
|
8
|
+
import '../../either/left/create.mjs';
|
|
9
|
+
import '../../either/left/error.mjs';
|
|
10
|
+
import '../../either/left/fail.mjs';
|
|
11
|
+
import '../../either/kind.mjs';
|
|
12
|
+
import '../../either/right/success.mjs';
|
|
13
|
+
import '../../either/right/create.mjs';
|
|
14
|
+
import '../../either/right/ok.mjs';
|
|
15
|
+
import '../../either/future/success.mjs';
|
|
16
|
+
import '../../either/future/error.mjs';
|
|
17
|
+
import '../../either/future/base.mjs';
|
|
18
|
+
import '../../either/nullable/empty.mjs';
|
|
19
|
+
import '../../either/nullable/filled.mjs';
|
|
20
|
+
import '../../either/nullable/base.mjs';
|
|
21
|
+
import '../../either/nullish/empty.mjs';
|
|
22
|
+
import '../../either/nullish/filled.mjs';
|
|
23
|
+
import '../../either/nullish/base.mjs';
|
|
24
|
+
import '../../either/optional/empty.mjs';
|
|
25
|
+
import '../../either/optional/filled.mjs';
|
|
26
|
+
import '../../either/optional/base.mjs';
|
|
27
|
+
import { createOverride } from '../../common/override.mjs';
|
|
28
|
+
import { dataParserExtendedInit } from '../baseExtended.mjs';
|
|
29
|
+
import '../parsers/string/index.mjs';
|
|
30
|
+
import '../parsers/object/index.mjs';
|
|
31
|
+
import '../parsers/number/index.mjs';
|
|
32
|
+
import '../parsers/date.mjs';
|
|
5
33
|
import { literal as literal$1 } from '../parsers/literal.mjs';
|
|
6
|
-
import '
|
|
34
|
+
import '../parsers/union.mjs';
|
|
35
|
+
import '../parsers/array/index.mjs';
|
|
36
|
+
import '../parsers/bigint/index.mjs';
|
|
37
|
+
import '../parsers/tuple.mjs';
|
|
38
|
+
import '../parsers/transform.mjs';
|
|
39
|
+
import '../parsers/nil.mjs';
|
|
40
|
+
import '../parsers/boolean.mjs';
|
|
41
|
+
import '../parsers/empty.mjs';
|
|
42
|
+
import '../parsers/templateLiteral/index.mjs';
|
|
43
|
+
import '../parsers/pipe.mjs';
|
|
44
|
+
import '../parsers/optional.mjs';
|
|
45
|
+
import '../parsers/nullable.mjs';
|
|
46
|
+
import '../parsers/lazy.mjs';
|
|
47
|
+
import '../parsers/unknown.mjs';
|
|
48
|
+
import '../parsers/record/index.mjs';
|
|
49
|
+
import '../parsers/refine.mjs';
|
|
50
|
+
import '../parsers/recover.mjs';
|
|
7
51
|
|
|
8
52
|
function literal(value, definition) {
|
|
9
|
-
|
|
53
|
+
const self = dataParserExtendedInit(literal$1(value, definition), {});
|
|
54
|
+
return literal.overrideHandler.apply(self);
|
|
10
55
|
}
|
|
56
|
+
literal.overrideHandler = createOverride("@duplojs/utils/data-parser-extended/literal");
|
|
11
57
|
|
|
12
58
|
export { literal };
|
|
@@ -1,14 +1,60 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
require('
|
|
3
|
+
require('../../common/stringToBytes.cjs');
|
|
4
|
+
require('../../common/stringToMillisecond.cjs');
|
|
5
5
|
require('../../common/globalStore.cjs');
|
|
6
6
|
require('../../common/builder.cjs');
|
|
7
|
+
require('../../either/bool/falsy.cjs');
|
|
8
|
+
require('../../either/bool/truthy.cjs');
|
|
9
|
+
require('../../either/bool/base.cjs');
|
|
10
|
+
require('../../either/left/create.cjs');
|
|
11
|
+
require('../../either/left/error.cjs');
|
|
12
|
+
require('../../either/left/fail.cjs');
|
|
13
|
+
require('../../either/kind.cjs');
|
|
14
|
+
require('../../either/right/success.cjs');
|
|
15
|
+
require('../../either/right/create.cjs');
|
|
16
|
+
require('../../either/right/ok.cjs');
|
|
17
|
+
require('../../either/future/success.cjs');
|
|
18
|
+
require('../../either/future/error.cjs');
|
|
19
|
+
require('../../either/future/base.cjs');
|
|
20
|
+
require('../../either/nullable/empty.cjs');
|
|
21
|
+
require('../../either/nullable/filled.cjs');
|
|
22
|
+
require('../../either/nullable/base.cjs');
|
|
23
|
+
require('../../either/nullish/empty.cjs');
|
|
24
|
+
require('../../either/nullish/filled.cjs');
|
|
25
|
+
require('../../either/nullish/base.cjs');
|
|
26
|
+
require('../../either/optional/empty.cjs');
|
|
27
|
+
require('../../either/optional/filled.cjs');
|
|
28
|
+
require('../../either/optional/base.cjs');
|
|
29
|
+
var override = require('../../common/override.cjs');
|
|
30
|
+
var baseExtended = require('../baseExtended.cjs');
|
|
31
|
+
require('../parsers/string/index.cjs');
|
|
32
|
+
require('../parsers/object/index.cjs');
|
|
33
|
+
require('../parsers/number/index.cjs');
|
|
34
|
+
require('../parsers/date.cjs');
|
|
35
|
+
require('../parsers/literal.cjs');
|
|
36
|
+
require('../parsers/union.cjs');
|
|
37
|
+
require('../parsers/array/index.cjs');
|
|
38
|
+
require('../parsers/bigint/index.cjs');
|
|
39
|
+
require('../parsers/tuple.cjs');
|
|
40
|
+
require('../parsers/transform.cjs');
|
|
7
41
|
var nil$1 = require('../parsers/nil.cjs');
|
|
8
|
-
require('
|
|
42
|
+
require('../parsers/boolean.cjs');
|
|
43
|
+
require('../parsers/empty.cjs');
|
|
44
|
+
require('../parsers/templateLiteral/index.cjs');
|
|
45
|
+
require('../parsers/pipe.cjs');
|
|
46
|
+
require('../parsers/optional.cjs');
|
|
47
|
+
require('../parsers/nullable.cjs');
|
|
48
|
+
require('../parsers/lazy.cjs');
|
|
49
|
+
require('../parsers/unknown.cjs');
|
|
50
|
+
require('../parsers/record/index.cjs');
|
|
51
|
+
require('../parsers/refine.cjs');
|
|
52
|
+
require('../parsers/recover.cjs');
|
|
9
53
|
|
|
10
54
|
function nil(definition) {
|
|
11
|
-
|
|
55
|
+
const self = baseExtended.dataParserExtendedInit(nil$1.nil(definition), {});
|
|
56
|
+
return nil.overrideHandler.apply(self);
|
|
12
57
|
}
|
|
58
|
+
nil.overrideHandler = override.createOverride("@duplojs/utils/data-parser-extended/nil");
|
|
13
59
|
|
|
14
60
|
exports.nil = nil;
|
|
@@ -17,4 +17,7 @@ export interface DataParserNilExtended<GenericDefinition extends dataParsers.Dat
|
|
|
17
17
|
]>>;
|
|
18
18
|
}
|
|
19
19
|
export declare function nil<const GenericDefinition extends Partial<dataParsers.DataParserDefinitionNil> = never>(definition?: GenericDefinition): DataParserNilExtended<MergeDefinition<dataParsers.DataParserDefinitionNil, NeverCoalescing<GenericDefinition, {}>>>;
|
|
20
|
+
export declare namespace nil {
|
|
21
|
+
var overrideHandler: import("../../common").OverrideHandler<DataParserNilExtended<dataParsers.DataParserDefinitionNil>>;
|
|
22
|
+
}
|
|
20
23
|
export {};
|