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

@stablelib/base64

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stablelib/base64 - npm Package Compare versions

Comparing version 0.7.2 to 1.0.0

6

base64.ts
// Copyright (C) 2016 Dmitry Chestnykh
// MIT License. See LICENSE file for details.
/**
* Package base64 implements Base64 encoding and decoding.
*/
// Invalid character used in decoding to indicate

@@ -10,3 +14,3 @@ // that the character to decode is out of range of

/**
* Implements standard Base64-encoding.
* Implements standard Base64 encoding.
*

@@ -13,0 +17,0 @@ * Operates in constant time.

4

lib/base64.d.ts
/**
* Implements standard Base64-encoding.
* Implements standard Base64 encoding.
*

@@ -16,3 +16,3 @@ * Operates in constant time.

protected _decodeChar(c: number): number;
private _getPaddingLength(s);
private _getPaddingLength;
}

@@ -19,0 +19,0 @@ export declare function encode(data: Uint8Array): string;

@@ -5,5 +5,8 @@ "use strict";

var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {

@@ -16,2 +19,5 @@ extendStatics(d, b);

Object.defineProperty(exports, "__esModule", { value: true });
/**
* Package base64 implements Base64 encoding and decoding.
*/
// Invalid character used in decoding to indicate

@@ -22,7 +28,7 @@ // that the character to decode is out of range of

/**
* Implements standard Base64-encoding.
* Implements standard Base64 encoding.
*
* Operates in constant time.
*/
var Coder = (function () {
var Coder = /** @class */ (function () {
// TODO(dchest): methods to encode chunk-by-chunk.

@@ -219,3 +225,3 @@ function Coder(_paddingCharacter) {

*/
var URLSafeCoder = (function (_super) {
var URLSafeCoder = /** @class */ (function (_super) {
__extends(URLSafeCoder, _super);

@@ -222,0 +228,0 @@ function URLSafeCoder() {

{
"name": "@stablelib/base64",
"version": "0.7.2",
"version": "1.0.0",
"description": "Base64 encoding and decoding",

@@ -18,4 +18,5 @@ "main": "./lib/base64.js",

"devDependencies": {
"@stablelib/benchmark": "^0.5.0"
}
"@stablelib/benchmark": "^1.0.0"
},
"gitHead": "c3b9e138650642a738a9225956c75dbe44c76ae6"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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