Comparing version 3.6.0 to 3.6.1
@@ -12,7 +12,7 @@ /** | ||
*/ | ||
declare const version = "3.6.0"; | ||
declare const version = "3.6.1"; | ||
/** | ||
* @deprecated use lowercase `version`. | ||
*/ | ||
declare const VERSION = "3.6.0"; | ||
declare const VERSION = "3.6.1"; | ||
/** | ||
@@ -19,0 +19,0 @@ * polyfill version of `btoa` |
@@ -43,3 +43,3 @@ | ||
*/ | ||
const version = '3.6.0'; | ||
const version = '3.6.1'; | ||
/** | ||
@@ -46,0 +46,0 @@ * @deprecated use lowercase `version`. |
{ | ||
"name": "js-base64", | ||
"version": "3.6.0", | ||
"version": "3.6.1", | ||
"description": "Yet another Base64 transcoder in pure-JS", | ||
@@ -13,2 +13,9 @@ "main": "base64.js", | ||
], | ||
"exports": { | ||
".": { | ||
"import": "./base64.mjs", | ||
"require": "./base64.js" | ||
}, | ||
"./package.json": "./package.json" | ||
}, | ||
"scripts": { | ||
@@ -15,0 +22,0 @@ "test": "make clean && make test" |
@@ -32,3 +32,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.6.0/base64.min.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/js-base64@3.6.1/base64.min.js"></script> | ||
``` | ||
@@ -56,3 +56,3 @@ | ||
// note jsdelivr.net does not automatically minify .mjs | ||
import { Base64 } from 'https://cdn.jsdelivr.net/npm/js-base64@3.6.0/base64.mjs'; | ||
import { Base64 } from 'https://cdn.jsdelivr.net/npm/js-base64@3.6.1/base64.mjs'; | ||
</script> | ||
@@ -64,3 +64,3 @@ ``` | ||
// or if you prefer no Base64 namespace | ||
import { encode, decode } from 'https://cdn.jsdelivr.net/npm/js-base64@3.6.0/base64.mjs'; | ||
import { encode, decode } from 'https://cdn.jsdelivr.net/npm/js-base64@3.6.1/base64.mjs'; | ||
</script> | ||
@@ -93,2 +93,4 @@ ``` | ||
Base64.encode(latin); // ZGFua29nYWk= | ||
Base64.encode(latin, true)); // ZGFua29nYWk skips padding | ||
Base64.encodeURI(latin)); // ZGFua29nYWk | ||
Base64.btoa(latin); // ZGFua29nYWk= | ||
@@ -105,2 +107,3 @@ Base64.btoa(utf8); // raises exception | ||
Base64.decode( 'ZGFua29nYWk=');// dankogai | ||
Base64.decode( 'ZGFua29nYWk'); // dankogai | ||
Base64.atob( 'ZGFua29nYWk=');// dankogai | ||
@@ -107,0 +110,0 @@ Base64.atob( '5bCP6aO85by+');// 'å°é£¼å¼¾' which is nonsense |
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
32879
176