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);
|
||||
};
|
||||
|
@ -1,11 +1,5 @@
|
||||
import 'typings-global'
|
||||
import * as shortid from 'shortid';
|
||||
import * as uuidv4 from 'uuid/v4';
|
||||
import * as uuidv5 from 'uuid/v5';
|
||||
|
||||
import * as shortid from 'shortid'
|
||||
import * as uuidv4 from 'uuid/v4'
|
||||
import * as uuidv5 from 'uuid/v5'
|
||||
|
||||
export {
|
||||
shortid,
|
||||
uuidv4,
|
||||
uuidv5
|
||||
}
|
||||
export { shortid, uuidv4, uuidv5 };
|
||||
|
Reference in New Issue
Block a user