now working
This commit is contained in:
9
dist/index.d.ts
vendored
Normal file
9
dist/index.d.ts
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
/**
|
||||
* returns short strings that are unique to very high degree od certainty
|
||||
*/
|
||||
export declare let getShortId: () => string;
|
||||
/**
|
||||
* returns strings that are unique to a very high degree of certainty
|
||||
*/
|
||||
export declare let getUuidv4: () => string;
|
||||
export declare let getUuidv5: (customStringArg: string, namespaceArg?: any) => string;
|
19
dist/index.js
vendored
Normal file
19
dist/index.js
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const plugins = require("./smartunique.plugins");
|
||||
/**
|
||||
* returns short strings that are unique to very high degree od certainty
|
||||
*/
|
||||
exports.getShortId = () => {
|
||||
return plugins.shortid.generate();
|
||||
};
|
||||
/**
|
||||
* returns strings that are unique to a very high degree of certainty
|
||||
*/
|
||||
exports.getUuidv4 = () => {
|
||||
return plugins.uuidv4();
|
||||
};
|
||||
exports.getUuidv5 = (customStringArg, namespaceArg = plugins.uuidv5.DNS) => {
|
||||
return plugins.uuidv5(customStringArg, namespaceArg);
|
||||
};
|
||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLGlEQUFnRDtBQUVoRDs7R0FFRztBQUNRLFFBQUEsVUFBVSxHQUFHO0lBQ3RCLE1BQU0sQ0FBQyxPQUFPLENBQUMsT0FBTyxDQUFDLFFBQVEsRUFBRSxDQUFBO0FBQ25DLENBQUMsQ0FBQTtBQUVEOztHQUVHO0FBQ1EsUUFBQSxTQUFTLEdBQUc7SUFDckIsTUFBTSxDQUFDLE9BQU8sQ0FBQyxNQUFNLEVBQUUsQ0FBQTtBQUN6QixDQUFDLENBQUE7QUFFVSxRQUFBLFNBQVMsR0FBRyxDQUFDLGVBQXVCLEVBQUUsWUFBWSxHQUFHLE9BQU8sQ0FBQyxNQUFNLENBQUMsR0FBRztJQUNoRixNQUFNLENBQUMsT0FBTyxDQUFDLE1BQU0sQ0FBQyxlQUFlLEVBQUUsWUFBWSxDQUFDLENBQUE7QUFDdEQsQ0FBQyxDQUFBIn0=
|
5
dist/smartunique.plugins.d.ts
vendored
Normal file
5
dist/smartunique.plugins.d.ts
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
import 'typings-global';
|
||||
import * as shortid from 'shortid';
|
||||
import * as uuidv4 from 'uuid/v4';
|
||||
import * as uuidv5 from 'uuid/v5';
|
||||
export { shortid, uuidv4, uuidv5 };
|
10
dist/smartunique.plugins.js
vendored
Normal file
10
dist/smartunique.plugins.js
vendored
Normal file
@ -0,0 +1,10 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
require("typings-global");
|
||||
const shortid = require("shortid");
|
||||
exports.shortid = shortid;
|
||||
const uuidv4 = require("uuid/v4");
|
||||
exports.uuidv4 = uuidv4;
|
||||
const uuidv5 = require("uuid/v5");
|
||||
exports.uuidv5 = uuidv5;
|
||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnR1bmlxdWUucGx1Z2lucy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3RzL3NtYXJ0dW5pcXVlLnBsdWdpbnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSwwQkFBdUI7QUFFdkIsbUNBQWtDO0FBS2hDLDBCQUFPO0FBSlQsa0NBQWlDO0FBSy9CLHdCQUFNO0FBSlIsa0NBQWlDO0FBSy9CLHdCQUFNIn0=
|
Reference in New Issue
Block a user