mol_text_distance 0.0.1228 → 0.0.1229
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 +21 -18
- package/node.test.js.map +1 -1
- package/package.json +1 -1
package/node.test.js
CHANGED
|
@@ -620,6 +620,21 @@ var $;
|
|
|
620
620
|
};
|
|
621
621
|
})($ || ($ = {}));
|
|
622
622
|
|
|
623
|
+
;
|
|
624
|
+
"use strict";
|
|
625
|
+
var $;
|
|
626
|
+
(function ($) {
|
|
627
|
+
function $mol_guid(length = 8, exists = () => false) {
|
|
628
|
+
for (;;) {
|
|
629
|
+
let id = Math.random().toString(36).substring(2, length + 2).toUpperCase();
|
|
630
|
+
if (exists(id))
|
|
631
|
+
continue;
|
|
632
|
+
return id;
|
|
633
|
+
}
|
|
634
|
+
}
|
|
635
|
+
$.$mol_guid = $mol_guid;
|
|
636
|
+
})($ || ($ = {}));
|
|
637
|
+
|
|
623
638
|
;
|
|
624
639
|
"use strict";
|
|
625
640
|
var $;
|
|
@@ -638,6 +653,11 @@ var $;
|
|
|
638
653
|
var $;
|
|
639
654
|
(function ($) {
|
|
640
655
|
class $mol_wire_pub extends Object {
|
|
656
|
+
constructor(id = `$mol_wire_pub:${$mol_guid()}`) {
|
|
657
|
+
super();
|
|
658
|
+
this[Symbol.toStringTag] = id;
|
|
659
|
+
}
|
|
660
|
+
[Symbol.toStringTag];
|
|
641
661
|
data = [];
|
|
642
662
|
static get [Symbol.species]() {
|
|
643
663
|
return Array;
|
|
@@ -1129,7 +1149,6 @@ var $;
|
|
|
1129
1149
|
}
|
|
1130
1150
|
}
|
|
1131
1151
|
}
|
|
1132
|
-
[Symbol.toStringTag];
|
|
1133
1152
|
cache = undefined;
|
|
1134
1153
|
get args() {
|
|
1135
1154
|
return this.data.slice(0, this.pub_from);
|
|
@@ -1148,13 +1167,12 @@ var $;
|
|
|
1148
1167
|
return this.task.name + '()';
|
|
1149
1168
|
}
|
|
1150
1169
|
constructor(id, task, host, args) {
|
|
1151
|
-
super();
|
|
1170
|
+
super(id);
|
|
1152
1171
|
this.task = task;
|
|
1153
1172
|
this.host = host;
|
|
1154
1173
|
if (args)
|
|
1155
1174
|
this.data.push(...args);
|
|
1156
1175
|
this.pub_from = this.sub_from = args?.length ?? 0;
|
|
1157
|
-
this[Symbol.toStringTag] = id;
|
|
1158
1176
|
}
|
|
1159
1177
|
plan() {
|
|
1160
1178
|
$mol_wire_fiber.planning.add(this);
|
|
@@ -2464,21 +2482,6 @@ var $;
|
|
|
2464
2482
|
});
|
|
2465
2483
|
})($ || ($ = {}));
|
|
2466
2484
|
|
|
2467
|
-
;
|
|
2468
|
-
"use strict";
|
|
2469
|
-
var $;
|
|
2470
|
-
(function ($) {
|
|
2471
|
-
function $mol_guid(length = 8, exists = () => false) {
|
|
2472
|
-
for (;;) {
|
|
2473
|
-
let id = Math.random().toString(36).substring(2, length + 2).toUpperCase();
|
|
2474
|
-
if (exists(id))
|
|
2475
|
-
continue;
|
|
2476
|
-
return id;
|
|
2477
|
-
}
|
|
2478
|
-
}
|
|
2479
|
-
$.$mol_guid = $mol_guid;
|
|
2480
|
-
})($ || ($ = {}));
|
|
2481
|
-
|
|
2482
2485
|
;
|
|
2483
2486
|
"use strict";
|
|
2484
2487
|
var $;
|