pouchdb-adapter-utils
Advanced tools
Comparing version 6.1.0 to 6.1.1
@@ -309,4 +309,4 @@ 'use strict'; | ||
// recalculate | ||
var winningRev = pouchdbMerge.winningRev(docInfo.metadata); | ||
var winningRevIsDeleted = pouchdbMerge.isDeleted(docInfo.metadata, winningRev); | ||
var winningRev$$1 = pouchdbMerge.winningRev(docInfo.metadata); | ||
var winningRevIsDeleted = pouchdbMerge.isDeleted(docInfo.metadata, winningRev$$1); | ||
@@ -319,3 +319,3 @@ // calculate the total number of documents that were added/removed, | ||
var newRevIsDeleted; | ||
if (newRev === winningRev) { | ||
if (newRev === winningRev$$1) { | ||
// if the new rev is the same as the winning rev, we can reuse that value | ||
@@ -328,3 +328,3 @@ newRevIsDeleted = winningRevIsDeleted; | ||
writeDoc(docInfo, winningRev, winningRevIsDeleted, newRevIsDeleted, | ||
writeDoc(docInfo, winningRev$$1, winningRevIsDeleted, newRevIsDeleted, | ||
true, delta, i, cb); | ||
@@ -345,4 +345,4 @@ } | ||
// Cant insert new deleted documents | ||
var winningRev = pouchdbMerge.winningRev(docInfo.metadata); | ||
var deleted = pouchdbMerge.isDeleted(docInfo.metadata, winningRev); | ||
var winningRev$$1 = pouchdbMerge.winningRev(docInfo.metadata); | ||
var deleted = pouchdbMerge.isDeleted(docInfo.metadata, winningRev$$1); | ||
if ('was_delete' in opts && deleted) { | ||
@@ -364,3 +364,3 @@ results[resultsIdx] = pouchdbErrors.createError(pouchdbErrors.MISSING_DOC, 'deleted'); | ||
writeDoc(docInfo, winningRev, deleted, deleted, false, | ||
writeDoc(docInfo, winningRev$$1, deleted, deleted, false, | ||
delta, resultsIdx, callback); | ||
@@ -441,2 +441,2 @@ } | ||
exports.processDocs = processDocs; | ||
exports.updateDoc = updateDoc; | ||
exports.updateDoc = updateDoc; |
{ | ||
"name": "pouchdb-adapter-utils", | ||
"version": "6.1.0", | ||
"version": "6.1.1", | ||
"description": "Utilities for PouchDB adapters.", | ||
@@ -16,9 +16,9 @@ "main": "./lib/index.js", | ||
"dependencies": { | ||
"pouchdb-binary-utils": "6.1.0", | ||
"pouchdb-collections": "6.1.0", | ||
"pouchdb-errors": "6.1.0", | ||
"pouchdb-md5": "6.1.0", | ||
"pouchdb-merge": "6.1.0", | ||
"pouchdb-utils": "6.1.0" | ||
"pouchdb-binary-utils": "6.1.1", | ||
"pouchdb-collections": "6.1.1", | ||
"pouchdb-errors": "6.1.1", | ||
"pouchdb-md5": "6.1.1", | ||
"pouchdb-merge": "6.1.1", | ||
"pouchdb-utils": "6.1.1" | ||
} | ||
} |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
37565
794
1
+ Addeddebug@2.6.0(transitive)
+ Addedpouchdb-binary-utils@6.1.1(transitive)
+ Addedpouchdb-collections@6.1.1(transitive)
+ Addedpouchdb-errors@6.1.1(transitive)
+ Addedpouchdb-md5@6.1.1(transitive)
+ Addedpouchdb-merge@6.1.1(transitive)
+ Addedpouchdb-promise@6.1.1(transitive)
+ Addedpouchdb-utils@6.1.1(transitive)
- Removeddebug@2.3.2(transitive)
- Removedpouchdb-binary-utils@6.1.0(transitive)
- Removedpouchdb-collections@6.1.0(transitive)
- Removedpouchdb-errors@6.1.0(transitive)
- Removedpouchdb-md5@6.1.0(transitive)
- Removedpouchdb-merge@6.1.0(transitive)
- Removedpouchdb-promise@6.1.0(transitive)
- Removedpouchdb-utils@6.1.0(transitive)
Updatedpouchdb-binary-utils@6.1.1
Updatedpouchdb-collections@6.1.1
Updatedpouchdb-errors@6.1.1
Updatedpouchdb-md5@6.1.1
Updatedpouchdb-merge@6.1.1
Updatedpouchdb-utils@6.1.1