Skip to content

Commit

Permalink
version 2.5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
dankogai committed Feb 12, 2020
1 parent 836b44d commit e8a9a09
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions base64.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
// existing version for noConflict()
global = global || {};
var _Base64 = global.Base64;
var version = "2.5.1";
var version = "2.5.2";
// if node.js and NOT React Native, we use Buffer
var buffer;
if (typeof module !== 'undefined' && module.exports) {
Expand Down Expand Up @@ -84,7 +84,7 @@
return b.replace(/[\s\S]{1,3}/g, cb_encode);
};
var _encode = function(u) {
const isUint8Array = Object.prototype.toString.call(u) === '[object Uint8Array]';
var isUint8Array = Object.prototype.toString.call(u) === '[object Uint8Array]';
return isUint8Array ? u.toString('base64')
: btoa(utob(String(u)));
}
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "js-base64",
"version": "2.5.1",
"version": "2.5.2",
"license": "BSD-3-Clause",
"main": [
"./base64.js"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "js-base64",
"version": "2.5.1",
"version": "2.5.2",
"description": "Yet another Base64 transcoder in pure-JS",
"main": "base64.js",
"directories": {
Expand Down

0 comments on commit e8a9a09

Please sign in to comment.