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.js
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() {
|