base64-binary
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -25,2 +25,4 @@ 'use strict'; | ||
} | ||
throw new Error('Unsupported parameter type: ' + typeof byteArray); | ||
} | ||
@@ -27,0 +29,0 @@ }); |
@@ -1,1 +0,1 @@ | ||
"use strict";window&&window.atob&&window.btoa&&(window.base64||(window.base64={}),Object.assign(window.base64,{decode:n=>{const e=window.atob(n),o=new Uint8Array(e.length);return o.map((n,r)=>o[r]=e.charCodeAt(r)),o},encode:n=>{if(n instanceof ArrayBuffer&&(n=new Uint8Array(n)),n instanceof Uint8Array)return window.btoa(n.reduce((n,e)=>n+String.fromCharCode(e),""))}})); | ||
"use strict";window&&window.atob&&window.btoa&&(window.base64||(window.base64={}),Object.assign(window.base64,{decode:e=>{const r=window.atob(e),o=new Uint8Array(r.length);return o.map((e,n)=>o[n]=r.charCodeAt(n)),o},encode:e=>{if((e=e instanceof ArrayBuffer?new Uint8Array(e):e)instanceof Uint8Array)return window.btoa(e.reduce((e,n)=>e+String.fromCharCode(n),""));throw new Error("Unsupported parameter type: "+typeof e)}})); |
{ | ||
"name": "base64-binary", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "A polyfill built upon atob/btoa (browser side only) so as to support base64 to/from binary (Uint8Array/ArrayBuffer) conversion", | ||
@@ -20,2 +20,5 @@ "main": "base64-lite.js", | ||
], | ||
"devDependencies": { | ||
"uglify-js": "^3.14.5" | ||
}, | ||
"author": "tibetty", | ||
@@ -22,0 +25,0 @@ "license": "ISC", |
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
3022
25
1