🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

js-base64

Package Overview
Dependencies
Maintainers
1
Versions
72
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.7.8
to
3.8.0
+2
-2
base64.d.mts

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

*/
declare const version = "3.7.8";
declare const version = "3.8.0";
/**
* @deprecated use lowercase `version`.
*/
declare const VERSION = "3.7.8";
declare const VERSION = "3.8.0";
/**

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

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

*/
declare const version = "3.7.8";
declare const version = "3.8.0";
/**
* @deprecated use lowercase `version`.
*/
declare const VERSION = "3.7.8";
declare const VERSION = "3.8.0";
/**

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

@@ -40,3 +40,3 @@ //

*/
var version = '3.7.8';
var version = '3.8.0';
/**

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

var _hasBuffer = typeof Buffer === 'function';
var _TD = typeof TextDecoder === 'function' ? new TextDecoder() : undefined;
var _TD = typeof TextDecoder === 'function' ? new TextDecoder('utf-8', { ignoreBOM: true }) : undefined;
var _TE = typeof TextEncoder === 'function' ? new TextEncoder() : undefined;

@@ -50,0 +50,0 @@ var b64ch = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';

@@ -12,3 +12,3 @@ /**

*/
const version = '3.7.8';
const version = '3.8.0';
/**

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

const _hasBuffer = typeof Buffer === 'function';
const _TD = typeof TextDecoder === 'function' ? new TextDecoder() : undefined;
const _TD = typeof TextDecoder === 'function' ? new TextDecoder('utf-8', { ignoreBOM: true }) : undefined;
const _TE = typeof TextEncoder === 'function' ? new TextEncoder() : undefined;

@@ -22,0 +22,0 @@ const b64ch = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';

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

@@ -5,0 +5,0 @@ "main": "base64.js",

@@ -28,3 +28,3 @@ [![CI via GitHub Actions](https://github.com/dankogai/js-base64/actions/workflows/node.js.yml/badge.svg)](https://github.com/dankogai/js-base64/actions/workflows/node.js.yml)

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

@@ -52,3 +52,3 @@

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

@@ -60,3 +60,3 @@ ```

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

@@ -133,3 +133,3 @@ ```

'小飼弾'.toBase64(true); // 5bCP6aO85by-
'小飼弾'.toBase64URI(); // 5bCP6aO85by- ab alias of .toBase64(true)
'小飼弾'.toBase64URI(); // 5bCP6aO85by- an alias of .toBase64(true)
'小飼弾'.toBase64URL(); // 5bCP6aO85by- an alias of .toBase64URI()

@@ -136,0 +136,0 @@ 'ZGFua29nYWk='.fromBase64(); // dankogai