BREAKING CHANGE(scope): update scope
This commit is contained in:
14
ts/index.ts
14
ts/index.ts
@@ -1,19 +1,19 @@
|
||||
import * as plugins from './smartunique.plugins'
|
||||
import * as plugins from './smartunique.plugins';
|
||||
|
||||
/**
|
||||
* returns short strings that are unique to very high degree od certainty
|
||||
*/
|
||||
export let shortId = (): string => {
|
||||
return plugins.shortid.generate()
|
||||
}
|
||||
return plugins.shortid.generate();
|
||||
};
|
||||
|
||||
/**
|
||||
* returns strings that are unique to a very high degree of certainty
|
||||
*/
|
||||
export let uuid4 = (): string => {
|
||||
return plugins.uuidv4()
|
||||
}
|
||||
return plugins.uuidv4();
|
||||
};
|
||||
|
||||
export let uuid5 = (customStringArg: string, namespaceArg = plugins.uuidv5.DNS): string => {
|
||||
return plugins.uuidv5(customStringArg, namespaceArg)
|
||||
}
|
||||
return plugins.uuidv5(customStringArg, namespaceArg);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user