@fncts/io 0.0.19 → 0.0.20
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/Differ/api.d.ts +24 -0
- package/Differ/definition.d.ts +15 -0
- package/FiberRef/unsafe.d.ts +12 -6
- package/IOEnv/services.d.ts +2 -2
- package/Supervisor/api.d.ts +11 -5
- package/Supervisor/definition.d.ts +28 -0
- package/SupervisorPatch.d.ts +61 -0
- package/_cjs/Differ/api.cjs +108 -0
- package/_cjs/Differ/api.cjs.map +1 -0
- package/_cjs/Differ/definition.cjs +23 -0
- package/_cjs/Differ/definition.cjs.map +1 -0
- package/_cjs/FiberRef/unsafe.cjs +35 -21
- package/_cjs/FiberRef/unsafe.cjs.map +1 -1
- package/_cjs/IOEnv/definition.cjs.map +1 -1
- package/_cjs/IOEnv/services.cjs.map +1 -1
- package/_cjs/Supervisor/api.cjs +44 -33
- package/_cjs/Supervisor/api.cjs.map +1 -1
- package/_cjs/Supervisor/definition.cjs +66 -1
- package/_cjs/Supervisor/definition.cjs.map +1 -1
- package/_cjs/SupervisorPatch.cjs +172 -0
- package/_cjs/SupervisorPatch.cjs.map +1 -0
- package/_mjs/Differ/api.mjs +90 -0
- package/_mjs/Differ/api.mjs.map +1 -0
- package/_mjs/Differ/definition.mjs +13 -0
- package/_mjs/Differ/definition.mjs.map +1 -0
- package/_mjs/FiberRef/unsafe.mjs +31 -20
- package/_mjs/FiberRef/unsafe.mjs.map +1 -1
- package/_mjs/IOEnv/definition.mjs.map +1 -1
- package/_mjs/IOEnv/services.mjs.map +1 -1
- package/_mjs/Supervisor/api.mjs +39 -32
- package/_mjs/Supervisor/api.mjs.map +1 -1
- package/_mjs/Supervisor/definition.mjs +55 -0
- package/_mjs/Supervisor/definition.mjs.map +1 -1
- package/_mjs/SupervisorPatch.mjs +131 -0
- package/_mjs/SupervisorPatch.mjs.map +1 -0
- package/_src/Differ/api.ts +72 -0
- package/_src/Differ/definition.ts +16 -0
- package/_src/FiberRef/unsafe.ts +24 -22
- package/_src/IOEnv/definition.ts +0 -2
- package/_src/IOEnv/services.ts +5 -4
- package/_src/Supervisor/api.ts +33 -29
- package/_src/Supervisor/definition.ts +59 -0
- package/_src/SupervisorPatch.ts +107 -0
- package/_src/global.ts +4 -0
- package/global.d.ts +4 -0
- package/package.json +2 -2
package/_cjs/Supervisor/api.cjs
CHANGED
@@ -3,56 +3,67 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
exports.zip_ =
|
6
|
+
exports.zip_ = exports.toSet = exports.removeSupervisor = void 0;
|
7
|
+
|
8
|
+
var tsplus_module_1 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/Supervisor/constructors"));
|
7
9
|
|
8
|
-
var
|
10
|
+
var tsplus_module_2 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/collection/immutable/HashSet/api"));
|
9
11
|
|
10
|
-
var
|
12
|
+
var _definition = /*#__PURE__*/require("@fncts/io/Supervisor/definition");
|
11
13
|
|
12
14
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
13
15
|
|
14
16
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
15
17
|
|
16
|
-
const
|
18
|
+
const zip_ = zip_1;
|
19
|
+
exports.zip_ = zip_;
|
20
|
+
const toSet = toSet_1;
|
21
|
+
exports.toSet = toSet;
|
22
|
+
const removeSupervisor = removeSupervisor_1;
|
23
|
+
exports.removeSupervisor = removeSupervisor;
|
17
24
|
|
18
25
|
/**
|
19
26
|
* @tsplus fluent fncts.io.Supervisor zip
|
20
27
|
*/
|
21
|
-
function
|
22
|
-
return new
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
28
|
+
function zip_1(fa, fb) {
|
29
|
+
return new _definition.Zip(fa, fb);
|
30
|
+
}
|
31
|
+
/**
|
32
|
+
* @tsplus getter fncts.io.Supervisor toSet
|
33
|
+
*/
|
27
34
|
|
28
|
-
unsafeOnStart(environment, effect, parent, fiber) {
|
29
|
-
try {
|
30
|
-
fa.unsafeOnStart(environment, effect, parent, fiber);
|
31
|
-
} finally {
|
32
|
-
fb.unsafeOnStart(environment, effect, parent, fiber);
|
33
|
-
}
|
34
|
-
}
|
35
35
|
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
36
|
+
function toSet_1(self) {
|
37
|
+
void 0;
|
38
|
+
if (self === tsplus_module_1.none) return tsplus_module_2.makeDefault();else {
|
39
|
+
switch (self._tag) {
|
40
|
+
case 2
|
41
|
+
/* SupervisorTag.Zip */
|
42
|
+
:
|
43
|
+
return tsplus_module_2.union_(toSet_1(self.first), toSet_1(self.second));
|
40
44
|
|
41
|
-
|
42
|
-
|
43
|
-
fb.unsafeOnEffect(fiber, effect);
|
45
|
+
default:
|
46
|
+
return tsplus_module_2.add_(tsplus_module_2.makeDefault(), self);
|
44
47
|
}
|
48
|
+
}
|
49
|
+
}
|
50
|
+
/**
|
51
|
+
* @tsplus fluent fncts.io.Supervisor removeSupervisor
|
52
|
+
*/
|
45
53
|
|
46
|
-
unsafeOnSuspend(fiber) {
|
47
|
-
fa.unsafeOnSuspend(fiber);
|
48
|
-
fb.unsafeOnSuspend(fiber);
|
49
|
-
}
|
50
54
|
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
+
function removeSupervisor_1(self, that) {
|
56
|
+
void 0;
|
57
|
+
if (self === that) return tsplus_module_1.none;else {
|
58
|
+
switch (self._tag) {
|
59
|
+
case 2
|
60
|
+
/* SupervisorTag.Zip */
|
61
|
+
:
|
62
|
+
return zip_1(removeSupervisor_1(self.first, that), removeSupervisor_1(self.second, that));
|
55
63
|
|
56
|
-
|
64
|
+
default:
|
65
|
+
return self;
|
66
|
+
}
|
67
|
+
}
|
57
68
|
}
|
58
69
|
//# sourceMappingURL=api.cjs.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"api.cjs","mappings":"
|
1
|
+
{"version":3,"file":"api.cjs","mappings":";;;;;;;;;;;AAAA;;;;;;MAKgBA,IAAI;;MAOJC,KAAK;;MAgBLC,gBAAgB;;;AA1BhC;;;AAGA,eAA2BC,EAA3B,EAA8CC,EAA9C,EAA+D;EAC7D,OAAO,IAAIC,eAAJ,CAAQF,EAAR,EAAYC,EAAZ,CAAP;AACD;AAED;;;;;AAGA,iBAAsBE,IAAtB,EAA2C;EACzC;EACA,IAAIA,IAAI,yBAAR,EAA8B,OAAOC,6BAAP,CAA9B,KACK;IACH,QAAQD,IAAI,CAACE,IAAb;MACE;MAAA;MAAA;QACE,OAAOD,mCAAI,CAACE,KAAL,GAAUC,QAAaJ,IAAI,CAACK,MAAlB,CAAV,CAAP;;MACF;QACE,OAAOJ,oDAA2CD,IAA3C,CAAP;IAJJ;EAMD;AACF;AAED;;;;;AAGA,4BAAiCA,IAAjC,EAAwDM,IAAxD,EAA6E;EAC3E;EACA,IAAIN,IAAI,KAAKM,IAAb,EAAmB,4BAAnB,KACK;IACH,QAAQN,IAAI,CAACE,IAAb;MACE;MAAA;MAAA;QACE,OAAOK,6BAAI,CAACJ,KAAL,EAA4BG,IAA5B,GAAsCE,uBAAI,CAACH,MAAL,EAA6BC,IAA7B,CAAtC,CAAP;;MACF;QACE,OAAON,IAAP;IAJJ;EAMD;AACF","names":["zip_","toSet","removeSupervisor","fa","fb","Zip","self","tsplus_module_2","_tag","first","toSet_1","second","that","zip_1","removeSupervisor_1"],"sourceRoot":"","sources":["../../_src/Supervisor/api.ts"],"sourcesContent":[null]}
|
@@ -3,7 +3,16 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
exports.Supervisor = exports.ProxySupervisor = exports.ConstSupervisor = void 0;
|
6
|
+
exports.Zip = exports.Supervisor = exports.ProxySupervisor = exports.ConstSupervisor = void 0;
|
7
|
+
exports.concrete = concrete;
|
8
|
+
|
9
|
+
var tsplus_module_1 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/IO/api"));
|
10
|
+
|
11
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
12
|
+
|
13
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
14
|
+
|
15
|
+
const fileName_1 = "(@fncts/io) src/Supervisor/definition.ts";
|
7
16
|
|
8
17
|
/**
|
9
18
|
* @tsplus type fncts.io.Supervisor
|
@@ -30,6 +39,9 @@ class ConstSupervisor extends Supervisor {
|
|
30
39
|
constructor(value) {
|
31
40
|
super();
|
32
41
|
this.value = value;
|
42
|
+
this._tag = 0
|
43
|
+
/* SupervisorTag.Const */
|
44
|
+
;
|
33
45
|
}
|
34
46
|
|
35
47
|
unsafeOnStart() {
|
@@ -61,6 +73,9 @@ class ProxySupervisor extends Supervisor {
|
|
61
73
|
super();
|
62
74
|
this.value = value;
|
63
75
|
this.underlying = underlying;
|
76
|
+
this._tag = 1
|
77
|
+
/* SupervisorTag.Proxy */
|
78
|
+
;
|
64
79
|
}
|
65
80
|
|
66
81
|
unsafeOnStart(environment, effect, parent, fiber) {
|
@@ -86,4 +101,54 @@ class ProxySupervisor extends Supervisor {
|
|
86
101
|
}
|
87
102
|
|
88
103
|
exports.ProxySupervisor = ProxySupervisor;
|
104
|
+
|
105
|
+
class Zip extends Supervisor {
|
106
|
+
constructor(first, second) {
|
107
|
+
super();
|
108
|
+
this.first = first;
|
109
|
+
this.second = second;
|
110
|
+
this._tag = 2
|
111
|
+
/* SupervisorTag.Zip */
|
112
|
+
;
|
113
|
+
this.value = tsplus_module_1.zip_(this.first.value, this.second.value, fileName_1 + ":91:31");
|
114
|
+
}
|
115
|
+
|
116
|
+
unsafeOnStart(environment, effect, parent, fiber) {
|
117
|
+
try {
|
118
|
+
this.first.unsafeOnStart(environment, effect, parent, fiber);
|
119
|
+
} finally {
|
120
|
+
this.second.unsafeOnStart(environment, effect, parent, fiber);
|
121
|
+
}
|
122
|
+
}
|
123
|
+
|
124
|
+
unsafeOnEnd(value, fiber) {
|
125
|
+
this.first.unsafeOnEnd(value, fiber);
|
126
|
+
this.second.unsafeOnEnd(value, fiber);
|
127
|
+
}
|
128
|
+
|
129
|
+
unsafeOnEffect(fiber, effect) {
|
130
|
+
this.first.unsafeOnEffect(fiber, effect);
|
131
|
+
this.second.unsafeOnEffect(fiber, effect);
|
132
|
+
}
|
133
|
+
|
134
|
+
unsafeOnSuspend(fiber) {
|
135
|
+
this.first.unsafeOnSuspend(fiber);
|
136
|
+
this.second.unsafeOnSuspend(fiber);
|
137
|
+
}
|
138
|
+
|
139
|
+
unsafeOnResume(fiber) {
|
140
|
+
this.first.unsafeOnResume(fiber);
|
141
|
+
this.second.unsafeOnResume(fiber);
|
142
|
+
}
|
143
|
+
|
144
|
+
}
|
145
|
+
/**
|
146
|
+
* @tsplus macro remove
|
147
|
+
*/
|
148
|
+
|
149
|
+
|
150
|
+
exports.Zip = Zip;
|
151
|
+
|
152
|
+
function concrete(_) {//
|
153
|
+
}
|
89
154
|
//# sourceMappingURL=definition.cjs.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"definition.cjs","mappings":"
|
1
|
+
{"version":3,"file":"definition.cjs","mappings":"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","names":["Supervisor","unsafeOnEffect","_fiber","_effect","unsafeOnSuspend","unsafeOnResume","ConstSupervisor","constructor","value","unsafeOnStart","unsafeOnEnd","ProxySupervisor","underlying","environment","effect","parent","fiber","Zip","first","second","tsplus_module_1","fileName_1","concrete","_"],"sourceRoot":"","sources":["../../_src/Supervisor/definition.ts"],"sourcesContent":[null]}
|
@@ -0,0 +1,172 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.SupervisorPatchTypeId = exports.SupervisorPatch = exports.RemoveSupervisor = exports.Empty = exports.Combine = exports.AddSupervisor = void 0;
|
7
|
+
exports.apply = apply;
|
8
|
+
exports.combine = void 0;
|
9
|
+
exports.concrete = concrete;
|
10
|
+
exports.diff = diff;
|
11
|
+
exports.empty = void 0;
|
12
|
+
|
13
|
+
var tsplus_module_1 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/io/Supervisor/api"));
|
14
|
+
|
15
|
+
var tsplus_module_2 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/collection/immutable/HashSet/api"));
|
16
|
+
|
17
|
+
var tsplus_module_3 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/collection/immutable/List/definition"));
|
18
|
+
|
19
|
+
var tsplus_module_4 = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@fncts/base/collection/immutable/List/constructors"));
|
20
|
+
|
21
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
22
|
+
|
23
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
24
|
+
|
25
|
+
const combine = combine_1;
|
26
|
+
exports.combine = combine;
|
27
|
+
const SupervisorPatchTypeId = /*#__PURE__*/Symbol.for("fncts.io.Supervisor.Patch");
|
28
|
+
/**
|
29
|
+
* @tsplus type fncts.io.SupervisorPatch
|
30
|
+
* @tsplus companion fncts.io.SupervisorPatchOps
|
31
|
+
*/
|
32
|
+
|
33
|
+
exports.SupervisorPatchTypeId = SupervisorPatchTypeId;
|
34
|
+
|
35
|
+
class SupervisorPatch {
|
36
|
+
constructor() {
|
37
|
+
this._typeId = SupervisorPatchTypeId;
|
38
|
+
}
|
39
|
+
|
40
|
+
}
|
41
|
+
|
42
|
+
exports.SupervisorPatch = SupervisorPatch;
|
43
|
+
|
44
|
+
class AddSupervisor extends SupervisorPatch {
|
45
|
+
constructor(supervisor) {
|
46
|
+
super();
|
47
|
+
this.supervisor = supervisor;
|
48
|
+
this._tag = 0
|
49
|
+
/* SupervisorPatchTag.AddSupervisor */
|
50
|
+
;
|
51
|
+
}
|
52
|
+
|
53
|
+
}
|
54
|
+
|
55
|
+
exports.AddSupervisor = AddSupervisor;
|
56
|
+
|
57
|
+
class Combine extends SupervisorPatch {
|
58
|
+
constructor(first, second) {
|
59
|
+
super();
|
60
|
+
this.first = first;
|
61
|
+
this.second = second;
|
62
|
+
this._tag = 1
|
63
|
+
/* SupervisorPatchTag.Combine */
|
64
|
+
;
|
65
|
+
}
|
66
|
+
|
67
|
+
}
|
68
|
+
|
69
|
+
exports.Combine = Combine;
|
70
|
+
|
71
|
+
class Empty extends SupervisorPatch {
|
72
|
+
constructor() {
|
73
|
+
super(...arguments);
|
74
|
+
this._tag = 2
|
75
|
+
/* SupervisorPatchTag.Empty */
|
76
|
+
;
|
77
|
+
}
|
78
|
+
|
79
|
+
}
|
80
|
+
|
81
|
+
exports.Empty = Empty;
|
82
|
+
|
83
|
+
class RemoveSupervisor extends SupervisorPatch {
|
84
|
+
constructor(supervisor) {
|
85
|
+
super();
|
86
|
+
this.supervisor = supervisor;
|
87
|
+
this._tag = 3
|
88
|
+
/* SupervisorPatchTag.RemoveSupervisor */
|
89
|
+
;
|
90
|
+
}
|
91
|
+
|
92
|
+
}
|
93
|
+
/**
|
94
|
+
* @tsplus macro remove
|
95
|
+
*/
|
96
|
+
|
97
|
+
|
98
|
+
exports.RemoveSupervisor = RemoveSupervisor;
|
99
|
+
|
100
|
+
function concrete(_) {//
|
101
|
+
}
|
102
|
+
/**
|
103
|
+
* @tsplus static fncts.io.SupervisorPatchOps empty
|
104
|
+
*/
|
105
|
+
|
106
|
+
|
107
|
+
const empty_1 = /*#__PURE__*/new Empty();
|
108
|
+
const empty = empty_1;
|
109
|
+
/**
|
110
|
+
* @tsplus fluent fncts.io.SupervisorPatch combine
|
111
|
+
*/
|
112
|
+
|
113
|
+
exports.empty = empty;
|
114
|
+
|
115
|
+
function combine_1(first, second) {
|
116
|
+
return new Combine(first, second);
|
117
|
+
}
|
118
|
+
/**
|
119
|
+
* @tsplus static fncts.io.SupervisorPatchOps diff
|
120
|
+
*/
|
121
|
+
|
122
|
+
|
123
|
+
function diff(oldValue, newValue) {
|
124
|
+
if (oldValue === newValue) return new Empty();else {
|
125
|
+
const oldSupervisors = tsplus_module_1.toSet(oldValue);
|
126
|
+
const newSupervisors = tsplus_module_1.toSet(newValue);
|
127
|
+
const added = tsplus_module_2.foldLeft_(tsplus_module_2.difference_(newSupervisors, oldSupervisors), empty_1, (patch, supervisor) => combine_1(patch, new AddSupervisor(supervisor)));
|
128
|
+
const removed = tsplus_module_2.foldLeft_(tsplus_module_2.difference_(oldSupervisors, newSupervisors), empty_1, (patch, supervisor) => combine_1(patch, new RemoveSupervisor(supervisor)));
|
129
|
+
return combine_1(added, removed);
|
130
|
+
}
|
131
|
+
}
|
132
|
+
|
133
|
+
function applyLoop(supervisor, patches) {
|
134
|
+
if (tsplus_module_3.isEmpty(patches)) {
|
135
|
+
return supervisor;
|
136
|
+
}
|
137
|
+
|
138
|
+
const head = patches.head;
|
139
|
+
const tail = patches.tail;
|
140
|
+
void 0;
|
141
|
+
|
142
|
+
switch (head._tag) {
|
143
|
+
case 0
|
144
|
+
/* SupervisorPatchTag.AddSupervisor */
|
145
|
+
:
|
146
|
+
return applyLoop(tsplus_module_1.zip_(supervisor, head.supervisor), tail);
|
147
|
+
|
148
|
+
case 1
|
149
|
+
/* SupervisorPatchTag.Combine */
|
150
|
+
:
|
151
|
+
return applyLoop(supervisor, tsplus_module_4.cons(head.first, tsplus_module_4.cons(head.second, patches)));
|
152
|
+
|
153
|
+
case 2
|
154
|
+
/* SupervisorPatchTag.Empty */
|
155
|
+
:
|
156
|
+
return applyLoop(supervisor, tail);
|
157
|
+
|
158
|
+
case 3
|
159
|
+
/* SupervisorPatchTag.RemoveSupervisor */
|
160
|
+
:
|
161
|
+
return applyLoop(tsplus_module_1.removeSupervisor(supervisor, head.supervisor), tail);
|
162
|
+
}
|
163
|
+
}
|
164
|
+
/**
|
165
|
+
* @tsplus fluent fncts.io.SupervisorPatch __call
|
166
|
+
*/
|
167
|
+
|
168
|
+
|
169
|
+
function apply(self, supervisor) {
|
170
|
+
return applyLoop(supervisor, tsplus_module_4.cons(self));
|
171
|
+
}
|
172
|
+
//# sourceMappingURL=SupervisorPatch.cjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"SupervisorPatch.cjs","mappings":"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","names":["combine","SupervisorPatchTypeId","Symbol","for","SupervisorPatch","constructor","AddSupervisor","supervisor","Combine","first","second","Empty","RemoveSupervisor","concrete","_","empty_1","empty","diff","oldValue","newValue","oldSupervisors","newSupervisors","added","tsplus_module_2","patch","combine_1","removed","applyLoop","patches","tsplus_module_3","head","tail","_tag","tsplus_module_1","tsplus_module_4","apply","self"],"sourceRoot":"","sources":["../_src/SupervisorPatch.ts"],"sourcesContent":[null]}
|
@@ -0,0 +1,90 @@
|
|
1
|
+
import * as tsplus_module_1 from "@fncts/base/data/function/api";
|
2
|
+
import * as tsplus_module_2 from "@fncts/base/data/EnvironmentPatch";
|
3
|
+
import * as tsplus_module_3 from "@fncts/io/SupervisorPatch";
|
4
|
+
import { Differ } from "./definition.mjs";
|
5
|
+
/**
|
6
|
+
* Constructs a differ that just diffs two values by returning a function that
|
7
|
+
* sets the value to the new value. This differ does not support combining
|
8
|
+
* multiple updates to the value compositionally and should only be used when
|
9
|
+
* there is no compositional way to update them.
|
10
|
+
*
|
11
|
+
* @tsplus static fncts.io.DifferOps update
|
12
|
+
*/
|
13
|
+
|
14
|
+
export function update() {
|
15
|
+
return new class extends Differ {
|
16
|
+
constructor() {
|
17
|
+
super(...arguments);
|
18
|
+
this.empty = tsplus_module_1.identity;
|
19
|
+
}
|
20
|
+
|
21
|
+
combine(first, second) {
|
22
|
+
if (first === this.empty) return second;else if (second === this.empty) return first;
|
23
|
+
return tsplus_module_1.compose_(first, second);
|
24
|
+
}
|
25
|
+
|
26
|
+
diff(oldValue, newValue) {
|
27
|
+
if (oldValue === newValue) return this.empty;else return () => newValue;
|
28
|
+
}
|
29
|
+
|
30
|
+
patch(patch) {
|
31
|
+
return patch;
|
32
|
+
}
|
33
|
+
|
34
|
+
}();
|
35
|
+
}
|
36
|
+
/**
|
37
|
+
* Constructs a differ that knows how to diff `Environment` values.
|
38
|
+
*
|
39
|
+
* @tsplus static fncts.io.DifferOps environment
|
40
|
+
*/
|
41
|
+
|
42
|
+
export function environment() {
|
43
|
+
return new class extends Differ {
|
44
|
+
constructor() {
|
45
|
+
super(...arguments);
|
46
|
+
this.empty = tsplus_module_2.empty();
|
47
|
+
}
|
48
|
+
|
49
|
+
combine(first, second) {
|
50
|
+
return tsplus_module_2.combine(first, second);
|
51
|
+
}
|
52
|
+
|
53
|
+
diff(oldValue, newValue) {
|
54
|
+
return tsplus_module_2.diff(oldValue, newValue);
|
55
|
+
}
|
56
|
+
|
57
|
+
patch(patch) {
|
58
|
+
return oldValue => tsplus_module_2.apply(patch, oldValue);
|
59
|
+
}
|
60
|
+
|
61
|
+
}();
|
62
|
+
}
|
63
|
+
/**
|
64
|
+
* Constructs a differ that knows how to diff `Supervisor` values.
|
65
|
+
*
|
66
|
+
* @tsplus static fncts.io.DifferOps supervisor
|
67
|
+
*/
|
68
|
+
|
69
|
+
export function supervisor() {
|
70
|
+
return new class extends Differ {
|
71
|
+
constructor() {
|
72
|
+
super(...arguments);
|
73
|
+
this.empty = tsplus_module_3.empty;
|
74
|
+
}
|
75
|
+
|
76
|
+
combine(first, second) {
|
77
|
+
return tsplus_module_3.combine(first, second);
|
78
|
+
}
|
79
|
+
|
80
|
+
diff(oldValue, newValue) {
|
81
|
+
return tsplus_module_3.diff(oldValue, newValue);
|
82
|
+
}
|
83
|
+
|
84
|
+
patch(patch) {
|
85
|
+
return oldValue => tsplus_module_3.apply(patch, oldValue);
|
86
|
+
}
|
87
|
+
|
88
|
+
}();
|
89
|
+
}
|
90
|
+
//# sourceMappingURL=api.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"api.mjs","mappings":";;;AAKA,SAASA,MAAT,QAAuB,kBAAvB;AAEA;;;;;;;;;AAQA,OAAM,SAAUC,MAAV,GAAgB;EACpB,OAAO,IAAK,cAAcD,MAAd,CAAoC;IAApCE;;MAUV,aAAKC,wBAAL;IAID;;IAbCC,OAAO,CAACC,KAAD,EAAqBC,MAArB,EAAwC;MAC7C,IAAID,KAAK,KAAK,KAAKE,KAAnB,EAA0B,OAAOD,MAAP,CAA1B,KACK,IAAIA,MAAM,KAAK,KAAKC,KAApB,EAA2B,OAAOF,KAAP;MAChC,OAAOF,gCAAcG,MAAd,CAAP;IACD;;IACDE,IAAI,CAACC,QAAD,EAAcC,QAAd,EAAyB;MAC3B,IAAID,QAAQ,KAAKC,QAAjB,EAA2B,OAAO,KAAKH,KAAZ,CAA3B,KACK,OAAO,MAAMG,QAAb;IACN;;IAEDC,KAAK,CAACA,KAAD,EAAmB;MACtB,OAAOA,KAAP;IACD;;EAb6C,CAAzC,EAAP;AAeD;AAED;;;;;;AAKA,OAAM,SAAUC,WAAV,GAAqB;EACzB,OAAO,IAAK,cAAcZ,MAAd,CAA6D;IAA7DE;;MAOV,aAAQW,uBAAR;IAID;;IAVCT,OAAO,CAACC,KAAD,EAAiCC,MAAjC,EAAgE;MACrE,OAAOO,+BAAcP,MAAd,CAAP;IACD;;IACDE,IAAI,CAACC,QAAD,EAA2BC,QAA3B,EAAmD;MACrD,OAAOG,qBAAsBJ,QAAtB,EAAgCC,QAAhC,CAAP;IACD;;IAEDC,KAAK,CAACA,KAAD,EAA+B;MAClC,OAAQF,QAAD,IAAcI,6BAAMJ,QAAN,CAArB;IACD;;EAVsE,CAAlE,EAAP;AAYD;AAED;;;;;;AAKA,OAAM,SAAUK,UAAV,GAAoB;EACxB,OAAO,IAAK,cAAcd,MAAd,CAAuD;IAAvDE;;MAOV,aAAKa,qBAAL;IAID;;IAVCX,OAAO,CAACC,KAAD,EAAyBC,MAAzB,EAAgD;MACrD,OAAOS,+BAAcT,MAAd,CAAP;IACD;;IACDE,IAAI,CAACC,QAAD,EAA4BC,QAA5B,EAAqD;MACvD,OAAOK,qBAAqBN,QAArB,EAA+BC,QAA/B,CAAP;IACD;;IAEDC,KAAK,CAACA,KAAD,EAAuB;MAC1B,OAAQF,QAAD,IAAcM,6BAAMN,QAAN,CAArB;IACD;;EAVgE,CAA5D,EAAP;AAYD","names":["Differ","update","constructor","tsplus_module_1","combine","first","second","empty","diff","oldValue","newValue","patch","environment","tsplus_module_2","supervisor","tsplus_module_3"],"sourceRoot":"","sources":["../../_src/Differ/api.ts"],"sourcesContent":[null]}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
export const DifferTypeId = /*#__PURE__*/Symbol.for("fncts.io.Differ");
|
2
|
+
/**
|
3
|
+
* @tsplus type fncts.io.Differ
|
4
|
+
* @tsplus companion fncts.io.DifferOps
|
5
|
+
*/
|
6
|
+
|
7
|
+
export class Differ {
|
8
|
+
constructor() {
|
9
|
+
this._typeId = DifferTypeId;
|
10
|
+
}
|
11
|
+
|
12
|
+
}
|
13
|
+
//# sourceMappingURL=definition.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"definition.mjs","mappings":"AAAA,OAAO,MAAMA,YAAY,gBAAGC,MAAM,CAACC,GAAP,CAAW,iBAAX,CAArB;AAGP;;;;;AAIA,OAAM,MAAgBC,MAAhB,CAAsB;EAA5BC;IACW,eAAwBJ,YAAxB;EAOV;;AAR2B","names":["DifferTypeId","Symbol","for","Differ","constructor"],"sourceRoot":"","sources":["../../_src/Differ/definition.ts"],"sourcesContent":[null]}
|
package/_mjs/FiberRef/unsafe.mjs
CHANGED
@@ -1,13 +1,16 @@
|
|
1
|
-
import * as tsplus_module_1 from "@fncts/
|
2
|
-
import * as tsplus_module_2 from "@fncts/base/data/
|
3
|
-
import * as tsplus_module_3 from "@fncts/
|
4
|
-
import * as tsplus_module_4 from "@fncts/
|
5
|
-
import * as tsplus_module_5 from "@fncts/base/
|
6
|
-
import * as tsplus_module_6 from "@fncts/
|
7
|
-
import * as tsplus_module_7 from "@fncts/
|
8
|
-
import * as tsplus_module_8 from "@fncts/
|
1
|
+
import * as tsplus_module_1 from "@fncts/io/Differ/api";
|
2
|
+
import * as tsplus_module_2 from "@fncts/base/data/EnvironmentPatch";
|
3
|
+
import * as tsplus_module_3 from "@fncts/io/SupervisorPatch";
|
4
|
+
import * as tsplus_module_4 from "@fncts/base/data/Maybe/constructors";
|
5
|
+
import * as tsplus_module_5 from "@fncts/base/data/Environment/api";
|
6
|
+
import * as tsplus_module_6 from "@fncts/io/LogLevel";
|
7
|
+
import * as tsplus_module_7 from "@fncts/base/collection/immutable/List/constructors";
|
8
|
+
import * as tsplus_module_8 from "@fncts/base/collection/immutable/HashMap/api";
|
9
|
+
import * as tsplus_module_9 from "@fncts/io/Supervisor/constructors";
|
10
|
+
import * as tsplus_module_10 from "@fncts/io/internal/IsFatal";
|
9
11
|
export const unsafeMakePatch = unsafeMakePatch_1;
|
10
12
|
export const unsafeMakeEnvironment = unsafeMakeEnvironment_1;
|
13
|
+
export const unsafeMakeSupervisor = unsafeMakeSupervisor_1;
|
11
14
|
export const unsafeMake = unsafeMake_1;
|
12
15
|
import { identity } from "@fncts/base/data/function";
|
13
16
|
import { defaultScheduler } from "@fncts/io/internal/Scheduler";
|
@@ -16,8 +19,8 @@ import { FiberRefInternal } from "./definition.mjs";
|
|
16
19
|
* @tsplus static fncts.io.FiberRefOps unsafeMakePatch
|
17
20
|
*/
|
18
21
|
|
19
|
-
function unsafeMakePatch_1(initial,
|
20
|
-
return new FiberRefInternal(initial, diff, combine, patch, fork, join);
|
22
|
+
function unsafeMakePatch_1(initial, differ, fork, join = (_, newValue) => newValue) {
|
23
|
+
return new FiberRefInternal(initial, (oldValue, newValue) => differ.diff(oldValue, newValue), (first, second) => differ.combine(first, second), patch => oldValue => differ.patch(patch)(oldValue), fork, join);
|
21
24
|
}
|
22
25
|
/**
|
23
26
|
* @tsplus static fncts.io.FiberRefOps unsafeMakeEnvironment
|
@@ -25,7 +28,15 @@ function unsafeMakePatch_1(initial, diff, combine, patch, fork, join = (_, newVa
|
|
25
28
|
|
26
29
|
|
27
30
|
function unsafeMakeEnvironment_1(initial) {
|
28
|
-
return unsafeMakePatch_1(initial, tsplus_module_1.
|
31
|
+
return unsafeMakePatch_1(initial, tsplus_module_1.environment(), tsplus_module_2.empty());
|
32
|
+
}
|
33
|
+
/**
|
34
|
+
* @tsplus static fncts.io.FiberRefOps unsafeMakeSupervisor
|
35
|
+
*/
|
36
|
+
|
37
|
+
|
38
|
+
function unsafeMakeSupervisor_1(initial) {
|
39
|
+
return unsafeMakePatch_1(initial, tsplus_module_1.supervisor(), tsplus_module_3.empty);
|
29
40
|
}
|
30
41
|
/**
|
31
42
|
* @tsplus static fncts.io.FiberRefOps unsafeMake
|
@@ -33,39 +44,39 @@ function unsafeMakeEnvironment_1(initial) {
|
|
33
44
|
|
34
45
|
|
35
46
|
function unsafeMake_1(initial, fork = identity, join = (_, a) => a) {
|
36
|
-
return unsafeMakePatch_1(initial, (
|
47
|
+
return unsafeMakePatch_1(initial, tsplus_module_1.update(), fork, join);
|
37
48
|
}
|
38
49
|
/**
|
39
50
|
* @tsplus static fncts.io.FiberRefOps forkScopeOverride
|
40
51
|
*/
|
41
52
|
|
42
53
|
|
43
|
-
export const forkScopeOverride = /*#__PURE__*/unsafeMake_1( /*#__PURE__*/
|
54
|
+
export const forkScopeOverride = /*#__PURE__*/unsafeMake_1( /*#__PURE__*/tsplus_module_4.nothing(), () => tsplus_module_4.nothing(), (parent, _) => parent);
|
44
55
|
/**
|
45
56
|
* @tsplus static fncts.io.FiberRefOps currentEnvironment
|
46
57
|
*/
|
47
58
|
|
48
|
-
export const currentEnvironment = /*#__PURE__*/unsafeMakeEnvironment_1(
|
59
|
+
export const currentEnvironment = /*#__PURE__*/unsafeMakeEnvironment_1(tsplus_module_5.empty);
|
49
60
|
/**
|
50
61
|
* @tsplus static fncts.io.FiberRefOps fiberName
|
51
62
|
*/
|
52
63
|
|
53
|
-
export const fiberName = /*#__PURE__*/unsafeMake_1( /*#__PURE__*/
|
64
|
+
export const fiberName = /*#__PURE__*/unsafeMake_1( /*#__PURE__*/tsplus_module_4.nothing());
|
54
65
|
/**
|
55
66
|
* @tsplus static fncts.io.FiberRefOps currentLogLevel
|
56
67
|
*/
|
57
68
|
|
58
|
-
export const currentLogLevel = /*#__PURE__*/unsafeMake_1(
|
69
|
+
export const currentLogLevel = /*#__PURE__*/unsafeMake_1(tsplus_module_6.Info);
|
59
70
|
/**
|
60
71
|
* @tsplus static fncts.io.FiberRefOps currentLogSpan
|
61
72
|
*/
|
62
73
|
|
63
|
-
export const currentLogSpan = /*#__PURE__*/unsafeMake_1( /*#__PURE__*/
|
74
|
+
export const currentLogSpan = /*#__PURE__*/unsafeMake_1( /*#__PURE__*/tsplus_module_7.nil());
|
64
75
|
/**
|
65
76
|
* @tsplus static fncts.io.FiberRefOps currentLogAnnotations
|
66
77
|
*/
|
67
78
|
|
68
|
-
export const currentLogAnnotations = /*#__PURE__*/unsafeMake_1( /*#__PURE__*/
|
79
|
+
export const currentLogAnnotations = /*#__PURE__*/unsafeMake_1( /*#__PURE__*/tsplus_module_8.makeDefault());
|
69
80
|
/**
|
70
81
|
* @tsplus static fncts.io.FiberRefOps currentScheduler
|
71
82
|
*/
|
@@ -75,12 +86,12 @@ export const currentScheduler = /*#__PURE__*/unsafeMake_1(defaultScheduler);
|
|
75
86
|
* @tsplus static fncts.io.FiberRefOps currentSupervisor
|
76
87
|
*/
|
77
88
|
|
78
|
-
export const currentSupervisor = /*#__PURE__*/
|
89
|
+
export const currentSupervisor = /*#__PURE__*/unsafeMakeSupervisor_1(tsplus_module_9.none);
|
79
90
|
/**
|
80
91
|
* @tsplus static fncts.io.FiberRefOps currentIsFatal
|
81
92
|
*/
|
82
93
|
|
83
|
-
export const currentIsFatal = /*#__PURE__*/unsafeMake_1(
|
94
|
+
export const currentIsFatal = /*#__PURE__*/unsafeMake_1(tsplus_module_10.empty);
|
84
95
|
/**
|
85
96
|
* @tsplus static fncts.io.FiberRefOps currentReportFatal
|
86
97
|
*/
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"unsafe.mjs","mappings":"
|
1
|
+
{"version":3,"file":"unsafe.mjs","mappings":";;;;;;;;;;aAcgBA,eAAe;aAmBfC,qBAAqB;aASrBC,oBAAoB;aAOpBC,UAAU;AA7C1B,SAASC,QAAT,QAAyB,2BAAzB;AAEA,SAASC,gBAAT,QAAiC,8BAAjC;AAGA,SAASC,gBAAT,QAAiC,kBAAjC;AAEA;;;;AAGA,2BACEC,OADF,EAEEC,MAFF,EAGEC,IAHF,EAIEC,OAAoD,CAACC,CAAD,EAAIC,QAAJ,KAAiBA,QAJvE,EAI+E;EAE7E,OAAO,IAAIN,gBAAJ,CACLC,OADK,EAEL,CAACM,QAAD,EAAWD,QAAX,KAAwBJ,MAAM,CAACM,IAAP,CAAYD,QAAZ,EAAsBD,QAAtB,CAFnB,EAGL,CAACG,KAAD,EAAQC,MAAR,KAAmBR,MAAM,CAACS,OAAP,CAAeF,KAAf,EAAsBC,MAAtB,CAHd,EAIJE,KAAD,IAAYL,QAAD,IAAcL,MAAM,CAACU,KAAP,CAAaA,KAAb,EAAoBL,QAApB,CAJpB,EAKLJ,IALK,EAMLC,IANK,CAAP;AAQD;AAED;;;;;AAGA,iCACEH,OADF,EACyB;EAEvB,OAAOY,kBAAyBZ,OAAzB,EAAkCa,6BAAlC,EAAwDC,uBAAxD,CAAP;AACD;AAED;;;;;AAGA,gCAAqCd,OAArC,EAA6D;EAC3D,OAAOY,kBAAyBZ,OAAzB,EAAkCa,4BAAlC,EAAqDE,qBAArD,CAAP;AACD;AAED;;;;;AAGA,sBACEf,OADF,EAEEE,OAAoBL,QAFtB,EAGEM,OAA4B,CAACC,CAAD,EAAIY,CAAJ,KAAUA,CAHxC,EAGyC;EAEvC,OAAOJ,kBAAyBZ,OAAzB,EAAkCa,wBAAlC,EAAmDX,IAAnD,EAAyDC,IAAzD,CAAP;AACD;AAED;;;;;AAGA,OAAO,MAAMc,iBAAiB,gBAAGC,2BAC/BC,yBAD+B,EAE/B,MAAMA,yBAFyB,EAG/B,CAACC,MAAD,EAAShB,CAAT,KAAegB,MAHgB,CAA1B;AAMP;;;;AAGA,OAAO,MAAMC,kBAAkB,gBAAGC,8CAA3B;AAEP;;;;AAGA,OAAO,MAAMC,SAAS,gBAAGL,2BAAmCC,yBAAnC,CAAlB;AAEP;;;;AAGA,OAAO,MAAMK,eAAe,gBAAGN,kCAAxB;AAEP;;;;AAGA,OAAO,MAAMO,cAAc,gBAAGP,2BAAmCQ,qBAAnC,CAAvB;AAEP;;;;AAGA,OAAO,MAAMC,qBAAqB,gBAAGT,2BAA6CU,6BAA7C,CAA9B;AAEP;;;;AAGA,OAAO,MAAMC,gBAAgB,gBAAGX,aAA+BpB,gBAA/B,CAAzB;AAEP;;;;AAGA,OAAO,MAAMgC,iBAAiB,gBAAGC,4CAA1B;AAEP;;;;AAGA,OAAO,MAAMC,cAAc,gBAAGd,oCAAvB;AAEP;;;;AAGA,OAAO,MAAMe,kBAAkB,gBAAGf,aAA4CgB,CAAD,IAAM;EACjF,MAAMA,CAAN;AACD,CAFiC,CAA3B","names":["unsafeMakePatch","unsafeMakeEnvironment","unsafeMakeSupervisor","unsafeMake","identity","defaultScheduler","FiberRefInternal","initial","differ","fork","join","_","newValue","oldValue","diff","first","second","combine","patch","unsafeMakePatch_1","tsplus_module_1","tsplus_module_2","tsplus_module_3","a","forkScopeOverride","unsafeMake_1","tsplus_module_4","parent","currentEnvironment","unsafeMakeEnvironment_1","fiberName","currentLogLevel","currentLogSpan","tsplus_module_7","currentLogAnnotations","tsplus_module_8","currentScheduler","currentSupervisor","unsafeMakeSupervisor_1","currentIsFatal","currentReportFatal","t"],"sourceRoot":"","sources":["../../_src/FiberRef/unsafe.ts"],"sourcesContent":[null]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"definition.mjs","mappings":";;;;;;;
|
1
|
+
{"version":3,"file":"definition.mjs","mappings":";;;;;;;AASA,OAAO,MAAMA,KAAK,GAAa,EAAxB;AAEP;;;;AAGA,OAAO,MAAMC,WAAW,gBAAGC,8HAAaC,oBAAb,EAAaC,wBAAb,GACEC,oBADF,EACEC,yBADF,GAEIC,oBAFJ,EAEIC,0BAFJ,CAApB","names":["IOEnv","environment","tsplus_module_7","tsplus_module_5","tsplus_module_6","tsplus_module_3","tsplus_module_4","tsplus_module_1","tsplus_module_2"],"sourceRoot":"","sources":["../../_src/IOEnv/definition.ts"],"sourcesContent":[null]}
|