mol_plot_all 1.2.236 → 1.2.239

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
@@ -1738,17 +1738,27 @@ var $;
1738
1738
  };
1739
1739
  }
1740
1740
  }
1741
- recall(...args) {
1742
- if (this.cursor > $mol_wire_cursor.fresh) {
1743
- try {
1744
- this.once();
1745
- }
1746
- catch (error) {
1747
- if (error instanceof Promise)
1748
- $mol_fail_hidden(error);
1749
- }
1741
+ resync(...args) {
1742
+ let res;
1743
+ try {
1744
+ res = this.recall(...args);
1750
1745
  }
1751
- return this.put(this.task.call(this.host, ...args));
1746
+ catch (error) {
1747
+ if (error instanceof Promise)
1748
+ $mol_fail_hidden(error);
1749
+ res = error;
1750
+ }
1751
+ try {
1752
+ this.once();
1753
+ }
1754
+ catch (error) {
1755
+ if (error instanceof Promise)
1756
+ $mol_fail_hidden(error);
1757
+ }
1758
+ return this.put(res);
1759
+ }
1760
+ recall(...args) {
1761
+ return this.task.call(this.host, ...args);
1752
1762
  }
1753
1763
  once() {
1754
1764
  return this.sync();
@@ -1794,6 +1804,9 @@ var $;
1794
1804
  return next;
1795
1805
  }
1796
1806
  }
1807
+ __decorate([
1808
+ $mol_wire_method
1809
+ ], $mol_wire_atom.prototype, "resync", null);
1797
1810
  __decorate([
1798
1811
  $mol_wire_method
1799
1812
  ], $mol_wire_atom.prototype, "recall", null);
@@ -1841,7 +1854,7 @@ var $;
1841
1854
  return atom.sync();
1842
1855
  }
1843
1856
  }
1844
- return atom.recall(...args);
1857
+ return atom.resync(...args);
1845
1858
  };
1846
1859
  Object.defineProperty(wrapper, 'name', { value: func.name + ' ' });
1847
1860
  Object.assign(wrapper, { orig: func });