mol_crypto_lib 0.1.1567 → 0.1.1568
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.d.ts +6 -1
- package/node.d.ts.map +1 -1
- package/node.deps.json +1 -1
- package/node.js +21 -3
- package/node.js.map +1 -1
- package/node.mjs +21 -3
- package/node.test.js +21 -18
- package/node.test.js.map +1 -1
- package/package.json +2 -1
package/node.mjs
CHANGED
@@ -600,6 +600,21 @@ var $;
|
|
600
600
|
};
|
601
601
|
})($ || ($ = {}));
|
602
602
|
|
603
|
+
;
|
604
|
+
"use strict";
|
605
|
+
var $;
|
606
|
+
(function ($) {
|
607
|
+
function $mol_guid(length = 8, exists = () => false) {
|
608
|
+
for (;;) {
|
609
|
+
let id = Math.random().toString(36).substring(2, length + 2).toUpperCase();
|
610
|
+
if (exists(id))
|
611
|
+
continue;
|
612
|
+
return id;
|
613
|
+
}
|
614
|
+
}
|
615
|
+
$.$mol_guid = $mol_guid;
|
616
|
+
})($ || ($ = {}));
|
617
|
+
|
603
618
|
;
|
604
619
|
"use strict";
|
605
620
|
var $;
|
@@ -618,6 +633,11 @@ var $;
|
|
618
633
|
var $;
|
619
634
|
(function ($) {
|
620
635
|
class $mol_wire_pub extends Object {
|
636
|
+
constructor(id = `$mol_wire_pub:${$mol_guid()}`) {
|
637
|
+
super();
|
638
|
+
this[Symbol.toStringTag] = id;
|
639
|
+
}
|
640
|
+
[Symbol.toStringTag];
|
621
641
|
data = [];
|
622
642
|
static get [Symbol.species]() {
|
623
643
|
return Array;
|
@@ -1004,7 +1024,6 @@ var $;
|
|
1004
1024
|
}
|
1005
1025
|
}
|
1006
1026
|
}
|
1007
|
-
[Symbol.toStringTag];
|
1008
1027
|
cache = undefined;
|
1009
1028
|
get args() {
|
1010
1029
|
return this.data.slice(0, this.pub_from);
|
@@ -1023,13 +1042,12 @@ var $;
|
|
1023
1042
|
return this.task.name + '()';
|
1024
1043
|
}
|
1025
1044
|
constructor(id, task, host, args) {
|
1026
|
-
super();
|
1045
|
+
super(id);
|
1027
1046
|
this.task = task;
|
1028
1047
|
this.host = host;
|
1029
1048
|
if (args)
|
1030
1049
|
this.data.push(...args);
|
1031
1050
|
this.pub_from = this.sub_from = args?.length ?? 0;
|
1032
|
-
this[Symbol.toStringTag] = id;
|
1033
1051
|
}
|
1034
1052
|
plan() {
|
1035
1053
|
$mol_wire_fiber.planning.add(this);
|
package/node.test.js
CHANGED
@@ -591,6 +591,21 @@ var $;
|
|
591
591
|
};
|
592
592
|
})($ || ($ = {}));
|
593
593
|
|
594
|
+
;
|
595
|
+
"use strict";
|
596
|
+
var $;
|
597
|
+
(function ($) {
|
598
|
+
function $mol_guid(length = 8, exists = () => false) {
|
599
|
+
for (;;) {
|
600
|
+
let id = Math.random().toString(36).substring(2, length + 2).toUpperCase();
|
601
|
+
if (exists(id))
|
602
|
+
continue;
|
603
|
+
return id;
|
604
|
+
}
|
605
|
+
}
|
606
|
+
$.$mol_guid = $mol_guid;
|
607
|
+
})($ || ($ = {}));
|
608
|
+
|
594
609
|
;
|
595
610
|
"use strict";
|
596
611
|
var $;
|
@@ -609,6 +624,11 @@ var $;
|
|
609
624
|
var $;
|
610
625
|
(function ($) {
|
611
626
|
class $mol_wire_pub extends Object {
|
627
|
+
constructor(id = `$mol_wire_pub:${$mol_guid()}`) {
|
628
|
+
super();
|
629
|
+
this[Symbol.toStringTag] = id;
|
630
|
+
}
|
631
|
+
[Symbol.toStringTag];
|
612
632
|
data = [];
|
613
633
|
static get [Symbol.species]() {
|
614
634
|
return Array;
|
@@ -995,7 +1015,6 @@ var $;
|
|
995
1015
|
}
|
996
1016
|
}
|
997
1017
|
}
|
998
|
-
[Symbol.toStringTag];
|
999
1018
|
cache = undefined;
|
1000
1019
|
get args() {
|
1001
1020
|
return this.data.slice(0, this.pub_from);
|
@@ -1014,13 +1033,12 @@ var $;
|
|
1014
1033
|
return this.task.name + '()';
|
1015
1034
|
}
|
1016
1035
|
constructor(id, task, host, args) {
|
1017
|
-
super();
|
1036
|
+
super(id);
|
1018
1037
|
this.task = task;
|
1019
1038
|
this.host = host;
|
1020
1039
|
if (args)
|
1021
1040
|
this.data.push(...args);
|
1022
1041
|
this.pub_from = this.sub_from = args?.length ?? 0;
|
1023
|
-
this[Symbol.toStringTag] = id;
|
1024
1042
|
}
|
1025
1043
|
plan() {
|
1026
1044
|
$mol_wire_fiber.planning.add(this);
|
@@ -3700,21 +3718,6 @@ var $;
|
|
3700
3718
|
});
|
3701
3719
|
})($ || ($ = {}));
|
3702
3720
|
|
3703
|
-
;
|
3704
|
-
"use strict";
|
3705
|
-
var $;
|
3706
|
-
(function ($) {
|
3707
|
-
function $mol_guid(length = 8, exists = () => false) {
|
3708
|
-
for (;;) {
|
3709
|
-
let id = Math.random().toString(36).substring(2, length + 2).toUpperCase();
|
3710
|
-
if (exists(id))
|
3711
|
-
continue;
|
3712
|
-
return id;
|
3713
|
-
}
|
3714
|
-
}
|
3715
|
-
$.$mol_guid = $mol_guid;
|
3716
|
-
})($ || ($ = {}));
|
3717
|
-
|
3718
3721
|
;
|
3719
3722
|
"use strict";
|
3720
3723
|
var $;
|