mol_jsx_lib 0.0.724 → 0.0.726
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
|
@@ -2009,17 +2009,18 @@ var $;
|
|
|
2009
2009
|
const field = task.name + '()';
|
|
2010
2010
|
let dict = Object.getOwnPropertyDescriptor(host ?? task, field)?.value;
|
|
2011
2011
|
const prefix = host?.[Symbol.toStringTag] ?? (host instanceof Function ? $$.$mol_func_name(host) : host);
|
|
2012
|
-
const
|
|
2012
|
+
const key_str = $mol_key(key);
|
|
2013
2013
|
if (dict) {
|
|
2014
|
-
const existen = dict.get(
|
|
2014
|
+
const existen = dict.get(key_str);
|
|
2015
2015
|
if (existen)
|
|
2016
2016
|
return existen;
|
|
2017
2017
|
}
|
|
2018
2018
|
else {
|
|
2019
2019
|
dict = (host ?? task)[field] = new Map();
|
|
2020
2020
|
}
|
|
2021
|
+
const id = `${prefix}.${task.name}(${key_str.replace(/^"|"$/g, "'")})`;
|
|
2021
2022
|
const fiber = new $mol_wire_atom(id, task, host, [key]);
|
|
2022
|
-
dict.set(
|
|
2023
|
+
dict.set(key_str, fiber);
|
|
2023
2024
|
return fiber;
|
|
2024
2025
|
}
|
|
2025
2026
|
static watching = new Set();
|
package/node.test.js
CHANGED
|
@@ -2001,17 +2001,18 @@ var $;
|
|
|
2001
2001
|
const field = task.name + '()';
|
|
2002
2002
|
let dict = Object.getOwnPropertyDescriptor(host ?? task, field)?.value;
|
|
2003
2003
|
const prefix = host?.[Symbol.toStringTag] ?? (host instanceof Function ? $$.$mol_func_name(host) : host);
|
|
2004
|
-
const
|
|
2004
|
+
const key_str = $mol_key(key);
|
|
2005
2005
|
if (dict) {
|
|
2006
|
-
const existen = dict.get(
|
|
2006
|
+
const existen = dict.get(key_str);
|
|
2007
2007
|
if (existen)
|
|
2008
2008
|
return existen;
|
|
2009
2009
|
}
|
|
2010
2010
|
else {
|
|
2011
2011
|
dict = (host ?? task)[field] = new Map();
|
|
2012
2012
|
}
|
|
2013
|
+
const id = `${prefix}.${task.name}(${key_str.replace(/^"|"$/g, "'")})`;
|
|
2013
2014
|
const fiber = new $mol_wire_atom(id, task, host, [key]);
|
|
2014
|
-
dict.set(
|
|
2015
|
+
dict.set(key_str, fiber);
|
|
2015
2016
|
return fiber;
|
|
2016
2017
|
}
|
|
2017
2018
|
static watching = new Set();
|