mol_jsx_lib 0.0.36 → 0.0.39

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
@@ -1678,17 +1678,27 @@ var $;
1678
1678
  };
1679
1679
  }
1680
1680
  }
1681
- recall(...args) {
1682
- if (this.cursor > $mol_wire_cursor.fresh) {
1683
- try {
1684
- this.once();
1685
- }
1686
- catch (error) {
1687
- if (error instanceof Promise)
1688
- $mol_fail_hidden(error);
1689
- }
1681
+ resync(...args) {
1682
+ let res;
1683
+ try {
1684
+ res = this.recall(...args);
1685
+ }
1686
+ catch (error) {
1687
+ if (error instanceof Promise)
1688
+ $mol_fail_hidden(error);
1689
+ res = error;
1690
1690
  }
1691
- return this.put(this.task.call(this.host, ...args));
1691
+ try {
1692
+ this.once();
1693
+ }
1694
+ catch (error) {
1695
+ if (error instanceof Promise)
1696
+ $mol_fail_hidden(error);
1697
+ }
1698
+ return this.put(res);
1699
+ }
1700
+ recall(...args) {
1701
+ return this.task.call(this.host, ...args);
1692
1702
  }
1693
1703
  once() {
1694
1704
  return this.sync();
@@ -1734,6 +1744,9 @@ var $;
1734
1744
  return next;
1735
1745
  }
1736
1746
  }
1747
+ __decorate([
1748
+ $mol_wire_method
1749
+ ], $mol_wire_atom.prototype, "resync", null);
1737
1750
  __decorate([
1738
1751
  $mol_wire_method
1739
1752
  ], $mol_wire_atom.prototype, "recall", null);
@@ -1781,7 +1794,7 @@ var $;
1781
1794
  return atom.sync();
1782
1795
  }
1783
1796
  }
1784
- return atom.recall(...args);
1797
+ return atom.resync(...args);
1785
1798
  };
1786
1799
  Object.defineProperty(wrapper, 'name', { value: func.name + ' ' });
1787
1800
  Object.assign(wrapper, { orig: func });