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

pouchdb-adapter-utils

Package Overview
Dependencies
Maintainers
5
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.4.2 to 6.4.3

24

lib/index.es.js

@@ -78,9 +78,9 @@ import Promise from 'pouchdb-promise';

function parseRevisionInfo(rev) {
if (!/^\d+-./.test(rev)) {
function parseRevisionInfo(rev$$1) {
if (!/^\d+-./.test(rev$$1)) {
return createError(INVALID_REV);
}
var idx = rev.indexOf('-');
var left = rev.substring(0, idx);
var right = rev.substring(idx + 1);
var idx = rev$$1.indexOf('-');
var left = rev$$1.substring(0, idx);
var right = rev$$1.substring(idx + 1);
return {

@@ -338,4 +338,4 @@ prefix: parseInt(left, 10),

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

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

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

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

@@ -374,4 +374,4 @@ }

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

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

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

@@ -396,0 +396,0 @@ }

{
"name": "pouchdb-adapter-utils",
"version": "6.4.2",
"version": "6.4.3",
"description": "Utilities for PouchDB adapters.",

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

"dependencies": {
"pouchdb-binary-utils": "6.4.2",
"pouchdb-collections": "6.4.2",
"pouchdb-errors": "6.4.2",
"pouchdb-md5": "6.4.2",
"pouchdb-merge": "6.4.2",
"pouchdb-promise": "6.4.2",
"pouchdb-utils": "6.4.2"
"pouchdb-binary-utils": "6.4.3",
"pouchdb-collections": "6.4.3",
"pouchdb-errors": "6.4.3",
"pouchdb-md5": "6.4.3",
"pouchdb-merge": "6.4.3",
"pouchdb-promise": "6.4.3",
"pouchdb-utils": "6.4.3"
},

@@ -21,0 +21,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