From 52bd13075d9fdc82035330e5b8c79b05f023e394 Mon Sep 17 00:00:00 2001 From: David Chambers Date: Mon, 28 Apr 2014 20:31:46 -0700 Subject: [PATCH] 0.3.0 --- base64.min.js | 2 +- bower.json | 2 +- package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/base64.min.js b/base64.min.js index 33c7aa4..bafc482 100644 --- a/base64.min.js +++ b/base64.min.js @@ -1 +1 @@ -!function(){function t(t){this.message=t}var e="undefined"!=typeof exports?exports:this,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";t.prototype=new Error,t.prototype.name="InvalidCharacterError",e.btoa||(e.btoa=function(e){for(var o,n,a=0,i=r,c="";e.charAt(0|a)||(i="=",a%1);c+=i.charAt(63&o>>8-a%1*8)){if(n=e.charCodeAt(a+=.75),n>255)throw new t("'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.");o=o<<8|n}return c}),e.atob||(e.atob=function(e){if(e=e.replace(/=+$/,""),e.length%4==1)throw new t("'atob' failed: The string to be decoded is not correctly encoded.");for(var o,n,a=0,i=0,c="";n=e.charAt(i++);~n&&(o=a%4?64*o+n:n,a++%4)?c+=String.fromCharCode(255&o>>(-2*a&6)):0)n=r.indexOf(n);return c})}(); \ No newline at end of file +!function(){function t(t){this.message=t}var r="undefined"!=typeof exports?exports:this,e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";t.prototype=new Error,t.prototype.name="InvalidCharacterError",r.btoa||(r.btoa=function(r){for(var o,n,a=String(r),i=0,c=e,d="";a.charAt(0|i)||(c="=",i%1);d+=c.charAt(63&o>>8-i%1*8)){if(n=a.charCodeAt(i+=.75),n>255)throw new t("'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.");o=o<<8|n}return d}),r.atob||(r.atob=function(r){var o=String(r).replace(/=+$/,"");if(o.length%4==1)throw new t("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,a,i=0,c=0,d="";a=o.charAt(c++);~a&&(n=i%4?64*n+a:a,i++%4)?d+=String.fromCharCode(255&n>>(-2*i&6)):0)a=e.indexOf(a);return d})}(); \ No newline at end of file diff --git a/bower.json b/bower.json index 777bc32..503ae30 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "base64", - "version": "0.2.1", + "version": "0.3.0", "description": "Base64 encoding and decoding", "main": "./base64.js", "license": "WTFPL", diff --git a/package.json b/package.json index 2d07c34..c5d821f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "Base64", - "version": "0.2.1", + "version": "0.3.0", "description": "Base64 encoding and decoding", "author": "David Chambers ", "main": "./base64.js",