mol_db 0.0.1481 → 0.0.1483
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
|
@@ -427,6 +427,21 @@ var $;
|
|
|
427
427
|
};
|
|
428
428
|
})($ || ($ = {}));
|
|
429
429
|
|
|
430
|
+
;
|
|
431
|
+
"use strict";
|
|
432
|
+
var $;
|
|
433
|
+
(function ($) {
|
|
434
|
+
function $mol_guid(length = 8, exists = () => false) {
|
|
435
|
+
for (;;) {
|
|
436
|
+
let id = Math.random().toString(36).substring(2, length + 2).toUpperCase();
|
|
437
|
+
if (exists(id))
|
|
438
|
+
continue;
|
|
439
|
+
return id;
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
$.$mol_guid = $mol_guid;
|
|
443
|
+
})($ || ($ = {}));
|
|
444
|
+
|
|
430
445
|
;
|
|
431
446
|
"use strict";
|
|
432
447
|
var $;
|
|
@@ -445,6 +460,11 @@ var $;
|
|
|
445
460
|
var $;
|
|
446
461
|
(function ($) {
|
|
447
462
|
class $mol_wire_pub extends Object {
|
|
463
|
+
constructor(id = `$mol_wire_pub:${$mol_guid()}`) {
|
|
464
|
+
super();
|
|
465
|
+
this[Symbol.toStringTag] = id;
|
|
466
|
+
}
|
|
467
|
+
[Symbol.toStringTag];
|
|
448
468
|
data = [];
|
|
449
469
|
static get [Symbol.species]() {
|
|
450
470
|
return Array;
|
|
@@ -831,7 +851,6 @@ var $;
|
|
|
831
851
|
}
|
|
832
852
|
}
|
|
833
853
|
}
|
|
834
|
-
[Symbol.toStringTag];
|
|
835
854
|
cache = undefined;
|
|
836
855
|
get args() {
|
|
837
856
|
return this.data.slice(0, this.pub_from);
|
|
@@ -850,13 +869,12 @@ var $;
|
|
|
850
869
|
return this.task.name + '()';
|
|
851
870
|
}
|
|
852
871
|
constructor(id, task, host, args) {
|
|
853
|
-
super();
|
|
872
|
+
super(id);
|
|
854
873
|
this.task = task;
|
|
855
874
|
this.host = host;
|
|
856
875
|
if (args)
|
|
857
876
|
this.data.push(...args);
|
|
858
877
|
this.pub_from = this.sub_from = args?.length ?? 0;
|
|
859
|
-
this[Symbol.toStringTag] = id;
|
|
860
878
|
}
|
|
861
879
|
plan() {
|
|
862
880
|
$mol_wire_fiber.planning.add(this);
|
package/node.test.js
CHANGED
|
@@ -418,6 +418,21 @@ var $;
|
|
|
418
418
|
};
|
|
419
419
|
})($ || ($ = {}));
|
|
420
420
|
|
|
421
|
+
;
|
|
422
|
+
"use strict";
|
|
423
|
+
var $;
|
|
424
|
+
(function ($) {
|
|
425
|
+
function $mol_guid(length = 8, exists = () => false) {
|
|
426
|
+
for (;;) {
|
|
427
|
+
let id = Math.random().toString(36).substring(2, length + 2).toUpperCase();
|
|
428
|
+
if (exists(id))
|
|
429
|
+
continue;
|
|
430
|
+
return id;
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
$.$mol_guid = $mol_guid;
|
|
434
|
+
})($ || ($ = {}));
|
|
435
|
+
|
|
421
436
|
;
|
|
422
437
|
"use strict";
|
|
423
438
|
var $;
|
|
@@ -436,6 +451,11 @@ var $;
|
|
|
436
451
|
var $;
|
|
437
452
|
(function ($) {
|
|
438
453
|
class $mol_wire_pub extends Object {
|
|
454
|
+
constructor(id = `$mol_wire_pub:${$mol_guid()}`) {
|
|
455
|
+
super();
|
|
456
|
+
this[Symbol.toStringTag] = id;
|
|
457
|
+
}
|
|
458
|
+
[Symbol.toStringTag];
|
|
439
459
|
data = [];
|
|
440
460
|
static get [Symbol.species]() {
|
|
441
461
|
return Array;
|
|
@@ -822,7 +842,6 @@ var $;
|
|
|
822
842
|
}
|
|
823
843
|
}
|
|
824
844
|
}
|
|
825
|
-
[Symbol.toStringTag];
|
|
826
845
|
cache = undefined;
|
|
827
846
|
get args() {
|
|
828
847
|
return this.data.slice(0, this.pub_from);
|
|
@@ -841,13 +860,12 @@ var $;
|
|
|
841
860
|
return this.task.name + '()';
|
|
842
861
|
}
|
|
843
862
|
constructor(id, task, host, args) {
|
|
844
|
-
super();
|
|
863
|
+
super(id);
|
|
845
864
|
this.task = task;
|
|
846
865
|
this.host = host;
|
|
847
866
|
if (args)
|
|
848
867
|
this.data.push(...args);
|
|
849
868
|
this.pub_from = this.sub_from = args?.length ?? 0;
|
|
850
|
-
this[Symbol.toStringTag] = id;
|
|
851
869
|
}
|
|
852
870
|
plan() {
|
|
853
871
|
$mol_wire_fiber.planning.add(this);
|
|
@@ -3751,21 +3769,6 @@ var $;
|
|
|
3751
3769
|
});
|
|
3752
3770
|
})($ || ($ = {}));
|
|
3753
3771
|
|
|
3754
|
-
;
|
|
3755
|
-
"use strict";
|
|
3756
|
-
var $;
|
|
3757
|
-
(function ($) {
|
|
3758
|
-
function $mol_guid(length = 8, exists = () => false) {
|
|
3759
|
-
for (;;) {
|
|
3760
|
-
let id = Math.random().toString(36).substring(2, length + 2).toUpperCase();
|
|
3761
|
-
if (exists(id))
|
|
3762
|
-
continue;
|
|
3763
|
-
return id;
|
|
3764
|
-
}
|
|
3765
|
-
}
|
|
3766
|
-
$.$mol_guid = $mol_guid;
|
|
3767
|
-
})($ || ($ = {}));
|
|
3768
|
-
|
|
3769
3772
|
;
|
|
3770
3773
|
"use strict";
|
|
3771
3774
|
var $;
|