mol_plot_all 1.2.1515 → 1.2.1517
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
|
}
|
|
@@ -2527,6 +2529,12 @@ var $;
|
|
|
2527
2529
|
$mol_wire_atom.watching.add(this);
|
|
2528
2530
|
}
|
|
2529
2531
|
resync(args) {
|
|
2532
|
+
for (let cursor = this.pub_from; cursor < this.sub_from; cursor += 2) {
|
|
2533
|
+
const pub = this.data[cursor];
|
|
2534
|
+
if (pub && pub instanceof $mol_wire_task) {
|
|
2535
|
+
pub.destructor();
|
|
2536
|
+
}
|
|
2537
|
+
}
|
|
2530
2538
|
return this.put(this.task.call(this.host, ...args));
|
|
2531
2539
|
}
|
|
2532
2540
|
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
|
}
|
|
@@ -2518,6 +2520,12 @@ var $;
|
|
|
2518
2520
|
$mol_wire_atom.watching.add(this);
|
|
2519
2521
|
}
|
|
2520
2522
|
resync(args) {
|
|
2523
|
+
for (let cursor = this.pub_from; cursor < this.sub_from; cursor += 2) {
|
|
2524
|
+
const pub = this.data[cursor];
|
|
2525
|
+
if (pub && pub instanceof $mol_wire_task) {
|
|
2526
|
+
pub.destructor();
|
|
2527
|
+
}
|
|
2528
|
+
}
|
|
2521
2529
|
return this.put(this.task.call(this.host, ...args));
|
|
2522
2530
|
}
|
|
2523
2531
|
once() {
|