Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pouchdb-core

Package Overview
Dependencies
Maintainers
5
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pouchdb-core - npm Package Compare versions

Comparing version 6.4.2 to 6.4.3

58

lib/index.es.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc