mol_plot_all 1.2.1514 → 1.2.1516

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.js CHANGED
@@ -1084,10 +1084,12 @@ var $;
1084
1084
  result = wrappers.get(result);
1085
1085
  }
1086
1086
  else {
1087
- wrappers.set(result, result = Object.assign(result.finally(() => {
1087
+ const put = (v) => {
1088
1088
  if (this.cache === result)
1089
1089
  this.absorb();
1090
- }), { destructor: result.destructor || (() => { }) }));
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() {