mol_regexp 0.0.1576 → 0.0.1577

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
@@ -862,6 +862,21 @@ var $;
862
862
  };
863
863
  })($ || ($ = {}));
864
864
 
865
+ ;
866
+ "use strict";
867
+ var $;
868
+ (function ($) {
869
+ function $mol_guid(length = 8, exists = () => false) {
870
+ for (;;) {
871
+ let id = Math.random().toString(36).substring(2, length + 2).toUpperCase();
872
+ if (exists(id))
873
+ continue;
874
+ return id;
875
+ }
876
+ }
877
+ $.$mol_guid = $mol_guid;
878
+ })($ || ($ = {}));
879
+
865
880
  ;
866
881
  "use strict";
867
882
  var $;
@@ -880,6 +895,11 @@ var $;
880
895
  var $;
881
896
  (function ($) {
882
897
  class $mol_wire_pub extends Object {
898
+ constructor(id = `$mol_wire_pub:${$mol_guid()}`) {
899
+ super();
900
+ this[Symbol.toStringTag] = id;
901
+ }
902
+ [Symbol.toStringTag];
883
903
  data = [];
884
904
  static get [Symbol.species]() {
885
905
  return Array;
@@ -1371,7 +1391,6 @@ var $;
1371
1391
  }
1372
1392
  }
1373
1393
  }
1374
- [Symbol.toStringTag];
1375
1394
  cache = undefined;
1376
1395
  get args() {
1377
1396
  return this.data.slice(0, this.pub_from);
@@ -1390,13 +1409,12 @@ var $;
1390
1409
  return this.task.name + '()';
1391
1410
  }
1392
1411
  constructor(id, task, host, args) {
1393
- super();
1412
+ super(id);
1394
1413
  this.task = task;
1395
1414
  this.host = host;
1396
1415
  if (args)
1397
1416
  this.data.push(...args);
1398
1417
  this.pub_from = this.sub_from = args?.length ?? 0;
1399
- this[Symbol.toStringTag] = id;
1400
1418
  }
1401
1419
  plan() {
1402
1420
  $mol_wire_fiber.planning.add(this);
@@ -2706,21 +2724,6 @@ var $;
2706
2724
  });
2707
2725
  })($ || ($ = {}));
2708
2726
 
2709
- ;
2710
- "use strict";
2711
- var $;
2712
- (function ($) {
2713
- function $mol_guid(length = 8, exists = () => false) {
2714
- for (;;) {
2715
- let id = Math.random().toString(36).substring(2, length + 2).toUpperCase();
2716
- if (exists(id))
2717
- continue;
2718
- return id;
2719
- }
2720
- }
2721
- $.$mol_guid = $mol_guid;
2722
- })($ || ($ = {}));
2723
-
2724
2727
  ;
2725
2728
  "use strict";
2726
2729
  var $;