From 0048721faa641f1519c4c081725f42da2ada5e9a Mon Sep 17 00:00:00 2001 From: David Chambers Date: Wed, 22 Feb 2023 17:04:49 +0100 Subject: [PATCH] 1.2.0 --- base64.min.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/base64.min.js b/base64.min.js index c3d6997..5db6b3d 100644 --- a/base64.min.js +++ b/base64.min.js @@ -1 +1 @@ -!function(e){"use strict";if("object"==typeof exports&&null!=exports&&"number"!=typeof exports.nodeType)module.exports=e();else if("function"==typeof define&&null!=define.amd)define([],e);else{var t=e(),o="undefined"!=typeof self?self:$.global;"function"!=typeof o.btoa&&(o.btoa=t.btoa),"function"!=typeof o.atob&&(o.atob=t.atob)}}(function(){"use strict";var f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function c(e){this.message=e}return(c.prototype=new Error).name="InvalidCharacterError",{btoa:function(e){for(var t,o,r=String(e),n=0,a=f,i="";r.charAt(0|n)||(a="=",n%1);i+=a.charAt(63&t>>8-n%1*8)){if(255<(o=r.charCodeAt(n+=.75)))throw new c("'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.");t=t<<8|o}return i},atob:function(e){var t=String(e).replace(/[=]+$/,"");if(t.length%4==1)throw new c("'atob' failed: The string to be decoded is not correctly encoded.");for(var o,r,n=0,a=0,i="";r=t.charAt(a++);~r&&(o=n%4?64*o+r:r,n++%4)&&(i+=String.fromCharCode(255&o>>(-2*n&6))))r=f.indexOf(r);return i}}}); +!function(e){"use strict";if("object"==typeof exports&&null!=exports&&"number"!=typeof exports.nodeType)module.exports=e();else if("function"==typeof define&&null!=define.amd)define([],e);else{var t=e(),r="undefined"!=typeof self?self:$.global;"function"!=typeof r.btoa&&(r.btoa=t.btoa),"function"!=typeof r.atob&&(r.atob=t.atob)}}(function(){"use strict";var f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function s(e){this.message=e}return(s.prototype=new Error).name="InvalidCharacterError",{btoa:function(e){for(var t,r,o,n,a=String(e),c=0,i="";c>18&63)+f.charAt(n>>12&63)+f.charAt(n>>6&63)+f.charAt(63&n)}switch(a.length%3){case 0:return i;case 1:return i.slice(0,-2)+"==";case 2:return i.slice(0,-1)+"="}},atob:function(e){var t=String(e).replace(/[=]+$/,"");if(t.length%4==1)throw new s("'atob' failed: The string to be decoded is not correctly encoded.");for(var r,o,n=0,a=0,c="";o=t.charAt(a++);~o&&(r=n%4?64*r+o:o,n++%4)&&(c+=String.fromCharCode(255&r>>(-2*n&6))))o=f.indexOf(o);return c}}}); diff --git a/package.json b/package.json index ffad777..d77ef85 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "Base64", - "version": "1.1.0", + "version": "1.2.0", "description": "Base64 encoding and decoding", "author": "David Chambers ", "main": "./base64.js",