@duplojs/utils 1.2.16 → 1.2.17
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/index.cjs +28 -28
- package/dist/array/index.mjs +14 -14
- package/dist/array/reduce.cjs +0 -27
- package/dist/array/reduce.mjs +0 -27
- package/dist/array/reduceRight.cjs +0 -27
- package/dist/array/reduceRight.mjs +0 -27
- package/dist/common/createKindIdentifier.cjs +1 -26
- package/dist/common/createKindIdentifier.mjs +1 -26
- package/dist/common/instanceOf.cjs +0 -27
- package/dist/common/instanceOf.mjs +0 -27
- package/dist/common/override.cjs +1 -26
- package/dist/common/override.mjs +1 -26
- package/dist/dataParser/base.cjs +3 -27
- package/dist/dataParser/base.mjs +3 -27
- package/dist/dataParser/baseExtended.cjs +9 -71
- package/dist/dataParser/baseExtended.mjs +9 -71
- package/dist/dataParser/extended/array.cjs +1 -48
- package/dist/dataParser/extended/array.mjs +1 -48
- package/dist/dataParser/extended/bigint.cjs +1 -48
- package/dist/dataParser/extended/bigint.mjs +1 -48
- package/dist/dataParser/extended/boolean.cjs +1 -48
- package/dist/dataParser/extended/boolean.mjs +1 -48
- package/dist/dataParser/extended/coerce/bigint.cjs +0 -21
- package/dist/dataParser/extended/coerce/bigint.mjs +0 -21
- package/dist/dataParser/extended/coerce/boolean.cjs +0 -21
- package/dist/dataParser/extended/coerce/boolean.mjs +0 -21
- package/dist/dataParser/extended/coerce/date.cjs +0 -21
- package/dist/dataParser/extended/coerce/date.mjs +0 -21
- package/dist/dataParser/extended/coerce/empty.cjs +0 -21
- package/dist/dataParser/extended/coerce/empty.mjs +0 -21
- package/dist/dataParser/extended/coerce/nil.cjs +0 -21
- package/dist/dataParser/extended/coerce/nil.mjs +0 -21
- package/dist/dataParser/extended/coerce/number.cjs +0 -21
- package/dist/dataParser/extended/coerce/number.mjs +0 -21
- package/dist/dataParser/extended/coerce/string.cjs +0 -21
- package/dist/dataParser/extended/coerce/string.mjs +0 -21
- package/dist/dataParser/extended/date.cjs +1 -48
- package/dist/dataParser/extended/date.mjs +1 -48
- package/dist/dataParser/extended/empty.cjs +1 -48
- package/dist/dataParser/extended/empty.mjs +1 -48
- package/dist/dataParser/extended/lazy.cjs +1 -48
- package/dist/dataParser/extended/lazy.mjs +1 -48
- package/dist/dataParser/extended/literal.cjs +1 -48
- package/dist/dataParser/extended/literal.mjs +1 -48
- package/dist/dataParser/extended/nil.cjs +1 -48
- package/dist/dataParser/extended/nil.mjs +1 -48
- package/dist/dataParser/extended/nullable.cjs +1 -48
- package/dist/dataParser/extended/nullable.mjs +1 -48
- package/dist/dataParser/extended/number.cjs +1 -48
- package/dist/dataParser/extended/number.mjs +1 -48
- package/dist/dataParser/extended/object.cjs +5 -52
- package/dist/dataParser/extended/object.mjs +5 -52
- package/dist/dataParser/extended/optional.cjs +1 -48
- package/dist/dataParser/extended/optional.mjs +1 -48
- package/dist/dataParser/extended/pipe.cjs +1 -48
- package/dist/dataParser/extended/pipe.mjs +1 -48
- package/dist/dataParser/extended/record.cjs +1 -48
- package/dist/dataParser/extended/record.mjs +1 -48
- package/dist/dataParser/extended/recover.cjs +1 -48
- package/dist/dataParser/extended/recover.mjs +1 -48
- package/dist/dataParser/extended/string.cjs +1 -48
- package/dist/dataParser/extended/string.mjs +1 -48
- package/dist/dataParser/extended/templateLiteral.cjs +1 -48
- package/dist/dataParser/extended/templateLiteral.mjs +1 -48
- package/dist/dataParser/extended/transform.cjs +1 -48
- package/dist/dataParser/extended/transform.mjs +1 -48
- package/dist/dataParser/extended/tuple.cjs +1 -48
- package/dist/dataParser/extended/tuple.mjs +1 -48
- package/dist/dataParser/extended/union.cjs +1 -48
- package/dist/dataParser/extended/union.mjs +1 -48
- package/dist/dataParser/extended/unknown.cjs +1 -48
- package/dist/dataParser/extended/unknown.mjs +1 -48
- package/dist/dataParser/identifier.cjs +0 -5
- package/dist/dataParser/identifier.mjs +0 -5
- package/dist/dataParser/index.cjs +52 -52
- package/dist/dataParser/index.mjs +19 -19
- package/dist/dataParser/kind.cjs +0 -27
- package/dist/dataParser/kind.mjs +0 -27
- package/dist/dataParser/parsers/array/index.cjs +1 -33
- package/dist/dataParser/parsers/array/index.mjs +1 -29
- package/dist/dataParser/parsers/bigint/index.cjs +1 -33
- package/dist/dataParser/parsers/bigint/index.mjs +1 -29
- package/dist/dataParser/parsers/boolean.cjs +1 -27
- package/dist/dataParser/parsers/boolean.mjs +1 -27
- package/dist/dataParser/parsers/coerce/bigint.cjs +0 -21
- package/dist/dataParser/parsers/coerce/bigint.mjs +0 -21
- package/dist/dataParser/parsers/coerce/boolean.cjs +0 -21
- package/dist/dataParser/parsers/coerce/boolean.mjs +0 -21
- package/dist/dataParser/parsers/coerce/date.cjs +0 -21
- package/dist/dataParser/parsers/coerce/date.mjs +0 -21
- package/dist/dataParser/parsers/coerce/empty.cjs +0 -21
- package/dist/dataParser/parsers/coerce/empty.mjs +0 -21
- package/dist/dataParser/parsers/coerce/nil.cjs +0 -21
- package/dist/dataParser/parsers/coerce/nil.mjs +0 -21
- package/dist/dataParser/parsers/coerce/number.cjs +0 -21
- package/dist/dataParser/parsers/coerce/number.mjs +0 -21
- package/dist/dataParser/parsers/coerce/string.cjs +0 -21
- package/dist/dataParser/parsers/coerce/string.mjs +0 -21
- package/dist/dataParser/parsers/date.cjs +2 -31
- package/dist/dataParser/parsers/date.mjs +2 -31
- package/dist/dataParser/parsers/empty.cjs +1 -27
- package/dist/dataParser/parsers/empty.mjs +1 -27
- package/dist/dataParser/parsers/lazy.cjs +2 -28
- package/dist/dataParser/parsers/lazy.mjs +2 -28
- package/dist/dataParser/parsers/literal.cjs +2 -28
- package/dist/dataParser/parsers/literal.mjs +2 -28
- package/dist/dataParser/parsers/nil.cjs +1 -27
- package/dist/dataParser/parsers/nil.mjs +1 -27
- package/dist/dataParser/parsers/nullable.cjs +1 -27
- package/dist/dataParser/parsers/nullable.mjs +1 -27
- package/dist/dataParser/parsers/number/index.cjs +1 -37
- package/dist/dataParser/parsers/number/index.mjs +1 -30
- package/dist/dataParser/parsers/object/index.cjs +7 -33
- package/dist/dataParser/parsers/object/index.mjs +7 -33
- package/dist/dataParser/parsers/object/omit.cjs +2 -29
- package/dist/dataParser/parsers/object/omit.mjs +2 -29
- package/dist/dataParser/parsers/object/pick.cjs +2 -29
- package/dist/dataParser/parsers/object/pick.mjs +2 -29
- package/dist/dataParser/parsers/optional.cjs +1 -27
- package/dist/dataParser/parsers/optional.mjs +1 -27
- package/dist/dataParser/parsers/pipe.cjs +1 -27
- package/dist/dataParser/parsers/pipe.mjs +1 -27
- package/dist/dataParser/parsers/record/findRecordRequiredKey.cjs +17 -46
- package/dist/dataParser/parsers/record/findRecordRequiredKey.mjs +17 -46
- package/dist/dataParser/parsers/record/index.cjs +1 -27
- package/dist/dataParser/parsers/record/index.mjs +1 -27
- package/dist/dataParser/parsers/recover.cjs +1 -27
- package/dist/dataParser/parsers/recover.mjs +1 -27
- package/dist/dataParser/parsers/string/index.cjs +1 -44
- package/dist/dataParser/parsers/string/index.mjs +1 -32
- package/dist/dataParser/parsers/templateLiteral/createTemplateLiteralPattern.cjs +14 -43
- package/dist/dataParser/parsers/templateLiteral/createTemplateLiteralPattern.mjs +14 -43
- package/dist/dataParser/parsers/templateLiteral/index.cjs +2 -28
- package/dist/dataParser/parsers/templateLiteral/index.mjs +2 -28
- package/dist/dataParser/parsers/transform.cjs +1 -27
- package/dist/dataParser/parsers/transform.mjs +1 -27
- package/dist/dataParser/parsers/tuple.cjs +1 -27
- package/dist/dataParser/parsers/tuple.mjs +1 -27
- package/dist/dataParser/parsers/union.cjs +1 -27
- package/dist/dataParser/parsers/union.mjs +1 -27
- package/dist/dataParser/parsers/unknown.cjs +1 -27
- package/dist/dataParser/parsers/unknown.mjs +1 -27
- package/dist/date/create.cjs +0 -25
- package/dist/date/create.mjs +0 -25
- package/dist/date/createOrThrow.cjs +2 -29
- package/dist/date/createOrThrow.mjs +2 -29
- package/dist/date/getters/getDayOfMonth.cjs +0 -30
- package/dist/date/getters/getDayOfMonth.mjs +0 -30
- package/dist/date/getters/getDayOfWeek.cjs +0 -30
- package/dist/date/getters/getDayOfWeek.mjs +0 -30
- package/dist/date/getters/getDayOfYear.cjs +0 -30
- package/dist/date/getters/getDayOfYear.mjs +0 -30
- package/dist/date/getters/getHour.cjs +0 -30
- package/dist/date/getters/getHour.mjs +0 -30
- package/dist/date/getters/getMilliseconds.cjs +0 -30
- package/dist/date/getters/getMilliseconds.mjs +0 -30
- package/dist/date/getters/getMinute.cjs +0 -30
- package/dist/date/getters/getMinute.mjs +0 -30
- package/dist/date/getters/getMonth.cjs +0 -30
- package/dist/date/getters/getMonth.mjs +0 -30
- package/dist/date/getters/getSecond.cjs +0 -30
- package/dist/date/getters/getSecond.mjs +0 -30
- package/dist/date/getters/getWeekOfYear.cjs +0 -30
- package/dist/date/getters/getWeekOfYear.mjs +0 -30
- package/dist/date/getters/getYear.cjs +0 -30
- package/dist/date/getters/getYear.mjs +0 -30
- package/dist/date/index.cjs +15 -15
- package/dist/date/index.mjs +7 -7
- package/dist/date/toTimestamp.cjs +2 -29
- package/dist/date/toTimestamp.mjs +2 -29
- package/dist/either/bool/falsy.cjs +3 -26
- package/dist/either/bool/falsy.mjs +3 -26
- package/dist/either/bool/truthy.cjs +5 -28
- package/dist/either/bool/truthy.mjs +5 -28
- package/dist/either/future/create.cjs +2 -27
- package/dist/either/future/create.mjs +2 -27
- package/dist/either/future/error.cjs +2 -25
- package/dist/either/future/error.mjs +2 -25
- package/dist/either/future/success.cjs +0 -23
- package/dist/either/future/success.mjs +0 -23
- package/dist/either/index.cjs +7 -7
- package/dist/either/index.mjs +3 -3
- package/dist/either/kind.cjs +0 -26
- package/dist/either/kind.mjs +0 -26
- package/dist/either/left/when.cjs +1 -28
- package/dist/either/left/when.mjs +1 -28
- package/dist/either/nullable/empty.cjs +4 -27
- package/dist/either/nullable/empty.mjs +4 -27
- package/dist/either/nullable/filled.cjs +4 -27
- package/dist/either/nullable/filled.mjs +4 -27
- package/dist/either/nullish/empty.cjs +4 -27
- package/dist/either/nullish/empty.mjs +4 -27
- package/dist/either/nullish/filled.cjs +4 -27
- package/dist/either/nullish/filled.mjs +4 -27
- package/dist/either/optional/empty.cjs +0 -23
- package/dist/either/optional/empty.mjs +0 -23
- package/dist/either/optional/filled.cjs +6 -29
- package/dist/either/optional/filled.mjs +6 -29
- package/dist/either/right/asyncPipe.cjs +3 -29
- package/dist/either/right/asyncPipe.mjs +3 -29
- package/dist/either/right/pipe.cjs +2 -28
- package/dist/either/right/pipe.mjs +2 -28
- package/dist/either/right/when.cjs +1 -28
- package/dist/either/right/when.mjs +1 -28
- package/dist/either/whenHasInformation.cjs +2 -28
- package/dist/either/whenHasInformation.mjs +2 -28
- package/dist/generator/asyncReduce.cjs +0 -27
- package/dist/generator/asyncReduce.mjs +0 -27
- package/dist/generator/reduce.cjs +0 -27
- package/dist/generator/reduce.mjs +0 -27
- package/dist/index.cjs +33 -33
- package/dist/index.mjs +33 -33
- package/dist/object/deepDiscriminate.cjs +1 -28
- package/dist/object/deepDiscriminate.mjs +1 -28
- package/dist/object/discriminate.cjs +0 -27
- package/dist/object/discriminate.mjs +0 -27
- package/dist/object/entries.cjs +1 -28
- package/dist/object/entries.mjs +1 -28
- package/dist/object/keys.cjs +1 -28
- package/dist/object/keys.mjs +1 -28
- package/dist/object/values.cjs +1 -28
- package/dist/object/values.mjs +1 -28
- package/dist/pattern/exhaustive.cjs +0 -27
- package/dist/pattern/exhaustive.mjs +0 -27
- package/dist/pattern/index.cjs +2 -2
- package/dist/pattern/index.mjs +1 -1
- package/dist/pattern/match/builder.cjs +2 -28
- package/dist/pattern/match/builder.mjs +2 -28
- package/dist/pattern/otherwise.cjs +1 -28
- package/dist/pattern/otherwise.mjs +1 -28
- package/dist/pattern/result.cjs +0 -27
- package/dist/pattern/result.mjs +0 -27
- package/dist/string/index.cjs +12 -12
- package/dist/string/index.mjs +6 -6
- package/package.json +2 -1
|
@@ -1,36 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
require('../types/timezone.cjs');
|
|
4
|
-
require('../../either/bool/falsy.cjs');
|
|
5
|
-
require('../../either/bool/truthy.cjs');
|
|
6
|
-
require('../../either/bool/base.cjs');
|
|
7
|
-
require('../../either/left/create.cjs');
|
|
8
|
-
require('../../either/left/error.cjs');
|
|
9
|
-
require('../../either/left/fail.cjs');
|
|
10
|
-
require('../../either/kind.cjs');
|
|
11
|
-
require('../../common/stringToBytes.cjs');
|
|
12
|
-
require('../../common/stringToMillisecond.cjs');
|
|
13
|
-
require('../../common/globalStore.cjs');
|
|
14
|
-
require('../../common/builder.cjs');
|
|
15
|
-
require('../../common/override.cjs');
|
|
16
|
-
require('../../either/right/success.cjs');
|
|
17
|
-
require('../../either/right/create.cjs');
|
|
18
|
-
require('../../either/right/ok.cjs');
|
|
19
|
-
require('../../either/future/success.cjs');
|
|
20
|
-
require('../../either/future/error.cjs');
|
|
21
|
-
require('../../either/future/base.cjs');
|
|
22
|
-
require('../../either/nullable/empty.cjs');
|
|
23
|
-
require('../../either/nullable/filled.cjs');
|
|
24
|
-
require('../../either/nullable/base.cjs');
|
|
25
|
-
require('../../either/nullish/empty.cjs');
|
|
26
|
-
require('../../either/nullish/filled.cjs');
|
|
27
|
-
require('../../either/nullish/base.cjs');
|
|
28
|
-
require('../../either/optional/empty.cjs');
|
|
29
|
-
require('../../either/optional/filled.cjs');
|
|
30
|
-
require('../../either/optional/base.cjs');
|
|
31
3
|
var toNative = require('../toNative.cjs');
|
|
32
|
-
require('../toTimestamp.cjs');
|
|
33
|
-
require('../createOrThrow.cjs');
|
|
34
4
|
|
|
35
5
|
function getMinute(input, timezone = "UTC") {
|
|
36
6
|
const nativeDate = toNative.toNative(input);
|
|
@@ -1,34 +1,4 @@
|
|
|
1
|
-
import '../types/timezone.mjs';
|
|
2
|
-
import '../../either/bool/falsy.mjs';
|
|
3
|
-
import '../../either/bool/truthy.mjs';
|
|
4
|
-
import '../../either/bool/base.mjs';
|
|
5
|
-
import '../../either/left/create.mjs';
|
|
6
|
-
import '../../either/left/error.mjs';
|
|
7
|
-
import '../../either/left/fail.mjs';
|
|
8
|
-
import '../../either/kind.mjs';
|
|
9
|
-
import '../../common/stringToBytes.mjs';
|
|
10
|
-
import '../../common/stringToMillisecond.mjs';
|
|
11
|
-
import '../../common/globalStore.mjs';
|
|
12
|
-
import '../../common/builder.mjs';
|
|
13
|
-
import '../../common/override.mjs';
|
|
14
|
-
import '../../either/right/success.mjs';
|
|
15
|
-
import '../../either/right/create.mjs';
|
|
16
|
-
import '../../either/right/ok.mjs';
|
|
17
|
-
import '../../either/future/success.mjs';
|
|
18
|
-
import '../../either/future/error.mjs';
|
|
19
|
-
import '../../either/future/base.mjs';
|
|
20
|
-
import '../../either/nullable/empty.mjs';
|
|
21
|
-
import '../../either/nullable/filled.mjs';
|
|
22
|
-
import '../../either/nullable/base.mjs';
|
|
23
|
-
import '../../either/nullish/empty.mjs';
|
|
24
|
-
import '../../either/nullish/filled.mjs';
|
|
25
|
-
import '../../either/nullish/base.mjs';
|
|
26
|
-
import '../../either/optional/empty.mjs';
|
|
27
|
-
import '../../either/optional/filled.mjs';
|
|
28
|
-
import '../../either/optional/base.mjs';
|
|
29
1
|
import { toNative } from '../toNative.mjs';
|
|
30
|
-
import '../toTimestamp.mjs';
|
|
31
|
-
import '../createOrThrow.mjs';
|
|
32
2
|
|
|
33
3
|
function getMinute(input, timezone = "UTC") {
|
|
34
4
|
const nativeDate = toNative(input);
|
|
@@ -1,36 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
require('../types/timezone.cjs');
|
|
4
|
-
require('../../either/bool/falsy.cjs');
|
|
5
|
-
require('../../either/bool/truthy.cjs');
|
|
6
|
-
require('../../either/bool/base.cjs');
|
|
7
|
-
require('../../either/left/create.cjs');
|
|
8
|
-
require('../../either/left/error.cjs');
|
|
9
|
-
require('../../either/left/fail.cjs');
|
|
10
|
-
require('../../either/kind.cjs');
|
|
11
|
-
require('../../common/stringToBytes.cjs');
|
|
12
|
-
require('../../common/stringToMillisecond.cjs');
|
|
13
|
-
require('../../common/globalStore.cjs');
|
|
14
|
-
require('../../common/builder.cjs');
|
|
15
|
-
require('../../common/override.cjs');
|
|
16
|
-
require('../../either/right/success.cjs');
|
|
17
|
-
require('../../either/right/create.cjs');
|
|
18
|
-
require('../../either/right/ok.cjs');
|
|
19
|
-
require('../../either/future/success.cjs');
|
|
20
|
-
require('../../either/future/error.cjs');
|
|
21
|
-
require('../../either/future/base.cjs');
|
|
22
|
-
require('../../either/nullable/empty.cjs');
|
|
23
|
-
require('../../either/nullable/filled.cjs');
|
|
24
|
-
require('../../either/nullable/base.cjs');
|
|
25
|
-
require('../../either/nullish/empty.cjs');
|
|
26
|
-
require('../../either/nullish/filled.cjs');
|
|
27
|
-
require('../../either/nullish/base.cjs');
|
|
28
|
-
require('../../either/optional/empty.cjs');
|
|
29
|
-
require('../../either/optional/filled.cjs');
|
|
30
|
-
require('../../either/optional/base.cjs');
|
|
31
3
|
var toNative = require('../toNative.cjs');
|
|
32
|
-
require('../toTimestamp.cjs');
|
|
33
|
-
require('../createOrThrow.cjs');
|
|
34
4
|
|
|
35
5
|
function getMonth(input, timezone = "UTC") {
|
|
36
6
|
const nativeDate = toNative.toNative(input);
|
|
@@ -1,34 +1,4 @@
|
|
|
1
|
-
import '../types/timezone.mjs';
|
|
2
|
-
import '../../either/bool/falsy.mjs';
|
|
3
|
-
import '../../either/bool/truthy.mjs';
|
|
4
|
-
import '../../either/bool/base.mjs';
|
|
5
|
-
import '../../either/left/create.mjs';
|
|
6
|
-
import '../../either/left/error.mjs';
|
|
7
|
-
import '../../either/left/fail.mjs';
|
|
8
|
-
import '../../either/kind.mjs';
|
|
9
|
-
import '../../common/stringToBytes.mjs';
|
|
10
|
-
import '../../common/stringToMillisecond.mjs';
|
|
11
|
-
import '../../common/globalStore.mjs';
|
|
12
|
-
import '../../common/builder.mjs';
|
|
13
|
-
import '../../common/override.mjs';
|
|
14
|
-
import '../../either/right/success.mjs';
|
|
15
|
-
import '../../either/right/create.mjs';
|
|
16
|
-
import '../../either/right/ok.mjs';
|
|
17
|
-
import '../../either/future/success.mjs';
|
|
18
|
-
import '../../either/future/error.mjs';
|
|
19
|
-
import '../../either/future/base.mjs';
|
|
20
|
-
import '../../either/nullable/empty.mjs';
|
|
21
|
-
import '../../either/nullable/filled.mjs';
|
|
22
|
-
import '../../either/nullable/base.mjs';
|
|
23
|
-
import '../../either/nullish/empty.mjs';
|
|
24
|
-
import '../../either/nullish/filled.mjs';
|
|
25
|
-
import '../../either/nullish/base.mjs';
|
|
26
|
-
import '../../either/optional/empty.mjs';
|
|
27
|
-
import '../../either/optional/filled.mjs';
|
|
28
|
-
import '../../either/optional/base.mjs';
|
|
29
1
|
import { toNative } from '../toNative.mjs';
|
|
30
|
-
import '../toTimestamp.mjs';
|
|
31
|
-
import '../createOrThrow.mjs';
|
|
32
2
|
|
|
33
3
|
function getMonth(input, timezone = "UTC") {
|
|
34
4
|
const nativeDate = toNative(input);
|
|
@@ -1,36 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
require('../types/timezone.cjs');
|
|
4
|
-
require('../../either/bool/falsy.cjs');
|
|
5
|
-
require('../../either/bool/truthy.cjs');
|
|
6
|
-
require('../../either/bool/base.cjs');
|
|
7
|
-
require('../../either/left/create.cjs');
|
|
8
|
-
require('../../either/left/error.cjs');
|
|
9
|
-
require('../../either/left/fail.cjs');
|
|
10
|
-
require('../../either/kind.cjs');
|
|
11
|
-
require('../../common/stringToBytes.cjs');
|
|
12
|
-
require('../../common/stringToMillisecond.cjs');
|
|
13
|
-
require('../../common/globalStore.cjs');
|
|
14
|
-
require('../../common/builder.cjs');
|
|
15
|
-
require('../../common/override.cjs');
|
|
16
|
-
require('../../either/right/success.cjs');
|
|
17
|
-
require('../../either/right/create.cjs');
|
|
18
|
-
require('../../either/right/ok.cjs');
|
|
19
|
-
require('../../either/future/success.cjs');
|
|
20
|
-
require('../../either/future/error.cjs');
|
|
21
|
-
require('../../either/future/base.cjs');
|
|
22
|
-
require('../../either/nullable/empty.cjs');
|
|
23
|
-
require('../../either/nullable/filled.cjs');
|
|
24
|
-
require('../../either/nullable/base.cjs');
|
|
25
|
-
require('../../either/nullish/empty.cjs');
|
|
26
|
-
require('../../either/nullish/filled.cjs');
|
|
27
|
-
require('../../either/nullish/base.cjs');
|
|
28
|
-
require('../../either/optional/empty.cjs');
|
|
29
|
-
require('../../either/optional/filled.cjs');
|
|
30
|
-
require('../../either/optional/base.cjs');
|
|
31
3
|
var toNative = require('../toNative.cjs');
|
|
32
|
-
require('../toTimestamp.cjs');
|
|
33
|
-
require('../createOrThrow.cjs');
|
|
34
4
|
|
|
35
5
|
function getSecond(input, timezone = "UTC") {
|
|
36
6
|
const nativeDate = toNative.toNative(input);
|
|
@@ -1,34 +1,4 @@
|
|
|
1
|
-
import '../types/timezone.mjs';
|
|
2
|
-
import '../../either/bool/falsy.mjs';
|
|
3
|
-
import '../../either/bool/truthy.mjs';
|
|
4
|
-
import '../../either/bool/base.mjs';
|
|
5
|
-
import '../../either/left/create.mjs';
|
|
6
|
-
import '../../either/left/error.mjs';
|
|
7
|
-
import '../../either/left/fail.mjs';
|
|
8
|
-
import '../../either/kind.mjs';
|
|
9
|
-
import '../../common/stringToBytes.mjs';
|
|
10
|
-
import '../../common/stringToMillisecond.mjs';
|
|
11
|
-
import '../../common/globalStore.mjs';
|
|
12
|
-
import '../../common/builder.mjs';
|
|
13
|
-
import '../../common/override.mjs';
|
|
14
|
-
import '../../either/right/success.mjs';
|
|
15
|
-
import '../../either/right/create.mjs';
|
|
16
|
-
import '../../either/right/ok.mjs';
|
|
17
|
-
import '../../either/future/success.mjs';
|
|
18
|
-
import '../../either/future/error.mjs';
|
|
19
|
-
import '../../either/future/base.mjs';
|
|
20
|
-
import '../../either/nullable/empty.mjs';
|
|
21
|
-
import '../../either/nullable/filled.mjs';
|
|
22
|
-
import '../../either/nullable/base.mjs';
|
|
23
|
-
import '../../either/nullish/empty.mjs';
|
|
24
|
-
import '../../either/nullish/filled.mjs';
|
|
25
|
-
import '../../either/nullish/base.mjs';
|
|
26
|
-
import '../../either/optional/empty.mjs';
|
|
27
|
-
import '../../either/optional/filled.mjs';
|
|
28
|
-
import '../../either/optional/base.mjs';
|
|
29
1
|
import { toNative } from '../toNative.mjs';
|
|
30
|
-
import '../toTimestamp.mjs';
|
|
31
|
-
import '../createOrThrow.mjs';
|
|
32
2
|
|
|
33
3
|
function getSecond(input, timezone = "UTC") {
|
|
34
4
|
const nativeDate = toNative(input);
|
|
@@ -1,36 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
require('../types/timezone.cjs');
|
|
4
|
-
require('../../either/bool/falsy.cjs');
|
|
5
|
-
require('../../either/bool/truthy.cjs');
|
|
6
|
-
require('../../either/bool/base.cjs');
|
|
7
|
-
require('../../either/left/create.cjs');
|
|
8
|
-
require('../../either/left/error.cjs');
|
|
9
|
-
require('../../either/left/fail.cjs');
|
|
10
|
-
require('../../either/kind.cjs');
|
|
11
|
-
require('../../common/stringToBytes.cjs');
|
|
12
|
-
require('../../common/stringToMillisecond.cjs');
|
|
13
|
-
require('../../common/globalStore.cjs');
|
|
14
|
-
require('../../common/builder.cjs');
|
|
15
|
-
require('../../common/override.cjs');
|
|
16
|
-
require('../../either/right/success.cjs');
|
|
17
|
-
require('../../either/right/create.cjs');
|
|
18
|
-
require('../../either/right/ok.cjs');
|
|
19
|
-
require('../../either/future/success.cjs');
|
|
20
|
-
require('../../either/future/error.cjs');
|
|
21
|
-
require('../../either/future/base.cjs');
|
|
22
|
-
require('../../either/nullable/empty.cjs');
|
|
23
|
-
require('../../either/nullable/filled.cjs');
|
|
24
|
-
require('../../either/nullable/base.cjs');
|
|
25
|
-
require('../../either/nullish/empty.cjs');
|
|
26
|
-
require('../../either/nullish/filled.cjs');
|
|
27
|
-
require('../../either/nullish/base.cjs');
|
|
28
|
-
require('../../either/optional/empty.cjs');
|
|
29
|
-
require('../../either/optional/filled.cjs');
|
|
30
|
-
require('../../either/optional/base.cjs');
|
|
31
3
|
var toNative = require('../toNative.cjs');
|
|
32
|
-
require('../toTimestamp.cjs');
|
|
33
|
-
require('../createOrThrow.cjs');
|
|
34
4
|
|
|
35
5
|
function getWeekOfYear(input, timezone = "UTC") {
|
|
36
6
|
const nativeDate = toNative.toNative(input);
|
|
@@ -1,34 +1,4 @@
|
|
|
1
|
-
import '../types/timezone.mjs';
|
|
2
|
-
import '../../either/bool/falsy.mjs';
|
|
3
|
-
import '../../either/bool/truthy.mjs';
|
|
4
|
-
import '../../either/bool/base.mjs';
|
|
5
|
-
import '../../either/left/create.mjs';
|
|
6
|
-
import '../../either/left/error.mjs';
|
|
7
|
-
import '../../either/left/fail.mjs';
|
|
8
|
-
import '../../either/kind.mjs';
|
|
9
|
-
import '../../common/stringToBytes.mjs';
|
|
10
|
-
import '../../common/stringToMillisecond.mjs';
|
|
11
|
-
import '../../common/globalStore.mjs';
|
|
12
|
-
import '../../common/builder.mjs';
|
|
13
|
-
import '../../common/override.mjs';
|
|
14
|
-
import '../../either/right/success.mjs';
|
|
15
|
-
import '../../either/right/create.mjs';
|
|
16
|
-
import '../../either/right/ok.mjs';
|
|
17
|
-
import '../../either/future/success.mjs';
|
|
18
|
-
import '../../either/future/error.mjs';
|
|
19
|
-
import '../../either/future/base.mjs';
|
|
20
|
-
import '../../either/nullable/empty.mjs';
|
|
21
|
-
import '../../either/nullable/filled.mjs';
|
|
22
|
-
import '../../either/nullable/base.mjs';
|
|
23
|
-
import '../../either/nullish/empty.mjs';
|
|
24
|
-
import '../../either/nullish/filled.mjs';
|
|
25
|
-
import '../../either/nullish/base.mjs';
|
|
26
|
-
import '../../either/optional/empty.mjs';
|
|
27
|
-
import '../../either/optional/filled.mjs';
|
|
28
|
-
import '../../either/optional/base.mjs';
|
|
29
1
|
import { toNative } from '../toNative.mjs';
|
|
30
|
-
import '../toTimestamp.mjs';
|
|
31
|
-
import '../createOrThrow.mjs';
|
|
32
2
|
|
|
33
3
|
function getWeekOfYear(input, timezone = "UTC") {
|
|
34
4
|
const nativeDate = toNative(input);
|
|
@@ -1,36 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
require('../types/timezone.cjs');
|
|
4
|
-
require('../../either/bool/falsy.cjs');
|
|
5
|
-
require('../../either/bool/truthy.cjs');
|
|
6
|
-
require('../../either/bool/base.cjs');
|
|
7
|
-
require('../../either/left/create.cjs');
|
|
8
|
-
require('../../either/left/error.cjs');
|
|
9
|
-
require('../../either/left/fail.cjs');
|
|
10
|
-
require('../../either/kind.cjs');
|
|
11
|
-
require('../../common/stringToBytes.cjs');
|
|
12
|
-
require('../../common/stringToMillisecond.cjs');
|
|
13
|
-
require('../../common/globalStore.cjs');
|
|
14
|
-
require('../../common/builder.cjs');
|
|
15
|
-
require('../../common/override.cjs');
|
|
16
|
-
require('../../either/right/success.cjs');
|
|
17
|
-
require('../../either/right/create.cjs');
|
|
18
|
-
require('../../either/right/ok.cjs');
|
|
19
|
-
require('../../either/future/success.cjs');
|
|
20
|
-
require('../../either/future/error.cjs');
|
|
21
|
-
require('../../either/future/base.cjs');
|
|
22
|
-
require('../../either/nullable/empty.cjs');
|
|
23
|
-
require('../../either/nullable/filled.cjs');
|
|
24
|
-
require('../../either/nullable/base.cjs');
|
|
25
|
-
require('../../either/nullish/empty.cjs');
|
|
26
|
-
require('../../either/nullish/filled.cjs');
|
|
27
|
-
require('../../either/nullish/base.cjs');
|
|
28
|
-
require('../../either/optional/empty.cjs');
|
|
29
|
-
require('../../either/optional/filled.cjs');
|
|
30
|
-
require('../../either/optional/base.cjs');
|
|
31
3
|
var toNative = require('../toNative.cjs');
|
|
32
|
-
require('../toTimestamp.cjs');
|
|
33
|
-
require('../createOrThrow.cjs');
|
|
34
4
|
|
|
35
5
|
function getYear(input, timezone = "UTC") {
|
|
36
6
|
const nativeDate = toNative.toNative(input);
|
|
@@ -1,34 +1,4 @@
|
|
|
1
|
-
import '../types/timezone.mjs';
|
|
2
|
-
import '../../either/bool/falsy.mjs';
|
|
3
|
-
import '../../either/bool/truthy.mjs';
|
|
4
|
-
import '../../either/bool/base.mjs';
|
|
5
|
-
import '../../either/left/create.mjs';
|
|
6
|
-
import '../../either/left/error.mjs';
|
|
7
|
-
import '../../either/left/fail.mjs';
|
|
8
|
-
import '../../either/kind.mjs';
|
|
9
|
-
import '../../common/stringToBytes.mjs';
|
|
10
|
-
import '../../common/stringToMillisecond.mjs';
|
|
11
|
-
import '../../common/globalStore.mjs';
|
|
12
|
-
import '../../common/builder.mjs';
|
|
13
|
-
import '../../common/override.mjs';
|
|
14
|
-
import '../../either/right/success.mjs';
|
|
15
|
-
import '../../either/right/create.mjs';
|
|
16
|
-
import '../../either/right/ok.mjs';
|
|
17
|
-
import '../../either/future/success.mjs';
|
|
18
|
-
import '../../either/future/error.mjs';
|
|
19
|
-
import '../../either/future/base.mjs';
|
|
20
|
-
import '../../either/nullable/empty.mjs';
|
|
21
|
-
import '../../either/nullable/filled.mjs';
|
|
22
|
-
import '../../either/nullable/base.mjs';
|
|
23
|
-
import '../../either/nullish/empty.mjs';
|
|
24
|
-
import '../../either/nullish/filled.mjs';
|
|
25
|
-
import '../../either/nullish/base.mjs';
|
|
26
|
-
import '../../either/optional/empty.mjs';
|
|
27
|
-
import '../../either/optional/filled.mjs';
|
|
28
|
-
import '../../either/optional/base.mjs';
|
|
29
1
|
import { toNative } from '../toNative.mjs';
|
|
30
|
-
import '../toTimestamp.mjs';
|
|
31
|
-
import '../createOrThrow.mjs';
|
|
32
2
|
|
|
33
3
|
function getYear(input, timezone = "UTC") {
|
|
34
4
|
const nativeDate = toNative(input);
|
package/dist/date/index.cjs
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var timezone = require('./types/timezone.cjs');
|
|
4
3
|
var constants = require('./constants.cjs');
|
|
5
4
|
var create = require('./create.cjs');
|
|
6
5
|
var now = require('./now.cjs');
|
|
@@ -9,6 +8,13 @@ var yesterday = require('./yesterday.cjs');
|
|
|
9
8
|
var tomorrow = require('./tomorrow.cjs');
|
|
10
9
|
var toNative = require('./toNative.cjs');
|
|
11
10
|
var toTimestamp = require('./toTimestamp.cjs');
|
|
11
|
+
var toISOString = require('./toISOString.cjs');
|
|
12
|
+
var closestTo = require('./closestTo.cjs');
|
|
13
|
+
var each = require('./each.cjs');
|
|
14
|
+
var createOrThrow = require('./createOrThrow.cjs');
|
|
15
|
+
var round = require('./round.cjs');
|
|
16
|
+
var isSafeTimestamp = require('./isSafeTimestamp.cjs');
|
|
17
|
+
var timezone = require('./types/timezone.cjs');
|
|
12
18
|
var getDayOfMonth = require('./getters/getDayOfMonth.cjs');
|
|
13
19
|
var getDayOfWeek = require('./getters/getDayOfWeek.cjs');
|
|
14
20
|
var getFirstDayOfWeek = require('./getters/getFirstDayOfWeek.cjs');
|
|
@@ -23,7 +29,6 @@ var getSecond = require('./getters/getSecond.cjs');
|
|
|
23
29
|
var getYear = require('./getters/getYear.cjs');
|
|
24
30
|
var getDayOfYear = require('./getters/getDayOfYear.cjs');
|
|
25
31
|
var getWeekOfYear = require('./getters/getWeekOfYear.cjs');
|
|
26
|
-
var toISOString = require('./toISOString.cjs');
|
|
27
32
|
var addDays = require('./operators/addDays.cjs');
|
|
28
33
|
var addHours = require('./operators/addHours.cjs');
|
|
29
34
|
var addMilliseconds = require('./operators/addMilliseconds.cjs');
|
|
@@ -46,15 +51,9 @@ var greater = require('./operators/greater.cjs');
|
|
|
46
51
|
var greaterThan = require('./operators/greaterThan.cjs');
|
|
47
52
|
var less = require('./operators/less.cjs');
|
|
48
53
|
var lessThan = require('./operators/lessThan.cjs');
|
|
49
|
-
var closestTo = require('./closestTo.cjs');
|
|
50
|
-
var each = require('./each.cjs');
|
|
51
|
-
var createOrThrow = require('./createOrThrow.cjs');
|
|
52
|
-
var round = require('./round.cjs');
|
|
53
|
-
var isSafeTimestamp = require('./isSafeTimestamp.cjs');
|
|
54
54
|
|
|
55
55
|
|
|
56
56
|
|
|
57
|
-
exports.timezone = timezone.timezone;
|
|
58
57
|
exports.daysInOneWeek = constants.daysInOneWeek;
|
|
59
58
|
exports.hoursInOneDay = constants.hoursInOneDay;
|
|
60
59
|
exports.maxTimestamp = constants.maxTimestamp;
|
|
@@ -76,6 +75,14 @@ exports.tomorrow = tomorrow.tomorrow;
|
|
|
76
75
|
exports.toNative = toNative.toNative;
|
|
77
76
|
exports.InvalidTheDateError = toTimestamp.InvalidTheDateError;
|
|
78
77
|
exports.toTimestamp = toTimestamp.toTimestamp;
|
|
78
|
+
exports.toISOString = toISOString.toISOString;
|
|
79
|
+
exports.closestTo = closestTo.closestTo;
|
|
80
|
+
exports.each = each.each;
|
|
81
|
+
exports.CreateTheDateError = createOrThrow.CreateTheDateError;
|
|
82
|
+
exports.createOrThrow = createOrThrow.createOrThrow;
|
|
83
|
+
exports.round = round.round;
|
|
84
|
+
exports.isSafeTimestamp = isSafeTimestamp.isSafeTimestamp;
|
|
85
|
+
exports.timezone = timezone.timezone;
|
|
79
86
|
exports.getDayOfMonth = getDayOfMonth.getDayOfMonth;
|
|
80
87
|
exports.getDayOfWeek = getDayOfWeek.getDayOfWeek;
|
|
81
88
|
exports.getFirstDayOfWeek = getFirstDayOfWeek.getFirstDayOfWeek;
|
|
@@ -90,7 +97,6 @@ exports.getSecond = getSecond.getSecond;
|
|
|
90
97
|
exports.getYear = getYear.getYear;
|
|
91
98
|
exports.getDayOfYear = getDayOfYear.getDayOfYear;
|
|
92
99
|
exports.getWeekOfYear = getWeekOfYear.getWeekOfYear;
|
|
93
|
-
exports.toISOString = toISOString.toISOString;
|
|
94
100
|
exports.addDays = addDays.addDays;
|
|
95
101
|
exports.addHours = addHours.addHours;
|
|
96
102
|
exports.addMilliseconds = addMilliseconds.addMilliseconds;
|
|
@@ -113,9 +119,3 @@ exports.greater = greater.greater;
|
|
|
113
119
|
exports.greaterThan = greaterThan.greaterThan;
|
|
114
120
|
exports.less = less.less;
|
|
115
121
|
exports.lessThan = lessThan.lessThan;
|
|
116
|
-
exports.closestTo = closestTo.closestTo;
|
|
117
|
-
exports.each = each.each;
|
|
118
|
-
exports.CreateTheDateError = createOrThrow.CreateTheDateError;
|
|
119
|
-
exports.createOrThrow = createOrThrow.createOrThrow;
|
|
120
|
-
exports.round = round.round;
|
|
121
|
-
exports.isSafeTimestamp = isSafeTimestamp.isSafeTimestamp;
|
package/dist/date/index.mjs
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export { timezone } from './types/timezone.mjs';
|
|
2
1
|
export { daysInOneWeek, hoursInOneDay, maxTimestamp, millisecondInOneHour, millisecondInOneMinute, millisecondInOneWeek, millisecondsInOneDay, millisecondsInOneSecond, minTimestamp, minutesInOneHour, monthtsInOneYear, secondsInOneMinute, theDateRegex } from './constants.mjs';
|
|
3
2
|
export { create } from './create.mjs';
|
|
4
3
|
export { now } from './now.mjs';
|
|
@@ -7,6 +6,13 @@ export { yesterday } from './yesterday.mjs';
|
|
|
7
6
|
export { tomorrow } from './tomorrow.mjs';
|
|
8
7
|
export { toNative } from './toNative.mjs';
|
|
9
8
|
export { InvalidTheDateError, toTimestamp } from './toTimestamp.mjs';
|
|
9
|
+
export { toISOString } from './toISOString.mjs';
|
|
10
|
+
export { closestTo } from './closestTo.mjs';
|
|
11
|
+
export { each } from './each.mjs';
|
|
12
|
+
export { CreateTheDateError, createOrThrow } from './createOrThrow.mjs';
|
|
13
|
+
export { round } from './round.mjs';
|
|
14
|
+
export { isSafeTimestamp } from './isSafeTimestamp.mjs';
|
|
15
|
+
export { timezone } from './types/timezone.mjs';
|
|
10
16
|
export { getDayOfMonth } from './getters/getDayOfMonth.mjs';
|
|
11
17
|
export { getDayOfWeek } from './getters/getDayOfWeek.mjs';
|
|
12
18
|
export { getFirstDayOfWeek } from './getters/getFirstDayOfWeek.mjs';
|
|
@@ -21,7 +27,6 @@ export { getSecond } from './getters/getSecond.mjs';
|
|
|
21
27
|
export { getYear } from './getters/getYear.mjs';
|
|
22
28
|
export { getDayOfYear } from './getters/getDayOfYear.mjs';
|
|
23
29
|
export { getWeekOfYear } from './getters/getWeekOfYear.mjs';
|
|
24
|
-
export { toISOString } from './toISOString.mjs';
|
|
25
30
|
export { addDays } from './operators/addDays.mjs';
|
|
26
31
|
export { addHours } from './operators/addHours.mjs';
|
|
27
32
|
export { addMilliseconds } from './operators/addMilliseconds.mjs';
|
|
@@ -44,8 +49,3 @@ export { greater } from './operators/greater.mjs';
|
|
|
44
49
|
export { greaterThan } from './operators/greaterThan.mjs';
|
|
45
50
|
export { less } from './operators/less.mjs';
|
|
46
51
|
export { lessThan } from './operators/lessThan.mjs';
|
|
47
|
-
export { closestTo } from './closestTo.mjs';
|
|
48
|
-
export { each } from './each.mjs';
|
|
49
|
-
export { CreateTheDateError, createOrThrow } from './createOrThrow.mjs';
|
|
50
|
-
export { round } from './round.mjs';
|
|
51
|
-
export { isSafeTimestamp } from './isSafeTimestamp.mjs';
|
|
@@ -1,36 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var kind = require('../common/kind.cjs');
|
|
4
|
-
require('../common/stringToBytes.cjs');
|
|
5
|
-
require('../common/stringToMillisecond.cjs');
|
|
6
|
-
require('../common/globalStore.cjs');
|
|
7
|
-
require('../common/builder.cjs');
|
|
8
|
-
require('../either/bool/falsy.cjs');
|
|
9
|
-
require('../either/bool/truthy.cjs');
|
|
10
|
-
require('../either/bool/base.cjs');
|
|
11
|
-
require('../either/left/create.cjs');
|
|
12
|
-
require('../either/left/error.cjs');
|
|
13
|
-
require('../either/left/fail.cjs');
|
|
14
|
-
require('../either/kind.cjs');
|
|
15
|
-
require('../either/right/success.cjs');
|
|
16
|
-
require('../either/right/create.cjs');
|
|
17
|
-
require('../either/right/ok.cjs');
|
|
18
|
-
require('../either/future/success.cjs');
|
|
19
|
-
require('../either/future/error.cjs');
|
|
20
|
-
require('../either/future/base.cjs');
|
|
21
|
-
require('../either/nullable/empty.cjs');
|
|
22
|
-
require('../either/nullable/filled.cjs');
|
|
23
|
-
require('../either/nullable/base.cjs');
|
|
24
|
-
require('../either/nullish/empty.cjs');
|
|
25
|
-
require('../either/nullish/filled.cjs');
|
|
26
|
-
require('../either/nullish/base.cjs');
|
|
27
|
-
require('../either/optional/empty.cjs');
|
|
28
|
-
require('../either/optional/filled.cjs');
|
|
29
|
-
require('../either/optional/base.cjs');
|
|
30
|
-
require('../common/override.cjs');
|
|
31
|
-
var errorKindNamespace = require('../common/errorKindNamespace.cjs');
|
|
32
3
|
var constants = require('./constants.cjs');
|
|
33
4
|
var isSafeTimestamp = require('./isSafeTimestamp.cjs');
|
|
5
|
+
var kind = require('../common/kind.cjs');
|
|
6
|
+
var errorKindNamespace = require('../common/errorKindNamespace.cjs');
|
|
34
7
|
|
|
35
8
|
class InvalidTheDateError extends kind.kindHeritage("invalid-the-Date-error", errorKindNamespace.createErrorKind("invalid-the-Date-error"), Error) {
|
|
36
9
|
theDate;
|
|
@@ -1,34 +1,7 @@
|
|
|
1
|
-
import { kindHeritage } from '../common/kind.mjs';
|
|
2
|
-
import '../common/stringToBytes.mjs';
|
|
3
|
-
import '../common/stringToMillisecond.mjs';
|
|
4
|
-
import '../common/globalStore.mjs';
|
|
5
|
-
import '../common/builder.mjs';
|
|
6
|
-
import '../either/bool/falsy.mjs';
|
|
7
|
-
import '../either/bool/truthy.mjs';
|
|
8
|
-
import '../either/bool/base.mjs';
|
|
9
|
-
import '../either/left/create.mjs';
|
|
10
|
-
import '../either/left/error.mjs';
|
|
11
|
-
import '../either/left/fail.mjs';
|
|
12
|
-
import '../either/kind.mjs';
|
|
13
|
-
import '../either/right/success.mjs';
|
|
14
|
-
import '../either/right/create.mjs';
|
|
15
|
-
import '../either/right/ok.mjs';
|
|
16
|
-
import '../either/future/success.mjs';
|
|
17
|
-
import '../either/future/error.mjs';
|
|
18
|
-
import '../either/future/base.mjs';
|
|
19
|
-
import '../either/nullable/empty.mjs';
|
|
20
|
-
import '../either/nullable/filled.mjs';
|
|
21
|
-
import '../either/nullable/base.mjs';
|
|
22
|
-
import '../either/nullish/empty.mjs';
|
|
23
|
-
import '../either/nullish/filled.mjs';
|
|
24
|
-
import '../either/nullish/base.mjs';
|
|
25
|
-
import '../either/optional/empty.mjs';
|
|
26
|
-
import '../either/optional/filled.mjs';
|
|
27
|
-
import '../either/optional/base.mjs';
|
|
28
|
-
import '../common/override.mjs';
|
|
29
|
-
import { createErrorKind } from '../common/errorKindNamespace.mjs';
|
|
30
1
|
import { theDateRegex } from './constants.mjs';
|
|
31
2
|
import { isSafeTimestamp } from './isSafeTimestamp.mjs';
|
|
3
|
+
import { kindHeritage } from '../common/kind.mjs';
|
|
4
|
+
import { createErrorKind } from '../common/errorKindNamespace.mjs';
|
|
32
5
|
|
|
33
6
|
class InvalidTheDateError extends kindHeritage("invalid-the-Date-error", createErrorKind("invalid-the-Date-error"), Error) {
|
|
34
7
|
theDate;
|
|
@@ -1,35 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
require('
|
|
4
|
-
require('../../common/stringToMillisecond.cjs');
|
|
5
|
-
var unwrap = require('../../common/unwrap.cjs');
|
|
6
|
-
require('../../common/globalStore.cjs');
|
|
7
|
-
require('../../common/builder.cjs');
|
|
8
|
-
var create$1 = require('./create.cjs');
|
|
9
|
-
require('./truthy.cjs');
|
|
3
|
+
var kind = require('../kind.cjs');
|
|
10
4
|
var base = require('./base.cjs');
|
|
5
|
+
var create$1 = require('./create.cjs');
|
|
11
6
|
var create = require('../left/create.cjs');
|
|
12
|
-
require('../left/error.cjs');
|
|
13
|
-
require('../left/fail.cjs');
|
|
14
7
|
var is = require('../left/is.cjs');
|
|
15
|
-
require('../right/success.cjs');
|
|
16
8
|
var is$1 = require('../right/is.cjs');
|
|
17
|
-
require('
|
|
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');
|
|
9
|
+
var unwrap = require('../../common/unwrap.cjs');
|
|
33
10
|
|
|
34
11
|
const eitherBoolFalsyKind = kind.createEitherKind("bool-falsy");
|
|
35
12
|
function boolFalsy(value = undefined) {
|
|
@@ -1,33 +1,10 @@
|
|
|
1
|
-
import '
|
|
2
|
-
import '../../common/stringToMillisecond.mjs';
|
|
3
|
-
import { unwrap } from '../../common/unwrap.mjs';
|
|
4
|
-
import '../../common/globalStore.mjs';
|
|
5
|
-
import '../../common/builder.mjs';
|
|
6
|
-
import { bool } from './create.mjs';
|
|
7
|
-
import './truthy.mjs';
|
|
1
|
+
import { createEitherKind } from '../kind.mjs';
|
|
8
2
|
import { eitherBoolKind } from './base.mjs';
|
|
3
|
+
import { bool } from './create.mjs';
|
|
9
4
|
import { left } from '../left/create.mjs';
|
|
10
|
-
import '../left/error.mjs';
|
|
11
|
-
import '../left/fail.mjs';
|
|
12
5
|
import { isLeft } from '../left/is.mjs';
|
|
13
|
-
import '../right/success.mjs';
|
|
14
6
|
import { isRight } from '../right/is.mjs';
|
|
15
|
-
import '
|
|
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';
|
|
7
|
+
import { unwrap } from '../../common/unwrap.mjs';
|
|
31
8
|
|
|
32
9
|
const eitherBoolFalsyKind = createEitherKind("bool-falsy");
|
|
33
10
|
function boolFalsy(value = undefined) {
|