mol_wire_lib 1.0.857 → 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/web.mjs
CHANGED
|
@@ -1245,17 +1245,18 @@ var $;
|
|
|
1245
1245
|
const field = task.name + '()';
|
|
1246
1246
|
let dict = Object.getOwnPropertyDescriptor(host ?? task, field)?.value;
|
|
1247
1247
|
const prefix = host?.[Symbol.toStringTag] ?? (host instanceof Function ? $$.$mol_func_name(host) : host);
|
|
1248
|
-
const
|
|
1248
|
+
const key_str = $mol_key(key);
|
|
1249
1249
|
if (dict) {
|
|
1250
|
-
const existen = dict.get(
|
|
1250
|
+
const existen = dict.get(key_str);
|
|
1251
1251
|
if (existen)
|
|
1252
1252
|
return existen;
|
|
1253
1253
|
}
|
|
1254
1254
|
else {
|
|
1255
1255
|
dict = (host ?? task)[field] = new Map();
|
|
1256
1256
|
}
|
|
1257
|
+
const id = `${prefix}.${task.name}(${key_str.replace(/^"|"$/g, "'")})`;
|
|
1257
1258
|
const fiber = new $mol_wire_atom(id, task, host, [key]);
|
|
1258
|
-
dict.set(
|
|
1259
|
+
dict.set(key_str, fiber);
|
|
1259
1260
|
return fiber;
|
|
1260
1261
|
}
|
|
1261
1262
|
static watching = new Set();
|