Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pouchdb-binary-utils

Package Overview
Dependencies
Maintainers
3
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pouchdb-binary-utils - npm Package Compare versions

Comparing version 6.1.0 to 6.1.1

14

lib/index-browser.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc