Comparing version 3.7.4 to 3.7.5
@@ -12,7 +12,7 @@ /** | ||
*/ | ||
declare const version = "3.7.4"; | ||
declare const version = "3.7.5"; | ||
/** | ||
* @deprecated use lowercase `version`. | ||
*/ | ||
declare const VERSION = "3.7.4"; | ||
declare const VERSION = "3.7.5"; | ||
/** | ||
@@ -19,0 +19,0 @@ * polyfill version of `btoa` |
@@ -40,3 +40,3 @@ // | ||
*/ | ||
var version = '3.7.4'; | ||
var version = '3.7.5'; | ||
/** | ||
@@ -62,6 +62,3 @@ * @deprecated use lowercase `version`. | ||
? Uint8Array.from.bind(Uint8Array) | ||
: function (it, fn) { | ||
if (fn === void 0) { fn = function (x) { return x; }; } | ||
return new Uint8Array(Array.prototype.slice.call(it, 0).map(fn)); | ||
}; | ||
: function (it) { return new Uint8Array(Array.prototype.slice.call(it, 0)); }; | ||
var _mkUriSafe = function (src) { return src | ||
@@ -230,3 +227,3 @@ .replace(/=/g, '').replace(/[+\/]/g, function (m0) { return m0 == '+' ? '-' : '_'; }); }; | ||
? function (a) { return _U8Afrom(Buffer.from(a, 'base64')); } | ||
: function (a) { return _U8Afrom(_atob(a), function (c) { return c.charCodeAt(0); }); }; | ||
: function (a) { return _U8Afrom(_atob(a).split('').map(function (c) { return c.charCodeAt(0); })); }; | ||
/** | ||
@@ -233,0 +230,0 @@ * converts a Base64 string to a Uint8Array. |
{ | ||
"name": "js-base64", | ||
"version": "3.7.4", | ||
"version": "3.7.5", | ||
"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.4/base64.min.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/js-base64@3.7.5/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.4/base64.mjs'; | ||
import { Base64 } from 'https://cdn.jsdelivr.net/npm/js-base64@3.7.5/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.4/base64.mjs'; | ||
import { encode, decode } from 'https://cdn.jsdelivr.net/npm/js-base64@3.7.5/base64.mjs'; | ||
</script> | ||
@@ -63,0 +63,0 @@ ``` |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
34739
747