mol_jsx_lib 0.0.40 → 0.0.41
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 +0 -1
- package/node.deps.json +1 -1
- package/node.esm.js +1 -23
- package/node.esm.js.map +1 -1
- package/node.js +1 -23
- package/node.js.map +1 -1
- package/node.test.js +3 -50
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.d.ts +0 -1
- package/web.deps.json +1 -1
- package/web.esm.js +1 -23
- package/web.esm.js.map +1 -1
- package/web.js +1 -23
- package/web.js.map +1 -1
- package/web.test.js +2 -27
- package/web.test.js.map +1 -1
package/node.test.js
CHANGED
|
@@ -1671,26 +1671,7 @@ var $;
|
|
|
1671
1671
|
}
|
|
1672
1672
|
}
|
|
1673
1673
|
resync(...args) {
|
|
1674
|
-
|
|
1675
|
-
try {
|
|
1676
|
-
res = this.recall(...args);
|
|
1677
|
-
}
|
|
1678
|
-
catch (error) {
|
|
1679
|
-
if (error instanceof Promise)
|
|
1680
|
-
$mol_fail_hidden(error);
|
|
1681
|
-
res = error;
|
|
1682
|
-
}
|
|
1683
|
-
try {
|
|
1684
|
-
this.once();
|
|
1685
|
-
}
|
|
1686
|
-
catch (error) {
|
|
1687
|
-
if (error instanceof Promise)
|
|
1688
|
-
$mol_fail_hidden(error);
|
|
1689
|
-
}
|
|
1690
|
-
return this.put(res);
|
|
1691
|
-
}
|
|
1692
|
-
recall(...args) {
|
|
1693
|
-
return this.task.call(this.host, ...args);
|
|
1674
|
+
return this.put(this.task.call(this.host, ...args));
|
|
1694
1675
|
}
|
|
1695
1676
|
once() {
|
|
1696
1677
|
return this.sync();
|
|
@@ -1739,9 +1720,6 @@ var $;
|
|
|
1739
1720
|
__decorate([
|
|
1740
1721
|
$mol_wire_method
|
|
1741
1722
|
], $mol_wire_atom.prototype, "resync", null);
|
|
1742
|
-
__decorate([
|
|
1743
|
-
$mol_wire_method
|
|
1744
|
-
], $mol_wire_atom.prototype, "recall", null);
|
|
1745
1723
|
__decorate([
|
|
1746
1724
|
$mol_wire_method
|
|
1747
1725
|
], $mol_wire_atom.prototype, "once", null);
|
|
@@ -2943,33 +2921,6 @@ var $;
|
|
|
2943
2921
|
], App, "test", null);
|
|
2944
2922
|
App.test();
|
|
2945
2923
|
},
|
|
2946
|
-
'Update deps on push'($) {
|
|
2947
|
-
class App extends $mol_object2 {
|
|
2948
|
-
static $ = $;
|
|
2949
|
-
static left(next = false) {
|
|
2950
|
-
return next;
|
|
2951
|
-
}
|
|
2952
|
-
static right(next = false) {
|
|
2953
|
-
return next;
|
|
2954
|
-
}
|
|
2955
|
-
static res(next) {
|
|
2956
|
-
return this.left(next) && this.right();
|
|
2957
|
-
}
|
|
2958
|
-
}
|
|
2959
|
-
__decorate([
|
|
2960
|
-
$mol_wire_mem(0)
|
|
2961
|
-
], App, "left", null);
|
|
2962
|
-
__decorate([
|
|
2963
|
-
$mol_wire_mem(0)
|
|
2964
|
-
], App, "right", null);
|
|
2965
|
-
__decorate([
|
|
2966
|
-
$mol_wire_mem(0)
|
|
2967
|
-
], App, "res", null);
|
|
2968
|
-
$mol_assert_equal(App.res(), false);
|
|
2969
|
-
$mol_assert_equal(App.res(true), false);
|
|
2970
|
-
$mol_assert_equal(App.right(true), true);
|
|
2971
|
-
$mol_assert_equal(App.res(), true);
|
|
2972
|
-
},
|
|
2973
2924
|
'Different order of pull and push'($) {
|
|
2974
2925
|
class App extends $mol_object2 {
|
|
2975
2926
|
static $ = $;
|
|
@@ -2980,6 +2931,8 @@ var $;
|
|
|
2980
2931
|
return this.store(next);
|
|
2981
2932
|
}
|
|
2982
2933
|
static slow(next) {
|
|
2934
|
+
if (next !== undefined)
|
|
2935
|
+
this.slow();
|
|
2983
2936
|
return this.store(next);
|
|
2984
2937
|
}
|
|
2985
2938
|
}
|