canvas-editor-engine 1.0.69 → 1.0.70
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/services/event.service.js +1 -1
- package/dist/utils/guid4.d.ts +3 -2
- package/dist/utils/guid4.js +16 -12
- package/package.json +1 -1
package/dist/utils/guid4.d.ts
CHANGED
@@ -3,10 +3,11 @@ export declare class Guid4 {
|
|
3
3
|
stack: IGUID4[];
|
4
4
|
guid4: IGUID4;
|
5
5
|
constructor();
|
6
|
-
|
6
|
+
generate(): `${number}-${number}-${number}-${number}`;
|
7
|
+
get finite(): IGUID4;
|
8
|
+
private generateWithFactor;
|
7
9
|
private getFactor;
|
8
10
|
private get attempt();
|
9
11
|
private get Guid4();
|
10
12
|
private formating;
|
11
|
-
get finite(): IGUID4;
|
12
13
|
}
|
package/dist/utils/guid4.js
CHANGED
@@ -5,9 +5,23 @@ class Guid4 {
|
|
5
5
|
stack = [];
|
6
6
|
guid4;
|
7
7
|
constructor() {
|
8
|
-
|
8
|
+
// generateWithFactor not working
|
9
|
+
// this.generateWithFactor(this.attempt);
|
9
10
|
}
|
10
|
-
generate(
|
11
|
+
generate() {
|
12
|
+
return this.Guid4;
|
13
|
+
}
|
14
|
+
get finite() {
|
15
|
+
const guid4 = this.stack[this.stack?.length];
|
16
|
+
if (!!guid4) {
|
17
|
+
return guid4;
|
18
|
+
}
|
19
|
+
else {
|
20
|
+
throw new Error("Guid4 not generate");
|
21
|
+
}
|
22
|
+
}
|
23
|
+
;
|
24
|
+
generateWithFactor(attempt) {
|
11
25
|
const factor = this.getFactor(this.guid4);
|
12
26
|
attempt.use('withError').run(factor);
|
13
27
|
}
|
@@ -44,16 +58,6 @@ class Guid4 {
|
|
44
58
|
const formattedChar = (char == 'x') ? preformer : (preformer & 0x3 | 0x8);
|
45
59
|
return formattedChar.toString(16);
|
46
60
|
}
|
47
|
-
get finite() {
|
48
|
-
const guid4 = this.stack[this.stack?.length];
|
49
|
-
if (!!guid4) {
|
50
|
-
return guid4;
|
51
|
-
}
|
52
|
-
else {
|
53
|
-
throw new Error("Guid4 not generate");
|
54
|
-
}
|
55
|
-
}
|
56
|
-
;
|
57
61
|
}
|
58
62
|
exports.Guid4 = Guid4;
|
59
63
|
;
|