mol_wire_lib 1.0.429 → 1.0.431
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 +21 -4
- package/node.deps.json +1 -1
- package/node.esm.js +36 -3
- package/node.esm.js.map +1 -1
- package/node.js +36 -3
- package/node.js.map +1 -1
- package/node.test.js +70 -3
- package/node.test.js.map +1 -1
- package/package.json +5 -2
- package/web.d.ts +21 -4
- package/web.deps.json +1 -1
- package/web.esm.js +36 -3
- package/web.esm.js.map +1 -1
- package/web.js +36 -3
- package/web.js.map +1 -1
- package/web.test.js +34 -0
- package/web.test.js.map +1 -1
package/web.test.js
CHANGED
|
@@ -1613,6 +1613,9 @@ var $;
|
|
|
1613
1613
|
//mol/key/key.test.tsx
|
|
1614
1614
|
;
|
|
1615
1615
|
"use strict";
|
|
1616
|
+
//mol/type/foot/foot.test.ts
|
|
1617
|
+
;
|
|
1618
|
+
"use strict";
|
|
1616
1619
|
var $;
|
|
1617
1620
|
(function ($) {
|
|
1618
1621
|
$mol_wire_log.active();
|
|
@@ -1687,6 +1690,37 @@ var $;
|
|
|
1687
1690
|
//mol/object/object.test.ts
|
|
1688
1691
|
;
|
|
1689
1692
|
"use strict";
|
|
1693
|
+
//mol/type/result/result.test.ts
|
|
1694
|
+
;
|
|
1695
|
+
"use strict";
|
|
1696
|
+
var $;
|
|
1697
|
+
(function ($) {
|
|
1698
|
+
$mol_test({
|
|
1699
|
+
'define as methods'() {
|
|
1700
|
+
const { foo, bar } = $mol_wire_let({
|
|
1701
|
+
foo(next = 1) { return next; },
|
|
1702
|
+
bar() { return this.foo() + 1; },
|
|
1703
|
+
});
|
|
1704
|
+
$mol_assert_equal(foo(), 1);
|
|
1705
|
+
$mol_assert_equal(bar(), 2);
|
|
1706
|
+
$mol_assert_equal(foo(5), 5);
|
|
1707
|
+
$mol_assert_equal(bar(), 6);
|
|
1708
|
+
},
|
|
1709
|
+
'define as closures'() {
|
|
1710
|
+
const { foo, bar } = $mol_wire_let({
|
|
1711
|
+
foo: (next = 1) => next,
|
|
1712
|
+
bar: () => foo() + 1,
|
|
1713
|
+
});
|
|
1714
|
+
$mol_assert_equal(foo(), 1);
|
|
1715
|
+
$mol_assert_equal(bar(), 2);
|
|
1716
|
+
$mol_assert_equal(foo(5), 5);
|
|
1717
|
+
$mol_assert_equal(bar(), 6);
|
|
1718
|
+
},
|
|
1719
|
+
});
|
|
1720
|
+
})($ || ($ = {}));
|
|
1721
|
+
//mol/wire/let/let.test.ts
|
|
1722
|
+
;
|
|
1723
|
+
"use strict";
|
|
1690
1724
|
var $;
|
|
1691
1725
|
(function ($_1) {
|
|
1692
1726
|
$mol_test({
|