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

js-base64

Package Overview
Dependencies
Maintainers
1
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

js-base64 - npm Package Compare versions

Comparing version 3.6.1 to 3.6.2

4

base64.d.ts

@@ -12,7 +12,7 @@ /**

*/
declare const version = "3.6.1";
declare const version = "3.6.2";
/**
* @deprecated use lowercase `version`.
*/
declare const VERSION = "3.6.1";
declare const VERSION = "3.6.2";
/**

@@ -19,0 +19,0 @@ * polyfill version of `btoa`

@@ -43,3 +43,3 @@

*/
const version = '3.6.1';
const version = '3.6.2';
/**

@@ -55,3 +55,3 @@ * @deprecated use lowercase `version`.

const b64ch = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
const b64chs = [...b64ch];
const b64chs = Array.prototype.slice.call(b64ch);
const b64tab = ((a) => {

@@ -58,0 +58,0 @@ let tab = {};

{
"name": "js-base64",
"version": "3.6.1",
"version": "3.6.2",
"description": "Yet another Base64 transcoder in pure-JS",

@@ -24,6 +24,5 @@ "main": "base64.js",

"devDependencies": {
"typescript": "^3.9.7",
"@types/node": "^14.0.26",
"esm": "^3.2.25",
"mocha": "^8.0.0"
"typescript": "^3.9.7"
},

@@ -36,3 +35,6 @@ "repository": "git+https://github.com/dankogai/js-base64.git",

"author": "Dan Kogai",
"license": "BSD-3-Clause"
"license": "BSD-3-Clause",
"dependencies": {
"mocha": "^8.4.0"
}
}

@@ -1,2 +0,2 @@

[![build status](https://secure.travis-ci.org/dankogai/js-base64.png)](http://travis-ci.org/dankogai/js-base64)
[![build status](https://app.travis-ci.com/dankogai/js-base64.svg)](https://app.travis-ci.com/github/dankogai/js-base64)

@@ -11,3 +11,3 @@ # base64.js

In version 3.0 `js-base64` switch to ES2015 module so it is no longer compatible with legacy browsers like IE (see below). And since version 3.3 it is written in TypeScript. Now `base64.mjs` is compiled from `base64.ts` then `base64.js` is generated from `base64.mjs`.
In version 3.0 `js-base64` switch to ES2015 module so it is no longer compatible with legacy browsers like IEs before 11 (see below). And since version 3.3 it is written in TypeScript. Now `base64.mjs` is compiled from `base64.ts` then `base64.js` is generated from `base64.mjs`.

@@ -33,3 +33,3 @@ ## Install

```html
<script src="https://cdn.jsdelivr.net/npm/js-base64@3.6.1/base64.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/js-base64@3.6.2/base64.min.js"></script>
```

@@ -57,3 +57,3 @@

// note jsdelivr.net does not automatically minify .mjs
import { Base64 } from 'https://cdn.jsdelivr.net/npm/js-base64@3.6.1/base64.mjs';
import { Base64 } from 'https://cdn.jsdelivr.net/npm/js-base64@3.6.2/base64.mjs';
</script>

@@ -65,3 +65,3 @@ ```

// or if you prefer no Base64 namespace
import { encode, decode } from 'https://cdn.jsdelivr.net/npm/js-base64@3.6.1/base64.mjs';
import { encode, decode } from 'https://cdn.jsdelivr.net/npm/js-base64@3.6.2/base64.mjs';
</script>

@@ -147,4 +147,4 @@ ```

```javascript
// you have to explicitly extend String.prototype
Base64.extendString();
// you have to explicitly extend Uint8Array.prototype
Base64.extendUint8Array();
// once extended, you can do the following

@@ -176,3 +176,3 @@ u8s.toBase64(); // 'ZGFua29nYWk='

You can transpiles to an ES5 that runs on IE11. Do the following in your shell.
You can transpiles to an ES5 that runs on IEs before 11. Do the following in your shell.

@@ -182,1 +182,6 @@ ```shell

```
[@loone96] has added IE11 support in [pr146]. But please consider that an unofficial support since IE itself is no longer officially supported.
[@loone96]: https://github.com/loone96
[pr146]: https://github.com/dankogai/js-base64/pull/146

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