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.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 id = `${prefix}.${task.name}(${$mol_key(key).replace(/^"|"$/g, "'")})`;
2012
+ const key_str = $mol_key(key);
2013
2013
  if (dict) {
2014
- const existen = dict.get(id);
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(id, fiber);
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 id = `${prefix}.${task.name}(${$mol_key(key).replace(/^"|"$/g, "'")})`;
2004
+ const key_str = $mol_key(key);
2005
2005
  if (dict) {
2006
- const existen = dict.get(id);
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(id, fiber);
2015
+ dict.set(key_str, fiber);
2015
2016
  return fiber;
2016
2017
  }
2017
2018
  static watching = new Set();