pouchdb-adapter-utils
Advanced tools
Comparing version 6.4.2 to 6.4.3
@@ -78,9 +78,9 @@ import Promise from 'pouchdb-promise'; | ||
function parseRevisionInfo(rev) { | ||
if (!/^\d+-./.test(rev)) { | ||
function parseRevisionInfo(rev$$1) { | ||
if (!/^\d+-./.test(rev$$1)) { | ||
return createError(INVALID_REV); | ||
} | ||
var idx = rev.indexOf('-'); | ||
var left = rev.substring(0, idx); | ||
var right = rev.substring(idx + 1); | ||
var idx = rev$$1.indexOf('-'); | ||
var left = rev$$1.substring(0, idx); | ||
var right = rev$$1.substring(idx + 1); | ||
return { | ||
@@ -338,4 +338,4 @@ prefix: parseInt(left, 10), | ||
// recalculate | ||
var winningRev = winningRev(docInfo.metadata); | ||
var winningRevIsDeleted = isDeleted(docInfo.metadata, winningRev); | ||
var winningRev$$1 = winningRev(docInfo.metadata); | ||
var winningRevIsDeleted = isDeleted(docInfo.metadata, winningRev$$1); | ||
@@ -348,3 +348,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 | ||
@@ -357,3 +357,3 @@ newRevIsDeleted = winningRevIsDeleted; | ||
writeDoc(docInfo, winningRev, winningRevIsDeleted, newRevIsDeleted, | ||
writeDoc(docInfo, winningRev$$1, winningRevIsDeleted, newRevIsDeleted, | ||
true, delta, i, cb); | ||
@@ -374,4 +374,4 @@ } | ||
// Cant insert new deleted documents | ||
var winningRev = winningRev(docInfo.metadata); | ||
var deleted = isDeleted(docInfo.metadata, winningRev); | ||
var winningRev$$1 = winningRev(docInfo.metadata); | ||
var deleted = isDeleted(docInfo.metadata, winningRev$$1); | ||
if ('was_delete' in opts && deleted) { | ||
@@ -393,3 +393,3 @@ results[resultsIdx] = createError(MISSING_DOC, 'deleted'); | ||
writeDoc(docInfo, winningRev, deleted, deleted, false, | ||
writeDoc(docInfo, winningRev$$1, deleted, deleted, false, | ||
delta, resultsIdx, callback); | ||
@@ -396,0 +396,0 @@ } |
{ | ||
"name": "pouchdb-adapter-utils", | ||
"version": "6.4.2", | ||
"version": "6.4.3", | ||
"description": "Utilities for PouchDB adapters.", | ||
@@ -12,9 +12,9 @@ "main": "./lib/index.js", | ||
"dependencies": { | ||
"pouchdb-binary-utils": "6.4.2", | ||
"pouchdb-collections": "6.4.2", | ||
"pouchdb-errors": "6.4.2", | ||
"pouchdb-md5": "6.4.2", | ||
"pouchdb-merge": "6.4.2", | ||
"pouchdb-promise": "6.4.2", | ||
"pouchdb-utils": "6.4.2" | ||
"pouchdb-binary-utils": "6.4.3", | ||
"pouchdb-collections": "6.4.3", | ||
"pouchdb-errors": "6.4.3", | ||
"pouchdb-md5": "6.4.3", | ||
"pouchdb-merge": "6.4.3", | ||
"pouchdb-promise": "6.4.3", | ||
"pouchdb-utils": "6.4.3" | ||
}, | ||
@@ -21,0 +21,0 @@ "module": "./lib/index.es.js", |
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
38938
+ Addedpouchdb-binary-utils@6.4.3(transitive)
+ Addedpouchdb-collections@6.4.3(transitive)
+ Addedpouchdb-errors@6.4.3(transitive)
+ Addedpouchdb-md5@6.4.3(transitive)
+ Addedpouchdb-merge@6.4.3(transitive)
+ Addedpouchdb-promise@6.4.3(transitive)
+ Addedpouchdb-utils@6.4.3(transitive)
- Removedpouchdb-binary-utils@6.4.2(transitive)
- Removedpouchdb-collections@6.4.2(transitive)
- Removedpouchdb-errors@6.4.2(transitive)
- Removedpouchdb-md5@6.4.2(transitive)
- Removedpouchdb-merge@6.4.2(transitive)
- Removedpouchdb-promise@6.4.2(transitive)
- Removedpouchdb-utils@6.4.2(transitive)
Updatedpouchdb-binary-utils@6.4.3
Updatedpouchdb-collections@6.4.3
Updatedpouchdb-errors@6.4.3
Updatedpouchdb-md5@6.4.3
Updatedpouchdb-merge@6.4.3
Updatedpouchdb-promise@6.4.3
Updatedpouchdb-utils@6.4.3