mam 1.11.651 → 1.11.653

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.mjs 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 $;
package/node.test.js CHANGED
@@ -19,6 +19,21 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
19
19
  var $ = ( typeof module === 'object' ) ? ( module['export'+'s'] = globalThis ) : globalThis
20
20
  $.$$ = $
21
21
 
22
+ ;
23
+ "use strict";
24
+ var $;
25
+ (function ($) {
26
+ function $mol_guid(length = 8, exists = () => false) {
27
+ for (;;) {
28
+ let id = Math.random().toString(36).substring(2, length + 2).toUpperCase();
29
+ if (exists(id))
30
+ continue;
31
+ return id;
32
+ }
33
+ }
34
+ $.$mol_guid = $mol_guid;
35
+ })($ || ($ = {}));
36
+
22
37
  ;
23
38
  "use strict";
24
39
  var $;
@@ -47,6 +62,11 @@ var $;
47
62
  var $;
48
63
  (function ($) {
49
64
  class $mol_wire_pub extends Object {
65
+ constructor(id = `$mol_wire_pub:${$mol_guid()}`) {
66
+ super();
67
+ this[Symbol.toStringTag] = id;
68
+ }
69
+ [Symbol.toStringTag];
50
70
  data = [];
51
71
  static get [Symbol.species]() {
52
72
  return Array;
@@ -640,7 +660,6 @@ var $;
640
660
  }
641
661
  }
642
662
  }
643
- [Symbol.toStringTag];
644
663
  cache = undefined;
645
664
  get args() {
646
665
  return this.data.slice(0, this.pub_from);
@@ -659,13 +678,12 @@ var $;
659
678
  return this.task.name + '()';
660
679
  }
661
680
  constructor(id, task, host, args) {
662
- super();
681
+ super(id);
663
682
  this.task = task;
664
683
  this.host = host;
665
684
  if (args)
666
685
  this.data.push(...args);
667
686
  this.pub_from = this.sub_from = args?.length ?? 0;
668
- this[Symbol.toStringTag] = id;
669
687
  }
670
688
  plan() {
671
689
  $mol_wire_fiber.planning.add(this);
@@ -1643,21 +1661,6 @@ var $;
1643
1661
  $_1.$mol_object = $mol_object;
1644
1662
  })($ || ($ = {}));
1645
1663
 
1646
- ;
1647
- "use strict";
1648
- var $;
1649
- (function ($) {
1650
- function $mol_guid(length = 8, exists = () => false) {
1651
- for (;;) {
1652
- let id = Math.random().toString(36).substring(2, length + 2).toUpperCase();
1653
- if (exists(id))
1654
- continue;
1655
- return id;
1656
- }
1657
- }
1658
- $.$mol_guid = $mol_guid;
1659
- })($ || ($ = {}));
1660
-
1661
1664
  ;
1662
1665
  "use strict";
1663
1666
  var $;