mol_mutable 0.0.958 → 0.0.960

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.test.js CHANGED
@@ -597,6 +597,21 @@ var $;
597
597
  };
598
598
  })($ || ($ = {}));
599
599
 
600
+ ;
601
+ "use strict";
602
+ var $;
603
+ (function ($) {
604
+ function $mol_guid(length = 8, exists = () => false) {
605
+ for (;;) {
606
+ let id = Math.random().toString(36).substring(2, length + 2).toUpperCase();
607
+ if (exists(id))
608
+ continue;
609
+ return id;
610
+ }
611
+ }
612
+ $.$mol_guid = $mol_guid;
613
+ })($ || ($ = {}));
614
+
600
615
  ;
601
616
  "use strict";
602
617
  var $;
@@ -615,6 +630,11 @@ var $;
615
630
  var $;
616
631
  (function ($) {
617
632
  class $mol_wire_pub extends Object {
633
+ constructor(id = `$mol_wire_pub:${$mol_guid()}`) {
634
+ super();
635
+ this[Symbol.toStringTag] = id;
636
+ }
637
+ [Symbol.toStringTag];
618
638
  data = [];
619
639
  static get [Symbol.species]() {
620
640
  return Array;
@@ -1106,7 +1126,6 @@ var $;
1106
1126
  }
1107
1127
  }
1108
1128
  }
1109
- [Symbol.toStringTag];
1110
1129
  cache = undefined;
1111
1130
  get args() {
1112
1131
  return this.data.slice(0, this.pub_from);
@@ -1125,13 +1144,12 @@ var $;
1125
1144
  return this.task.name + '()';
1126
1145
  }
1127
1146
  constructor(id, task, host, args) {
1128
- super();
1147
+ super(id);
1129
1148
  this.task = task;
1130
1149
  this.host = host;
1131
1150
  if (args)
1132
1151
  this.data.push(...args);
1133
1152
  this.pub_from = this.sub_from = args?.length ?? 0;
1134
- this[Symbol.toStringTag] = id;
1135
1153
  }
1136
1154
  plan() {
1137
1155
  $mol_wire_fiber.planning.add(this);
@@ -2441,21 +2459,6 @@ var $;
2441
2459
  });
2442
2460
  })($ || ($ = {}));
2443
2461
 
2444
- ;
2445
- "use strict";
2446
- var $;
2447
- (function ($) {
2448
- function $mol_guid(length = 8, exists = () => false) {
2449
- for (;;) {
2450
- let id = Math.random().toString(36).substring(2, length + 2).toUpperCase();
2451
- if (exists(id))
2452
- continue;
2453
- return id;
2454
- }
2455
- }
2456
- $.$mol_guid = $mol_guid;
2457
- })($ || ($ = {}));
2458
-
2459
2462
  ;
2460
2463
  "use strict";
2461
2464
  var $;