mirror of
https://github.com/nestjs/nest.git
synced 2026-02-21 23:11:44 +00:00
style: fix lint errors, ignore js and d.ts files
This commit is contained in:
@@ -1 +1,3 @@
|
||||
**/node_modules/**
|
||||
**/node_modules/**
|
||||
*.d.ts
|
||||
*.js
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user