mol_plot_all 1.2.238 → 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.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.test.js
CHANGED
|
@@ -1730,17 +1730,27 @@ var $;
|
|
|
1730
1730
|
};
|
|
1731
1731
|
}
|
|
1732
1732
|
}
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1733
|
+
resync(...args) {
|
|
1734
|
+
let res;
|
|
1735
|
+
try {
|
|
1736
|
+
res = this.recall(...args);
|
|
1737
|
+
}
|
|
1738
|
+
catch (error) {
|
|
1739
|
+
if (error instanceof Promise)
|
|
1740
|
+
$mol_fail_hidden(error);
|
|
1741
|
+
res = error;
|
|
1742
|
+
}
|
|
1743
|
+
try {
|
|
1744
|
+
this.once();
|
|
1742
1745
|
}
|
|
1743
|
-
|
|
1746
|
+
catch (error) {
|
|
1747
|
+
if (error instanceof Promise)
|
|
1748
|
+
$mol_fail_hidden(error);
|
|
1749
|
+
}
|
|
1750
|
+
return this.put(res);
|
|
1751
|
+
}
|
|
1752
|
+
recall(...args) {
|
|
1753
|
+
return this.task.call(this.host, ...args);
|
|
1744
1754
|
}
|
|
1745
1755
|
once() {
|
|
1746
1756
|
return this.sync();
|
|
@@ -1786,6 +1796,9 @@ var $;
|
|
|
1786
1796
|
return next;
|
|
1787
1797
|
}
|
|
1788
1798
|
}
|
|
1799
|
+
__decorate([
|
|
1800
|
+
$mol_wire_method
|
|
1801
|
+
], $mol_wire_atom.prototype, "resync", null);
|
|
1789
1802
|
__decorate([
|
|
1790
1803
|
$mol_wire_method
|
|
1791
1804
|
], $mol_wire_atom.prototype, "recall", null);
|
|
@@ -1833,7 +1846,7 @@ var $;
|
|
|
1833
1846
|
return atom.sync();
|
|
1834
1847
|
}
|
|
1835
1848
|
}
|
|
1836
|
-
return atom.
|
|
1849
|
+
return atom.resync(...args);
|
|
1837
1850
|
};
|
|
1838
1851
|
Object.defineProperty(wrapper, 'name', { value: func.name + ' ' });
|
|
1839
1852
|
Object.assign(wrapper, { orig: func });
|
|
@@ -6757,6 +6770,19 @@ var $;
|
|
|
6757
6770
|
App.value(2);
|
|
6758
6771
|
$mol_assert_equal(App.value(), 3);
|
|
6759
6772
|
},
|
|
6773
|
+
'Read Pushed'($) {
|
|
6774
|
+
class App extends $mol_object2 {
|
|
6775
|
+
static $ = $;
|
|
6776
|
+
static value(next = 0) {
|
|
6777
|
+
return next;
|
|
6778
|
+
}
|
|
6779
|
+
}
|
|
6780
|
+
__decorate([
|
|
6781
|
+
$mol_wire_mem(0)
|
|
6782
|
+
], App, "value", null);
|
|
6783
|
+
$mol_assert_equal(App.value(1), 1);
|
|
6784
|
+
$mol_assert_equal(App.value(), 1);
|
|
6785
|
+
},
|
|
6760
6786
|
'Mem overrides mem'($) {
|
|
6761
6787
|
class Base extends $mol_object2 {
|
|
6762
6788
|
static $ = $;
|
|
@@ -6927,6 +6953,33 @@ var $;
|
|
|
6927
6953
|
], App, "test", null);
|
|
6928
6954
|
App.test();
|
|
6929
6955
|
},
|
|
6956
|
+
'Update deps on push'($) {
|
|
6957
|
+
class App extends $mol_object2 {
|
|
6958
|
+
static $ = $;
|
|
6959
|
+
static left(next = false) {
|
|
6960
|
+
return next;
|
|
6961
|
+
}
|
|
6962
|
+
static right(next = false) {
|
|
6963
|
+
return next;
|
|
6964
|
+
}
|
|
6965
|
+
static res(next) {
|
|
6966
|
+
return this.left(next) && this.right();
|
|
6967
|
+
}
|
|
6968
|
+
}
|
|
6969
|
+
__decorate([
|
|
6970
|
+
$mol_wire_mem(0)
|
|
6971
|
+
], App, "left", null);
|
|
6972
|
+
__decorate([
|
|
6973
|
+
$mol_wire_mem(0)
|
|
6974
|
+
], App, "right", null);
|
|
6975
|
+
__decorate([
|
|
6976
|
+
$mol_wire_mem(0)
|
|
6977
|
+
], App, "res", null);
|
|
6978
|
+
$mol_assert_equal(App.res(), false);
|
|
6979
|
+
$mol_assert_equal(App.res(true), false);
|
|
6980
|
+
$mol_assert_equal(App.right(true), true);
|
|
6981
|
+
$mol_assert_equal(App.res(), true);
|
|
6982
|
+
},
|
|
6930
6983
|
'Different order of pull and push'($) {
|
|
6931
6984
|
class App extends $mol_object2 {
|
|
6932
6985
|
static $ = $;
|