Comparing version 1.0.9 to 1.0.10
@@ -9,6 +9,7 @@ "use strict"; | ||
} | ||
exports.encode = (uuid) => { | ||
const encode = (uuid) => { | ||
return d64.encode(Buffer.from(uuid.split('-').join(''), 'hex')); | ||
}; | ||
exports.decode = (d64str) => { | ||
exports.encode = encode; | ||
const decode = (d64str) => { | ||
let i = 0; | ||
@@ -26,2 +27,3 @@ const bth = _bytesToHex; | ||
}; | ||
exports.decode = decode; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "uuid-d64", | ||
"version": "1.0.9", | ||
"version": "1.0.10", | ||
"description": "Compression codec for uuid to d64 (22 bytes)", | ||
@@ -18,3 +18,3 @@ "main": "lib/index.js", | ||
"d64", | ||
"encode", | ||
"e9ncode", | ||
"decode", | ||
@@ -21,0 +21,0 @@ "codec", |
Sorry, the diff of this file is not supported yet
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
5443
28