mol_wire_lib 1.0.866 → 1.0.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 +13 -9
- 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 +7 -3
- package/web.test.js.map +1 -1
package/web.mjs
CHANGED
|
@@ -562,7 +562,7 @@ var $;
|
|
|
562
562
|
destructor() { }
|
|
563
563
|
static destructor() { }
|
|
564
564
|
toString() {
|
|
565
|
-
return this[Symbol.toStringTag] || this.constructor.name + '
|
|
565
|
+
return this[Symbol.toStringTag] || this.constructor.name + '<>';
|
|
566
566
|
}
|
|
567
567
|
static toJSON() {
|
|
568
568
|
return this[Symbol.toStringTag] || this.$.$mol_func_name(this);
|
|
@@ -686,7 +686,7 @@ var $;
|
|
|
686
686
|
return $mol_promise_like(this.cache);
|
|
687
687
|
}
|
|
688
688
|
field() {
|
|
689
|
-
return this.task.name + '
|
|
689
|
+
return this.task.name + '<>';
|
|
690
690
|
}
|
|
691
691
|
constructor(id, task, host, args) {
|
|
692
692
|
super();
|
|
@@ -1063,7 +1063,7 @@ var $;
|
|
|
1063
1063
|
break reuse;
|
|
1064
1064
|
return existen;
|
|
1065
1065
|
}
|
|
1066
|
-
const next = new $mol_wire_task(`${host?.[Symbol.toStringTag] ?? host}.${task.name}
|
|
1066
|
+
const next = new $mol_wire_task(`${host?.[Symbol.toStringTag] ?? host}.${task.name}<#>`, task, host, args);
|
|
1067
1067
|
if (existen?.temp) {
|
|
1068
1068
|
$$.$mol_log3_warn({
|
|
1069
1069
|
place: '$mol_wire_task',
|
|
@@ -1237,7 +1237,7 @@ var $;
|
|
|
1237
1237
|
(function ($) {
|
|
1238
1238
|
class $mol_wire_atom extends $mol_wire_fiber {
|
|
1239
1239
|
static solo(host, task) {
|
|
1240
|
-
const field = task.name + '
|
|
1240
|
+
const field = task.name + '<>';
|
|
1241
1241
|
const existen = Object.getOwnPropertyDescriptor(host ?? task, field)?.value;
|
|
1242
1242
|
if (existen)
|
|
1243
1243
|
return existen;
|
|
@@ -1248,7 +1248,7 @@ var $;
|
|
|
1248
1248
|
return fiber;
|
|
1249
1249
|
}
|
|
1250
1250
|
static plex(host, task, key) {
|
|
1251
|
-
const field = task.name + '
|
|
1251
|
+
const field = task.name + '<>';
|
|
1252
1252
|
let dict = Object.getOwnPropertyDescriptor(host ?? task, field)?.value;
|
|
1253
1253
|
const prefix = host?.[Symbol.toStringTag] ?? (host instanceof Function ? $$.$mol_func_name(host) : host);
|
|
1254
1254
|
const key_str = $mol_key(key);
|
|
@@ -1260,7 +1260,7 @@ var $;
|
|
|
1260
1260
|
else {
|
|
1261
1261
|
dict = (host ?? task)[field] = new Map();
|
|
1262
1262
|
}
|
|
1263
|
-
const id = `${prefix}.${task.name}
|
|
1263
|
+
const id = `${prefix}.${task.name}<${key_str.replace(/^"|"$/g, "'")}>`;
|
|
1264
1264
|
const fiber = new $mol_wire_atom(id, task, host, [key]);
|
|
1265
1265
|
dict.set(key_str, fiber);
|
|
1266
1266
|
return fiber;
|
package/web.test.js
CHANGED
|
@@ -847,6 +847,10 @@ var $;
|
|
|
847
847
|
const print = (val) => {
|
|
848
848
|
if (!val)
|
|
849
849
|
return val;
|
|
850
|
+
if (typeof val === 'bigint')
|
|
851
|
+
return String(val) + 'n';
|
|
852
|
+
if (typeof val === 'symbol')
|
|
853
|
+
return `Symbol(${val.description})`;
|
|
850
854
|
if (typeof val !== 'object')
|
|
851
855
|
return val;
|
|
852
856
|
if ('outerHTML' in val)
|
|
@@ -1777,7 +1781,7 @@ var $;
|
|
|
1777
1781
|
__decorate([
|
|
1778
1782
|
$mol_wire_solo
|
|
1779
1783
|
], App, "title", null);
|
|
1780
|
-
$mol_assert_equal(`${App.title()}`, 'App.title
|
|
1784
|
+
$mol_assert_equal(`${App.title()}`, 'App.title<>');
|
|
1781
1785
|
},
|
|
1782
1786
|
'Unsubscribe from temp pubs on complete'($) {
|
|
1783
1787
|
class Random extends $mol_object2 {
|
|
@@ -1896,8 +1900,8 @@ var $;
|
|
|
1896
1900
|
__decorate([
|
|
1897
1901
|
$mol_wire_plex
|
|
1898
1902
|
], App, "relation", null);
|
|
1899
|
-
$mol_assert_equal(`${App.like(123)}`, 'App.like
|
|
1900
|
-
$mol_assert_equal(`${App.relation([123, [456]])}`, 'App.relation
|
|
1903
|
+
$mol_assert_equal(`${App.like(123)}`, 'App.like<123>');
|
|
1904
|
+
$mol_assert_equal(`${App.relation([123, [456]])}`, 'App.relation<[123,[456]]>');
|
|
1901
1905
|
},
|
|
1902
1906
|
'Deep deps'($) {
|
|
1903
1907
|
class Fib extends $mol_object2 {
|