pouchdb-binary-utils
Advanced tools
Comparing version 6.1.0 to 6.1.1
@@ -5,7 +5,7 @@ 'use strict'; | ||
var atob$1 = function (str) { | ||
var thisAtob = function (str) { | ||
return atob(str); | ||
}; | ||
var btoa$1 = function (str) { | ||
var thisBtoa = function (str) { | ||
return btoa(str); | ||
@@ -56,3 +56,3 @@ }; | ||
function b64ToBluffer(b64, type) { | ||
return binStringToBluffer(atob$1(b64), type); | ||
return binStringToBluffer(thisAtob(b64), type); | ||
} | ||
@@ -106,3 +106,3 @@ | ||
blobToBinaryString(blobOrBuffer, function (base64) { | ||
callback(btoa$1(base64)); | ||
callback(thisBtoa(base64)); | ||
}); | ||
@@ -131,4 +131,4 @@ } | ||
exports.atob = atob$1; | ||
exports.btoa = btoa$1; | ||
exports.atob = thisAtob; | ||
exports.btoa = thisBtoa; | ||
exports.base64StringToBlobOrBuffer = b64ToBluffer; | ||
@@ -142,2 +142,2 @@ exports.binaryStringToArrayBuffer = binaryStringToArrayBuffer; | ||
exports.readAsBinaryString = readAsBinaryString; | ||
exports.typedBuffer = typedBuffer; | ||
exports.typedBuffer = typedBuffer; |
@@ -9,4 +9,2 @@ 'use strict'; | ||
// ponyfill for Node <6 | ||
function thisAtob(str) { | ||
@@ -26,4 +24,2 @@ var base64 = new Buffer(str, 'base64'); | ||
// ponyfill for Node <6 | ||
function typedBuffer(binString, buffType, type) { | ||
@@ -66,3 +62,3 @@ // buffType is either 'binary' or 'base64' | ||
// not used in Node, but here for completeness | ||
function blobToBase64$1(blobOrBuffer, callback) { | ||
function blobToBase64$2(blobOrBuffer, callback) { | ||
callback(blobOrBuffer.toString('binary')); | ||
@@ -132,5 +128,5 @@ } | ||
exports.blobOrBufferToBase64 = blobToBase64; | ||
exports.blobOrBufferToBinaryString = blobToBase64$1; | ||
exports.blobOrBufferToBinaryString = blobToBase64$2; | ||
exports.readAsArrayBuffer = readAsArrayBuffer; | ||
exports.readAsBinaryString = readAsBinaryString; | ||
exports.typedBuffer = typedBuffer; | ||
exports.typedBuffer = typedBuffer; |
{ | ||
"name": "pouchdb-binary-utils", | ||
"version": "6.1.0", | ||
"version": "6.1.1", | ||
"description": "PouchDB utilities for operating on binary strings and Buffers/Blobs.", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
27895
1