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.d.ts +2 -1
- package/node.deps.json +1 -1
- package/node.esm.js +24 -11
- package/node.esm.js.map +1 -1
- package/node.js +24 -11
- package/node.js.map +1 -1
- package/node.test.js +64 -11
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.d.ts +2 -1
- package/web.deps.json +1 -1
- package/web.esm.js +24 -11
- package/web.esm.js.map +1 -1
- package/web.js +24 -11
- package/web.js.map +1 -1
- package/web.test.js +40 -0
- package/web.test.js.map +1 -1
package/node.js
CHANGED
|
@@ -1678,17 +1678,27 @@ var $;
|
|
|
1678
1678
|
};
|
|
1679
1679
|
}
|
|
1680
1680
|
}
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
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
|
-
|
|
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.
|
|
1797
|
+
return atom.resync(...args);
|
|
1785
1798
|
};
|
|
1786
1799
|
Object.defineProperty(wrapper, 'name', { value: func.name + ' ' });
|
|
1787
1800
|
Object.assign(wrapper, { orig: func });
|