pouchdb-core
Advanced tools
Comparing version 6.4.2 to 6.4.3
@@ -262,10 +262,10 @@ import Promise from 'pouchdb-promise'; | ||
traverseRevTree(revs, function (isLeaf, pos, id, prnt) { | ||
var rev = pos + "-" + id; | ||
var rev$$1 = pos + "-" + id; | ||
if (isLeaf) { | ||
height[rev] = 0; | ||
height[rev$$1] = 0; | ||
} | ||
if (prnt !== undefined) { | ||
edges.push({from: prnt, to: rev}); | ||
edges.push({from: prnt, to: rev$$1}); | ||
} | ||
return rev; | ||
return rev$$1; | ||
}); | ||
@@ -404,3 +404,3 @@ | ||
AbstractPouchDB.prototype.putAttachment = | ||
adapterFun('putAttachment', function (docId, attachmentId, rev, | ||
adapterFun('putAttachment', function (docId, attachmentId, rev$$1, | ||
blob, type) { | ||
@@ -410,4 +410,4 @@ var api = this; | ||
type = blob; | ||
blob = rev; | ||
rev = null; | ||
blob = rev$$1; | ||
rev$$1 = null; | ||
} | ||
@@ -418,4 +418,4 @@ // Lets fix in https://github.com/pouchdb/pouchdb/issues/3267 | ||
type = blob; | ||
blob = rev; | ||
rev = null; | ||
blob = rev$$1; | ||
rev$$1 = null; | ||
} | ||
@@ -438,3 +438,3 @@ if (!type) { | ||
return api.get(docId).then(function (doc) { | ||
if (doc._rev !== rev) { | ||
if (doc._rev !== rev$$1) { | ||
throw createError(REV_CONFLICT); | ||
@@ -456,3 +456,3 @@ } | ||
AbstractPouchDB.prototype.removeAttachment = | ||
adapterFun('removeAttachment', function (docId, attachmentId, rev, | ||
adapterFun('removeAttachment', function (docId, attachmentId, rev$$1, | ||
callback) { | ||
@@ -466,3 +466,3 @@ var self = this; | ||
} | ||
if (obj._rev !== rev) { | ||
if (obj._rev !== rev$$1) { | ||
callback(createError(REV_CONFLICT)); | ||
@@ -544,4 +544,4 @@ return; | ||
opts) { | ||
var rev = pos + '-' + revHash; | ||
var idx = missingForId.indexOf(rev); | ||
var rev$$1 = pos + '-' + revHash; | ||
var idx = missingForId.indexOf(rev$$1); | ||
if (idx === -1) { | ||
@@ -554,3 +554,3 @@ return; | ||
if (opts.status !== 'available') { | ||
addToMissing(id, rev); | ||
addToMissing(id, rev$$1); | ||
} | ||
@@ -561,4 +561,4 @@ }); | ||
// revisions that were not found in the tree | ||
missingForId.forEach(function (rev) { | ||
addToMissing(id, rev); | ||
missingForId.forEach(function (rev$$1) { | ||
addToMissing(id, rev$$1); | ||
}); | ||
@@ -616,5 +616,5 @@ } | ||
var revs = []; | ||
Object.keys(height).forEach(function (rev) { | ||
if (height[rev] > maxHeight) { | ||
candidates.push(rev); | ||
Object.keys(height).forEach(function (rev$$1) { | ||
if (height[rev$$1] > maxHeight) { | ||
candidates.push(rev$$1); | ||
} | ||
@@ -624,5 +624,5 @@ }); | ||
traverseRevTree(revTree, function (isLeaf, pos, revHash, ctx, opts) { | ||
var rev = pos + '-' + revHash; | ||
if (opts.status === 'available' && candidates.indexOf(rev) !== -1) { | ||
revs.push(rev); | ||
var rev$$1 = pos + '-' + revHash; | ||
if (opts.status === 'available' && candidates.indexOf(rev$$1) !== -1) { | ||
revs.push(rev$$1); | ||
} | ||
@@ -816,4 +816,4 @@ }); | ||
start: (path.pos + path.ids.length) - 1, | ||
ids: path.ids.map(function (rev) { | ||
return rev.id; | ||
ids: path.ids.map(function (rev$$1) { | ||
return rev$$1.id; | ||
}) | ||
@@ -824,7 +824,7 @@ }; | ||
var pos = path.pos + path.ids.length; | ||
doc._revs_info = path.ids.map(function (rev) { | ||
doc._revs_info = path.ids.map(function (rev$$1) { | ||
pos--; | ||
return { | ||
rev: pos + '-' + rev.id, | ||
status: rev.opts.status | ||
rev: pos + '-' + rev$$1.id, | ||
status: rev$$1.opts.status | ||
}; | ||
@@ -1416,3 +1416,3 @@ }); | ||
// managed automatically by set-version.js | ||
var version = "6.4.2"; | ||
var version = "6.4.3"; | ||
@@ -1419,0 +1419,0 @@ // TODO: remove from pouchdb-core (breaking) |
@@ -1406,3 +1406,3 @@ 'use strict'; | ||
// managed automatically by set-version.js | ||
var version = "6.4.2"; | ||
var version = "6.4.3"; | ||
@@ -1409,0 +1409,0 @@ // TODO: remove from pouchdb-core (breaking) |
{ | ||
"name": "pouchdb-core", | ||
"version": "6.4.2", | ||
"version": "6.4.3", | ||
"description": "The core of PouchDB as a standalone package.", | ||
@@ -14,9 +14,9 @@ "main": "./lib/index.js", | ||
"inherits": "2.0.3", | ||
"pouchdb-changes-filter": "6.4.2", | ||
"pouchdb-collections": "6.4.2", | ||
"pouchdb-debug": "6.4.2", | ||
"pouchdb-errors": "6.4.2", | ||
"pouchdb-merge": "6.4.2", | ||
"pouchdb-promise": "6.4.2", | ||
"pouchdb-utils": "6.4.2" | ||
"pouchdb-changes-filter": "6.4.3", | ||
"pouchdb-collections": "6.4.3", | ||
"pouchdb-debug": "6.4.3", | ||
"pouchdb-errors": "6.4.3", | ||
"pouchdb-merge": "6.4.3", | ||
"pouchdb-promise": "6.4.3", | ||
"pouchdb-utils": "6.4.3" | ||
}, | ||
@@ -23,0 +23,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
90436
+ Addedpouchdb-changes-filter@6.4.3(transitive)
+ Addedpouchdb-collate@6.4.3(transitive)
+ Addedpouchdb-collections@6.4.3(transitive)
+ Addedpouchdb-debug@6.4.3(transitive)
+ Addedpouchdb-errors@6.4.3(transitive)
+ Addedpouchdb-merge@6.4.3(transitive)
+ Addedpouchdb-promise@6.4.3(transitive)
+ Addedpouchdb-selector-core@6.4.3(transitive)
+ Addedpouchdb-utils@6.4.3(transitive)
- Removedpouchdb-changes-filter@6.4.2(transitive)
- Removedpouchdb-collate@6.4.2(transitive)
- Removedpouchdb-collections@6.4.2(transitive)
- Removedpouchdb-debug@6.4.2(transitive)
- Removedpouchdb-errors@6.4.2(transitive)
- Removedpouchdb-merge@6.4.2(transitive)
- Removedpouchdb-promise@6.4.2(transitive)
- Removedpouchdb-selector-core@6.4.2(transitive)
- Removedpouchdb-utils@6.4.2(transitive)
Updatedpouchdb-changes-filter@6.4.3
Updatedpouchdb-collections@6.4.3
Updatedpouchdb-debug@6.4.3
Updatedpouchdb-errors@6.4.3
Updatedpouchdb-merge@6.4.3
Updatedpouchdb-promise@6.4.3
Updatedpouchdb-utils@6.4.3