BREAKING CHANGE(scope): update scope

This commit is contained in:
2018-10-06 15:38:55 +02:00
parent 79f78550ba
commit 17ecde59d5
15 changed files with 1033 additions and 503 deletions

View File

@ -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);
};

View File

@ -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 };