@pod-os/core 0.11.2-639ae3c.0 → 0.11.2-b41ffeb.0
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/dist/{chunk-7C7N3OSJ.js → chunk-K3YKITD7.js} +493 -376
- package/dist/{dist-762OQHAF.js → dist-L3AA3UET.js} +4 -11
- package/dist/index.js +4214 -4259
- package/lib/index.js +4734 -4660
- package/package.json +6 -6
- package/types/index.d.ts +0 -1
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
lit,
|
|
5
5
|
namedNode,
|
|
6
6
|
st
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-K3YKITD7.js";
|
|
8
8
|
import {
|
|
9
9
|
__commonJS,
|
|
10
10
|
__toESM
|
|
@@ -56,7 +56,7 @@ var require_short_unique_id = __commonJS({
|
|
|
56
56
|
DEFAULT_UUID_LENGTH: () => DEFAULT_UUID_LENGTH,
|
|
57
57
|
default: () => ShortUniqueId3
|
|
58
58
|
});
|
|
59
|
-
var version = "5.
|
|
59
|
+
var version = "5.0.3";
|
|
60
60
|
var DEFAULT_UUID_LENGTH = 6;
|
|
61
61
|
var DEFAULT_OPTIONS = {
|
|
62
62
|
dictionary: "alphanum",
|
|
@@ -133,7 +133,7 @@ var require_short_unique_id = __commonJS({
|
|
|
133
133
|
}
|
|
134
134
|
}
|
|
135
135
|
});
|
|
136
|
-
__publicField(this, "
|
|
136
|
+
__publicField(this, "setDictionary", (dictionary2, shuffle2) => {
|
|
137
137
|
let finalDict;
|
|
138
138
|
if (dictionary2 && Array.isArray(dictionary2) && dictionary2.length > 1) {
|
|
139
139
|
finalDict = dictionary2;
|
|
@@ -157,10 +157,7 @@ var require_short_unique_id = __commonJS({
|
|
|
157
157
|
const PROBABILITY = 0.5;
|
|
158
158
|
finalDict = finalDict.sort(() => Math.random() - PROBABILITY);
|
|
159
159
|
}
|
|
160
|
-
|
|
161
|
-
});
|
|
162
|
-
__publicField(this, "setDictionary", (dictionary2, shuffle2) => {
|
|
163
|
-
this.dict = this._normalizeDictionary(dictionary2, shuffle2);
|
|
160
|
+
this.dict = finalDict;
|
|
164
161
|
this.dictLength = this.dict.length;
|
|
165
162
|
this.setCounter(0);
|
|
166
163
|
});
|
|
@@ -302,10 +299,6 @@ var require_short_unique_id = __commonJS({
|
|
|
302
299
|
__publicField(this, "setCounter", (counter2) => {
|
|
303
300
|
this.counter = counter2;
|
|
304
301
|
});
|
|
305
|
-
__publicField(this, "validate", (uid2, dictionary2) => {
|
|
306
|
-
const finalDictionary = dictionary2 ? this._normalizeDictionary(dictionary2) : this.dict;
|
|
307
|
-
return uid2.split("").every((c) => finalDictionary.includes(c));
|
|
308
|
-
});
|
|
309
302
|
const options = __spreadValues(__spreadValues({}, DEFAULT_OPTIONS), argOptions);
|
|
310
303
|
this.counter = 0;
|
|
311
304
|
this.debug = false;
|