mol_jsx_lib 0.0.1405 → 0.0.1407
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/node.deps.json +1 -1
- package/node.js +10 -2
- package/node.js.map +1 -1
- package/node.mjs +10 -2
- package/node.test.js +10 -2
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.deps.json +1 -1
- package/web.js +10 -2
- package/web.js.map +1 -1
- package/web.mjs +10 -2
package/node.mjs
CHANGED
|
@@ -1084,10 +1084,12 @@ var $;
|
|
|
1084
1084
|
result = wrappers.get(result);
|
|
1085
1085
|
}
|
|
1086
1086
|
else {
|
|
1087
|
-
|
|
1087
|
+
const put = (v) => {
|
|
1088
1088
|
if (this.cache === result)
|
|
1089
1089
|
this.absorb();
|
|
1090
|
-
|
|
1090
|
+
return v;
|
|
1091
|
+
};
|
|
1092
|
+
wrappers.set(result, result = Object.assign(result.then(put, put), { destructor: result.destructor || (() => { }) }));
|
|
1091
1093
|
const error = new Error(`Promise in ${this}`);
|
|
1092
1094
|
Object.defineProperty(result, 'stack', { get: () => error.stack });
|
|
1093
1095
|
}
|
|
@@ -2507,6 +2509,12 @@ var $;
|
|
|
2507
2509
|
$mol_wire_atom.watching.add(this);
|
|
2508
2510
|
}
|
|
2509
2511
|
resync(args) {
|
|
2512
|
+
for (let cursor = this.pub_from; cursor < this.sub_from; cursor += 2) {
|
|
2513
|
+
const pub = this.data[cursor];
|
|
2514
|
+
if (pub && pub instanceof $mol_wire_task) {
|
|
2515
|
+
pub.destructor();
|
|
2516
|
+
}
|
|
2517
|
+
}
|
|
2510
2518
|
return this.put(this.task.call(this.host, ...args));
|
|
2511
2519
|
}
|
|
2512
2520
|
once() {
|
package/node.test.js
CHANGED
|
@@ -1075,10 +1075,12 @@ var $;
|
|
|
1075
1075
|
result = wrappers.get(result);
|
|
1076
1076
|
}
|
|
1077
1077
|
else {
|
|
1078
|
-
|
|
1078
|
+
const put = (v) => {
|
|
1079
1079
|
if (this.cache === result)
|
|
1080
1080
|
this.absorb();
|
|
1081
|
-
|
|
1081
|
+
return v;
|
|
1082
|
+
};
|
|
1083
|
+
wrappers.set(result, result = Object.assign(result.then(put, put), { destructor: result.destructor || (() => { }) }));
|
|
1082
1084
|
const error = new Error(`Promise in ${this}`);
|
|
1083
1085
|
Object.defineProperty(result, 'stack', { get: () => error.stack });
|
|
1084
1086
|
}
|
|
@@ -2498,6 +2500,12 @@ var $;
|
|
|
2498
2500
|
$mol_wire_atom.watching.add(this);
|
|
2499
2501
|
}
|
|
2500
2502
|
resync(args) {
|
|
2503
|
+
for (let cursor = this.pub_from; cursor < this.sub_from; cursor += 2) {
|
|
2504
|
+
const pub = this.data[cursor];
|
|
2505
|
+
if (pub && pub instanceof $mol_wire_task) {
|
|
2506
|
+
pub.destructor();
|
|
2507
|
+
}
|
|
2508
|
+
}
|
|
2501
2509
|
return this.put(this.task.call(this.host, ...args));
|
|
2502
2510
|
}
|
|
2503
2511
|
once() {
|