mol_wire_lib 1.0.858 → 1.0.859
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.deps.json +1 -1
- package/node.js +4 -3
- package/node.js.map +1 -1
- package/node.mjs +4 -3
- package/node.test.js +4 -3
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.deps.json +1 -1
- package/web.js +4 -3
- package/web.js.map +1 -1
- package/web.mjs +4 -3
package/node.mjs
CHANGED
|
@@ -1696,17 +1696,18 @@ var $;
|
|
|
1696
1696
|
const field = task.name + '()';
|
|
1697
1697
|
let dict = Object.getOwnPropertyDescriptor(host ?? task, field)?.value;
|
|
1698
1698
|
const prefix = host?.[Symbol.toStringTag] ?? (host instanceof Function ? $$.$mol_func_name(host) : host);
|
|
1699
|
-
const
|
|
1699
|
+
const key_str = $mol_key(key);
|
|
1700
1700
|
if (dict) {
|
|
1701
|
-
const existen = dict.get(
|
|
1701
|
+
const existen = dict.get(key_str);
|
|
1702
1702
|
if (existen)
|
|
1703
1703
|
return existen;
|
|
1704
1704
|
}
|
|
1705
1705
|
else {
|
|
1706
1706
|
dict = (host ?? task)[field] = new Map();
|
|
1707
1707
|
}
|
|
1708
|
+
const id = `${prefix}.${task.name}(${key_str.replace(/^"|"$/g, "'")})`;
|
|
1708
1709
|
const fiber = new $mol_wire_atom(id, task, host, [key]);
|
|
1709
|
-
dict.set(
|
|
1710
|
+
dict.set(key_str, fiber);
|
|
1710
1711
|
return fiber;
|
|
1711
1712
|
}
|
|
1712
1713
|
static watching = new Set();
|
package/node.test.js
CHANGED
|
@@ -1688,17 +1688,18 @@ var $;
|
|
|
1688
1688
|
const field = task.name + '()';
|
|
1689
1689
|
let dict = Object.getOwnPropertyDescriptor(host ?? task, field)?.value;
|
|
1690
1690
|
const prefix = host?.[Symbol.toStringTag] ?? (host instanceof Function ? $$.$mol_func_name(host) : host);
|
|
1691
|
-
const
|
|
1691
|
+
const key_str = $mol_key(key);
|
|
1692
1692
|
if (dict) {
|
|
1693
|
-
const existen = dict.get(
|
|
1693
|
+
const existen = dict.get(key_str);
|
|
1694
1694
|
if (existen)
|
|
1695
1695
|
return existen;
|
|
1696
1696
|
}
|
|
1697
1697
|
else {
|
|
1698
1698
|
dict = (host ?? task)[field] = new Map();
|
|
1699
1699
|
}
|
|
1700
|
+
const id = `${prefix}.${task.name}(${key_str.replace(/^"|"$/g, "'")})`;
|
|
1700
1701
|
const fiber = new $mol_wire_atom(id, task, host, [key]);
|
|
1701
|
-
dict.set(
|
|
1702
|
+
dict.set(key_str, fiber);
|
|
1702
1703
|
return fiber;
|
|
1703
1704
|
}
|
|
1704
1705
|
static watching = new Set();
|