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

pouchdb-utils

Package Overview
Dependencies
Maintainers
3
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pouchdb-utils - npm Package Compare versions

Comparing version 5.4.5 to 6.0.0

9

lib/index-browser.js

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

function isBinaryObject(object) {
return object instanceof ArrayBuffer ||
return (typeof ArrayBuffer !== 'undefined' && object instanceof ArrayBuffer) ||
(typeof Blob !== 'undefined' && object instanceof Blob);

@@ -97,2 +97,3 @@ }

for (i in object) {
/* istanbul ignore else */
if (Object.prototype.hasOwnProperty.call(object, i)) {

@@ -178,3 +179,3 @@ var value = clone(object[i]);

if (log.enabled) {
var logArgs = [self._db_name, name];
var logArgs = [self.name, name];
for (var i = 0; i < args.length - 1; i++) {

@@ -188,3 +189,3 @@ logArgs.push(args[i]);

args[args.length - 1] = function (err, res) {
var responseArgs = [self._db_name, name];
var responseArgs = [self.name, name];
responseArgs = responseArgs.concat(

@@ -469,2 +470,3 @@ err ? ['error', err] : ['success', res]

this._listeners[id]);
delete this._listeners[id];
};

@@ -490,2 +492,3 @@

function guardedConsole(method) {
/* istanbul ignore else */
if (console !== 'undefined' && method in console) {

@@ -492,0 +495,0 @@ var args = Array.prototype.slice.call(arguments, 1);

@@ -75,2 +75,3 @@ 'use strict';

for (i in object) {
/* istanbul ignore else */
if (Object.prototype.hasOwnProperty.call(object, i)) {

@@ -156,3 +157,3 @@ var value = clone(object[i]);

if (log.enabled) {
var logArgs = [self._db_name, name];
var logArgs = [self.name, name];
for (var i = 0; i < args.length - 1; i++) {

@@ -166,3 +167,3 @@ logArgs.push(args[i]);

args[args.length - 1] = function (err, res) {
var responseArgs = [self._db_name, name];
var responseArgs = [self.name, name];
responseArgs = responseArgs.concat(

@@ -434,2 +435,3 @@ err ? ['error', err] : ['success', res]

this._listeners[id]);
delete this._listeners[id];
};

@@ -455,2 +457,3 @@

function guardedConsole(method) {
/* istanbul ignore else */
if (console !== 'undefined' && method in console) {

@@ -457,0 +460,0 @@ var args = Array.prototype.slice.call(arguments, 1);

{
"name": "pouchdb-utils",
"version": "5.4.5",
"version": "6.0.0",
"description": "Unassorted utilities used by PouchDB.",

@@ -19,7 +19,7 @@ "main": "./lib/index.js",

"inherits": "2.0.1",
"pouchdb-collections": "1.0.1",
"pouchdb-binary-utils": "5.4.5",
"pouchdb-errors": "5.4.5",
"pouchdb-md5": "5.4.5",
"pouchdb-promise": "5.4.5"
"pouchdb-collections": "6.0.0",
"pouchdb-binary-utils": "6.0.0",
"pouchdb-errors": "6.0.0",
"pouchdb-md5": "6.0.0",
"pouchdb-promise": "6.0.0"
},

@@ -26,0 +26,0 @@ "browser": {

@@ -11,3 +11,3 @@ import Promise from 'pouchdb-promise';

if (log.enabled) {
var logArgs = [self._db_name, name];
var logArgs = [self.name, name];
for (var i = 0; i < args.length - 1; i++) {

@@ -21,3 +21,3 @@ logArgs.push(args[i]);

args[args.length - 1] = function (err, res) {
var responseArgs = [self._db_name, name];
var responseArgs = [self.name, name];
responseArgs = responseArgs.concat(

@@ -24,0 +24,0 @@ err ? ['error', err] : ['success', res]

@@ -90,2 +90,3 @@ import { EventEmitter as EventEmitter } from 'events';

this._listeners[id]);
delete this._listeners[id];
};

@@ -92,0 +93,0 @@

@@ -38,2 +38,3 @@ import isBinaryObject from './isBinaryObject';

for (i in object) {
/* istanbul ignore else */
if (Object.prototype.hasOwnProperty.call(object, i)) {

@@ -40,0 +41,0 @@ var value = clone(object[i]);

function guardedConsole(method) {
/* istanbul ignore else */
if (console !== 'undefined' && method in console) {

@@ -3,0 +4,0 @@ var args = Array.prototype.slice.call(arguments, 1);

function isBinaryObject(object) {
return object instanceof ArrayBuffer ||
return (typeof ArrayBuffer !== 'undefined' && object instanceof ArrayBuffer) ||
(typeof Blob !== 'undefined' && object instanceof Blob);

@@ -4,0 +4,0 @@ }

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