@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
|
@@ -1,14 +1,35 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
require('../../common/stringToBytes.cjs');
|
|
4
|
+
require('../../common/stringToMillisecond.cjs');
|
|
3
5
|
var unwrap = require('../../common/unwrap.cjs');
|
|
4
6
|
require('../../common/globalStore.cjs');
|
|
5
7
|
require('../../common/builder.cjs');
|
|
6
8
|
var create$1 = require('./create.cjs');
|
|
7
|
-
|
|
9
|
+
require('./falsy.cjs');
|
|
8
10
|
var base = require('./base.cjs');
|
|
11
|
+
require('../left/create.cjs');
|
|
12
|
+
require('../left/error.cjs');
|
|
13
|
+
require('../left/fail.cjs');
|
|
9
14
|
var is$1 = require('../left/is.cjs');
|
|
10
|
-
|
|
15
|
+
require('../right/success.cjs');
|
|
11
16
|
var is = require('../right/is.cjs');
|
|
17
|
+
var create = require('../right/create.cjs');
|
|
18
|
+
require('../right/ok.cjs');
|
|
19
|
+
require('../future/success.cjs');
|
|
20
|
+
require('../future/error.cjs');
|
|
21
|
+
require('../future/base.cjs');
|
|
22
|
+
require('../nullable/empty.cjs');
|
|
23
|
+
require('../nullable/filled.cjs');
|
|
24
|
+
require('../nullable/base.cjs');
|
|
25
|
+
require('../nullish/empty.cjs');
|
|
26
|
+
require('../nullish/filled.cjs');
|
|
27
|
+
require('../nullish/base.cjs');
|
|
28
|
+
require('../optional/empty.cjs');
|
|
29
|
+
require('../optional/filled.cjs');
|
|
30
|
+
require('../optional/base.cjs');
|
|
31
|
+
var kind = require('../kind.cjs');
|
|
32
|
+
require('../../common/override.cjs');
|
|
12
33
|
|
|
13
34
|
const eitherBoolTruthyKind = kind.createEitherKind("bool-truthy");
|
|
14
35
|
function boolTruthy(value) {
|
|
@@ -1,12 +1,33 @@
|
|
|
1
|
+
import '../../common/stringToBytes.mjs';
|
|
2
|
+
import '../../common/stringToMillisecond.mjs';
|
|
1
3
|
import { unwrap } from '../../common/unwrap.mjs';
|
|
2
4
|
import '../../common/globalStore.mjs';
|
|
3
5
|
import '../../common/builder.mjs';
|
|
4
6
|
import { bool } from './create.mjs';
|
|
5
|
-
import
|
|
7
|
+
import './falsy.mjs';
|
|
6
8
|
import { eitherBoolKind } from './base.mjs';
|
|
9
|
+
import '../left/create.mjs';
|
|
10
|
+
import '../left/error.mjs';
|
|
11
|
+
import '../left/fail.mjs';
|
|
7
12
|
import { isLeft } from '../left/is.mjs';
|
|
8
|
-
import
|
|
13
|
+
import '../right/success.mjs';
|
|
9
14
|
import { isRight } from '../right/is.mjs';
|
|
15
|
+
import { right } from '../right/create.mjs';
|
|
16
|
+
import '../right/ok.mjs';
|
|
17
|
+
import '../future/success.mjs';
|
|
18
|
+
import '../future/error.mjs';
|
|
19
|
+
import '../future/base.mjs';
|
|
20
|
+
import '../nullable/empty.mjs';
|
|
21
|
+
import '../nullable/filled.mjs';
|
|
22
|
+
import '../nullable/base.mjs';
|
|
23
|
+
import '../nullish/empty.mjs';
|
|
24
|
+
import '../nullish/filled.mjs';
|
|
25
|
+
import '../nullish/base.mjs';
|
|
26
|
+
import '../optional/empty.mjs';
|
|
27
|
+
import '../optional/filled.mjs';
|
|
28
|
+
import '../optional/base.mjs';
|
|
29
|
+
import { createEitherKind } from '../kind.mjs';
|
|
30
|
+
import '../../common/override.mjs';
|
|
10
31
|
|
|
11
32
|
const eitherBoolTruthyKind = createEitherKind("bool-truthy");
|
|
12
33
|
function boolTruthy(value) {
|
|
@@ -1,11 +1,34 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
require('../left/create.cjs');
|
|
4
|
+
require('../left/error.cjs');
|
|
5
|
+
require('../left/fail.cjs');
|
|
6
|
+
var is$1 = require('../left/is.cjs');
|
|
7
|
+
require('../../common/stringToBytes.cjs');
|
|
8
|
+
require('../../common/stringToMillisecond.cjs');
|
|
3
9
|
require('../../common/globalStore.cjs');
|
|
4
10
|
require('../../common/builder.cjs');
|
|
11
|
+
require('../bool/falsy.cjs');
|
|
12
|
+
require('../bool/truthy.cjs');
|
|
13
|
+
require('../bool/base.cjs');
|
|
14
|
+
require('../right/success.cjs');
|
|
15
|
+
var is = require('../right/is.cjs');
|
|
16
|
+
require('../right/create.cjs');
|
|
17
|
+
require('../right/ok.cjs');
|
|
5
18
|
var success = require('./success.cjs');
|
|
6
19
|
var error = require('./error.cjs');
|
|
7
|
-
|
|
8
|
-
|
|
20
|
+
require('./base.cjs');
|
|
21
|
+
require('../nullable/empty.cjs');
|
|
22
|
+
require('../nullable/filled.cjs');
|
|
23
|
+
require('../nullable/base.cjs');
|
|
24
|
+
require('../nullish/empty.cjs');
|
|
25
|
+
require('../nullish/filled.cjs');
|
|
26
|
+
require('../nullish/base.cjs');
|
|
27
|
+
require('../optional/empty.cjs');
|
|
28
|
+
require('../optional/filled.cjs');
|
|
29
|
+
require('../optional/base.cjs');
|
|
30
|
+
require('../kind.cjs');
|
|
31
|
+
require('../../common/override.cjs');
|
|
9
32
|
|
|
10
33
|
const kind = "kind-future-either";
|
|
11
34
|
class Future extends Promise {
|
|
@@ -1,9 +1,32 @@
|
|
|
1
|
+
import '../left/create.mjs';
|
|
2
|
+
import '../left/error.mjs';
|
|
3
|
+
import '../left/fail.mjs';
|
|
4
|
+
import { isLeft } from '../left/is.mjs';
|
|
5
|
+
import '../../common/stringToBytes.mjs';
|
|
6
|
+
import '../../common/stringToMillisecond.mjs';
|
|
1
7
|
import '../../common/globalStore.mjs';
|
|
2
8
|
import '../../common/builder.mjs';
|
|
9
|
+
import '../bool/falsy.mjs';
|
|
10
|
+
import '../bool/truthy.mjs';
|
|
11
|
+
import '../bool/base.mjs';
|
|
12
|
+
import '../right/success.mjs';
|
|
13
|
+
import { isRight } from '../right/is.mjs';
|
|
14
|
+
import '../right/create.mjs';
|
|
15
|
+
import '../right/ok.mjs';
|
|
3
16
|
import { futureSuccess } from './success.mjs';
|
|
4
17
|
import { futureError } from './error.mjs';
|
|
5
|
-
import
|
|
6
|
-
import
|
|
18
|
+
import './base.mjs';
|
|
19
|
+
import '../nullable/empty.mjs';
|
|
20
|
+
import '../nullable/filled.mjs';
|
|
21
|
+
import '../nullable/base.mjs';
|
|
22
|
+
import '../nullish/empty.mjs';
|
|
23
|
+
import '../nullish/filled.mjs';
|
|
24
|
+
import '../nullish/base.mjs';
|
|
25
|
+
import '../optional/empty.mjs';
|
|
26
|
+
import '../optional/filled.mjs';
|
|
27
|
+
import '../optional/base.mjs';
|
|
28
|
+
import '../kind.mjs';
|
|
29
|
+
import '../../common/override.mjs';
|
|
7
30
|
|
|
8
31
|
const kind = "kind-future-either";
|
|
9
32
|
class Future extends Promise {
|
|
@@ -1,10 +1,31 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var create = require('../left/create.cjs');
|
|
4
|
+
require('../left/error.cjs');
|
|
5
|
+
require('../left/fail.cjs');
|
|
4
6
|
var kind = require('../kind.cjs');
|
|
7
|
+
require('../../common/stringToBytes.cjs');
|
|
8
|
+
require('../../common/stringToMillisecond.cjs');
|
|
5
9
|
require('../../common/globalStore.cjs');
|
|
6
10
|
require('../../common/builder.cjs');
|
|
11
|
+
require('../bool/falsy.cjs');
|
|
12
|
+
require('../bool/truthy.cjs');
|
|
13
|
+
require('../bool/base.cjs');
|
|
14
|
+
require('../right/success.cjs');
|
|
15
|
+
require('../right/create.cjs');
|
|
16
|
+
require('../right/ok.cjs');
|
|
17
|
+
require('./success.cjs');
|
|
7
18
|
var base = require('./base.cjs');
|
|
19
|
+
require('../nullable/empty.cjs');
|
|
20
|
+
require('../nullable/filled.cjs');
|
|
21
|
+
require('../nullable/base.cjs');
|
|
22
|
+
require('../nullish/empty.cjs');
|
|
23
|
+
require('../nullish/filled.cjs');
|
|
24
|
+
require('../nullish/base.cjs');
|
|
25
|
+
require('../optional/empty.cjs');
|
|
26
|
+
require('../optional/filled.cjs');
|
|
27
|
+
require('../optional/base.cjs');
|
|
28
|
+
require('../../common/override.cjs');
|
|
8
29
|
|
|
9
30
|
const eitherFutureErrorKind = kind.createEitherKind("future-error");
|
|
10
31
|
function futureError(value) {
|
|
@@ -1,8 +1,29 @@
|
|
|
1
1
|
import { left } from '../left/create.mjs';
|
|
2
|
+
import '../left/error.mjs';
|
|
3
|
+
import '../left/fail.mjs';
|
|
2
4
|
import { createEitherKind } from '../kind.mjs';
|
|
5
|
+
import '../../common/stringToBytes.mjs';
|
|
6
|
+
import '../../common/stringToMillisecond.mjs';
|
|
3
7
|
import '../../common/globalStore.mjs';
|
|
4
8
|
import '../../common/builder.mjs';
|
|
9
|
+
import '../bool/falsy.mjs';
|
|
10
|
+
import '../bool/truthy.mjs';
|
|
11
|
+
import '../bool/base.mjs';
|
|
12
|
+
import '../right/success.mjs';
|
|
13
|
+
import '../right/create.mjs';
|
|
14
|
+
import '../right/ok.mjs';
|
|
15
|
+
import './success.mjs';
|
|
5
16
|
import { eitherFutureKind } from './base.mjs';
|
|
17
|
+
import '../nullable/empty.mjs';
|
|
18
|
+
import '../nullable/filled.mjs';
|
|
19
|
+
import '../nullable/base.mjs';
|
|
20
|
+
import '../nullish/empty.mjs';
|
|
21
|
+
import '../nullish/filled.mjs';
|
|
22
|
+
import '../nullish/base.mjs';
|
|
23
|
+
import '../optional/empty.mjs';
|
|
24
|
+
import '../optional/filled.mjs';
|
|
25
|
+
import '../optional/base.mjs';
|
|
26
|
+
import '../../common/override.mjs';
|
|
6
27
|
|
|
7
28
|
const eitherFutureErrorKind = createEitherKind("future-error");
|
|
8
29
|
function futureError(value) {
|
|
@@ -2,9 +2,30 @@
|
|
|
2
2
|
|
|
3
3
|
var kind = require('../kind.cjs');
|
|
4
4
|
var base = require('./base.cjs');
|
|
5
|
+
require('../left/create.cjs');
|
|
6
|
+
require('../left/error.cjs');
|
|
7
|
+
require('../left/fail.cjs');
|
|
8
|
+
require('../../common/stringToBytes.cjs');
|
|
9
|
+
require('../../common/stringToMillisecond.cjs');
|
|
5
10
|
require('../../common/globalStore.cjs');
|
|
6
11
|
require('../../common/builder.cjs');
|
|
12
|
+
require('../bool/falsy.cjs');
|
|
13
|
+
require('../bool/truthy.cjs');
|
|
14
|
+
require('../bool/base.cjs');
|
|
15
|
+
require('./error.cjs');
|
|
16
|
+
require('../nullable/empty.cjs');
|
|
17
|
+
require('../nullable/filled.cjs');
|
|
18
|
+
require('../nullable/base.cjs');
|
|
19
|
+
require('../nullish/empty.cjs');
|
|
20
|
+
require('../nullish/filled.cjs');
|
|
21
|
+
require('../nullish/base.cjs');
|
|
22
|
+
require('../optional/empty.cjs');
|
|
23
|
+
require('../optional/filled.cjs');
|
|
24
|
+
require('../optional/base.cjs');
|
|
25
|
+
require('../../common/override.cjs');
|
|
26
|
+
require('../right/success.cjs');
|
|
7
27
|
var create = require('../right/create.cjs');
|
|
28
|
+
require('../right/ok.cjs');
|
|
8
29
|
|
|
9
30
|
const eitherFutureSuccessKind = kind.createEitherKind("future-success");
|
|
10
31
|
function futureSuccess(value) {
|
|
@@ -1,8 +1,29 @@
|
|
|
1
1
|
import { createEitherKind } from '../kind.mjs';
|
|
2
2
|
import { eitherFutureKind } from './base.mjs';
|
|
3
|
+
import '../left/create.mjs';
|
|
4
|
+
import '../left/error.mjs';
|
|
5
|
+
import '../left/fail.mjs';
|
|
6
|
+
import '../../common/stringToBytes.mjs';
|
|
7
|
+
import '../../common/stringToMillisecond.mjs';
|
|
3
8
|
import '../../common/globalStore.mjs';
|
|
4
9
|
import '../../common/builder.mjs';
|
|
10
|
+
import '../bool/falsy.mjs';
|
|
11
|
+
import '../bool/truthy.mjs';
|
|
12
|
+
import '../bool/base.mjs';
|
|
13
|
+
import './error.mjs';
|
|
14
|
+
import '../nullable/empty.mjs';
|
|
15
|
+
import '../nullable/filled.mjs';
|
|
16
|
+
import '../nullable/base.mjs';
|
|
17
|
+
import '../nullish/empty.mjs';
|
|
18
|
+
import '../nullish/filled.mjs';
|
|
19
|
+
import '../nullish/base.mjs';
|
|
20
|
+
import '../optional/empty.mjs';
|
|
21
|
+
import '../optional/filled.mjs';
|
|
22
|
+
import '../optional/base.mjs';
|
|
23
|
+
import '../../common/override.mjs';
|
|
24
|
+
import '../right/success.mjs';
|
|
5
25
|
import { right } from '../right/create.mjs';
|
|
26
|
+
import '../right/ok.mjs';
|
|
6
27
|
|
|
7
28
|
const eitherFutureSuccessKind = createEitherKind("future-success");
|
|
8
29
|
function futureSuccess(value) {
|
|
@@ -2,7 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
var kind = require('./kind.cjs');
|
|
4
4
|
|
|
5
|
-
function hasInformation(
|
|
5
|
+
function hasInformation(...args) {
|
|
6
|
+
if (args.length === 1) {
|
|
7
|
+
const [information] = args;
|
|
8
|
+
return (input) => hasInformation(input, information);
|
|
9
|
+
}
|
|
10
|
+
const [input, information] = args;
|
|
6
11
|
return kind.eitherInformationKind.has(input)
|
|
7
12
|
&& kind.eitherInformationKind.getValue(input) === information;
|
|
8
13
|
}
|
|
@@ -3,5 +3,6 @@ import { type EitherLeft } from "./left";
|
|
|
3
3
|
import { type EitherRight } from "./right";
|
|
4
4
|
import { eitherInformationKind } from "./kind";
|
|
5
5
|
type Either = EitherRight | EitherLeft;
|
|
6
|
+
export declare function hasInformation<const GenericInput extends unknown, GenericInformation extends (GenericInput extends Either ? ReturnType<typeof eitherInformationKind.getValue<GenericInput>> : never)>(information: GenericInformation): (input: GenericInput) => input is Extract<GenericInput, Kind<typeof eitherInformationKind.definition, GenericInformation>>;
|
|
6
7
|
export declare function hasInformation<const GenericInput extends unknown, GenericInformation extends (GenericInput extends Either ? ReturnType<typeof eitherInformationKind.getValue<GenericInput>> : never)>(input: GenericInput, information: GenericInformation): input is Extract<GenericInput, Kind<typeof eitherInformationKind.definition, GenericInformation>>;
|
|
7
8
|
export {};
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { eitherInformationKind } from './kind.mjs';
|
|
2
2
|
|
|
3
|
-
function hasInformation(
|
|
3
|
+
function hasInformation(...args) {
|
|
4
|
+
if (args.length === 1) {
|
|
5
|
+
const [information] = args;
|
|
6
|
+
return (input) => hasInformation(input, information);
|
|
7
|
+
}
|
|
8
|
+
const [input, information] = args;
|
|
4
9
|
return eitherInformationKind.has(input)
|
|
5
10
|
&& eitherInformationKind.getValue(input) === information;
|
|
6
11
|
}
|
package/dist/either/kind.cjs
CHANGED
|
@@ -1,8 +1,32 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var kind = require('../common/kind.cjs');
|
|
4
|
+
require('../common/stringToBytes.cjs');
|
|
5
|
+
require('../common/stringToMillisecond.cjs');
|
|
4
6
|
require('../common/globalStore.cjs');
|
|
5
7
|
require('../common/builder.cjs');
|
|
8
|
+
require('./bool/falsy.cjs');
|
|
9
|
+
require('./bool/truthy.cjs');
|
|
10
|
+
require('./bool/base.cjs');
|
|
11
|
+
require('./left/create.cjs');
|
|
12
|
+
require('./left/error.cjs');
|
|
13
|
+
require('./left/fail.cjs');
|
|
14
|
+
require('./right/success.cjs');
|
|
15
|
+
require('./right/create.cjs');
|
|
16
|
+
require('./right/ok.cjs');
|
|
17
|
+
require('./future/success.cjs');
|
|
18
|
+
require('./future/error.cjs');
|
|
19
|
+
require('./future/base.cjs');
|
|
20
|
+
require('./nullable/empty.cjs');
|
|
21
|
+
require('./nullable/filled.cjs');
|
|
22
|
+
require('./nullable/base.cjs');
|
|
23
|
+
require('./nullish/empty.cjs');
|
|
24
|
+
require('./nullish/filled.cjs');
|
|
25
|
+
require('./nullish/base.cjs');
|
|
26
|
+
require('./optional/empty.cjs');
|
|
27
|
+
require('./optional/filled.cjs');
|
|
28
|
+
require('./optional/base.cjs');
|
|
29
|
+
require('../common/override.cjs');
|
|
6
30
|
|
|
7
31
|
const createEitherKind = kind.createKindNamespace(
|
|
8
32
|
// @ts-expect-error reserved kind namespace
|
package/dist/either/kind.mjs
CHANGED
|
@@ -1,6 +1,30 @@
|
|
|
1
1
|
import { createKindNamespace } from '../common/kind.mjs';
|
|
2
|
+
import '../common/stringToBytes.mjs';
|
|
3
|
+
import '../common/stringToMillisecond.mjs';
|
|
2
4
|
import '../common/globalStore.mjs';
|
|
3
5
|
import '../common/builder.mjs';
|
|
6
|
+
import './bool/falsy.mjs';
|
|
7
|
+
import './bool/truthy.mjs';
|
|
8
|
+
import './bool/base.mjs';
|
|
9
|
+
import './left/create.mjs';
|
|
10
|
+
import './left/error.mjs';
|
|
11
|
+
import './left/fail.mjs';
|
|
12
|
+
import './right/success.mjs';
|
|
13
|
+
import './right/create.mjs';
|
|
14
|
+
import './right/ok.mjs';
|
|
15
|
+
import './future/success.mjs';
|
|
16
|
+
import './future/error.mjs';
|
|
17
|
+
import './future/base.mjs';
|
|
18
|
+
import './nullable/empty.mjs';
|
|
19
|
+
import './nullable/filled.mjs';
|
|
20
|
+
import './nullable/base.mjs';
|
|
21
|
+
import './nullish/empty.mjs';
|
|
22
|
+
import './nullish/filled.mjs';
|
|
23
|
+
import './nullish/base.mjs';
|
|
24
|
+
import './optional/empty.mjs';
|
|
25
|
+
import './optional/filled.mjs';
|
|
26
|
+
import './optional/base.mjs';
|
|
27
|
+
import '../common/override.mjs';
|
|
4
28
|
|
|
5
29
|
const createEitherKind = createKindNamespace(
|
|
6
30
|
// @ts-expect-error reserved kind namespace
|
|
@@ -1,9 +1,34 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
require('../../common/stringToBytes.cjs');
|
|
4
|
+
require('../../common/stringToMillisecond.cjs');
|
|
3
5
|
var unwrap = require('../../common/unwrap.cjs');
|
|
4
6
|
require('../../common/globalStore.cjs');
|
|
5
7
|
require('../../common/builder.cjs');
|
|
8
|
+
require('../bool/falsy.cjs');
|
|
9
|
+
require('../bool/truthy.cjs');
|
|
10
|
+
require('../bool/base.cjs');
|
|
11
|
+
require('./create.cjs');
|
|
12
|
+
require('./error.cjs');
|
|
13
|
+
require('./fail.cjs');
|
|
6
14
|
var is = require('./is.cjs');
|
|
15
|
+
require('../right/success.cjs');
|
|
16
|
+
require('../kind.cjs');
|
|
17
|
+
require('../right/create.cjs');
|
|
18
|
+
require('../right/ok.cjs');
|
|
19
|
+
require('../future/success.cjs');
|
|
20
|
+
require('../future/error.cjs');
|
|
21
|
+
require('../future/base.cjs');
|
|
22
|
+
require('../nullable/empty.cjs');
|
|
23
|
+
require('../nullable/filled.cjs');
|
|
24
|
+
require('../nullable/base.cjs');
|
|
25
|
+
require('../nullish/empty.cjs');
|
|
26
|
+
require('../nullish/filled.cjs');
|
|
27
|
+
require('../nullish/base.cjs');
|
|
28
|
+
require('../optional/empty.cjs');
|
|
29
|
+
require('../optional/filled.cjs');
|
|
30
|
+
require('../optional/base.cjs');
|
|
31
|
+
require('../../common/override.cjs');
|
|
7
32
|
|
|
8
33
|
function whenIsLeft(...args) {
|
|
9
34
|
if (args.length === 1) {
|
|
@@ -1,7 +1,32 @@
|
|
|
1
|
+
import '../../common/stringToBytes.mjs';
|
|
2
|
+
import '../../common/stringToMillisecond.mjs';
|
|
1
3
|
import { unwrap } from '../../common/unwrap.mjs';
|
|
2
4
|
import '../../common/globalStore.mjs';
|
|
3
5
|
import '../../common/builder.mjs';
|
|
6
|
+
import '../bool/falsy.mjs';
|
|
7
|
+
import '../bool/truthy.mjs';
|
|
8
|
+
import '../bool/base.mjs';
|
|
9
|
+
import './create.mjs';
|
|
10
|
+
import './error.mjs';
|
|
11
|
+
import './fail.mjs';
|
|
4
12
|
import { isLeft } from './is.mjs';
|
|
13
|
+
import '../right/success.mjs';
|
|
14
|
+
import '../kind.mjs';
|
|
15
|
+
import '../right/create.mjs';
|
|
16
|
+
import '../right/ok.mjs';
|
|
17
|
+
import '../future/success.mjs';
|
|
18
|
+
import '../future/error.mjs';
|
|
19
|
+
import '../future/base.mjs';
|
|
20
|
+
import '../nullable/empty.mjs';
|
|
21
|
+
import '../nullable/filled.mjs';
|
|
22
|
+
import '../nullable/base.mjs';
|
|
23
|
+
import '../nullish/empty.mjs';
|
|
24
|
+
import '../nullish/filled.mjs';
|
|
25
|
+
import '../nullish/base.mjs';
|
|
26
|
+
import '../optional/empty.mjs';
|
|
27
|
+
import '../optional/filled.mjs';
|
|
28
|
+
import '../optional/base.mjs';
|
|
29
|
+
import '../../common/override.mjs';
|
|
5
30
|
|
|
6
31
|
function whenIsLeft(...args) {
|
|
7
32
|
if (args.length === 1) {
|
|
@@ -1,14 +1,35 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
require('../../common/stringToBytes.cjs');
|
|
4
|
+
require('../../common/stringToMillisecond.cjs');
|
|
3
5
|
var unwrap = require('../../common/unwrap.cjs');
|
|
4
6
|
require('../../common/globalStore.cjs');
|
|
5
7
|
require('../../common/builder.cjs');
|
|
6
|
-
|
|
8
|
+
require('../bool/falsy.cjs');
|
|
9
|
+
require('../bool/truthy.cjs');
|
|
10
|
+
require('../bool/base.cjs');
|
|
7
11
|
var create = require('../left/create.cjs');
|
|
12
|
+
require('../left/error.cjs');
|
|
13
|
+
require('../left/fail.cjs');
|
|
8
14
|
var is = require('../left/is.cjs');
|
|
15
|
+
require('../right/success.cjs');
|
|
9
16
|
var is$1 = require('../right/is.cjs');
|
|
17
|
+
require('../right/create.cjs');
|
|
18
|
+
require('../right/ok.cjs');
|
|
19
|
+
require('../future/success.cjs');
|
|
20
|
+
require('../future/error.cjs');
|
|
21
|
+
require('../future/base.cjs');
|
|
10
22
|
var create$1 = require('./create.cjs');
|
|
23
|
+
require('./filled.cjs');
|
|
11
24
|
var base = require('./base.cjs');
|
|
25
|
+
require('../nullish/empty.cjs');
|
|
26
|
+
require('../nullish/filled.cjs');
|
|
27
|
+
require('../nullish/base.cjs');
|
|
28
|
+
require('../optional/empty.cjs');
|
|
29
|
+
require('../optional/filled.cjs');
|
|
30
|
+
require('../optional/base.cjs');
|
|
31
|
+
var kind = require('../kind.cjs');
|
|
32
|
+
require('../../common/override.cjs');
|
|
12
33
|
|
|
13
34
|
const eitherNullableEmptyKind = kind.createEitherKind("nullable-empty");
|
|
14
35
|
function nullableEmpty() {
|
|
@@ -1,12 +1,33 @@
|
|
|
1
|
+
import '../../common/stringToBytes.mjs';
|
|
2
|
+
import '../../common/stringToMillisecond.mjs';
|
|
1
3
|
import { unwrap } from '../../common/unwrap.mjs';
|
|
2
4
|
import '../../common/globalStore.mjs';
|
|
3
5
|
import '../../common/builder.mjs';
|
|
4
|
-
import
|
|
6
|
+
import '../bool/falsy.mjs';
|
|
7
|
+
import '../bool/truthy.mjs';
|
|
8
|
+
import '../bool/base.mjs';
|
|
5
9
|
import { left } from '../left/create.mjs';
|
|
10
|
+
import '../left/error.mjs';
|
|
11
|
+
import '../left/fail.mjs';
|
|
6
12
|
import { isLeft } from '../left/is.mjs';
|
|
13
|
+
import '../right/success.mjs';
|
|
7
14
|
import { isRight } from '../right/is.mjs';
|
|
15
|
+
import '../right/create.mjs';
|
|
16
|
+
import '../right/ok.mjs';
|
|
17
|
+
import '../future/success.mjs';
|
|
18
|
+
import '../future/error.mjs';
|
|
19
|
+
import '../future/base.mjs';
|
|
8
20
|
import { nullable } from './create.mjs';
|
|
21
|
+
import './filled.mjs';
|
|
9
22
|
import { eitherNullableKind } from './base.mjs';
|
|
23
|
+
import '../nullish/empty.mjs';
|
|
24
|
+
import '../nullish/filled.mjs';
|
|
25
|
+
import '../nullish/base.mjs';
|
|
26
|
+
import '../optional/empty.mjs';
|
|
27
|
+
import '../optional/filled.mjs';
|
|
28
|
+
import '../optional/base.mjs';
|
|
29
|
+
import { createEitherKind } from '../kind.mjs';
|
|
30
|
+
import '../../common/override.mjs';
|
|
10
31
|
|
|
11
32
|
const eitherNullableEmptyKind = createEitherKind("nullable-empty");
|
|
12
33
|
function nullableEmpty() {
|
|
@@ -1,14 +1,35 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
require('../../common/stringToBytes.cjs');
|
|
4
|
+
require('../../common/stringToMillisecond.cjs');
|
|
3
5
|
var unwrap = require('../../common/unwrap.cjs');
|
|
4
6
|
require('../../common/globalStore.cjs');
|
|
5
7
|
require('../../common/builder.cjs');
|
|
6
|
-
|
|
8
|
+
require('../bool/falsy.cjs');
|
|
9
|
+
require('../bool/truthy.cjs');
|
|
10
|
+
require('../bool/base.cjs');
|
|
11
|
+
require('../left/create.cjs');
|
|
12
|
+
require('../left/error.cjs');
|
|
13
|
+
require('../left/fail.cjs');
|
|
7
14
|
var is$1 = require('../left/is.cjs');
|
|
8
|
-
|
|
15
|
+
require('../right/success.cjs');
|
|
9
16
|
var is = require('../right/is.cjs');
|
|
17
|
+
var create = require('../right/create.cjs');
|
|
18
|
+
require('../right/ok.cjs');
|
|
19
|
+
require('../future/success.cjs');
|
|
20
|
+
require('../future/error.cjs');
|
|
21
|
+
require('../future/base.cjs');
|
|
10
22
|
var create$1 = require('./create.cjs');
|
|
23
|
+
require('./empty.cjs');
|
|
11
24
|
var base = require('./base.cjs');
|
|
25
|
+
require('../nullish/empty.cjs');
|
|
26
|
+
require('../nullish/filled.cjs');
|
|
27
|
+
require('../nullish/base.cjs');
|
|
28
|
+
require('../optional/empty.cjs');
|
|
29
|
+
require('../optional/filled.cjs');
|
|
30
|
+
require('../optional/base.cjs');
|
|
31
|
+
var kind = require('../kind.cjs');
|
|
32
|
+
require('../../common/override.cjs');
|
|
12
33
|
|
|
13
34
|
const eitherNullableFilledKind = kind.createEitherKind("nullable-filled");
|
|
14
35
|
function nullableFilled(value) {
|
|
@@ -1,12 +1,33 @@
|
|
|
1
|
+
import '../../common/stringToBytes.mjs';
|
|
2
|
+
import '../../common/stringToMillisecond.mjs';
|
|
1
3
|
import { unwrap } from '../../common/unwrap.mjs';
|
|
2
4
|
import '../../common/globalStore.mjs';
|
|
3
5
|
import '../../common/builder.mjs';
|
|
4
|
-
import
|
|
6
|
+
import '../bool/falsy.mjs';
|
|
7
|
+
import '../bool/truthy.mjs';
|
|
8
|
+
import '../bool/base.mjs';
|
|
9
|
+
import '../left/create.mjs';
|
|
10
|
+
import '../left/error.mjs';
|
|
11
|
+
import '../left/fail.mjs';
|
|
5
12
|
import { isLeft } from '../left/is.mjs';
|
|
6
|
-
import
|
|
13
|
+
import '../right/success.mjs';
|
|
7
14
|
import { isRight } from '../right/is.mjs';
|
|
15
|
+
import { right } from '../right/create.mjs';
|
|
16
|
+
import '../right/ok.mjs';
|
|
17
|
+
import '../future/success.mjs';
|
|
18
|
+
import '../future/error.mjs';
|
|
19
|
+
import '../future/base.mjs';
|
|
8
20
|
import { nullable } from './create.mjs';
|
|
21
|
+
import './empty.mjs';
|
|
9
22
|
import { eitherNullableKind } from './base.mjs';
|
|
23
|
+
import '../nullish/empty.mjs';
|
|
24
|
+
import '../nullish/filled.mjs';
|
|
25
|
+
import '../nullish/base.mjs';
|
|
26
|
+
import '../optional/empty.mjs';
|
|
27
|
+
import '../optional/filled.mjs';
|
|
28
|
+
import '../optional/base.mjs';
|
|
29
|
+
import { createEitherKind } from '../kind.mjs';
|
|
30
|
+
import '../../common/override.mjs';
|
|
10
31
|
|
|
11
32
|
const eitherNullableFilledKind = createEitherKind("nullable-filled");
|
|
12
33
|
function nullableFilled(value) {
|
|
@@ -1,14 +1,35 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
require('../../common/stringToBytes.cjs');
|
|
4
|
+
require('../../common/stringToMillisecond.cjs');
|
|
3
5
|
var unwrap = require('../../common/unwrap.cjs');
|
|
4
6
|
require('../../common/globalStore.cjs');
|
|
5
7
|
require('../../common/builder.cjs');
|
|
6
|
-
|
|
8
|
+
require('../bool/falsy.cjs');
|
|
9
|
+
require('../bool/truthy.cjs');
|
|
10
|
+
require('../bool/base.cjs');
|
|
7
11
|
var create = require('../left/create.cjs');
|
|
12
|
+
require('../left/error.cjs');
|
|
13
|
+
require('../left/fail.cjs');
|
|
8
14
|
var is = require('../left/is.cjs');
|
|
15
|
+
require('../right/success.cjs');
|
|
9
16
|
var is$1 = require('../right/is.cjs');
|
|
17
|
+
require('../right/create.cjs');
|
|
18
|
+
require('../right/ok.cjs');
|
|
19
|
+
require('../future/success.cjs');
|
|
20
|
+
require('../future/error.cjs');
|
|
21
|
+
require('../future/base.cjs');
|
|
22
|
+
require('../nullable/empty.cjs');
|
|
23
|
+
require('../nullable/filled.cjs');
|
|
24
|
+
require('../nullable/base.cjs');
|
|
10
25
|
var create$1 = require('./create.cjs');
|
|
26
|
+
require('./filled.cjs');
|
|
11
27
|
var base = require('./base.cjs');
|
|
28
|
+
require('../optional/empty.cjs');
|
|
29
|
+
require('../optional/filled.cjs');
|
|
30
|
+
require('../optional/base.cjs');
|
|
31
|
+
var kind = require('../kind.cjs');
|
|
32
|
+
require('../../common/override.cjs');
|
|
12
33
|
|
|
13
34
|
const eitherNullishEmptyKind = kind.createEitherKind("nullish-empty");
|
|
14
35
|
function nullishEmpty(value = undefined) {
|