@graffy/common
Advanced tools
Comparing version 0.14.1 to 0.14.2-alpha1
@@ -11,7 +11,3 @@ "use strict"; | ||
/* | ||
This is just like standard URL-safe Base64, except for using an alphabet | ||
re-ordered for sortability. | ||
*/ | ||
var alpha = '-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz'; | ||
var _alphabet = _interopRequireDefault(require("./alphabet")); | ||
@@ -23,3 +19,3 @@ function getByte(view, offset) { | ||
function getChar(string, offset) { | ||
return offset < string.length ? (0, _indexOf["default"])(alpha).call(alpha, string[offset]) : 0; | ||
return offset < string.length ? (0, _indexOf["default"])(_alphabet["default"]).call(_alphabet["default"], string[offset]) : 0; | ||
} | ||
@@ -39,3 +35,3 @@ | ||
for (var j = 0; j < 4; j++) { | ||
gstr = alpha[value & 0x3f] + gstr; | ||
gstr = _alphabet["default"][value & 0x3f] + gstr; | ||
value = value >> 6 | 0; | ||
@@ -42,0 +38,0 @@ } |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault"); | ||
exports.__esModule = true; | ||
exports.decodeKey = exports.decodeUrl = exports.encodeKey = exports.key = exports.encodeUrl = void 0; | ||
exports.makeId = exports.decodeKey = exports.decodeUrl = exports.encodeKey = exports.key = exports.encodeUrl = void 0; | ||
@@ -15,2 +17,6 @@ var _url = require("./url.js"); | ||
exports.encodeKey = _key.encode; | ||
exports.decodeKey = _key.decode; | ||
exports.decodeKey = _key.decode; | ||
var _id = _interopRequireDefault(require("./id.js")); | ||
exports.makeId = _id["default"]; |
@@ -5,3 +5,3 @@ { | ||
"author": "aravind (https://github.com/aravindet)", | ||
"version": "0.14.1", | ||
"version": "0.14.2-alpha1", | ||
"main": "index.js", | ||
@@ -17,2 +17,3 @@ "source": "src/index.js", | ||
"@babel/runtime-corejs3": "^7.8.4", | ||
"nanoid": "^2.1.11", | ||
"text-encoder-lite": "^2.0.0", | ||
@@ -19,0 +20,0 @@ "merge-async-iterators": "^0.2.1" |
@@ -1,9 +0,3 @@ | ||
/* | ||
This is just like standard URL-safe Base64, except for using an alphabet | ||
re-ordered for sortability. | ||
*/ | ||
import alpha from './alphabet'; | ||
const alpha = | ||
'-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz'; | ||
function getByte(view, offset) { | ||
@@ -10,0 +4,0 @@ return offset < view.byteLength ? view.getUint8(offset) : 0; |
@@ -7,1 +7,2 @@ export { encode as encodeUrl, decode as decodeUrl } from './url.js'; | ||
} from './key.js'; | ||
export { default as makeId } from './id.js'; |
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
101544
64
2820
4
+ Addednanoid@^2.1.11
+ Addednanoid@2.1.11(transitive)