mol_dump_lib 0.0.201 → 0.0.203
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.js +6 -6
- package/node.js.map +1 -1
- package/node.mjs +6 -6
- package/node.test.js +15 -11
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.js +6 -6
- package/web.js.map +1 -1
- package/web.mjs +6 -6
- package/web.test.js +9 -5
- package/web.test.js.map +1 -1
package/web.mjs
CHANGED
|
@@ -222,7 +222,7 @@ var $;
|
|
|
222
222
|
destructor() { }
|
|
223
223
|
static destructor() { }
|
|
224
224
|
toString() {
|
|
225
|
-
return this[Symbol.toStringTag] || this.constructor.name + '
|
|
225
|
+
return this[Symbol.toStringTag] || this.constructor.name + '<>';
|
|
226
226
|
}
|
|
227
227
|
static toJSON() {
|
|
228
228
|
return this[Symbol.toStringTag] || this.$.$mol_func_name(this);
|
|
@@ -706,7 +706,7 @@ var $;
|
|
|
706
706
|
return $mol_promise_like(this.cache);
|
|
707
707
|
}
|
|
708
708
|
field() {
|
|
709
|
-
return this.task.name + '
|
|
709
|
+
return this.task.name + '<>';
|
|
710
710
|
}
|
|
711
711
|
constructor(id, task, host, args) {
|
|
712
712
|
super();
|
|
@@ -1145,7 +1145,7 @@ var $;
|
|
|
1145
1145
|
break reuse;
|
|
1146
1146
|
return existen;
|
|
1147
1147
|
}
|
|
1148
|
-
const next = new $mol_wire_task(`${host?.[Symbol.toStringTag] ?? host}.${task.name}
|
|
1148
|
+
const next = new $mol_wire_task(`${host?.[Symbol.toStringTag] ?? host}.${task.name}<#>`, task, host, args);
|
|
1149
1149
|
if (existen?.temp) {
|
|
1150
1150
|
$$.$mol_log3_warn({
|
|
1151
1151
|
place: '$mol_wire_task',
|
|
@@ -1257,7 +1257,7 @@ var $;
|
|
|
1257
1257
|
(function ($) {
|
|
1258
1258
|
class $mol_wire_atom extends $mol_wire_fiber {
|
|
1259
1259
|
static solo(host, task) {
|
|
1260
|
-
const field = task.name + '
|
|
1260
|
+
const field = task.name + '<>';
|
|
1261
1261
|
const existen = Object.getOwnPropertyDescriptor(host ?? task, field)?.value;
|
|
1262
1262
|
if (existen)
|
|
1263
1263
|
return existen;
|
|
@@ -1268,7 +1268,7 @@ var $;
|
|
|
1268
1268
|
return fiber;
|
|
1269
1269
|
}
|
|
1270
1270
|
static plex(host, task, key) {
|
|
1271
|
-
const field = task.name + '
|
|
1271
|
+
const field = task.name + '<>';
|
|
1272
1272
|
let dict = Object.getOwnPropertyDescriptor(host ?? task, field)?.value;
|
|
1273
1273
|
const prefix = host?.[Symbol.toStringTag] ?? (host instanceof Function ? $$.$mol_func_name(host) : host);
|
|
1274
1274
|
const key_str = $mol_key(key);
|
|
@@ -1280,7 +1280,7 @@ var $;
|
|
|
1280
1280
|
else {
|
|
1281
1281
|
dict = (host ?? task)[field] = new Map();
|
|
1282
1282
|
}
|
|
1283
|
-
const id = `${prefix}.${task.name}
|
|
1283
|
+
const id = `${prefix}.${task.name}<${key_str.replace(/^"|"$/g, "'")}>`;
|
|
1284
1284
|
const fiber = new $mol_wire_atom(id, task, host, [key]);
|
|
1285
1285
|
dict.set(key_str, fiber);
|
|
1286
1286
|
return fiber;
|
package/web.test.js
CHANGED
|
@@ -776,6 +776,10 @@ var $;
|
|
|
776
776
|
const print = (val) => {
|
|
777
777
|
if (!val)
|
|
778
778
|
return val;
|
|
779
|
+
if (typeof val === 'bigint')
|
|
780
|
+
return String(val) + 'n';
|
|
781
|
+
if (typeof val === 'symbol')
|
|
782
|
+
return `Symbol(${val.description})`;
|
|
779
783
|
if (typeof val !== 'object')
|
|
780
784
|
return val;
|
|
781
785
|
if ('outerHTML' in val)
|
|
@@ -1695,7 +1699,7 @@ var $;
|
|
|
1695
1699
|
__decorate([
|
|
1696
1700
|
$mol_wire_solo
|
|
1697
1701
|
], App, "title", null);
|
|
1698
|
-
$mol_assert_equal(`${App.title()}`, 'App.title
|
|
1702
|
+
$mol_assert_equal(`${App.title()}`, 'App.title<>');
|
|
1699
1703
|
},
|
|
1700
1704
|
'Unsubscribe from temp pubs on complete'($) {
|
|
1701
1705
|
class Random extends $mol_object2 {
|
|
@@ -1814,8 +1818,8 @@ var $;
|
|
|
1814
1818
|
__decorate([
|
|
1815
1819
|
$mol_wire_plex
|
|
1816
1820
|
], App, "relation", null);
|
|
1817
|
-
$mol_assert_equal(`${App.like(123)}`, 'App.like
|
|
1818
|
-
$mol_assert_equal(`${App.relation([123, [456]])}`, 'App.relation
|
|
1821
|
+
$mol_assert_equal(`${App.like(123)}`, 'App.like<123>');
|
|
1822
|
+
$mol_assert_equal(`${App.relation([123, [456]])}`, 'App.relation<[123,[456]]>');
|
|
1819
1823
|
},
|
|
1820
1824
|
'Deep deps'($) {
|
|
1821
1825
|
class Fib extends $mol_object2 {
|
|
@@ -2204,8 +2208,8 @@ var $;
|
|
|
2204
2208
|
$mol_mem_key
|
|
2205
2209
|
], $mol_view_test_block.prototype, "element", null);
|
|
2206
2210
|
var x = $mol_view_test_block.Root(0);
|
|
2207
|
-
$mol_assert_equal(x.dom_node().id, '$mol_view_test_block.Root
|
|
2208
|
-
$mol_assert_equal(x.element(0).dom_node().id, '$mol_view_test_block.Root
|
|
2211
|
+
$mol_assert_equal(x.dom_node().id, '$mol_view_test_block.Root<0>');
|
|
2212
|
+
$mol_assert_equal(x.element(0).dom_node().id, '$mol_view_test_block.Root<0>.element<0>');
|
|
2209
2213
|
},
|
|
2210
2214
|
'caching ref to dom node'($) {
|
|
2211
2215
|
var x = new class extends $mol_view {
|