mam 1.11.651 → 1.11.652

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.js CHANGED
@@ -28,6 +28,21 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
28
28
  var $ = ( typeof module === 'object' ) ? ( module['export'+'s'] = globalThis ) : globalThis
29
29
  $.$$ = $
30
30
 
31
+ ;
32
+ "use strict";
33
+ var $;
34
+ (function ($) {
35
+ function $mol_guid(length = 8, exists = () => false) {
36
+ for (;;) {
37
+ let id = Math.random().toString(36).substring(2, length + 2).toUpperCase();
38
+ if (exists(id))
39
+ continue;
40
+ return id;
41
+ }
42
+ }
43
+ $.$mol_guid = $mol_guid;
44
+ })($ || ($ = {}));
45
+
31
46
  ;
32
47
  "use strict";
33
48
  var $;
@@ -56,6 +71,11 @@ var $;
56
71
  var $;
57
72
  (function ($) {
58
73
  class $mol_wire_pub extends Object {
74
+ constructor(id = `$mol_wire_pub:${$mol_guid()}`) {
75
+ super();
76
+ this[Symbol.toStringTag] = id;
77
+ }
78
+ [Symbol.toStringTag];
59
79
  data = [];
60
80
  static get [Symbol.species]() {
61
81
  return Array;
@@ -649,7 +669,6 @@ var $;
649
669
  }
650
670
  }
651
671
  }
652
- [Symbol.toStringTag];
653
672
  cache = undefined;
654
673
  get args() {
655
674
  return this.data.slice(0, this.pub_from);
@@ -668,13 +687,12 @@ var $;
668
687
  return this.task.name + '()';
669
688
  }
670
689
  constructor(id, task, host, args) {
671
- super();
690
+ super(id);
672
691
  this.task = task;
673
692
  this.host = host;
674
693
  if (args)
675
694
  this.data.push(...args);
676
695
  this.pub_from = this.sub_from = args?.length ?? 0;
677
- this[Symbol.toStringTag] = id;
678
696
  }
679
697
  plan() {
680
698
  $mol_wire_fiber.planning.add(this);
@@ -1652,21 +1670,6 @@ var $;
1652
1670
  $_1.$mol_object = $mol_object;
1653
1671
  })($ || ($ = {}));
1654
1672
 
1655
- ;
1656
- "use strict";
1657
- var $;
1658
- (function ($) {
1659
- function $mol_guid(length = 8, exists = () => false) {
1660
- for (;;) {
1661
- let id = Math.random().toString(36).substring(2, length + 2).toUpperCase();
1662
- if (exists(id))
1663
- continue;
1664
- return id;
1665
- }
1666
- }
1667
- $.$mol_guid = $mol_guid;
1668
- })($ || ($ = {}));
1669
-
1670
1673
  ;
1671
1674
  "use strict";
1672
1675
  var $;