pouchdb-adapter-leveldb-core
Advanced tools
Comparing version 6.4.2 to 6.4.3
@@ -150,5 +150,5 @@ import { blob, readAsBinaryString, atob, binaryStringToBlobOrBuffer } from 'pouchdb-binary-utils'; | ||
function getIsDeleted(metadata, winningRev) { | ||
function getIsDeleted(metadata, winningRev$$1) { | ||
return 'deleted' in metadata ? | ||
metadata.deleted : isDeleted(metadata, winningRev); | ||
metadata.deleted : isDeleted(metadata, winningRev$$1); | ||
} | ||
@@ -648,3 +648,3 @@ | ||
function writeDoc(docInfo, winningRev, winningRevIsDeleted, newRevIsDeleted, | ||
function writeDoc(docInfo, winningRev$$1, winningRevIsDeleted, newRevIsDeleted, | ||
isUpdate, delta, resultsIdx, callback2) { | ||
@@ -656,3 +656,3 @@ docCountDelta += delta; | ||
docInfo.metadata.winningRev = winningRev; | ||
docInfo.metadata.winningRev = winningRev$$1; | ||
docInfo.metadata.deleted = winningRevIsDeleted; | ||
@@ -964,4 +964,4 @@ | ||
// in newer versions of PouchDB, they are cached on the metadata | ||
var winningRev = getWinningRev(metadata); | ||
var deleted = getIsDeleted(metadata, winningRev); | ||
var winningRev$$1 = getWinningRev(metadata); | ||
var deleted = getIsDeleted(metadata, winningRev$$1); | ||
if (!deleted) { | ||
@@ -986,3 +986,3 @@ if (skip-- > 0) { | ||
value: { | ||
rev: winningRev | ||
rev: winningRev$$1 | ||
} | ||
@@ -1020,3 +1020,3 @@ }; | ||
if (opts.include_docs) { | ||
var seq = metadata.rev_map[winningRev]; | ||
var seq = metadata.rev_map[winningRev$$1]; | ||
stores.bySeqStore.get(formatSeq(seq), function (err, data) { | ||
@@ -1147,3 +1147,3 @@ allDocsInner(data); | ||
function onGetMetadata(metadata) { | ||
var winningRev = getWinningRev(metadata); | ||
var winningRev$$1 = getWinningRev(metadata); | ||
@@ -1187,3 +1187,3 @@ function onGetWinningDoc(winningDoc) { | ||
if (winningRev === doc._rev) { | ||
if (winningRev$$1 === doc._rev) { | ||
return onGetWinningDoc(doc); | ||
@@ -1194,3 +1194,3 @@ } | ||
var winningSeq = metadata.rev_map[winningRev]; | ||
var winningSeq = metadata.rev_map[winningRev$$1]; | ||
@@ -1197,0 +1197,0 @@ stores.bySeqStore.get(formatSeq(winningSeq), function (err, doc) { |
@@ -148,5 +148,5 @@ import { typedBuffer, atob, binaryStringToBlobOrBuffer } from 'pouchdb-binary-utils'; | ||
function getIsDeleted(metadata, winningRev) { | ||
function getIsDeleted(metadata, winningRev$$1) { | ||
return 'deleted' in metadata ? | ||
metadata.deleted : isDeleted(metadata, winningRev); | ||
metadata.deleted : isDeleted(metadata, winningRev$$1); | ||
} | ||
@@ -646,3 +646,3 @@ | ||
function writeDoc(docInfo, winningRev, winningRevIsDeleted, newRevIsDeleted, | ||
function writeDoc(docInfo, winningRev$$1, winningRevIsDeleted, newRevIsDeleted, | ||
isUpdate, delta, resultsIdx, callback2) { | ||
@@ -654,3 +654,3 @@ docCountDelta += delta; | ||
docInfo.metadata.winningRev = winningRev; | ||
docInfo.metadata.winningRev = winningRev$$1; | ||
docInfo.metadata.deleted = winningRevIsDeleted; | ||
@@ -962,4 +962,4 @@ | ||
// in newer versions of PouchDB, they are cached on the metadata | ||
var winningRev = getWinningRev(metadata); | ||
var deleted = getIsDeleted(metadata, winningRev); | ||
var winningRev$$1 = getWinningRev(metadata); | ||
var deleted = getIsDeleted(metadata, winningRev$$1); | ||
if (!deleted) { | ||
@@ -984,3 +984,3 @@ if (skip-- > 0) { | ||
value: { | ||
rev: winningRev | ||
rev: winningRev$$1 | ||
} | ||
@@ -1018,3 +1018,3 @@ }; | ||
if (opts.include_docs) { | ||
var seq = metadata.rev_map[winningRev]; | ||
var seq = metadata.rev_map[winningRev$$1]; | ||
stores.bySeqStore.get(formatSeq(seq), function (err, data) { | ||
@@ -1145,3 +1145,3 @@ allDocsInner(data); | ||
function onGetMetadata(metadata) { | ||
var winningRev = getWinningRev(metadata); | ||
var winningRev$$1 = getWinningRev(metadata); | ||
@@ -1185,3 +1185,3 @@ function onGetWinningDoc(winningDoc) { | ||
if (winningRev === doc._rev) { | ||
if (winningRev$$1 === doc._rev) { | ||
return onGetWinningDoc(doc); | ||
@@ -1192,3 +1192,3 @@ } | ||
var winningSeq = metadata.rev_map[winningRev]; | ||
var winningSeq = metadata.rev_map[winningRev$$1]; | ||
@@ -1195,0 +1195,0 @@ stores.bySeqStore.get(formatSeq(winningSeq), function (err, doc) { |
{ | ||
"name": "pouchdb-adapter-leveldb-core", | ||
"version": "6.4.2", | ||
"version": "6.4.3", | ||
"description": "Core PouchDB adapter code for LevelDOWN-based adapters", | ||
@@ -20,12 +20,12 @@ "main": "./lib/index.js", | ||
"levelup": "2.0.1", | ||
"pouchdb-adapter-utils": "6.4.2", | ||
"pouchdb-binary-utils": "6.4.2", | ||
"pouchdb-collections": "6.4.2", | ||
"pouchdb-errors": "6.4.2", | ||
"pouchdb-json": "6.4.2", | ||
"pouchdb-md5": "6.4.2", | ||
"pouchdb-merge": "6.4.2", | ||
"pouchdb-promise": "6.4.2", | ||
"pouchdb-utils": "6.4.2", | ||
"sublevel-pouchdb": "6.4.2", | ||
"pouchdb-adapter-utils": "6.4.3", | ||
"pouchdb-binary-utils": "6.4.3", | ||
"pouchdb-collections": "6.4.3", | ||
"pouchdb-errors": "6.4.3", | ||
"pouchdb-json": "6.4.3", | ||
"pouchdb-md5": "6.4.3", | ||
"pouchdb-merge": "6.4.3", | ||
"pouchdb-promise": "6.4.3", | ||
"pouchdb-utils": "6.4.3", | ||
"sublevel-pouchdb": "6.4.3", | ||
"through2": "2.0.3" | ||
@@ -32,0 +32,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
191987
+ Addedpouchdb-adapter-utils@6.4.3(transitive)
+ Addedpouchdb-binary-utils@6.4.3(transitive)
+ Addedpouchdb-collections@6.4.3(transitive)
+ Addedpouchdb-errors@6.4.3(transitive)
+ Addedpouchdb-json@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)
+ Addedsublevel-pouchdb@6.4.3(transitive)
- Removedpouchdb-adapter-utils@6.4.2(transitive)
- Removedpouchdb-binary-utils@6.4.2(transitive)
- Removedpouchdb-collections@6.4.2(transitive)
- Removedpouchdb-errors@6.4.2(transitive)
- Removedpouchdb-json@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)
- Removedsublevel-pouchdb@6.4.2(transitive)
Updatedpouchdb-adapter-utils@6.4.3
Updatedpouchdb-binary-utils@6.4.3
Updatedpouchdb-collections@6.4.3
Updatedpouchdb-errors@6.4.3
Updatedpouchdb-json@6.4.3
Updatedpouchdb-md5@6.4.3
Updatedpouchdb-merge@6.4.3
Updatedpouchdb-promise@6.4.3
Updatedpouchdb-utils@6.4.3
Updatedsublevel-pouchdb@6.4.3