You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

base64url

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.0-rc4 to 2.0.0

readme.md

4

dist/base64url.d.ts

@@ -10,3 +10,3 @@ /// <reference path="../typings/index.d.ts" />

}
declare var _default: Base64Url;
export default _default;
declare let base64url: Base64Url;
export default base64url;
"use strict";
var pad_string_1 = require("./pad-string");
function encode(input, encoding) {
if (encoding === void 0) { encoding = "utf8"; }
if (Buffer.isBuffer(input)) {

@@ -11,2 +12,3 @@ return fromBase64(input.toString("base64"));

function decode(base64url, encoding) {
if (encoding === void 0) { encoding = "utf8"; }
return new Buffer(toBase64(base64url), "base64").toString(encoding);

@@ -29,9 +31,9 @@ }

}
var exported = encode;
exported.encode = encode;
exported.decode = decode;
exported.toBase64 = toBase64;
exported.fromBase64 = fromBase64;
exported.toBuffer = toBuffer;
var base64url = encode;
base64url.encode = encode;
base64url.decode = decode;
base64url.toBase64 = toBase64;
base64url.fromBase64 = fromBase64;
base64url.toBuffer = toBuffer;
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = exported;
exports.default = base64url;
{
"name": "base64url",
"version": "2.0.0-rc4",
"version": "2.0.0",
"description": "For encoding to/from base64urls",

@@ -15,4 +15,4 @@ "main": "index.js",

"clean": "rm -f dist/*",
"test": "tap test/*.test.js",
"prepublish": "npm run clean && npm run build && npm run test "
"test": "npm run clean && npm run build && tap test/*.test.js",
"prepublish": "npm run test"
},

@@ -19,0 +19,0 @@ "repository": {

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc