mol_wire_lib 1.0.858 → 1.0.860

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/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 id = `${prefix}.${task.name}(${$mol_key(key).replace(/^"|"$/g, "'")})`;
1248
+ const key_str = $mol_key(key);
1249
1249
  if (dict) {
1250
- const existen = dict.get(id);
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(id, fiber);
1259
+ dict.set(key_str, fiber);
1259
1260
  return fiber;
1260
1261
  }
1261
1262
  static watching = new Set();
@@ -1310,7 +1311,7 @@ var $;
1310
1311
  }
1311
1312
  else {
1312
1313
  ;
1313
- (this.host ?? this.task)[this.field()].delete(this[Symbol.toStringTag]);
1314
+ (this.host ?? this.task)[this.field()].delete($mol_key(this.args[0]));
1314
1315
  }
1315
1316
  }
1316
1317
  put(next) {