pouchdb-utils
Advanced tools
Comparing version 5.4.5 to 6.0.0
@@ -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 @@ } |
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
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
80949
2291
+ Addedlie@3.1.0(transitive)
+ Addedpouchdb-binary-utils@6.0.0(transitive)
+ Addedpouchdb-collections@6.0.0(transitive)
+ Addedpouchdb-errors@6.0.0(transitive)
+ Addedpouchdb-md5@6.0.0(transitive)
+ Addedpouchdb-promise@6.0.0(transitive)
- Removedacorn@1.2.25.7.4(transitive)
- Removedamdefine@1.0.1(transitive)
- Removedast-types@0.8.150.9.6(transitive)
- Removedbalanced-match@1.0.2(transitive)
- Removedbase62@1.2.8(transitive)
- Removedbrace-expansion@1.1.11(transitive)
- Removedcommander@2.20.3(transitive)
- Removedcommoner@0.10.8(transitive)
- Removedconcat-map@0.0.1(transitive)
- Removedcore-util-is@1.0.3(transitive)
- Removeddefined@1.0.1(transitive)
- Removeddetective@4.7.1(transitive)
- Removedes3ify@0.2.2(transitive)
- Removedesmangle-evaluator@1.0.1(transitive)
- Removedesprima@2.7.33.1.3(transitive)
- Removedesprima-fb@15001.1.0-dev-harmony-fb15001.1001.0-dev-harmony-fb(transitive)
- Removedfalafel@1.2.0(transitive)
- Removedforeach@2.0.6(transitive)
- Removedglob@5.0.15(transitive)
- Removedgraceful-fs@4.2.11(transitive)
- Removediconv-lite@0.4.24(transitive)
- Removedinflight@1.0.6(transitive)
- Removedinline-process-browser@1.0.0(transitive)
- Removedisarray@0.0.1(transitive)
- Removedjstransform@11.0.3(transitive)
- Removedlie@3.0.4(transitive)
- Removedminimatch@3.1.2(transitive)
- Removedminimist@1.2.8(transitive)
- Removedmkdirp@0.5.6(transitive)
- Removedobject-assign@2.1.1(transitive)
- Removedobject-keys@1.1.1(transitive)
- Removedonce@1.4.0(transitive)
- Removedpath-is-absolute@1.0.1(transitive)
- Removedpouchdb-binary-utils@5.4.5(transitive)
- Removedpouchdb-collections@1.0.1(transitive)
- Removedpouchdb-errors@5.4.5(transitive)
- Removedpouchdb-md5@5.4.5(transitive)
- Removedpouchdb-promise@5.4.5(transitive)
- Removedprivate@0.1.8(transitive)
- Removedq@1.5.1(transitive)
- Removedreadable-stream@1.0.34(transitive)
- Removedrecast@0.10.430.11.23(transitive)
- Removedsafer-buffer@2.1.2(transitive)
- Removedsource-map@0.4.40.5.7(transitive)
- Removedstring_decoder@0.10.31(transitive)
- Removedthrough@2.3.8(transitive)
- Removedthrough2@0.6.5(transitive)
- Removedunreachable-branch-transform@0.3.0(transitive)
- Removedwrappy@1.0.2(transitive)
- Removedxtend@4.0.2(transitive)
Updatedpouchdb-binary-utils@6.0.0
Updatedpouchdb-collections@6.0.0
Updatedpouchdb-errors@6.0.0
Updatedpouchdb-md5@6.0.0
Updatedpouchdb-promise@6.0.0