pouchdb-utils
Advanced tools
Comparing version 7.0.0 to 7.1.0
import getArguments from 'argsarray'; | ||
import { Map } from 'pouchdb-collections'; | ||
import inherits from 'inherits'; | ||
import immediate from 'immediate'; | ||
import { createError, BAD_REQUEST, INVALID_ID, MISSING_ID, RESERVED_ID } from 'pouchdb-errors'; | ||
import { EventEmitter } from 'events'; | ||
import inherits from 'inherits'; | ||
import { createError, BAD_REQUEST, INVALID_ID, MISSING_ID, RESERVED_ID } from 'pouchdb-errors'; | ||
import uuidV4 from 'uuid'; | ||
import { stringMd5 } from 'pouchdb-md5'; | ||
import { clone } from 'pouchdb-utils'; | ||
@@ -60,3 +59,3 @@ function isBinaryObject(object) { | ||
function clone$1(object) { | ||
function clone(object) { | ||
var newObject; | ||
@@ -73,3 +72,3 @@ var i; | ||
for (i = 0, len = object.length; i < len; i++) { | ||
newObject[i] = clone$1(object[i]); | ||
newObject[i] = clone(object[i]); | ||
} | ||
@@ -97,3 +96,3 @@ return newObject; | ||
if (Object.prototype.hasOwnProperty.call(object, i)) { | ||
var value = clone$1(object[i]); | ||
var value = clone(object[i]); | ||
if (typeof value !== 'undefined') { | ||
@@ -125,3 +124,3 @@ newObject[i] = value; | ||
// Clone arguments | ||
args = clone$1(args); | ||
args = clone(args); | ||
var self = this; | ||
@@ -775,2 +774,2 @@ // if the last argument is a function, assume its a callback | ||
export { adapterFun, assign$1 as assign, bulkGet as bulkGetShim, Changes as changesHandler, clone$1 as clone, defaultBackOff, explainError, filterChange, flatten, res$1 as functionName, guardedConsole, hasLocalStorage, invalidIdError, isRemote, listenerCount, immediate as nextTick, normalizeDesignDocFunctionName as normalizeDdocFunctionName, once, parseDesignDocFunctionName as parseDdocFunctionName, parseUri, pick, rev, scopeEval, toPromise, upsert, uuid }; | ||
export { adapterFun, assign$1 as assign, bulkGet as bulkGetShim, Changes as changesHandler, clone, defaultBackOff, explainError, filterChange, flatten, res$1 as functionName, guardedConsole, hasLocalStorage, invalidIdError, isRemote, listenerCount, immediate as nextTick, normalizeDesignDocFunctionName as normalizeDdocFunctionName, once, parseDesignDocFunctionName as parseDdocFunctionName, parseUri, pick, rev, scopeEval, toPromise, upsert, uuid }; |
@@ -9,9 +9,8 @@ 'use strict'; | ||
var pouchdbCollections = require('pouchdb-collections'); | ||
var inherits = _interopDefault(require('inherits')); | ||
var immediate = _interopDefault(require('immediate')); | ||
var pouchdbErrors = require('pouchdb-errors'); | ||
var events = require('events'); | ||
var inherits = _interopDefault(require('inherits')); | ||
var pouchdbErrors = require('pouchdb-errors'); | ||
var uuidV4 = _interopDefault(require('uuid')); | ||
var pouchdbMd5 = require('pouchdb-md5'); | ||
var pouchdbUtils = require('pouchdb-utils'); | ||
@@ -767,3 +766,3 @@ function isBinaryObject(object) { | ||
function rev(doc, deterministic_revs) { | ||
var clonedDoc = pouchdbUtils.clone(doc); | ||
var clonedDoc = clone(doc); | ||
if (!deterministic_revs) { | ||
@@ -770,0 +769,0 @@ return uuidV4.v4().replace(/-/g, '').toLowerCase(); |
import cloneBuffer from 'clone-buffer'; | ||
import getArguments from 'argsarray'; | ||
import { Map } from 'pouchdb-collections'; | ||
import { EventEmitter } from 'events'; | ||
import inherits from 'inherits'; | ||
import { createError, BAD_REQUEST, INVALID_ID, MISSING_ID, RESERVED_ID } from 'pouchdb-errors'; | ||
import { EventEmitter } from 'events'; | ||
import uuidV4 from 'uuid'; | ||
import { stringMd5 } from 'pouchdb-md5'; | ||
import { clone } from 'pouchdb-utils'; | ||
@@ -33,3 +32,3 @@ function isBinaryObject(object) { | ||
function clone$1(object) { | ||
function clone(object) { | ||
var newObject; | ||
@@ -46,3 +45,3 @@ var i; | ||
for (i = 0, len = object.length; i < len; i++) { | ||
newObject[i] = clone$1(object[i]); | ||
newObject[i] = clone(object[i]); | ||
} | ||
@@ -70,3 +69,3 @@ return newObject; | ||
if (Object.prototype.hasOwnProperty.call(object, i)) { | ||
var value = clone$1(object[i]); | ||
var value = clone(object[i]); | ||
if (typeof value !== 'undefined') { | ||
@@ -98,3 +97,3 @@ newObject[i] = value; | ||
// Clone arguments | ||
args = clone$1(args); | ||
args = clone(args); | ||
var self = this; | ||
@@ -739,2 +738,2 @@ // if the last argument is a function, assume its a callback | ||
export { adapterFun, assign$1 as assign, bulkGet as bulkGetShim, Changes as changesHandler, clone$1 as clone, defaultBackOff, res as explainError, filterChange, flatten, res$2 as functionName, guardedConsole, hasLocalStorage, invalidIdError, isRemote, listenerCount, nextTick, normalizeDesignDocFunctionName as normalizeDdocFunctionName, once, parseDesignDocFunctionName as parseDdocFunctionName, parseUri, pick, rev, scopeEval, toPromise, upsert, uuid }; | ||
export { adapterFun, assign$1 as assign, bulkGet as bulkGetShim, Changes as changesHandler, clone, defaultBackOff, res as explainError, filterChange, flatten, res$2 as functionName, guardedConsole, hasLocalStorage, invalidIdError, isRemote, listenerCount, nextTick, normalizeDesignDocFunctionName as normalizeDdocFunctionName, once, parseDesignDocFunctionName as parseDdocFunctionName, parseUri, pick, rev, scopeEval, toPromise, upsert, uuid }; |
@@ -10,8 +10,7 @@ 'use strict'; | ||
var pouchdbCollections = require('pouchdb-collections'); | ||
var events = require('events'); | ||
var inherits = _interopDefault(require('inherits')); | ||
var pouchdbErrors = require('pouchdb-errors'); | ||
var events = require('events'); | ||
var uuidV4 = _interopDefault(require('uuid')); | ||
var pouchdbMd5 = require('pouchdb-md5'); | ||
var pouchdbUtils = require('pouchdb-utils'); | ||
@@ -731,3 +730,3 @@ function isBinaryObject(object) { | ||
function rev(doc, deterministic_revs) { | ||
var clonedDoc = pouchdbUtils.clone(doc); | ||
var clonedDoc = clone(doc); | ||
if (!deterministic_revs) { | ||
@@ -734,0 +733,0 @@ return uuidV4.v4().replace(/-/g, '').toLowerCase(); |
{ | ||
"name": "pouchdb-utils", | ||
"version": "7.0.0", | ||
"version": "7.1.0", | ||
"description": "Unassorted utilities used by PouchDB.", | ||
@@ -20,5 +20,5 @@ "main": "./lib/index.js", | ||
"inherits": "2.0.3", | ||
"pouchdb-collections": "7.0.0", | ||
"pouchdb-errors": "7.0.0", | ||
"pouchdb-md5": "7.0.0", | ||
"pouchdb-collections": "7.1.0", | ||
"pouchdb-errors": "7.1.0", | ||
"pouchdb-md5": "7.1.0", | ||
"uuid": "3.2.1" | ||
@@ -25,0 +25,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
94209
2670
+ Addedpouchdb-binary-utils@7.1.0(transitive)
+ Addedpouchdb-collections@7.1.0(transitive)
+ Addedpouchdb-errors@7.1.0(transitive)
+ Addedpouchdb-md5@7.1.0(transitive)
- Removedpouchdb-binary-utils@7.0.0(transitive)
- Removedpouchdb-collections@7.0.0(transitive)
- Removedpouchdb-errors@7.0.0(transitive)
- Removedpouchdb-md5@7.0.0(transitive)
Updatedpouchdb-collections@7.1.0
Updatedpouchdb-errors@7.1.0
Updatedpouchdb-md5@7.1.0