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

pouchdb-binary-utils

Package Overview
Dependencies
Maintainers
0
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 8.0.1 to 9.0.0

2

lib/index-browser.es.js

@@ -47,3 +47,3 @@ var thisAtob = function (str) {

function binStringToBluffer(binString, type) {
return createBlob([binaryStringToArrayBuffer(binString)], {type: type});
return createBlob([binaryStringToArrayBuffer(binString)], {type});
}

@@ -50,0 +50,0 @@

@@ -51,3 +51,3 @@ 'use strict';

function binStringToBluffer(binString, type) {
return createBlob([binaryStringToArrayBuffer(binString)], {type: type});
return createBlob([binaryStringToArrayBuffer(binString)], {type});
}

@@ -54,0 +54,0 @@

@@ -1,5 +0,3 @@

import bufferFrom from 'buffer-from';
function thisAtob(str) {
var base64 = new Buffer(str, 'base64');
var base64 = Buffer.from(str, 'base64');
// Node.js will just skip the characters it can't decode instead of

@@ -14,3 +12,3 @@ // throwing an exception

function thisBtoa(str) {
return bufferFrom(str, 'binary').toString('base64');
return Buffer.from(str, 'binary').toString('base64');
}

@@ -20,3 +18,3 @@

// buffType is either 'binary' or 'base64'
var buff = bufferFrom(binString, buffType);
const buff = Buffer.from(binString, buffType);
buff.type = type; // non-standard, but used for consistency with the browser

@@ -23,0 +21,0 @@ return buff;

@@ -5,8 +5,4 @@ 'use strict';

function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var bufferFrom = _interopDefault(require('buffer-from'));
function thisAtob(str) {
var base64 = new Buffer(str, 'base64');
var base64 = Buffer.from(str, 'base64');
// Node.js will just skip the characters it can't decode instead of

@@ -21,3 +17,3 @@ // throwing an exception

function thisBtoa(str) {
return bufferFrom(str, 'binary').toString('base64');
return Buffer.from(str, 'binary').toString('base64');
}

@@ -27,3 +23,3 @@

// buffType is either 'binary' or 'base64'
var buff = bufferFrom(binString, buffType);
const buff = Buffer.from(binString, buffType);
buff.type = type; // non-standard, but used for consistency with the browser

@@ -30,0 +26,0 @@ return buff;

{
"name": "pouchdb-binary-utils",
"version": "8.0.1",
"version": "9.0.0",
"description": "PouchDB utilities for operating on binary strings and Buffers/Blobs.",

@@ -14,3 +14,3 @@ "main": "./lib/index.js",

},
"jsnext:main": "./lib/index.es.js",
"module": "./lib/index.es.js",
"browser": {

@@ -20,11 +20,7 @@ "./lib/index.js": "./lib/index-browser.js",

},
"dependencies": {
"buffer-from": "1.1.2"
},
"module": "./lib/index.es.js",
"dependencies": {},
"files": [
"lib",
"dist",
"tonic-example.js"
"dist"
]
}
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