style: fix lint errors, ignore js and d.ts files

This commit is contained in:
Kamil Myśliwiec committed 2023-02-01 13:40:29 +01:00
1 parent 38c365215a
commit 511e7162a6
2 files changed
+5 -3

No files matched your search

+3 -1
View File
@@ -1 +1,3 @@
**/node_modules/**
**/node_modules/**
*.d.ts
*.js
+2 -2
View File
@@ -7,13 +7,13 @@ export enum UuidFactoryMode {
}
export class UuidFactory {
private static _mode: UuidFactoryMode = UuidFactoryMode.Random;
private static _mode = UuidFactoryMode.Random;
static set mode(value: UuidFactoryMode) {
this._mode = value;
}
static get(key: string = '', namespace?: string) {
static get(key = '', namespace?: string) {
return this._mode === UuidFactoryMode.Deterministic
? DeterministicUuidRegistry.get(key, namespace)
: randomStringGenerator();