@ddd-ts/shape 0.0.0-eventviz.1 → 0.0.0-eventviz.10
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/_.js +7 -9
- package/dist/_.mjs +1 -3
- package/dist/addons/microsecond-timestamp.js +2 -3
- package/dist/addons/microsecond-timestamp.mjs +2 -2
- package/dist/choice.js +3 -4
- package/dist/choice.mjs +2 -3
- package/dist/class.js +3 -4
- package/dist/class.mjs +2 -3
- package/dist/dict.js +2 -4
- package/dist/dict.mjs +1 -3
- package/dist/discriminated-union.js +3 -4
- package/dist/discriminated-union.mjs +2 -3
- package/dist/either.js +3 -4
- package/dist/either.mjs +2 -3
- package/dist/index.js +15 -16
- package/dist/index.mjs +1 -2
- package/dist/literal.js +2 -4
- package/dist/literal.mjs +1 -3
- package/dist/mapping.js +4 -5
- package/dist/mapping.mjs +2 -3
- package/dist/multiple.js +3 -4
- package/dist/multiple.mjs +2 -3
- package/dist/nothing.js +2 -4
- package/dist/nothing.mjs +1 -3
- package/dist/optional.js +3 -4
- package/dist/optional.mjs +2 -3
- package/dist/primitive.js +3 -4
- package/dist/primitive.mjs +2 -3
- package/package.json +4 -4
package/dist/_.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
const require_class = require(
|
|
2
|
-
const require_dict = require(
|
|
3
|
-
const require_primitive = require(
|
|
4
|
-
const require_multiple = require(
|
|
5
|
-
const require_nothing = require(
|
|
6
|
-
const require_literal = require(
|
|
7
|
-
|
|
1
|
+
const require_class = require("./class.js");
|
|
2
|
+
const require_dict = require("./dict.js");
|
|
3
|
+
const require_primitive = require("./primitive.js");
|
|
4
|
+
const require_multiple = require("./multiple.js");
|
|
5
|
+
const require_nothing = require("./nothing.js");
|
|
6
|
+
const require_literal = require("./literal.js");
|
|
8
7
|
//#region src/_.ts
|
|
9
8
|
var Empty = class {};
|
|
10
9
|
function Shape(shorthand, base = Empty) {
|
|
@@ -31,8 +30,7 @@ function forward(base, forward) {
|
|
|
31
30
|
} });
|
|
32
31
|
return base;
|
|
33
32
|
}
|
|
34
|
-
|
|
35
33
|
//#endregion
|
|
36
34
|
exports.Empty = Empty;
|
|
37
35
|
exports.Shape = Shape;
|
|
38
|
-
exports.forward = forward;
|
|
36
|
+
exports.forward = forward;
|
package/dist/_.mjs
CHANGED
|
@@ -4,7 +4,6 @@ import { Primitive } from "./primitive.mjs";
|
|
|
4
4
|
import { Multiple } from "./multiple.mjs";
|
|
5
5
|
import { Nothing } from "./nothing.mjs";
|
|
6
6
|
import { Literal } from "./literal.mjs";
|
|
7
|
-
|
|
8
7
|
//#region src/_.ts
|
|
9
8
|
var Empty = class {};
|
|
10
9
|
function Shape(shorthand, base = Empty) {
|
|
@@ -31,6 +30,5 @@ function forward(base, forward) {
|
|
|
31
30
|
} });
|
|
32
31
|
return base;
|
|
33
32
|
}
|
|
34
|
-
|
|
35
33
|
//#endregion
|
|
36
|
-
export { Empty, Shape, forward };
|
|
34
|
+
export { Empty, Shape, forward };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
1
|
//#region src/addons/microsecond-timestamp.ts
|
|
3
2
|
var MicrosecondTimestamp = class MicrosecondTimestamp {
|
|
3
|
+
micros;
|
|
4
4
|
static MILLISECOND = new MicrosecondTimestamp(BigInt(1e3));
|
|
5
5
|
static SECOND = this.MILLISECOND.mult(1e3);
|
|
6
6
|
static MINUTE = this.SECOND.mult(60);
|
|
@@ -57,6 +57,5 @@ var MicrosecondTimestamp = class MicrosecondTimestamp {
|
|
|
57
57
|
return 0;
|
|
58
58
|
}
|
|
59
59
|
};
|
|
60
|
-
|
|
61
60
|
//#endregion
|
|
62
|
-
exports.MicrosecondTimestamp = MicrosecondTimestamp;
|
|
61
|
+
exports.MicrosecondTimestamp = MicrosecondTimestamp;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
//#region src/addons/microsecond-timestamp.ts
|
|
2
2
|
var MicrosecondTimestamp = class MicrosecondTimestamp {
|
|
3
|
+
micros;
|
|
3
4
|
static MILLISECOND = new MicrosecondTimestamp(BigInt(1e3));
|
|
4
5
|
static SECOND = this.MILLISECOND.mult(1e3);
|
|
5
6
|
static MINUTE = this.SECOND.mult(60);
|
|
@@ -56,6 +57,5 @@ var MicrosecondTimestamp = class MicrosecondTimestamp {
|
|
|
56
57
|
return 0;
|
|
57
58
|
}
|
|
58
59
|
};
|
|
59
|
-
|
|
60
60
|
//#endregion
|
|
61
|
-
export { MicrosecondTimestamp };
|
|
61
|
+
export { MicrosecondTimestamp };
|
package/dist/choice.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
const require__ = require(
|
|
2
|
-
|
|
1
|
+
const require__ = require("./_.js");
|
|
3
2
|
//#region src/choice.ts
|
|
4
3
|
const Choice = (config, base = require__.Empty) => {
|
|
5
4
|
class $Choice extends base {
|
|
5
|
+
value;
|
|
6
6
|
static $shape = "choice";
|
|
7
7
|
static $of = config;
|
|
8
8
|
static values = config;
|
|
@@ -39,6 +39,5 @@ const Choice = (config, base = require__.Empty) => {
|
|
|
39
39
|
}
|
|
40
40
|
return $Choice;
|
|
41
41
|
};
|
|
42
|
-
|
|
43
42
|
//#endregion
|
|
44
|
-
exports.Choice = Choice;
|
|
43
|
+
exports.Choice = Choice;
|
package/dist/choice.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Empty } from "./_.mjs";
|
|
2
|
-
|
|
3
2
|
//#region src/choice.ts
|
|
4
3
|
const Choice = (config, base = Empty) => {
|
|
5
4
|
class $Choice extends base {
|
|
5
|
+
value;
|
|
6
6
|
static $shape = "choice";
|
|
7
7
|
static $of = config;
|
|
8
8
|
static values = config;
|
|
@@ -39,6 +39,5 @@ const Choice = (config, base = Empty) => {
|
|
|
39
39
|
}
|
|
40
40
|
return $Choice;
|
|
41
41
|
};
|
|
42
|
-
|
|
43
42
|
//#endregion
|
|
44
|
-
export { Choice };
|
|
43
|
+
export { Choice };
|
package/dist/class.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
const require__ = require(
|
|
2
|
-
|
|
1
|
+
const require__ = require("./_.js");
|
|
3
2
|
//#region src/class.ts
|
|
4
3
|
const Class = (of, base = require__.Empty) => {
|
|
5
4
|
class $Class extends base {
|
|
5
|
+
value;
|
|
6
6
|
static $shape = "class";
|
|
7
7
|
static $of = of;
|
|
8
8
|
constructor(value) {
|
|
@@ -25,6 +25,5 @@ const Class = (of, base = require__.Empty) => {
|
|
|
25
25
|
}
|
|
26
26
|
return $Class;
|
|
27
27
|
};
|
|
28
|
-
|
|
29
28
|
//#endregion
|
|
30
|
-
exports.Class = Class;
|
|
29
|
+
exports.Class = Class;
|
package/dist/class.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Empty } from "./_.mjs";
|
|
2
|
-
|
|
3
2
|
//#region src/class.ts
|
|
4
3
|
const Class = (of, base = Empty) => {
|
|
5
4
|
class $Class extends base {
|
|
5
|
+
value;
|
|
6
6
|
static $shape = "class";
|
|
7
7
|
static $of = of;
|
|
8
8
|
constructor(value) {
|
|
@@ -25,6 +25,5 @@ const Class = (of, base = Empty) => {
|
|
|
25
25
|
}
|
|
26
26
|
return $Class;
|
|
27
27
|
};
|
|
28
|
-
|
|
29
28
|
//#endregion
|
|
30
|
-
export { Class };
|
|
29
|
+
export { Class };
|
package/dist/dict.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
const require__ = require(
|
|
2
|
-
|
|
1
|
+
const require__ = require("./_.js");
|
|
3
2
|
//#region src/dict.ts
|
|
4
3
|
const Dict = (of, base = require__.Empty) => {
|
|
5
4
|
class $Dict extends base {
|
|
@@ -36,6 +35,5 @@ const Dict = (of, base = require__.Empty) => {
|
|
|
36
35
|
}
|
|
37
36
|
return $Dict;
|
|
38
37
|
};
|
|
39
|
-
|
|
40
38
|
//#endregion
|
|
41
|
-
exports.Dict = Dict;
|
|
39
|
+
exports.Dict = Dict;
|
package/dist/dict.mjs
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Empty, Shape } from "./_.mjs";
|
|
2
|
-
|
|
3
2
|
//#region src/dict.ts
|
|
4
3
|
const Dict = (of, base = Empty) => {
|
|
5
4
|
class $Dict extends base {
|
|
@@ -36,6 +35,5 @@ const Dict = (of, base = Empty) => {
|
|
|
36
35
|
}
|
|
37
36
|
return $Dict;
|
|
38
37
|
};
|
|
39
|
-
|
|
40
38
|
//#endregion
|
|
41
|
-
export { Dict };
|
|
39
|
+
export { Dict };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
const require__ = require(
|
|
2
|
-
|
|
1
|
+
const require__ = require("./_.js");
|
|
3
2
|
//#region src/discriminated-union.ts
|
|
4
3
|
function findBestKey(config) {
|
|
5
4
|
const hash = {};
|
|
@@ -28,6 +27,7 @@ const DiscriminatedUnion = (of, ...args) => {
|
|
|
28
27
|
const key = findBestKey(of);
|
|
29
28
|
const map = prepareShapeMap(of, key);
|
|
30
29
|
class $DiscriminatedUnion extends base {
|
|
30
|
+
value;
|
|
31
31
|
constructor(value) {
|
|
32
32
|
super();
|
|
33
33
|
this.value = value;
|
|
@@ -59,8 +59,7 @@ const DiscriminatedUnion = (of, ...args) => {
|
|
|
59
59
|
}
|
|
60
60
|
return $DiscriminatedUnion;
|
|
61
61
|
};
|
|
62
|
-
|
|
63
62
|
//#endregion
|
|
64
63
|
exports.DiscriminatedUnion = DiscriminatedUnion;
|
|
65
64
|
exports.findBestKey = findBestKey;
|
|
66
|
-
exports.prepareShapeMap = prepareShapeMap;
|
|
65
|
+
exports.prepareShapeMap = prepareShapeMap;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Empty, Shape } from "./_.mjs";
|
|
2
|
-
|
|
3
2
|
//#region src/discriminated-union.ts
|
|
4
3
|
function findBestKey(config) {
|
|
5
4
|
const hash = {};
|
|
@@ -28,6 +27,7 @@ const DiscriminatedUnion = (of, ...args) => {
|
|
|
28
27
|
const key = findBestKey(of);
|
|
29
28
|
const map = prepareShapeMap(of, key);
|
|
30
29
|
class $DiscriminatedUnion extends base {
|
|
30
|
+
value;
|
|
31
31
|
constructor(value) {
|
|
32
32
|
super();
|
|
33
33
|
this.value = value;
|
|
@@ -59,6 +59,5 @@ const DiscriminatedUnion = (of, ...args) => {
|
|
|
59
59
|
}
|
|
60
60
|
return $DiscriminatedUnion;
|
|
61
61
|
};
|
|
62
|
-
|
|
63
62
|
//#endregion
|
|
64
|
-
export { DiscriminatedUnion, findBestKey, prepareShapeMap };
|
|
63
|
+
export { DiscriminatedUnion, findBestKey, prepareShapeMap };
|
package/dist/either.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
const require__ = require(
|
|
2
|
-
|
|
1
|
+
const require__ = require("./_.js");
|
|
3
2
|
//#region src/either.ts
|
|
4
3
|
const Either = (of, base = require__.Empty) => {
|
|
5
4
|
const definitions = Object.fromEntries(Object.entries(of).map(([key, value]) => {
|
|
6
5
|
return [key, require__.Shape(value)];
|
|
7
6
|
}));
|
|
8
7
|
class $Either extends base {
|
|
8
|
+
value;
|
|
9
9
|
constructor(value) {
|
|
10
10
|
super();
|
|
11
11
|
this.value = value;
|
|
@@ -46,6 +46,5 @@ const Either = (of, base = require__.Empty) => {
|
|
|
46
46
|
}
|
|
47
47
|
return $Either;
|
|
48
48
|
};
|
|
49
|
-
|
|
50
49
|
//#endregion
|
|
51
|
-
exports.Either = Either;
|
|
50
|
+
exports.Either = Either;
|
package/dist/either.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Empty, Shape } from "./_.mjs";
|
|
2
|
-
|
|
3
2
|
//#region src/either.ts
|
|
4
3
|
const Either = (of, base = Empty) => {
|
|
5
4
|
const definitions = Object.fromEntries(Object.entries(of).map(([key, value]) => {
|
|
6
5
|
return [key, Shape(value)];
|
|
7
6
|
}));
|
|
8
7
|
class $Either extends base {
|
|
8
|
+
value;
|
|
9
9
|
constructor(value) {
|
|
10
10
|
super();
|
|
11
11
|
this.value = value;
|
|
@@ -46,6 +46,5 @@ const Either = (of, base = Empty) => {
|
|
|
46
46
|
}
|
|
47
47
|
return $Either;
|
|
48
48
|
};
|
|
49
|
-
|
|
50
49
|
//#endregion
|
|
51
|
-
export { Either };
|
|
50
|
+
export { Either };
|
package/dist/index.js
CHANGED
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value:
|
|
2
|
-
const require_class = require(
|
|
3
|
-
const require_dict = require(
|
|
4
|
-
const require_primitive = require(
|
|
5
|
-
const require_multiple = require(
|
|
6
|
-
const require_nothing = require(
|
|
7
|
-
const require_literal = require(
|
|
8
|
-
const require__ = require(
|
|
9
|
-
const require_choice = require(
|
|
10
|
-
const require_either = require(
|
|
11
|
-
const require_discriminated_union = require(
|
|
12
|
-
const require_mapping = require(
|
|
13
|
-
const require_optional = require(
|
|
14
|
-
const require_microsecond_timestamp = require(
|
|
15
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_class = require("./class.js");
|
|
3
|
+
const require_dict = require("./dict.js");
|
|
4
|
+
const require_primitive = require("./primitive.js");
|
|
5
|
+
const require_multiple = require("./multiple.js");
|
|
6
|
+
const require_nothing = require("./nothing.js");
|
|
7
|
+
const require_literal = require("./literal.js");
|
|
8
|
+
const require__ = require("./_.js");
|
|
9
|
+
const require_choice = require("./choice.js");
|
|
10
|
+
const require_either = require("./either.js");
|
|
11
|
+
const require_discriminated_union = require("./discriminated-union.js");
|
|
12
|
+
const require_mapping = require("./mapping.js");
|
|
13
|
+
const require_optional = require("./optional.js");
|
|
14
|
+
const require_microsecond_timestamp = require("./addons/microsecond-timestamp.js");
|
|
16
15
|
exports.Choice = require_choice.Choice;
|
|
17
16
|
exports.Class = require_class.Class;
|
|
18
17
|
exports.Dict = require_dict.Dict;
|
|
@@ -29,4 +28,4 @@ exports.Primitive = require_primitive.Primitive;
|
|
|
29
28
|
exports.Shape = require__.Shape;
|
|
30
29
|
exports.findBestKey = require_discriminated_union.findBestKey;
|
|
31
30
|
exports.forward = require__.forward;
|
|
32
|
-
exports.prepareShapeMap = require_discriminated_union.prepareShapeMap;
|
|
31
|
+
exports.prepareShapeMap = require_discriminated_union.prepareShapeMap;
|
package/dist/index.mjs
CHANGED
|
@@ -11,5 +11,4 @@ import { DiscriminatedUnion, findBestKey, prepareShapeMap } from "./discriminate
|
|
|
11
11
|
import { Mapping } from "./mapping.mjs";
|
|
12
12
|
import { Optional } from "./optional.mjs";
|
|
13
13
|
import { MicrosecondTimestamp } from "./addons/microsecond-timestamp.mjs";
|
|
14
|
-
|
|
15
|
-
export { Choice, Class, Dict, DiscriminatedUnion, Either, Empty, Literal, Mapping, MicrosecondTimestamp, Multiple, Nothing, Optional, Primitive, Shape, findBestKey, forward, prepareShapeMap };
|
|
14
|
+
export { Choice, Class, Dict, DiscriminatedUnion, Either, Empty, Literal, Mapping, MicrosecondTimestamp, Multiple, Nothing, Optional, Primitive, Shape, findBestKey, forward, prepareShapeMap };
|
package/dist/literal.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
const require__ = require(
|
|
2
|
-
|
|
1
|
+
const require__ = require("./_.js");
|
|
3
2
|
//#region src/literal.ts
|
|
4
3
|
const Literal = (of, base = require__.Empty) => {
|
|
5
4
|
class $Literal extends base {
|
|
@@ -22,6 +21,5 @@ const Literal = (of, base = require__.Empty) => {
|
|
|
22
21
|
}
|
|
23
22
|
return $Literal;
|
|
24
23
|
};
|
|
25
|
-
|
|
26
24
|
//#endregion
|
|
27
|
-
exports.Literal = Literal;
|
|
25
|
+
exports.Literal = Literal;
|
package/dist/literal.mjs
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Empty } from "./_.mjs";
|
|
2
|
-
|
|
3
2
|
//#region src/literal.ts
|
|
4
3
|
const Literal = (of, base = Empty) => {
|
|
5
4
|
class $Literal extends base {
|
|
@@ -22,6 +21,5 @@ const Literal = (of, base = Empty) => {
|
|
|
22
21
|
}
|
|
23
22
|
return $Literal;
|
|
24
23
|
};
|
|
25
|
-
|
|
26
24
|
//#endregion
|
|
27
|
-
export { Literal };
|
|
25
|
+
export { Literal };
|
package/dist/mapping.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
const require_primitive = require(
|
|
2
|
-
const require__ = require(
|
|
3
|
-
|
|
1
|
+
const require_primitive = require("./primitive.js");
|
|
2
|
+
const require__ = require("./_.js");
|
|
4
3
|
//#region src/mapping.ts
|
|
5
4
|
const Mapping = (config, base = require__.Empty) => {
|
|
6
5
|
let [_key, _value] = config;
|
|
@@ -13,6 +12,7 @@ const Mapping = (config, base = require__.Empty) => {
|
|
|
13
12
|
$value: _value
|
|
14
13
|
};
|
|
15
14
|
class $Mapping extends base {
|
|
15
|
+
value;
|
|
16
16
|
constructor(value) {
|
|
17
17
|
super();
|
|
18
18
|
this.value = value;
|
|
@@ -40,6 +40,5 @@ const Mapping = (config, base = require__.Empty) => {
|
|
|
40
40
|
}
|
|
41
41
|
return $Mapping;
|
|
42
42
|
};
|
|
43
|
-
|
|
44
43
|
//#endregion
|
|
45
|
-
exports.Mapping = Mapping;
|
|
44
|
+
exports.Mapping = Mapping;
|
package/dist/mapping.mjs
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Primitive } from "./primitive.mjs";
|
|
2
2
|
import { Empty, Shape } from "./_.mjs";
|
|
3
|
-
|
|
4
3
|
//#region src/mapping.ts
|
|
5
4
|
const Mapping = (config, base = Empty) => {
|
|
6
5
|
let [_key, _value] = config;
|
|
@@ -13,6 +12,7 @@ const Mapping = (config, base = Empty) => {
|
|
|
13
12
|
$value: _value
|
|
14
13
|
};
|
|
15
14
|
class $Mapping extends base {
|
|
15
|
+
value;
|
|
16
16
|
constructor(value) {
|
|
17
17
|
super();
|
|
18
18
|
this.value = value;
|
|
@@ -40,6 +40,5 @@ const Mapping = (config, base = Empty) => {
|
|
|
40
40
|
}
|
|
41
41
|
return $Mapping;
|
|
42
42
|
};
|
|
43
|
-
|
|
44
43
|
//#endregion
|
|
45
|
-
export { Mapping };
|
|
44
|
+
export { Mapping };
|
package/dist/multiple.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
const require__ = require(
|
|
2
|
-
|
|
1
|
+
const require__ = require("./_.js");
|
|
3
2
|
//#region src/multiple.ts
|
|
4
3
|
const Multiple = (of, base = require__.Empty) => {
|
|
5
4
|
const longhand = require__.Shape(of);
|
|
6
5
|
class $Multiple extends base {
|
|
6
|
+
value;
|
|
7
7
|
constructor(value) {
|
|
8
8
|
super();
|
|
9
9
|
this.value = value;
|
|
@@ -114,6 +114,5 @@ const Multiple = (of, base = require__.Empty) => {
|
|
|
114
114
|
}
|
|
115
115
|
return $Multiple;
|
|
116
116
|
};
|
|
117
|
-
|
|
118
117
|
//#endregion
|
|
119
|
-
exports.Multiple = Multiple;
|
|
118
|
+
exports.Multiple = Multiple;
|
package/dist/multiple.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Empty, Shape } from "./_.mjs";
|
|
2
|
-
|
|
3
2
|
//#region src/multiple.ts
|
|
4
3
|
const Multiple = (of, base = Empty) => {
|
|
5
4
|
const longhand = Shape(of);
|
|
6
5
|
class $Multiple extends base {
|
|
6
|
+
value;
|
|
7
7
|
constructor(value) {
|
|
8
8
|
super();
|
|
9
9
|
this.value = value;
|
|
@@ -114,6 +114,5 @@ const Multiple = (of, base = Empty) => {
|
|
|
114
114
|
}
|
|
115
115
|
return $Multiple;
|
|
116
116
|
};
|
|
117
|
-
|
|
118
117
|
//#endregion
|
|
119
|
-
export { Multiple };
|
|
118
|
+
export { Multiple };
|
package/dist/nothing.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
const require__ = require(
|
|
2
|
-
|
|
1
|
+
const require__ = require("./_.js");
|
|
3
2
|
//#region src/nothing.ts
|
|
4
3
|
const Nothing = (config, base = require__.Empty) => {
|
|
5
4
|
class $Nothing extends base {
|
|
@@ -14,6 +13,5 @@ const Nothing = (config, base = require__.Empty) => {
|
|
|
14
13
|
}
|
|
15
14
|
return $Nothing;
|
|
16
15
|
};
|
|
17
|
-
|
|
18
16
|
//#endregion
|
|
19
|
-
exports.Nothing = Nothing;
|
|
17
|
+
exports.Nothing = Nothing;
|
package/dist/nothing.mjs
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Empty } from "./_.mjs";
|
|
2
|
-
|
|
3
2
|
//#region src/nothing.ts
|
|
4
3
|
const Nothing = (config, base = Empty) => {
|
|
5
4
|
class $Nothing extends base {
|
|
@@ -14,6 +13,5 @@ const Nothing = (config, base = Empty) => {
|
|
|
14
13
|
}
|
|
15
14
|
return $Nothing;
|
|
16
15
|
};
|
|
17
|
-
|
|
18
16
|
//#endregion
|
|
19
|
-
export { Nothing };
|
|
17
|
+
export { Nothing };
|
package/dist/optional.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
const require__ = require(
|
|
2
|
-
|
|
1
|
+
const require__ = require("./_.js");
|
|
3
2
|
//#region src/optional.ts
|
|
4
3
|
const Optional = (of, base = require__.Empty) => {
|
|
5
4
|
class $Optional extends base {
|
|
5
|
+
value;
|
|
6
6
|
constructor(value) {
|
|
7
7
|
super();
|
|
8
8
|
this.value = value;
|
|
@@ -29,6 +29,5 @@ const Optional = (of, base = require__.Empty) => {
|
|
|
29
29
|
}
|
|
30
30
|
return $Optional;
|
|
31
31
|
};
|
|
32
|
-
|
|
33
32
|
//#endregion
|
|
34
|
-
exports.Optional = Optional;
|
|
33
|
+
exports.Optional = Optional;
|
package/dist/optional.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Empty, Shape } from "./_.mjs";
|
|
2
|
-
|
|
3
2
|
//#region src/optional.ts
|
|
4
3
|
const Optional = (of, base = Empty) => {
|
|
5
4
|
class $Optional extends base {
|
|
5
|
+
value;
|
|
6
6
|
constructor(value) {
|
|
7
7
|
super();
|
|
8
8
|
this.value = value;
|
|
@@ -29,6 +29,5 @@ const Optional = (of, base = Empty) => {
|
|
|
29
29
|
}
|
|
30
30
|
return $Optional;
|
|
31
31
|
};
|
|
32
|
-
|
|
33
32
|
//#endregion
|
|
34
|
-
export { Optional };
|
|
33
|
+
export { Optional };
|
package/dist/primitive.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
const require__ = require(
|
|
2
|
-
|
|
1
|
+
const require__ = require("./_.js");
|
|
3
2
|
//#region src/primitive.ts
|
|
4
3
|
const Primitive = (of, base = require__.Empty) => {
|
|
5
4
|
class $Primitive extends base {
|
|
5
|
+
value;
|
|
6
6
|
constructor(value) {
|
|
7
7
|
super();
|
|
8
8
|
this.value = value;
|
|
@@ -25,6 +25,5 @@ const Primitive = (of, base = require__.Empty) => {
|
|
|
25
25
|
}
|
|
26
26
|
return $Primitive;
|
|
27
27
|
};
|
|
28
|
-
|
|
29
28
|
//#endregion
|
|
30
|
-
exports.Primitive = Primitive;
|
|
29
|
+
exports.Primitive = Primitive;
|
package/dist/primitive.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Empty } from "./_.mjs";
|
|
2
|
-
|
|
3
2
|
//#region src/primitive.ts
|
|
4
3
|
const Primitive = (of, base = Empty) => {
|
|
5
4
|
class $Primitive extends base {
|
|
5
|
+
value;
|
|
6
6
|
constructor(value) {
|
|
7
7
|
super();
|
|
8
8
|
this.value = value;
|
|
@@ -25,6 +25,5 @@ const Primitive = (of, base = Empty) => {
|
|
|
25
25
|
}
|
|
26
26
|
return $Primitive;
|
|
27
27
|
};
|
|
28
|
-
|
|
29
28
|
//#endregion
|
|
30
|
-
export { Primitive };
|
|
29
|
+
export { Primitive };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ddd-ts/shape",
|
|
3
|
-
"version": "0.0.0-eventviz.
|
|
3
|
+
"version": "0.0.0-eventviz.10",
|
|
4
4
|
"types": "dist/index.d.ts",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
"dist"
|
|
11
11
|
],
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@ddd-ts/traits": "0.0.0-eventviz.
|
|
13
|
+
"@ddd-ts/traits": "0.0.0-eventviz.10"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
|
-
"@ddd-ts/tools": "0.0.0-eventviz.
|
|
17
|
-
"@ddd-ts/types": "0.0.0-eventviz.
|
|
16
|
+
"@ddd-ts/tools": "0.0.0-eventviz.10",
|
|
17
|
+
"@ddd-ts/types": "0.0.0-eventviz.10",
|
|
18
18
|
"@types/jest": "^29.5.1"
|
|
19
19
|
},
|
|
20
20
|
"exports": {
|