mol_jsx_lib 0.0.38 → 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 +1 -1
- package/node.deps.json +1 -1
- package/node.esm.js +3 -12
- package/node.esm.js.map +1 -1
- package/node.js +3 -12
- package/node.js.map +1 -1
- package/node.test.js +18 -12
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.d.ts +1 -1
- package/web.deps.json +1 -1
- package/web.esm.js +3 -12
- package/web.esm.js.map +1 -1
- package/web.js +3 -12
- package/web.js.map +1 -1
- package/web.test.js +15 -0
- package/web.test.js.map +1 -1
package/node.test.js
CHANGED
|
@@ -1670,16 +1670,7 @@ var $;
|
|
|
1670
1670
|
};
|
|
1671
1671
|
}
|
|
1672
1672
|
}
|
|
1673
|
-
|
|
1674
|
-
if (this.cursor > $mol_wire_cursor.fresh) {
|
|
1675
|
-
try {
|
|
1676
|
-
this.once();
|
|
1677
|
-
}
|
|
1678
|
-
catch (error) {
|
|
1679
|
-
if (error instanceof Promise)
|
|
1680
|
-
$mol_fail_hidden(error);
|
|
1681
|
-
}
|
|
1682
|
-
}
|
|
1673
|
+
resync(...args) {
|
|
1683
1674
|
return this.put(this.task.call(this.host, ...args));
|
|
1684
1675
|
}
|
|
1685
1676
|
once() {
|
|
@@ -1728,7 +1719,7 @@ var $;
|
|
|
1728
1719
|
}
|
|
1729
1720
|
__decorate([
|
|
1730
1721
|
$mol_wire_method
|
|
1731
|
-
], $mol_wire_atom.prototype, "
|
|
1722
|
+
], $mol_wire_atom.prototype, "resync", null);
|
|
1732
1723
|
__decorate([
|
|
1733
1724
|
$mol_wire_method
|
|
1734
1725
|
], $mol_wire_atom.prototype, "once", null);
|
|
@@ -1773,7 +1764,7 @@ var $;
|
|
|
1773
1764
|
return atom.sync();
|
|
1774
1765
|
}
|
|
1775
1766
|
}
|
|
1776
|
-
return atom.
|
|
1767
|
+
return atom.resync(...args);
|
|
1777
1768
|
};
|
|
1778
1769
|
Object.defineProperty(wrapper, 'name', { value: func.name + ' ' });
|
|
1779
1770
|
Object.assign(wrapper, { orig: func });
|
|
@@ -2747,6 +2738,19 @@ var $;
|
|
|
2747
2738
|
App.value(2);
|
|
2748
2739
|
$mol_assert_equal(App.value(), 3);
|
|
2749
2740
|
},
|
|
2741
|
+
'Read Pushed'($) {
|
|
2742
|
+
class App extends $mol_object2 {
|
|
2743
|
+
static $ = $;
|
|
2744
|
+
static value(next = 0) {
|
|
2745
|
+
return next;
|
|
2746
|
+
}
|
|
2747
|
+
}
|
|
2748
|
+
__decorate([
|
|
2749
|
+
$mol_wire_mem(0)
|
|
2750
|
+
], App, "value", null);
|
|
2751
|
+
$mol_assert_equal(App.value(1), 1);
|
|
2752
|
+
$mol_assert_equal(App.value(), 1);
|
|
2753
|
+
},
|
|
2750
2754
|
'Mem overrides mem'($) {
|
|
2751
2755
|
class Base extends $mol_object2 {
|
|
2752
2756
|
static $ = $;
|
|
@@ -2927,6 +2931,8 @@ var $;
|
|
|
2927
2931
|
return this.store(next);
|
|
2928
2932
|
}
|
|
2929
2933
|
static slow(next) {
|
|
2934
|
+
if (next !== undefined)
|
|
2935
|
+
this.slow();
|
|
2930
2936
|
return this.store(next);
|
|
2931
2937
|
}
|
|
2932
2938
|
}
|