pouchdb-adapter-leveldb-core
Advanced tools
Comparing version 6.4.1 to 6.4.2
@@ -1,2 +0,4 @@ | ||
import { Map, Set } from 'pouchdb-collections'; | ||
import { blob, readAsBinaryString, atob, binaryStringToBlobOrBuffer } from 'pouchdb-binary-utils'; | ||
import { Set, Map } from 'pouchdb-collections'; | ||
import { nextTick, clone, changesHandler, filterChange, functionName, uuid } from 'pouchdb-utils'; | ||
import Promise from 'pouchdb-promise'; | ||
@@ -9,9 +11,7 @@ import levelup from 'levelup'; | ||
import bufferFrom from 'buffer-from'; | ||
import { changesHandler, clone, filterChange, functionName, nextTick, uuid } from 'pouchdb-utils'; | ||
import { allDocsKeysQuery, isDeleted, isLocalId, parseDoc, processDocs } from 'pouchdb-adapter-utils'; | ||
import { collectConflicts, compactTree, latest, traverseRevTree, winningRev } from 'pouchdb-merge'; | ||
import { winningRev, traverseRevTree, compactTree, collectConflicts, latest } from 'pouchdb-merge'; | ||
import { safeJsonParse, safeJsonStringify } from 'pouchdb-json'; | ||
import { binaryMd5 } from 'pouchdb-md5'; | ||
import { atob, binaryStringToBlobOrBuffer, blob, readAsBinaryString } from 'pouchdb-binary-utils'; | ||
import { BAD_ARG, MISSING_DOC, MISSING_STUB, NOT_OPEN, REV_CONFLICT, createError } from 'pouchdb-errors'; | ||
import { MISSING_DOC, REV_CONFLICT, NOT_OPEN, BAD_ARG, MISSING_STUB, createError } from 'pouchdb-errors'; | ||
@@ -151,5 +151,5 @@ function readAsBlobOrBuffer(storedObject, type) { | ||
function getIsDeleted(metadata, winningRev$$1) { | ||
function getIsDeleted(metadata, winningRev) { | ||
return 'deleted' in metadata ? | ||
metadata.deleted : isDeleted(metadata, winningRev$$1); | ||
metadata.deleted : isDeleted(metadata, winningRev); | ||
} | ||
@@ -649,3 +649,3 @@ | ||
function writeDoc(docInfo, winningRev$$1, winningRevIsDeleted, newRevIsDeleted, | ||
function writeDoc(docInfo, winningRev, winningRevIsDeleted, newRevIsDeleted, | ||
isUpdate, delta, resultsIdx, callback2) { | ||
@@ -657,3 +657,3 @@ docCountDelta += delta; | ||
docInfo.metadata.winningRev = winningRev$$1; | ||
docInfo.metadata.winningRev = winningRev; | ||
docInfo.metadata.deleted = winningRevIsDeleted; | ||
@@ -965,4 +965,4 @@ | ||
// in newer versions of PouchDB, they are cached on the metadata | ||
var winningRev$$1 = getWinningRev(metadata); | ||
var deleted = getIsDeleted(metadata, winningRev$$1); | ||
var winningRev = getWinningRev(metadata); | ||
var deleted = getIsDeleted(metadata, winningRev); | ||
if (!deleted) { | ||
@@ -987,3 +987,3 @@ if (skip-- > 0) { | ||
value: { | ||
rev: winningRev$$1 | ||
rev: winningRev | ||
} | ||
@@ -1021,3 +1021,3 @@ }; | ||
if (opts.include_docs) { | ||
var seq = metadata.rev_map[winningRev$$1]; | ||
var seq = metadata.rev_map[winningRev]; | ||
stores.bySeqStore.get(formatSeq(seq), function (err, data) { | ||
@@ -1148,3 +1148,3 @@ allDocsInner(data); | ||
function onGetMetadata(metadata) { | ||
var winningRev$$1 = getWinningRev(metadata); | ||
var winningRev = getWinningRev(metadata); | ||
@@ -1188,3 +1188,3 @@ function onGetWinningDoc(winningDoc) { | ||
if (winningRev$$1 === doc._rev) { | ||
if (winningRev === doc._rev) { | ||
return onGetWinningDoc(doc); | ||
@@ -1195,3 +1195,3 @@ } | ||
var winningSeq = metadata.rev_map[winningRev$$1]; | ||
var winningSeq = metadata.rev_map[winningRev]; | ||
@@ -1198,0 +1198,0 @@ stores.bySeqStore.get(formatSeq(winningSeq), function (err, doc) { |
@@ -5,3 +5,5 @@ 'use strict'; | ||
var pouchdbBinaryUtils = require('pouchdb-binary-utils'); | ||
var pouchdbCollections = require('pouchdb-collections'); | ||
var pouchdbUtils = require('pouchdb-utils'); | ||
var Promise = _interopDefault(require('pouchdb-promise')); | ||
@@ -14,3 +16,2 @@ var levelup = _interopDefault(require('levelup')); | ||
var bufferFrom = _interopDefault(require('buffer-from')); | ||
var pouchdbUtils = require('pouchdb-utils'); | ||
var pouchdbAdapterUtils = require('pouchdb-adapter-utils'); | ||
@@ -20,3 +21,2 @@ var pouchdbMerge = require('pouchdb-merge'); | ||
var pouchdbMd5 = require('pouchdb-md5'); | ||
var pouchdbBinaryUtils = require('pouchdb-binary-utils'); | ||
var pouchdbErrors = require('pouchdb-errors'); | ||
@@ -157,5 +157,5 @@ | ||
function getIsDeleted(metadata, winningRev$$1) { | ||
function getIsDeleted(metadata, winningRev) { | ||
return 'deleted' in metadata ? | ||
metadata.deleted : pouchdbAdapterUtils.isDeleted(metadata, winningRev$$1); | ||
metadata.deleted : pouchdbAdapterUtils.isDeleted(metadata, winningRev); | ||
} | ||
@@ -655,3 +655,3 @@ | ||
function writeDoc(docInfo, winningRev$$1, winningRevIsDeleted, newRevIsDeleted, | ||
function writeDoc(docInfo, winningRev, winningRevIsDeleted, newRevIsDeleted, | ||
isUpdate, delta, resultsIdx, callback2) { | ||
@@ -663,3 +663,3 @@ docCountDelta += delta; | ||
docInfo.metadata.winningRev = winningRev$$1; | ||
docInfo.metadata.winningRev = winningRev; | ||
docInfo.metadata.deleted = winningRevIsDeleted; | ||
@@ -971,4 +971,4 @@ | ||
// in newer versions of PouchDB, they are cached on the metadata | ||
var winningRev$$1 = getWinningRev(metadata); | ||
var deleted = getIsDeleted(metadata, winningRev$$1); | ||
var winningRev = getWinningRev(metadata); | ||
var deleted = getIsDeleted(metadata, winningRev); | ||
if (!deleted) { | ||
@@ -993,3 +993,3 @@ if (skip-- > 0) { | ||
value: { | ||
rev: winningRev$$1 | ||
rev: winningRev | ||
} | ||
@@ -1027,3 +1027,3 @@ }; | ||
if (opts.include_docs) { | ||
var seq = metadata.rev_map[winningRev$$1]; | ||
var seq = metadata.rev_map[winningRev]; | ||
stores.bySeqStore.get(formatSeq(seq), function (err, data) { | ||
@@ -1154,3 +1154,3 @@ allDocsInner(data); | ||
function onGetMetadata(metadata) { | ||
var winningRev$$1 = getWinningRev(metadata); | ||
var winningRev = getWinningRev(metadata); | ||
@@ -1194,3 +1194,3 @@ function onGetWinningDoc(winningDoc) { | ||
if (winningRev$$1 === doc._rev) { | ||
if (winningRev === doc._rev) { | ||
return onGetWinningDoc(doc); | ||
@@ -1201,3 +1201,3 @@ } | ||
var winningSeq = metadata.rev_map[winningRev$$1]; | ||
var winningSeq = metadata.rev_map[winningRev]; | ||
@@ -1204,0 +1204,0 @@ stores.bySeqStore.get(formatSeq(winningSeq), function (err, doc) { |
@@ -1,2 +0,4 @@ | ||
import { Map, Set } from 'pouchdb-collections'; | ||
import { typedBuffer, atob, binaryStringToBlobOrBuffer } from 'pouchdb-binary-utils'; | ||
import { Set, Map } from 'pouchdb-collections'; | ||
import { nextTick, clone, changesHandler, filterChange, functionName, uuid } from 'pouchdb-utils'; | ||
import Promise from 'pouchdb-promise'; | ||
@@ -9,9 +11,7 @@ import levelup from 'levelup'; | ||
import bufferFrom from 'buffer-from'; | ||
import { changesHandler, clone, filterChange, functionName, nextTick, uuid } from 'pouchdb-utils'; | ||
import { allDocsKeysQuery, isDeleted, isLocalId, parseDoc, processDocs } from 'pouchdb-adapter-utils'; | ||
import { collectConflicts, compactTree, latest, traverseRevTree, winningRev } from 'pouchdb-merge'; | ||
import { winningRev, traverseRevTree, compactTree, collectConflicts, latest } from 'pouchdb-merge'; | ||
import { safeJsonParse, safeJsonStringify } from 'pouchdb-json'; | ||
import { binaryMd5 } from 'pouchdb-md5'; | ||
import { atob, binaryStringToBlobOrBuffer, typedBuffer } from 'pouchdb-binary-utils'; | ||
import { BAD_ARG, MISSING_DOC, MISSING_STUB, NOT_OPEN, REV_CONFLICT, createError } from 'pouchdb-errors'; | ||
import { MISSING_DOC, REV_CONFLICT, NOT_OPEN, BAD_ARG, MISSING_STUB, createError } from 'pouchdb-errors'; | ||
@@ -149,5 +149,5 @@ function readAsBlobOrBuffer(storedObject, type) { | ||
function getIsDeleted(metadata, winningRev$$1) { | ||
function getIsDeleted(metadata, winningRev) { | ||
return 'deleted' in metadata ? | ||
metadata.deleted : isDeleted(metadata, winningRev$$1); | ||
metadata.deleted : isDeleted(metadata, winningRev); | ||
} | ||
@@ -647,3 +647,3 @@ | ||
function writeDoc(docInfo, winningRev$$1, winningRevIsDeleted, newRevIsDeleted, | ||
function writeDoc(docInfo, winningRev, winningRevIsDeleted, newRevIsDeleted, | ||
isUpdate, delta, resultsIdx, callback2) { | ||
@@ -655,3 +655,3 @@ docCountDelta += delta; | ||
docInfo.metadata.winningRev = winningRev$$1; | ||
docInfo.metadata.winningRev = winningRev; | ||
docInfo.metadata.deleted = winningRevIsDeleted; | ||
@@ -963,4 +963,4 @@ | ||
// in newer versions of PouchDB, they are cached on the metadata | ||
var winningRev$$1 = getWinningRev(metadata); | ||
var deleted = getIsDeleted(metadata, winningRev$$1); | ||
var winningRev = getWinningRev(metadata); | ||
var deleted = getIsDeleted(metadata, winningRev); | ||
if (!deleted) { | ||
@@ -985,3 +985,3 @@ if (skip-- > 0) { | ||
value: { | ||
rev: winningRev$$1 | ||
rev: winningRev | ||
} | ||
@@ -1019,3 +1019,3 @@ }; | ||
if (opts.include_docs) { | ||
var seq = metadata.rev_map[winningRev$$1]; | ||
var seq = metadata.rev_map[winningRev]; | ||
stores.bySeqStore.get(formatSeq(seq), function (err, data) { | ||
@@ -1146,3 +1146,3 @@ allDocsInner(data); | ||
function onGetMetadata(metadata) { | ||
var winningRev$$1 = getWinningRev(metadata); | ||
var winningRev = getWinningRev(metadata); | ||
@@ -1186,3 +1186,3 @@ function onGetWinningDoc(winningDoc) { | ||
if (winningRev$$1 === doc._rev) { | ||
if (winningRev === doc._rev) { | ||
return onGetWinningDoc(doc); | ||
@@ -1193,3 +1193,3 @@ } | ||
var winningSeq = metadata.rev_map[winningRev$$1]; | ||
var winningSeq = metadata.rev_map[winningRev]; | ||
@@ -1196,0 +1196,0 @@ stores.bySeqStore.get(formatSeq(winningSeq), function (err, doc) { |
@@ -5,3 +5,5 @@ 'use strict'; | ||
var pouchdbBinaryUtils = require('pouchdb-binary-utils'); | ||
var pouchdbCollections = require('pouchdb-collections'); | ||
var pouchdbUtils = require('pouchdb-utils'); | ||
var Promise = _interopDefault(require('pouchdb-promise')); | ||
@@ -14,3 +16,2 @@ var levelup = _interopDefault(require('levelup')); | ||
var bufferFrom = _interopDefault(require('buffer-from')); | ||
var pouchdbUtils = require('pouchdb-utils'); | ||
var pouchdbAdapterUtils = require('pouchdb-adapter-utils'); | ||
@@ -20,3 +21,2 @@ var pouchdbMerge = require('pouchdb-merge'); | ||
var pouchdbMd5 = require('pouchdb-md5'); | ||
var pouchdbBinaryUtils = require('pouchdb-binary-utils'); | ||
var pouchdbErrors = require('pouchdb-errors'); | ||
@@ -155,5 +155,5 @@ | ||
function getIsDeleted(metadata, winningRev$$1) { | ||
function getIsDeleted(metadata, winningRev) { | ||
return 'deleted' in metadata ? | ||
metadata.deleted : pouchdbAdapterUtils.isDeleted(metadata, winningRev$$1); | ||
metadata.deleted : pouchdbAdapterUtils.isDeleted(metadata, winningRev); | ||
} | ||
@@ -653,3 +653,3 @@ | ||
function writeDoc(docInfo, winningRev$$1, winningRevIsDeleted, newRevIsDeleted, | ||
function writeDoc(docInfo, winningRev, winningRevIsDeleted, newRevIsDeleted, | ||
isUpdate, delta, resultsIdx, callback2) { | ||
@@ -661,3 +661,3 @@ docCountDelta += delta; | ||
docInfo.metadata.winningRev = winningRev$$1; | ||
docInfo.metadata.winningRev = winningRev; | ||
docInfo.metadata.deleted = winningRevIsDeleted; | ||
@@ -969,4 +969,4 @@ | ||
// in newer versions of PouchDB, they are cached on the metadata | ||
var winningRev$$1 = getWinningRev(metadata); | ||
var deleted = getIsDeleted(metadata, winningRev$$1); | ||
var winningRev = getWinningRev(metadata); | ||
var deleted = getIsDeleted(metadata, winningRev); | ||
if (!deleted) { | ||
@@ -991,3 +991,3 @@ if (skip-- > 0) { | ||
value: { | ||
rev: winningRev$$1 | ||
rev: winningRev | ||
} | ||
@@ -1025,3 +1025,3 @@ }; | ||
if (opts.include_docs) { | ||
var seq = metadata.rev_map[winningRev$$1]; | ||
var seq = metadata.rev_map[winningRev]; | ||
stores.bySeqStore.get(formatSeq(seq), function (err, data) { | ||
@@ -1152,3 +1152,3 @@ allDocsInner(data); | ||
function onGetMetadata(metadata) { | ||
var winningRev$$1 = getWinningRev(metadata); | ||
var winningRev = getWinningRev(metadata); | ||
@@ -1192,3 +1192,3 @@ function onGetWinningDoc(winningDoc) { | ||
if (winningRev$$1 === doc._rev) { | ||
if (winningRev === doc._rev) { | ||
return onGetWinningDoc(doc); | ||
@@ -1199,3 +1199,3 @@ } | ||
var winningSeq = metadata.rev_map[winningRev$$1]; | ||
var winningSeq = metadata.rev_map[winningRev]; | ||
@@ -1202,0 +1202,0 @@ stores.bySeqStore.get(formatSeq(winningSeq), function (err, doc) { |
{ | ||
"name": "pouchdb-adapter-leveldb-core", | ||
"version": "6.4.1", | ||
"version": "6.4.2", | ||
"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.1", | ||
"pouchdb-binary-utils": "6.4.1", | ||
"pouchdb-collections": "6.4.1", | ||
"pouchdb-errors": "6.4.1", | ||
"pouchdb-json": "6.4.1", | ||
"pouchdb-md5": "6.4.1", | ||
"pouchdb-merge": "6.4.1", | ||
"pouchdb-promise": "6.4.1", | ||
"pouchdb-utils": "6.4.1", | ||
"sublevel-pouchdb": "6.4.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", | ||
"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
191921
+ Addedpouchdb-adapter-utils@6.4.2(transitive)
+ Addedpouchdb-binary-utils@6.4.2(transitive)
+ Addedpouchdb-collections@6.4.2(transitive)
+ Addedpouchdb-errors@6.4.2(transitive)
+ Addedpouchdb-json@6.4.2(transitive)
+ Addedpouchdb-md5@6.4.2(transitive)
+ Addedpouchdb-merge@6.4.2(transitive)
+ Addedpouchdb-promise@6.4.2(transitive)
+ Addedpouchdb-utils@6.4.2(transitive)
+ Addedsublevel-pouchdb@6.4.2(transitive)
+ Addeduuid@3.2.1(transitive)
- Removedpouchdb-adapter-utils@6.4.1(transitive)
- Removedpouchdb-binary-utils@6.4.1(transitive)
- Removedpouchdb-collections@6.4.1(transitive)
- Removedpouchdb-errors@6.4.1(transitive)
- Removedpouchdb-json@6.4.1(transitive)
- Removedpouchdb-md5@6.4.1(transitive)
- Removedpouchdb-merge@6.4.1(transitive)
- Removedpouchdb-promise@6.4.1(transitive)
- Removedpouchdb-utils@6.4.1(transitive)
- Removedsublevel-pouchdb@6.4.1(transitive)
- Removeduuid@3.4.0(transitive)
Updatedpouchdb-adapter-utils@6.4.2
Updatedpouchdb-binary-utils@6.4.2
Updatedpouchdb-collections@6.4.2
Updatedpouchdb-errors@6.4.2
Updatedpouchdb-json@6.4.2
Updatedpouchdb-md5@6.4.2
Updatedpouchdb-merge@6.4.2
Updatedpouchdb-promise@6.4.2
Updatedpouchdb-utils@6.4.2
Updatedsublevel-pouchdb@6.4.2