@screencloud/uuid
Advanced tools
Comparing version 1.1.0 to 1.1.1
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var uuid_1 = require("uuid"); | ||
var uuid_encoder_1 = __importDefault(require("uuid-encoder")); | ||
var encoding_1 = require("./encoding"); | ||
var nilRegex = /^[0]{8}-[0]{4}-[0]{4}-[0]{4}-[0]{12}$/i; | ||
var anyRegex = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i; | ||
var base62Regex = /^[0-9a-z]{22}$/i; | ||
var encoder = new uuid_encoder_1.default("base62"); | ||
function genUuid() { | ||
@@ -39,3 +35,3 @@ return uuid_1.v4(); | ||
} | ||
return encoder.encode(uuid); | ||
return encoding_1.encode(uuid); | ||
} | ||
@@ -50,4 +46,4 @@ exports.compactUuid = compactUuid; | ||
} | ||
return encoder.decode(str); | ||
return encoding_1.decode(str); | ||
} | ||
exports.expandUuid = expandUuid; |
@@ -9,3 +9,3 @@ { | ||
"semantic-release": "semantic-release", | ||
"test": "jest", | ||
"test": "jest --coverage", | ||
"test:watch": "jest --watch", | ||
@@ -22,4 +22,4 @@ "tslint": "tslint -p . -t stylish", | ||
"dependencies": { | ||
"uuid": "^3.3.2", | ||
"uuid-encoder": "^1.1.0" | ||
"big-integer": "^1.6.43", | ||
"uuid": "^3.3.2" | ||
}, | ||
@@ -44,3 +44,3 @@ "devDependencies": { | ||
}, | ||
"version": "1.1.0" | ||
"version": "1.1.1" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5472
5
123
+ Addedbig-integer@^1.6.43
- Removeduuid-encoder@^1.1.0
- Removeduuid-encoder@1.2.0(transitive)