mol_data_all 1.1.1523 → 1.1.1525

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
@@ -1058,6 +1058,21 @@ var $;
1058
1058
  };
1059
1059
  })($ || ($ = {}));
1060
1060
 
1061
+ ;
1062
+ "use strict";
1063
+ var $;
1064
+ (function ($) {
1065
+ function $mol_guid(length = 8, exists = () => false) {
1066
+ for (;;) {
1067
+ let id = Math.random().toString(36).substring(2, length + 2).toUpperCase();
1068
+ if (exists(id))
1069
+ continue;
1070
+ return id;
1071
+ }
1072
+ }
1073
+ $.$mol_guid = $mol_guid;
1074
+ })($ || ($ = {}));
1075
+
1061
1076
  ;
1062
1077
  "use strict";
1063
1078
  var $;
@@ -1076,6 +1091,11 @@ var $;
1076
1091
  var $;
1077
1092
  (function ($) {
1078
1093
  class $mol_wire_pub extends Object {
1094
+ constructor(id = `$mol_wire_pub:${$mol_guid()}`) {
1095
+ super();
1096
+ this[Symbol.toStringTag] = id;
1097
+ }
1098
+ [Symbol.toStringTag];
1079
1099
  data = [];
1080
1100
  static get [Symbol.species]() {
1081
1101
  return Array;
@@ -1567,7 +1587,6 @@ var $;
1567
1587
  }
1568
1588
  }
1569
1589
  }
1570
- [Symbol.toStringTag];
1571
1590
  cache = undefined;
1572
1591
  get args() {
1573
1592
  return this.data.slice(0, this.pub_from);
@@ -1586,13 +1605,12 @@ var $;
1586
1605
  return this.task.name + '()';
1587
1606
  }
1588
1607
  constructor(id, task, host, args) {
1589
- super();
1608
+ super(id);
1590
1609
  this.task = task;
1591
1610
  this.host = host;
1592
1611
  if (args)
1593
1612
  this.data.push(...args);
1594
1613
  this.pub_from = this.sub_from = args?.length ?? 0;
1595
- this[Symbol.toStringTag] = id;
1596
1614
  }
1597
1615
  plan() {
1598
1616
  $mol_wire_fiber.planning.add(this);
@@ -2902,21 +2920,6 @@ var $;
2902
2920
  });
2903
2921
  })($ || ($ = {}));
2904
2922
 
2905
- ;
2906
- "use strict";
2907
- var $;
2908
- (function ($) {
2909
- function $mol_guid(length = 8, exists = () => false) {
2910
- for (;;) {
2911
- let id = Math.random().toString(36).substring(2, length + 2).toUpperCase();
2912
- if (exists(id))
2913
- continue;
2914
- return id;
2915
- }
2916
- }
2917
- $.$mol_guid = $mol_guid;
2918
- })($ || ($ = {}));
2919
-
2920
2923
  ;
2921
2924
  "use strict";
2922
2925
  var $;