Comparing version 3.2.2 to 3.2.3
@@ -31,3 +31,3 @@ | ||
*/ | ||
const version = '3.2.2'; | ||
const version = '3.2.3'; | ||
const _b64chars | ||
@@ -216,8 +216,3 @@ = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'; | ||
gBase64.noConflict = () => { | ||
let Base64 = global.Base64; | ||
global.Base64 = _Base64; | ||
return Base64; | ||
}; | ||
global.Base64 = gBase64.Base64 = gBase64; | ||
gBase64.Base64 = gBase64; | ||
// | ||
@@ -238,2 +233,10 @@ // export Base64 to the namespace | ||
} | ||
else { // cf. https://github.com/dankogai/js-base64/issues/119 | ||
gBase64.noConflict = () => { | ||
let Base64 = global.Base64; | ||
global.Base64 = _Base64; | ||
return Base64; | ||
}; | ||
global.Base64 = gBase64; | ||
} | ||
// that's it! | ||
@@ -240,0 +243,0 @@ return {Base64: gBase64}; |
{ | ||
"name": "js-base64", | ||
"version": "3.2.2", | ||
"version": "3.2.3", | ||
"description": "Yet another Base64 transcoder in pure-JS", | ||
@@ -5,0 +5,0 @@ "main": "base64.js", |
@@ -34,3 +34,3 @@ [![build status](https://secure.travis-ci.org/dankogai/js-base64.png)](http://travis-ci.org/dankogai/js-base64) | ||
```html | ||
<script src="https://cdn.jsdelivr.net/npm/js-base64@3.2.2/base64.min.js"> | ||
<script src="https://cdn.jsdelivr.net/npm/js-base64@3.2.3/base64.min.js"> | ||
``` | ||
@@ -60,6 +60,6 @@ | ||
// note jsdelivr.net does not automatically minify .mjs | ||
import { Base64 } from 'https://cdn.jsdelivr.net/npm/js-base64@3.2.2/base64.mjs'; | ||
import { Base64 } from 'https://cdn.jsdelivr.net/npm/js-base64@3.2.3/base64.mjs'; | ||
// or if you prefer no Base64 namespace | ||
import { encode, decode } from 'https://cdn.jsdelivr.net/npm/js-base64@3.2.2/base64.mjs'; | ||
import { encode, decode } from 'https://cdn.jsdelivr.net/npm/js-base64@3.2.3/base64.mjs'; | ||
</script> | ||
@@ -66,0 +66,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
20271
450