mol_wire_lib 1.0.866 → 1.0.868

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mol_wire_lib",
3
- "version": "1.0.866",
3
+ "version": "1.0.868",
4
4
  "exports": {
5
5
  "node": {
6
6
  "import": "./node.mjs",
package/web.js CHANGED
@@ -562,7 +562,7 @@ var $;
562
562
  destructor() { }
563
563
  static destructor() { }
564
564
  toString() {
565
- return this[Symbol.toStringTag] || this.constructor.name + '()';
565
+ return this[Symbol.toStringTag] || this.constructor.name + '<>';
566
566
  }
567
567
  static toJSON() {
568
568
  return this[Symbol.toStringTag] || this.$.$mol_func_name(this);
@@ -686,7 +686,7 @@ var $;
686
686
  return $mol_promise_like(this.cache);
687
687
  }
688
688
  field() {
689
- return this.task.name + '()';
689
+ return this.task.name + '<>';
690
690
  }
691
691
  constructor(id, task, host, args) {
692
692
  super();
@@ -1063,7 +1063,7 @@ var $;
1063
1063
  break reuse;
1064
1064
  return existen;
1065
1065
  }
1066
- const next = new $mol_wire_task(`${host?.[Symbol.toStringTag] ?? host}.${task.name}(#)`, task, host, args);
1066
+ const next = new $mol_wire_task(`${host?.[Symbol.toStringTag] ?? host}.${task.name}<#>`, task, host, args);
1067
1067
  if (existen?.temp) {
1068
1068
  $$.$mol_log3_warn({
1069
1069
  place: '$mol_wire_task',
@@ -1237,7 +1237,7 @@ var $;
1237
1237
  (function ($) {
1238
1238
  class $mol_wire_atom extends $mol_wire_fiber {
1239
1239
  static solo(host, task) {
1240
- const field = task.name + '()';
1240
+ const field = task.name + '<>';
1241
1241
  const existen = Object.getOwnPropertyDescriptor(host ?? task, field)?.value;
1242
1242
  if (existen)
1243
1243
  return existen;
@@ -1248,7 +1248,7 @@ var $;
1248
1248
  return fiber;
1249
1249
  }
1250
1250
  static plex(host, task, key) {
1251
- const field = task.name + '()';
1251
+ const field = task.name + '<>';
1252
1252
  let dict = Object.getOwnPropertyDescriptor(host ?? task, field)?.value;
1253
1253
  const prefix = host?.[Symbol.toStringTag] ?? (host instanceof Function ? $$.$mol_func_name(host) : host);
1254
1254
  const key_str = $mol_key(key);
@@ -1260,7 +1260,7 @@ var $;
1260
1260
  else {
1261
1261
  dict = (host ?? task)[field] = new Map();
1262
1262
  }
1263
- const id = `${prefix}.${task.name}(${key_str.replace(/^"|"$/g, "'")})`;
1263
+ const id = `${prefix}.${task.name}<${key_str.replace(/^"|"$/g, "'")}>`;
1264
1264
  const fiber = new $mol_wire_atom(id, task, host, [key]);
1265
1265
  dict.set(key_str, fiber);
1266
1266
  return fiber;