mol_plot_all 1.2.867 → 1.2.868
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
|
@@ -779,6 +779,10 @@ var $;
|
|
|
779
779
|
const print = (val) => {
|
|
780
780
|
if (!val)
|
|
781
781
|
return val;
|
|
782
|
+
if (typeof val === 'bigint')
|
|
783
|
+
return String(val) + 'n';
|
|
784
|
+
if (typeof val === 'symbol')
|
|
785
|
+
return `Symbol(${val.description})`;
|
|
782
786
|
if (typeof val !== 'object')
|
|
783
787
|
return val;
|
|
784
788
|
if ('outerHTML' in val)
|
|
@@ -1727,7 +1731,7 @@ var $;
|
|
|
1727
1731
|
__decorate([
|
|
1728
1732
|
$mol_wire_solo
|
|
1729
1733
|
], App, "title", null);
|
|
1730
|
-
$mol_assert_equal(`${App.title()}`, 'App.title
|
|
1734
|
+
$mol_assert_equal(`${App.title()}`, 'App.title<>');
|
|
1731
1735
|
},
|
|
1732
1736
|
'Unsubscribe from temp pubs on complete'($) {
|
|
1733
1737
|
class Random extends $mol_object2 {
|
|
@@ -1846,8 +1850,8 @@ var $;
|
|
|
1846
1850
|
__decorate([
|
|
1847
1851
|
$mol_wire_plex
|
|
1848
1852
|
], App, "relation", null);
|
|
1849
|
-
$mol_assert_equal(`${App.like(123)}`, 'App.like
|
|
1850
|
-
$mol_assert_equal(`${App.relation([123, [456]])}`, 'App.relation
|
|
1853
|
+
$mol_assert_equal(`${App.like(123)}`, 'App.like<123>');
|
|
1854
|
+
$mol_assert_equal(`${App.relation([123, [456]])}`, 'App.relation<[123,[456]]>');
|
|
1851
1855
|
},
|
|
1852
1856
|
'Deep deps'($) {
|
|
1853
1857
|
class Fib extends $mol_object2 {
|
|
@@ -2236,8 +2240,8 @@ var $;
|
|
|
2236
2240
|
$mol_mem_key
|
|
2237
2241
|
], $mol_view_test_block.prototype, "element", null);
|
|
2238
2242
|
var x = $mol_view_test_block.Root(0);
|
|
2239
|
-
$mol_assert_equal(x.dom_node().id, '$mol_view_test_block.Root
|
|
2240
|
-
$mol_assert_equal(x.element(0).dom_node().id, '$mol_view_test_block.Root
|
|
2243
|
+
$mol_assert_equal(x.dom_node().id, '$mol_view_test_block.Root<0>');
|
|
2244
|
+
$mol_assert_equal(x.element(0).dom_node().id, '$mol_view_test_block.Root<0>.element<0>');
|
|
2241
2245
|
},
|
|
2242
2246
|
'caching ref to dom node'($) {
|
|
2243
2247
|
var x = new class extends $mol_view {
|