Comparing version 3.6.1 to 3.6.2
@@ -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
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
33228
3
181
1
+ Addedmocha@^8.4.0
+ Added@ungap/promise-all-settled@1.1.2(transitive)
+ Addedansi-colors@4.1.1(transitive)
+ Addedansi-regex@3.0.15.0.1(transitive)
+ Addedansi-styles@4.3.0(transitive)
+ Addedanymatch@3.1.3(transitive)
+ Addedargparse@2.0.1(transitive)
+ Addedbalanced-match@1.0.2(transitive)
+ Addedbinary-extensions@2.3.0(transitive)
+ Addedbrace-expansion@1.1.11(transitive)
+ Addedbraces@3.0.3(transitive)
+ Addedbrowser-stdout@1.3.1(transitive)
+ Addedcamelcase@6.3.0(transitive)
+ Addedchalk@4.1.2(transitive)
+ Addedchokidar@3.5.1(transitive)
+ Addedcliui@7.0.4(transitive)
+ Addedcolor-convert@2.0.1(transitive)
+ Addedcolor-name@1.1.4(transitive)
+ Addedconcat-map@0.0.1(transitive)
+ Addeddebug@4.3.1(transitive)
+ Addeddecamelize@4.0.0(transitive)
+ Addeddiff@5.0.0(transitive)
+ Addedemoji-regex@8.0.0(transitive)
+ Addedescalade@3.2.0(transitive)
+ Addedescape-string-regexp@4.0.0(transitive)
+ Addedfill-range@7.1.1(transitive)
+ Addedfind-up@5.0.0(transitive)
+ Addedflat@5.0.2(transitive)
+ Addedfs.realpath@1.0.0(transitive)
+ Addedfsevents@2.3.3(transitive)
+ Addedget-caller-file@2.0.5(transitive)
+ Addedglob@7.1.6(transitive)
+ Addedglob-parent@5.1.2(transitive)
+ Addedgrowl@1.10.5(transitive)
+ Addedhas-flag@4.0.0(transitive)
+ Addedhe@1.2.0(transitive)
+ Addedinflight@1.0.6(transitive)
+ Addedinherits@2.0.4(transitive)
+ Addedis-binary-path@2.1.0(transitive)
+ Addedis-extglob@2.1.1(transitive)
+ Addedis-fullwidth-code-point@2.0.03.0.0(transitive)
+ Addedis-glob@4.0.3(transitive)
+ Addedis-number@7.0.0(transitive)
+ Addedis-plain-obj@2.1.0(transitive)
+ Addedisexe@2.0.0(transitive)
+ Addedjs-yaml@4.0.0(transitive)
+ Addedlocate-path@6.0.0(transitive)
+ Addedlog-symbols@4.0.0(transitive)
+ Addedminimatch@3.0.4(transitive)
+ Addedmocha@8.4.0(transitive)
+ Addedms@2.1.22.1.3(transitive)
+ Addednanoid@3.1.20(transitive)
+ Addednormalize-path@3.0.0(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedp-limit@3.1.0(transitive)
+ Addedp-locate@5.0.0(transitive)
+ Addedpath-exists@4.0.0(transitive)
+ Addedpath-is-absolute@1.0.1(transitive)
+ Addedpicomatch@2.3.1(transitive)
+ Addedrandombytes@2.1.0(transitive)
+ Addedreaddirp@3.5.0(transitive)
+ Addedrequire-directory@2.1.1(transitive)
+ Addedsafe-buffer@5.2.1(transitive)
+ Addedserialize-javascript@5.0.1(transitive)
+ Addedstring-width@2.1.14.2.3(transitive)
+ Addedstrip-ansi@4.0.06.0.1(transitive)
+ Addedstrip-json-comments@3.1.1(transitive)
+ Addedsupports-color@7.2.08.1.1(transitive)
+ Addedto-regex-range@5.0.1(transitive)
+ Addedwhich@2.0.2(transitive)
+ Addedwide-align@1.1.3(transitive)
+ Addedworkerpool@6.1.0(transitive)
+ Addedwrap-ansi@7.0.0(transitive)
+ Addedwrappy@1.0.2(transitive)
+ Addedy18n@5.0.8(transitive)
+ Addedyargs@16.2.0(transitive)
+ Addedyargs-parser@20.2.4(transitive)
+ Addedyargs-unparser@2.0.0(transitive)
+ Addedyocto-queue@0.1.0(transitive)