Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@graffy/common

Package Overview
Dependencies
Maintainers
1
Versions
225
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@graffy/common - npm Package Compare versions

Comparing version 0.14.1 to 0.14.2-alpha1

encode/alphabet.js

10

encode/base64.js

@@ -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';
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc