@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,7 @@
|
|
|
1
|
-
import '../../../common/stringToBytes.mjs';
|
|
2
|
-
import '../../../common/stringToMillisecond.mjs';
|
|
3
|
-
import '../../../common/globalStore.mjs';
|
|
4
|
-
import '../../../common/builder.mjs';
|
|
5
|
-
import '../../../either/bool/falsy.mjs';
|
|
6
|
-
import '../../../either/bool/truthy.mjs';
|
|
7
|
-
import '../../../either/bool/base.mjs';
|
|
8
|
-
import '../../../either/left/create.mjs';
|
|
9
|
-
import '../../../either/left/error.mjs';
|
|
10
|
-
import '../../../either/left/fail.mjs';
|
|
11
|
-
import '../../../either/kind.mjs';
|
|
12
|
-
import '../../../either/right/success.mjs';
|
|
13
|
-
import '../../../either/right/create.mjs';
|
|
14
|
-
import '../../../either/right/ok.mjs';
|
|
15
|
-
import '../../../either/future/success.mjs';
|
|
16
|
-
import '../../../either/future/error.mjs';
|
|
17
|
-
import '../../../either/future/base.mjs';
|
|
18
|
-
import '../../../either/nullable/empty.mjs';
|
|
19
|
-
import '../../../either/nullable/filled.mjs';
|
|
20
|
-
import '../../../either/nullable/base.mjs';
|
|
21
|
-
import '../../../either/nullish/empty.mjs';
|
|
22
|
-
import '../../../either/nullish/filled.mjs';
|
|
23
|
-
import '../../../either/nullish/base.mjs';
|
|
24
|
-
import '../../../either/optional/empty.mjs';
|
|
25
|
-
import '../../../either/optional/filled.mjs';
|
|
26
|
-
import '../../../either/optional/base.mjs';
|
|
27
|
-
import { createOverride } from '../../../common/override.mjs';
|
|
28
1
|
import { dataParserInit } from '../../base.mjs';
|
|
29
2
|
import { SymbolDataParserErrorIssue } from '../../error.mjs';
|
|
30
3
|
import { createDataParserKind } from '../../kind.mjs';
|
|
31
|
-
|
|
32
|
-
export { checkerNumberMin, checkerNumberMinKind } from './checkers/min.mjs';
|
|
33
|
-
export { checkerNumberMax, checkerNumberMaxKind } from './checkers/max.mjs';
|
|
4
|
+
import { createOverride } from '../../../common/override.mjs';
|
|
34
5
|
|
|
35
6
|
const numberKind = createDataParserKind("number");
|
|
36
7
|
function number(definition) {
|
|
@@ -1,41 +1,15 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var entries = require('../../../object/entries.cjs');
|
|
4
|
-
var pipe = require('../../../common/pipe.cjs');
|
|
5
|
-
require('../../../common/stringToBytes.cjs');
|
|
6
|
-
require('../../../common/stringToMillisecond.cjs');
|
|
7
|
-
var forward = require('../../../common/forward.cjs');
|
|
8
|
-
var memo = require('../../../common/memo.cjs');
|
|
9
|
-
var filter = require('../../../array/filter.cjs');
|
|
10
|
-
var map = require('../../../array/map.cjs');
|
|
11
|
-
require('../../../common/globalStore.cjs');
|
|
12
|
-
require('../../../common/builder.cjs');
|
|
13
|
-
require('../../../either/bool/falsy.cjs');
|
|
14
|
-
require('../../../either/bool/truthy.cjs');
|
|
15
|
-
require('../../../either/bool/base.cjs');
|
|
16
|
-
require('../../../either/left/create.cjs');
|
|
17
|
-
require('../../../either/left/error.cjs');
|
|
18
|
-
require('../../../either/left/fail.cjs');
|
|
19
|
-
require('../../../either/kind.cjs');
|
|
20
|
-
require('../../../either/right/success.cjs');
|
|
21
|
-
require('../../../either/right/create.cjs');
|
|
22
|
-
require('../../../either/right/ok.cjs');
|
|
23
|
-
require('../../../either/future/success.cjs');
|
|
24
|
-
require('../../../either/future/error.cjs');
|
|
25
|
-
require('../../../either/future/base.cjs');
|
|
26
|
-
require('../../../either/nullable/empty.cjs');
|
|
27
|
-
require('../../../either/nullable/filled.cjs');
|
|
28
|
-
require('../../../either/nullable/base.cjs');
|
|
29
|
-
require('../../../either/nullish/empty.cjs');
|
|
30
|
-
require('../../../either/nullish/filled.cjs');
|
|
31
|
-
require('../../../either/nullish/base.cjs');
|
|
32
|
-
require('../../../either/optional/empty.cjs');
|
|
33
|
-
require('../../../either/optional/filled.cjs');
|
|
34
|
-
require('../../../either/optional/base.cjs');
|
|
35
|
-
var override = require('../../../common/override.cjs');
|
|
36
3
|
var base = require('../../base.cjs');
|
|
37
4
|
var error = require('../../error.cjs');
|
|
38
5
|
var kind = require('../../kind.cjs');
|
|
6
|
+
var memo = require('../../../common/memo.cjs');
|
|
7
|
+
var forward = require('../../../common/forward.cjs');
|
|
8
|
+
var pipe = require('../../../common/pipe.cjs');
|
|
9
|
+
var map = require('../../../array/map.cjs');
|
|
10
|
+
var filter = require('../../../array/filter.cjs');
|
|
11
|
+
var entries = require('../../../object/entries.cjs');
|
|
12
|
+
var override = require('../../../common/override.cjs');
|
|
39
13
|
|
|
40
14
|
const objectKind = kind.createDataParserKind("object");
|
|
41
15
|
function object(shape, definition) {
|
|
@@ -1,39 +1,13 @@
|
|
|
1
|
-
import { entries } from '../../../object/entries.mjs';
|
|
2
|
-
import { pipe } from '../../../common/pipe.mjs';
|
|
3
|
-
import '../../../common/stringToBytes.mjs';
|
|
4
|
-
import '../../../common/stringToMillisecond.mjs';
|
|
5
|
-
import { forward } from '../../../common/forward.mjs';
|
|
6
|
-
import { memo } from '../../../common/memo.mjs';
|
|
7
|
-
import { filter } from '../../../array/filter.mjs';
|
|
8
|
-
import { map } from '../../../array/map.mjs';
|
|
9
|
-
import '../../../common/globalStore.mjs';
|
|
10
|
-
import '../../../common/builder.mjs';
|
|
11
|
-
import '../../../either/bool/falsy.mjs';
|
|
12
|
-
import '../../../either/bool/truthy.mjs';
|
|
13
|
-
import '../../../either/bool/base.mjs';
|
|
14
|
-
import '../../../either/left/create.mjs';
|
|
15
|
-
import '../../../either/left/error.mjs';
|
|
16
|
-
import '../../../either/left/fail.mjs';
|
|
17
|
-
import '../../../either/kind.mjs';
|
|
18
|
-
import '../../../either/right/success.mjs';
|
|
19
|
-
import '../../../either/right/create.mjs';
|
|
20
|
-
import '../../../either/right/ok.mjs';
|
|
21
|
-
import '../../../either/future/success.mjs';
|
|
22
|
-
import '../../../either/future/error.mjs';
|
|
23
|
-
import '../../../either/future/base.mjs';
|
|
24
|
-
import '../../../either/nullable/empty.mjs';
|
|
25
|
-
import '../../../either/nullable/filled.mjs';
|
|
26
|
-
import '../../../either/nullable/base.mjs';
|
|
27
|
-
import '../../../either/nullish/empty.mjs';
|
|
28
|
-
import '../../../either/nullish/filled.mjs';
|
|
29
|
-
import '../../../either/nullish/base.mjs';
|
|
30
|
-
import '../../../either/optional/empty.mjs';
|
|
31
|
-
import '../../../either/optional/filled.mjs';
|
|
32
|
-
import '../../../either/optional/base.mjs';
|
|
33
|
-
import { createOverride } from '../../../common/override.mjs';
|
|
34
1
|
import { dataParserInit, SymbolDataParserError, dataParserKind } from '../../base.mjs';
|
|
35
2
|
import { SymbolDataParserErrorIssue, setErrorPath, popErrorPath } from '../../error.mjs';
|
|
36
3
|
import { createDataParserKind } from '../../kind.mjs';
|
|
4
|
+
import { memo } from '../../../common/memo.mjs';
|
|
5
|
+
import { forward } from '../../../common/forward.mjs';
|
|
6
|
+
import { pipe } from '../../../common/pipe.mjs';
|
|
7
|
+
import { map } from '../../../array/map.mjs';
|
|
8
|
+
import { filter } from '../../../array/filter.mjs';
|
|
9
|
+
import { entries } from '../../../object/entries.mjs';
|
|
10
|
+
import { createOverride } from '../../../common/override.mjs';
|
|
37
11
|
|
|
38
12
|
const objectKind = createDataParserKind("object");
|
|
39
13
|
function object(shape, definition) {
|
|
@@ -1,38 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var index = require('./index.cjs');
|
|
4
|
-
var entries = require('../../../object/entries.cjs');
|
|
5
4
|
var pipe = require('../../../common/pipe.cjs');
|
|
6
|
-
require('../../../common/stringToBytes.cjs');
|
|
7
|
-
require('../../../common/stringToMillisecond.cjs');
|
|
8
5
|
var filter = require('../../../array/filter.cjs');
|
|
9
|
-
var fromEntries = require('../../../object/fromEntries.cjs');
|
|
10
|
-
require('../../../common/globalStore.cjs');
|
|
11
|
-
require('../../../common/builder.cjs');
|
|
12
|
-
require('../../../either/bool/falsy.cjs');
|
|
13
|
-
require('../../../either/bool/truthy.cjs');
|
|
14
|
-
require('../../../either/bool/base.cjs');
|
|
15
|
-
require('../../../either/left/create.cjs');
|
|
16
|
-
require('../../../either/left/error.cjs');
|
|
17
|
-
require('../../../either/left/fail.cjs');
|
|
18
|
-
require('../../../either/kind.cjs');
|
|
19
|
-
require('../../../either/right/success.cjs');
|
|
20
|
-
require('../../../either/right/create.cjs');
|
|
21
|
-
require('../../../either/right/ok.cjs');
|
|
22
|
-
require('../../../either/future/success.cjs');
|
|
23
|
-
require('../../../either/future/error.cjs');
|
|
24
|
-
require('../../../either/future/base.cjs');
|
|
25
|
-
require('../../../either/nullable/empty.cjs');
|
|
26
|
-
require('../../../either/nullable/filled.cjs');
|
|
27
|
-
require('../../../either/nullable/base.cjs');
|
|
28
|
-
require('../../../either/nullish/empty.cjs');
|
|
29
|
-
require('../../../either/nullish/filled.cjs');
|
|
30
|
-
require('../../../either/nullish/base.cjs');
|
|
31
|
-
require('../../../either/optional/empty.cjs');
|
|
32
|
-
require('../../../either/optional/filled.cjs');
|
|
33
|
-
require('../../../either/optional/base.cjs');
|
|
34
|
-
require('../../../common/override.cjs');
|
|
35
6
|
var isKeyof = require('../../../string/isKeyof.cjs');
|
|
7
|
+
var entries = require('../../../object/entries.cjs');
|
|
8
|
+
var fromEntries = require('../../../object/fromEntries.cjs');
|
|
36
9
|
|
|
37
10
|
function omit(dataParser, omitObject, definition) {
|
|
38
11
|
const newShape = pipe.pipe(dataParser.definition.shape, entries.entries, filter.filter(([key]) => !isKeyof.isKeyof(key, omitObject)), fromEntries.fromEntries);
|
|
@@ -1,36 +1,9 @@
|
|
|
1
1
|
import { object } from './index.mjs';
|
|
2
|
-
import { entries } from '../../../object/entries.mjs';
|
|
3
2
|
import { pipe } from '../../../common/pipe.mjs';
|
|
4
|
-
import '../../../common/stringToBytes.mjs';
|
|
5
|
-
import '../../../common/stringToMillisecond.mjs';
|
|
6
3
|
import { filter } from '../../../array/filter.mjs';
|
|
7
|
-
import { fromEntries } from '../../../object/fromEntries.mjs';
|
|
8
|
-
import '../../../common/globalStore.mjs';
|
|
9
|
-
import '../../../common/builder.mjs';
|
|
10
|
-
import '../../../either/bool/falsy.mjs';
|
|
11
|
-
import '../../../either/bool/truthy.mjs';
|
|
12
|
-
import '../../../either/bool/base.mjs';
|
|
13
|
-
import '../../../either/left/create.mjs';
|
|
14
|
-
import '../../../either/left/error.mjs';
|
|
15
|
-
import '../../../either/left/fail.mjs';
|
|
16
|
-
import '../../../either/kind.mjs';
|
|
17
|
-
import '../../../either/right/success.mjs';
|
|
18
|
-
import '../../../either/right/create.mjs';
|
|
19
|
-
import '../../../either/right/ok.mjs';
|
|
20
|
-
import '../../../either/future/success.mjs';
|
|
21
|
-
import '../../../either/future/error.mjs';
|
|
22
|
-
import '../../../either/future/base.mjs';
|
|
23
|
-
import '../../../either/nullable/empty.mjs';
|
|
24
|
-
import '../../../either/nullable/filled.mjs';
|
|
25
|
-
import '../../../either/nullable/base.mjs';
|
|
26
|
-
import '../../../either/nullish/empty.mjs';
|
|
27
|
-
import '../../../either/nullish/filled.mjs';
|
|
28
|
-
import '../../../either/nullish/base.mjs';
|
|
29
|
-
import '../../../either/optional/empty.mjs';
|
|
30
|
-
import '../../../either/optional/filled.mjs';
|
|
31
|
-
import '../../../either/optional/base.mjs';
|
|
32
|
-
import '../../../common/override.mjs';
|
|
33
4
|
import { isKeyof } from '../../../string/isKeyof.mjs';
|
|
5
|
+
import { entries } from '../../../object/entries.mjs';
|
|
6
|
+
import { fromEntries } from '../../../object/fromEntries.mjs';
|
|
34
7
|
|
|
35
8
|
function omit(dataParser, omitObject, definition) {
|
|
36
9
|
const newShape = pipe(dataParser.definition.shape, entries, filter(([key]) => !isKeyof(key, omitObject)), fromEntries);
|
|
@@ -1,38 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var index = require('./index.cjs');
|
|
4
|
-
var entries = require('../../../object/entries.cjs');
|
|
5
4
|
var pipe = require('../../../common/pipe.cjs');
|
|
6
|
-
require('../../../common/stringToBytes.cjs');
|
|
7
|
-
require('../../../common/stringToMillisecond.cjs');
|
|
8
5
|
var filter = require('../../../array/filter.cjs');
|
|
9
|
-
var fromEntries = require('../../../object/fromEntries.cjs');
|
|
10
|
-
require('../../../common/globalStore.cjs');
|
|
11
|
-
require('../../../common/builder.cjs');
|
|
12
|
-
require('../../../either/bool/falsy.cjs');
|
|
13
|
-
require('../../../either/bool/truthy.cjs');
|
|
14
|
-
require('../../../either/bool/base.cjs');
|
|
15
|
-
require('../../../either/left/create.cjs');
|
|
16
|
-
require('../../../either/left/error.cjs');
|
|
17
|
-
require('../../../either/left/fail.cjs');
|
|
18
|
-
require('../../../either/kind.cjs');
|
|
19
|
-
require('../../../either/right/success.cjs');
|
|
20
|
-
require('../../../either/right/create.cjs');
|
|
21
|
-
require('../../../either/right/ok.cjs');
|
|
22
|
-
require('../../../either/future/success.cjs');
|
|
23
|
-
require('../../../either/future/error.cjs');
|
|
24
|
-
require('../../../either/future/base.cjs');
|
|
25
|
-
require('../../../either/nullable/empty.cjs');
|
|
26
|
-
require('../../../either/nullable/filled.cjs');
|
|
27
|
-
require('../../../either/nullable/base.cjs');
|
|
28
|
-
require('../../../either/nullish/empty.cjs');
|
|
29
|
-
require('../../../either/nullish/filled.cjs');
|
|
30
|
-
require('../../../either/nullish/base.cjs');
|
|
31
|
-
require('../../../either/optional/empty.cjs');
|
|
32
|
-
require('../../../either/optional/filled.cjs');
|
|
33
|
-
require('../../../either/optional/base.cjs');
|
|
34
|
-
require('../../../common/override.cjs');
|
|
35
6
|
var isKeyof = require('../../../string/isKeyof.cjs');
|
|
7
|
+
var entries = require('../../../object/entries.cjs');
|
|
8
|
+
var fromEntries = require('../../../object/fromEntries.cjs');
|
|
36
9
|
|
|
37
10
|
function pick(dataParser, omitObject, definition) {
|
|
38
11
|
const newShape = pipe.pipe(dataParser.definition.shape, entries.entries, filter.filter(([key]) => isKeyof.isKeyof(key, omitObject)), fromEntries.fromEntries);
|
|
@@ -1,36 +1,9 @@
|
|
|
1
1
|
import { object } from './index.mjs';
|
|
2
|
-
import { entries } from '../../../object/entries.mjs';
|
|
3
2
|
import { pipe } from '../../../common/pipe.mjs';
|
|
4
|
-
import '../../../common/stringToBytes.mjs';
|
|
5
|
-
import '../../../common/stringToMillisecond.mjs';
|
|
6
3
|
import { filter } from '../../../array/filter.mjs';
|
|
7
|
-
import { fromEntries } from '../../../object/fromEntries.mjs';
|
|
8
|
-
import '../../../common/globalStore.mjs';
|
|
9
|
-
import '../../../common/builder.mjs';
|
|
10
|
-
import '../../../either/bool/falsy.mjs';
|
|
11
|
-
import '../../../either/bool/truthy.mjs';
|
|
12
|
-
import '../../../either/bool/base.mjs';
|
|
13
|
-
import '../../../either/left/create.mjs';
|
|
14
|
-
import '../../../either/left/error.mjs';
|
|
15
|
-
import '../../../either/left/fail.mjs';
|
|
16
|
-
import '../../../either/kind.mjs';
|
|
17
|
-
import '../../../either/right/success.mjs';
|
|
18
|
-
import '../../../either/right/create.mjs';
|
|
19
|
-
import '../../../either/right/ok.mjs';
|
|
20
|
-
import '../../../either/future/success.mjs';
|
|
21
|
-
import '../../../either/future/error.mjs';
|
|
22
|
-
import '../../../either/future/base.mjs';
|
|
23
|
-
import '../../../either/nullable/empty.mjs';
|
|
24
|
-
import '../../../either/nullable/filled.mjs';
|
|
25
|
-
import '../../../either/nullable/base.mjs';
|
|
26
|
-
import '../../../either/nullish/empty.mjs';
|
|
27
|
-
import '../../../either/nullish/filled.mjs';
|
|
28
|
-
import '../../../either/nullish/base.mjs';
|
|
29
|
-
import '../../../either/optional/empty.mjs';
|
|
30
|
-
import '../../../either/optional/filled.mjs';
|
|
31
|
-
import '../../../either/optional/base.mjs';
|
|
32
|
-
import '../../../common/override.mjs';
|
|
33
4
|
import { isKeyof } from '../../../string/isKeyof.mjs';
|
|
5
|
+
import { entries } from '../../../object/entries.mjs';
|
|
6
|
+
import { fromEntries } from '../../../object/fromEntries.mjs';
|
|
34
7
|
|
|
35
8
|
function pick(dataParser, omitObject, definition) {
|
|
36
9
|
const newShape = pipe(dataParser.definition.shape, entries, filter(([key]) => isKeyof(key, omitObject)), fromEntries);
|
|
@@ -1,34 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
require('../../common/stringToBytes.cjs');
|
|
4
|
-
require('../../common/stringToMillisecond.cjs');
|
|
5
|
-
require('../../common/globalStore.cjs');
|
|
6
|
-
require('../../common/builder.cjs');
|
|
7
|
-
require('../../either/bool/falsy.cjs');
|
|
8
|
-
require('../../either/bool/truthy.cjs');
|
|
9
|
-
require('../../either/bool/base.cjs');
|
|
10
|
-
require('../../either/left/create.cjs');
|
|
11
|
-
require('../../either/left/error.cjs');
|
|
12
|
-
require('../../either/left/fail.cjs');
|
|
13
|
-
require('../../either/kind.cjs');
|
|
14
|
-
require('../../either/right/success.cjs');
|
|
15
|
-
require('../../either/right/create.cjs');
|
|
16
|
-
require('../../either/right/ok.cjs');
|
|
17
|
-
require('../../either/future/success.cjs');
|
|
18
|
-
require('../../either/future/error.cjs');
|
|
19
|
-
require('../../either/future/base.cjs');
|
|
20
|
-
require('../../either/nullable/empty.cjs');
|
|
21
|
-
require('../../either/nullable/filled.cjs');
|
|
22
|
-
require('../../either/nullable/base.cjs');
|
|
23
|
-
require('../../either/nullish/empty.cjs');
|
|
24
|
-
require('../../either/nullish/filled.cjs');
|
|
25
|
-
require('../../either/nullish/base.cjs');
|
|
26
|
-
require('../../either/optional/empty.cjs');
|
|
27
|
-
require('../../either/optional/filled.cjs');
|
|
28
|
-
require('../../either/optional/base.cjs');
|
|
29
|
-
var override = require('../../common/override.cjs');
|
|
30
3
|
var base = require('../base.cjs');
|
|
31
4
|
var kind = require('../kind.cjs');
|
|
5
|
+
var override = require('../../common/override.cjs');
|
|
32
6
|
|
|
33
7
|
const optionalKind = kind.createDataParserKind("optional");
|
|
34
8
|
function optional(inner, definition) {
|
|
@@ -1,32 +1,6 @@
|
|
|
1
|
-
import '../../common/stringToBytes.mjs';
|
|
2
|
-
import '../../common/stringToMillisecond.mjs';
|
|
3
|
-
import '../../common/globalStore.mjs';
|
|
4
|
-
import '../../common/builder.mjs';
|
|
5
|
-
import '../../either/bool/falsy.mjs';
|
|
6
|
-
import '../../either/bool/truthy.mjs';
|
|
7
|
-
import '../../either/bool/base.mjs';
|
|
8
|
-
import '../../either/left/create.mjs';
|
|
9
|
-
import '../../either/left/error.mjs';
|
|
10
|
-
import '../../either/left/fail.mjs';
|
|
11
|
-
import '../../either/kind.mjs';
|
|
12
|
-
import '../../either/right/success.mjs';
|
|
13
|
-
import '../../either/right/create.mjs';
|
|
14
|
-
import '../../either/right/ok.mjs';
|
|
15
|
-
import '../../either/future/success.mjs';
|
|
16
|
-
import '../../either/future/error.mjs';
|
|
17
|
-
import '../../either/future/base.mjs';
|
|
18
|
-
import '../../either/nullable/empty.mjs';
|
|
19
|
-
import '../../either/nullable/filled.mjs';
|
|
20
|
-
import '../../either/nullable/base.mjs';
|
|
21
|
-
import '../../either/nullish/empty.mjs';
|
|
22
|
-
import '../../either/nullish/filled.mjs';
|
|
23
|
-
import '../../either/nullish/base.mjs';
|
|
24
|
-
import '../../either/optional/empty.mjs';
|
|
25
|
-
import '../../either/optional/filled.mjs';
|
|
26
|
-
import '../../either/optional/base.mjs';
|
|
27
|
-
import { createOverride } from '../../common/override.mjs';
|
|
28
1
|
import { dataParserInit } from '../base.mjs';
|
|
29
2
|
import { createDataParserKind } from '../kind.mjs';
|
|
3
|
+
import { createOverride } from '../../common/override.mjs';
|
|
30
4
|
|
|
31
5
|
const optionalKind = createDataParserKind("optional");
|
|
32
6
|
function optional(inner, definition) {
|
|
@@ -1,34 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
require('../../common/stringToBytes.cjs');
|
|
4
|
-
require('../../common/stringToMillisecond.cjs');
|
|
5
|
-
require('../../common/globalStore.cjs');
|
|
6
|
-
require('../../common/builder.cjs');
|
|
7
|
-
require('../../either/bool/falsy.cjs');
|
|
8
|
-
require('../../either/bool/truthy.cjs');
|
|
9
|
-
require('../../either/bool/base.cjs');
|
|
10
|
-
require('../../either/left/create.cjs');
|
|
11
|
-
require('../../either/left/error.cjs');
|
|
12
|
-
require('../../either/left/fail.cjs');
|
|
13
|
-
require('../../either/kind.cjs');
|
|
14
|
-
require('../../either/right/success.cjs');
|
|
15
|
-
require('../../either/right/create.cjs');
|
|
16
|
-
require('../../either/right/ok.cjs');
|
|
17
|
-
require('../../either/future/success.cjs');
|
|
18
|
-
require('../../either/future/error.cjs');
|
|
19
|
-
require('../../either/future/base.cjs');
|
|
20
|
-
require('../../either/nullable/empty.cjs');
|
|
21
|
-
require('../../either/nullable/filled.cjs');
|
|
22
|
-
require('../../either/nullable/base.cjs');
|
|
23
|
-
require('../../either/nullish/empty.cjs');
|
|
24
|
-
require('../../either/nullish/filled.cjs');
|
|
25
|
-
require('../../either/nullish/base.cjs');
|
|
26
|
-
require('../../either/optional/empty.cjs');
|
|
27
|
-
require('../../either/optional/filled.cjs');
|
|
28
|
-
require('../../either/optional/base.cjs');
|
|
29
|
-
var override = require('../../common/override.cjs');
|
|
30
3
|
var base = require('../base.cjs');
|
|
31
4
|
var kind = require('../kind.cjs');
|
|
5
|
+
var override = require('../../common/override.cjs');
|
|
32
6
|
|
|
33
7
|
const pipeKind = kind.createDataParserKind("pipe");
|
|
34
8
|
function pipe(input, output, definition) {
|
|
@@ -1,32 +1,6 @@
|
|
|
1
|
-
import '../../common/stringToBytes.mjs';
|
|
2
|
-
import '../../common/stringToMillisecond.mjs';
|
|
3
|
-
import '../../common/globalStore.mjs';
|
|
4
|
-
import '../../common/builder.mjs';
|
|
5
|
-
import '../../either/bool/falsy.mjs';
|
|
6
|
-
import '../../either/bool/truthy.mjs';
|
|
7
|
-
import '../../either/bool/base.mjs';
|
|
8
|
-
import '../../either/left/create.mjs';
|
|
9
|
-
import '../../either/left/error.mjs';
|
|
10
|
-
import '../../either/left/fail.mjs';
|
|
11
|
-
import '../../either/kind.mjs';
|
|
12
|
-
import '../../either/right/success.mjs';
|
|
13
|
-
import '../../either/right/create.mjs';
|
|
14
|
-
import '../../either/right/ok.mjs';
|
|
15
|
-
import '../../either/future/success.mjs';
|
|
16
|
-
import '../../either/future/error.mjs';
|
|
17
|
-
import '../../either/future/base.mjs';
|
|
18
|
-
import '../../either/nullable/empty.mjs';
|
|
19
|
-
import '../../either/nullable/filled.mjs';
|
|
20
|
-
import '../../either/nullable/base.mjs';
|
|
21
|
-
import '../../either/nullish/empty.mjs';
|
|
22
|
-
import '../../either/nullish/filled.mjs';
|
|
23
|
-
import '../../either/nullish/base.mjs';
|
|
24
|
-
import '../../either/optional/empty.mjs';
|
|
25
|
-
import '../../either/optional/filled.mjs';
|
|
26
|
-
import '../../either/optional/base.mjs';
|
|
27
|
-
import { createOverride } from '../../common/override.mjs';
|
|
28
1
|
import { dataParserInit, SymbolDataParserError } from '../base.mjs';
|
|
29
2
|
import { createDataParserKind } from '../kind.mjs';
|
|
3
|
+
import { createOverride } from '../../common/override.mjs';
|
|
30
4
|
|
|
31
5
|
const pipeKind = createDataParserKind("pipe");
|
|
32
6
|
function pipe(input, output, definition) {
|
|
@@ -1,51 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var pipe = require('../../../common/pipe.cjs');
|
|
4
|
-
require('../../../common/stringToBytes.cjs');
|
|
5
|
-
require('../../../common/stringToMillisecond.cjs');
|
|
6
|
-
var innerPipe = require('../../../common/innerPipe.cjs');
|
|
7
|
-
var when$1 = require('../../../common/when.cjs');
|
|
8
|
-
var isType = require('../../../common/isType.cjs');
|
|
9
|
-
var or = require('../../../common/or.cjs');
|
|
10
|
-
var justReturn = require('../../../common/justReturn.cjs');
|
|
11
|
-
var filter = require('../../../array/filter.cjs');
|
|
12
|
-
var reduce = require('../../../array/reduce.cjs');
|
|
13
|
-
var includes = require('../../../array/includes.cjs');
|
|
14
|
-
var map = require('../../../array/map.cjs');
|
|
15
|
-
var flat = require('../../../array/flat.cjs');
|
|
16
|
-
var flatMap = require('../../../array/flatMap.cjs');
|
|
17
|
-
var notIncludes = require('../../../array/notIncludes.cjs');
|
|
18
|
-
require('../../../common/globalStore.cjs');
|
|
19
|
-
require('../../../common/builder.cjs');
|
|
20
|
-
require('../../../either/bool/falsy.cjs');
|
|
21
|
-
require('../../../either/bool/truthy.cjs');
|
|
22
|
-
require('../../../either/bool/base.cjs');
|
|
23
|
-
require('../../../either/left/create.cjs');
|
|
24
|
-
require('../../../either/left/error.cjs');
|
|
25
|
-
require('../../../either/left/fail.cjs');
|
|
26
|
-
require('../../../either/kind.cjs');
|
|
27
|
-
require('../../../either/right/success.cjs');
|
|
28
|
-
require('../../../either/right/create.cjs');
|
|
29
|
-
require('../../../either/right/ok.cjs');
|
|
30
|
-
require('../../../either/future/success.cjs');
|
|
31
|
-
require('../../../either/future/error.cjs');
|
|
32
|
-
require('../../../either/future/base.cjs');
|
|
33
|
-
require('../../../either/nullable/empty.cjs');
|
|
34
|
-
require('../../../either/nullable/filled.cjs');
|
|
35
|
-
require('../../../either/nullable/base.cjs');
|
|
36
|
-
require('../../../either/nullish/empty.cjs');
|
|
37
|
-
require('../../../either/nullish/filled.cjs');
|
|
38
|
-
require('../../../either/nullish/base.cjs');
|
|
39
|
-
require('../../../either/optional/empty.cjs');
|
|
40
|
-
require('../../../either/optional/filled.cjs');
|
|
41
|
-
require('../../../either/optional/base.cjs');
|
|
42
|
-
require('../../../common/override.cjs');
|
|
43
|
-
require('../../../pattern/result.cjs');
|
|
44
|
-
var exhaustive = require('../../../pattern/exhaustive.cjs');
|
|
45
|
-
var otherwise = require('../../../pattern/otherwise.cjs');
|
|
46
|
-
require('../../../pattern/match/builder.cjs');
|
|
47
|
-
var when = require('../../../pattern/when.cjs');
|
|
48
|
-
var concat = require('../../../string/concat.cjs');
|
|
49
3
|
var index$1 = require('../string/index.cjs');
|
|
50
4
|
var index$2 = require('../number/index.cjs');
|
|
51
5
|
var literal = require('../literal.cjs');
|
|
@@ -55,6 +9,23 @@ var index$3 = require('../bigint/index.cjs');
|
|
|
55
9
|
var boolean = require('../boolean.cjs');
|
|
56
10
|
var empty = require('../empty.cjs');
|
|
57
11
|
var nil = require('../nil.cjs');
|
|
12
|
+
var pipe = require('../../../common/pipe.cjs');
|
|
13
|
+
var reduce = require('../../../array/reduce.cjs');
|
|
14
|
+
var when = require('../../../pattern/when.cjs');
|
|
15
|
+
var justReturn = require('../../../common/justReturn.cjs');
|
|
16
|
+
var isType = require('../../../common/isType.cjs');
|
|
17
|
+
var map = require('../../../array/map.cjs');
|
|
18
|
+
var concat = require('../../../string/concat.cjs');
|
|
19
|
+
var flatMap = require('../../../array/flatMap.cjs');
|
|
20
|
+
var exhaustive = require('../../../pattern/exhaustive.cjs');
|
|
21
|
+
var innerPipe = require('../../../common/innerPipe.cjs');
|
|
22
|
+
var notIncludes = require('../../../array/notIncludes.cjs');
|
|
23
|
+
var flat = require('../../../array/flat.cjs');
|
|
24
|
+
var otherwise = require('../../../pattern/otherwise.cjs');
|
|
25
|
+
var when$1 = require('../../../common/when.cjs');
|
|
26
|
+
var or = require('../../../common/or.cjs');
|
|
27
|
+
var includes = require('../../../array/includes.cjs');
|
|
28
|
+
var filter = require('../../../array/filter.cjs');
|
|
58
29
|
|
|
59
30
|
function findRecordRequiredKeyOnTemplateLiteralPart(templatePart) {
|
|
60
31
|
return pipe.pipe(templatePart, map.map(innerPipe.innerPipe(when.when((value) => index$1.stringKind.has(value)
|
|
@@ -1,49 +1,3 @@
|
|
|
1
|
-
import { pipe } from '../../../common/pipe.mjs';
|
|
2
|
-
import '../../../common/stringToBytes.mjs';
|
|
3
|
-
import '../../../common/stringToMillisecond.mjs';
|
|
4
|
-
import { innerPipe } from '../../../common/innerPipe.mjs';
|
|
5
|
-
import { when as when$1 } from '../../../common/when.mjs';
|
|
6
|
-
import { isType } from '../../../common/isType.mjs';
|
|
7
|
-
import { or } from '../../../common/or.mjs';
|
|
8
|
-
import { justReturn } from '../../../common/justReturn.mjs';
|
|
9
|
-
import { filter } from '../../../array/filter.mjs';
|
|
10
|
-
import { reduce, reduceFrom } from '../../../array/reduce.mjs';
|
|
11
|
-
import { includes } from '../../../array/includes.mjs';
|
|
12
|
-
import { map } from '../../../array/map.mjs';
|
|
13
|
-
import { flat } from '../../../array/flat.mjs';
|
|
14
|
-
import { flatMap } from '../../../array/flatMap.mjs';
|
|
15
|
-
import { notIncludes } from '../../../array/notIncludes.mjs';
|
|
16
|
-
import '../../../common/globalStore.mjs';
|
|
17
|
-
import '../../../common/builder.mjs';
|
|
18
|
-
import '../../../either/bool/falsy.mjs';
|
|
19
|
-
import '../../../either/bool/truthy.mjs';
|
|
20
|
-
import '../../../either/bool/base.mjs';
|
|
21
|
-
import '../../../either/left/create.mjs';
|
|
22
|
-
import '../../../either/left/error.mjs';
|
|
23
|
-
import '../../../either/left/fail.mjs';
|
|
24
|
-
import '../../../either/kind.mjs';
|
|
25
|
-
import '../../../either/right/success.mjs';
|
|
26
|
-
import '../../../either/right/create.mjs';
|
|
27
|
-
import '../../../either/right/ok.mjs';
|
|
28
|
-
import '../../../either/future/success.mjs';
|
|
29
|
-
import '../../../either/future/error.mjs';
|
|
30
|
-
import '../../../either/future/base.mjs';
|
|
31
|
-
import '../../../either/nullable/empty.mjs';
|
|
32
|
-
import '../../../either/nullable/filled.mjs';
|
|
33
|
-
import '../../../either/nullable/base.mjs';
|
|
34
|
-
import '../../../either/nullish/empty.mjs';
|
|
35
|
-
import '../../../either/nullish/filled.mjs';
|
|
36
|
-
import '../../../either/nullish/base.mjs';
|
|
37
|
-
import '../../../either/optional/empty.mjs';
|
|
38
|
-
import '../../../either/optional/filled.mjs';
|
|
39
|
-
import '../../../either/optional/base.mjs';
|
|
40
|
-
import '../../../common/override.mjs';
|
|
41
|
-
import '../../../pattern/result.mjs';
|
|
42
|
-
import { exhaustive } from '../../../pattern/exhaustive.mjs';
|
|
43
|
-
import { otherwise } from '../../../pattern/otherwise.mjs';
|
|
44
|
-
import '../../../pattern/match/builder.mjs';
|
|
45
|
-
import { when } from '../../../pattern/when.mjs';
|
|
46
|
-
import { concat } from '../../../string/concat.mjs';
|
|
47
1
|
import { stringKind } from '../string/index.mjs';
|
|
48
2
|
import { numberKind } from '../number/index.mjs';
|
|
49
3
|
import { literalKind } from '../literal.mjs';
|
|
@@ -53,6 +7,23 @@ import { bigIntKind } from '../bigint/index.mjs';
|
|
|
53
7
|
import { booleanKind } from '../boolean.mjs';
|
|
54
8
|
import { emptyKind } from '../empty.mjs';
|
|
55
9
|
import { nilKind } from '../nil.mjs';
|
|
10
|
+
import { pipe } from '../../../common/pipe.mjs';
|
|
11
|
+
import { reduce, reduceFrom } from '../../../array/reduce.mjs';
|
|
12
|
+
import { when } from '../../../pattern/when.mjs';
|
|
13
|
+
import { justReturn } from '../../../common/justReturn.mjs';
|
|
14
|
+
import { isType } from '../../../common/isType.mjs';
|
|
15
|
+
import { map } from '../../../array/map.mjs';
|
|
16
|
+
import { concat } from '../../../string/concat.mjs';
|
|
17
|
+
import { flatMap } from '../../../array/flatMap.mjs';
|
|
18
|
+
import { exhaustive } from '../../../pattern/exhaustive.mjs';
|
|
19
|
+
import { innerPipe } from '../../../common/innerPipe.mjs';
|
|
20
|
+
import { notIncludes } from '../../../array/notIncludes.mjs';
|
|
21
|
+
import { flat } from '../../../array/flat.mjs';
|
|
22
|
+
import { otherwise } from '../../../pattern/otherwise.mjs';
|
|
23
|
+
import { when as when$1 } from '../../../common/when.mjs';
|
|
24
|
+
import { or } from '../../../common/or.mjs';
|
|
25
|
+
import { includes } from '../../../array/includes.mjs';
|
|
26
|
+
import { filter } from '../../../array/filter.mjs';
|
|
56
27
|
|
|
57
28
|
function findRecordRequiredKeyOnTemplateLiteralPart(templatePart) {
|
|
58
29
|
return pipe(templatePart, map(innerPipe(when((value) => stringKind.has(value)
|
|
@@ -1,36 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
require('../../../common/stringToBytes.cjs');
|
|
4
|
-
require('../../../common/stringToMillisecond.cjs');
|
|
5
|
-
require('../../../common/globalStore.cjs');
|
|
6
|
-
require('../../../common/builder.cjs');
|
|
7
|
-
require('../../../either/bool/falsy.cjs');
|
|
8
|
-
require('../../../either/bool/truthy.cjs');
|
|
9
|
-
require('../../../either/bool/base.cjs');
|
|
10
|
-
require('../../../either/left/create.cjs');
|
|
11
|
-
require('../../../either/left/error.cjs');
|
|
12
|
-
require('../../../either/left/fail.cjs');
|
|
13
|
-
require('../../../either/kind.cjs');
|
|
14
|
-
require('../../../either/right/success.cjs');
|
|
15
|
-
require('../../../either/right/create.cjs');
|
|
16
|
-
require('../../../either/right/ok.cjs');
|
|
17
|
-
require('../../../either/future/success.cjs');
|
|
18
|
-
require('../../../either/future/error.cjs');
|
|
19
|
-
require('../../../either/future/base.cjs');
|
|
20
|
-
require('../../../either/nullable/empty.cjs');
|
|
21
|
-
require('../../../either/nullable/filled.cjs');
|
|
22
|
-
require('../../../either/nullable/base.cjs');
|
|
23
|
-
require('../../../either/nullish/empty.cjs');
|
|
24
|
-
require('../../../either/nullish/filled.cjs');
|
|
25
|
-
require('../../../either/nullish/base.cjs');
|
|
26
|
-
require('../../../either/optional/empty.cjs');
|
|
27
|
-
require('../../../either/optional/filled.cjs');
|
|
28
|
-
require('../../../either/optional/base.cjs');
|
|
29
|
-
var override = require('../../../common/override.cjs');
|
|
30
3
|
var base = require('../../base.cjs');
|
|
31
4
|
var error = require('../../error.cjs');
|
|
32
5
|
var kind = require('../../kind.cjs');
|
|
33
6
|
var findRecordRequiredKey = require('./findRecordRequiredKey.cjs');
|
|
7
|
+
var override = require('../../../common/override.cjs');
|
|
34
8
|
|
|
35
9
|
const recordKind = kind.createDataParserKind("record");
|
|
36
10
|
function record(key, value, definition) {
|