@awhere/api
Version:
The awesome aWhere API for JavaScript.
14 lines • 540 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.uuid = void 0;
var uuid_1 = require("uuid");
var uuid = function (namespace) {
if (namespace === void 0) { namespace = 'awhere.uuid'; }
return (0, uuid_1.v5)((0, uuid_1.v4)(), (0, uuid_1.v5)(namespace, uuid_1.v5.DNS)).replace(/-/g, '');
};
exports.uuid = uuid;
exports.uuid.createGenerator = function (namespace) { return function () {
return (0, exports.uuid)(namespace);
}; };
exports.default = exports.uuid;
//# sourceMappingURL=uuid.js.map
;