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

pouchdb-adapter-utils

Package Overview
Dependencies
Maintainers
3
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pouchdb-adapter-utils - npm Package Compare versions

Comparing version 6.1.0 to 6.1.1

16

lib/index.js

@@ -309,4 +309,4 @@ 'use strict';

// recalculate
var winningRev = pouchdbMerge.winningRev(docInfo.metadata);
var winningRevIsDeleted = pouchdbMerge.isDeleted(docInfo.metadata, winningRev);
var winningRev$$1 = pouchdbMerge.winningRev(docInfo.metadata);
var winningRevIsDeleted = pouchdbMerge.isDeleted(docInfo.metadata, winningRev$$1);

@@ -319,3 +319,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

@@ -328,3 +328,3 @@ newRevIsDeleted = winningRevIsDeleted;

writeDoc(docInfo, winningRev, winningRevIsDeleted, newRevIsDeleted,
writeDoc(docInfo, winningRev$$1, winningRevIsDeleted, newRevIsDeleted,
true, delta, i, cb);

@@ -345,4 +345,4 @@ }

// Cant insert new deleted documents
var winningRev = pouchdbMerge.winningRev(docInfo.metadata);
var deleted = pouchdbMerge.isDeleted(docInfo.metadata, winningRev);
var winningRev$$1 = pouchdbMerge.winningRev(docInfo.metadata);
var deleted = pouchdbMerge.isDeleted(docInfo.metadata, winningRev$$1);
if ('was_delete' in opts && deleted) {

@@ -364,3 +364,3 @@ results[resultsIdx] = pouchdbErrors.createError(pouchdbErrors.MISSING_DOC, 'deleted');

writeDoc(docInfo, winningRev, deleted, deleted, false,
writeDoc(docInfo, winningRev$$1, deleted, deleted, false,
delta, resultsIdx, callback);

@@ -441,2 +441,2 @@ }

exports.processDocs = processDocs;
exports.updateDoc = updateDoc;
exports.updateDoc = updateDoc;
{
"name": "pouchdb-adapter-utils",
"version": "6.1.0",
"version": "6.1.1",
"description": "Utilities for PouchDB adapters.",

@@ -16,9 +16,9 @@ "main": "./lib/index.js",

"dependencies": {
"pouchdb-binary-utils": "6.1.0",
"pouchdb-collections": "6.1.0",
"pouchdb-errors": "6.1.0",
"pouchdb-md5": "6.1.0",
"pouchdb-merge": "6.1.0",
"pouchdb-utils": "6.1.0"
"pouchdb-binary-utils": "6.1.1",
"pouchdb-collections": "6.1.1",
"pouchdb-errors": "6.1.1",
"pouchdb-md5": "6.1.1",
"pouchdb-merge": "6.1.1",
"pouchdb-utils": "6.1.1"
}
}
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