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

pouchdb-replication

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-replication - npm Package Compare versions

Comparing version 6.2.0 to 6.2.1-prerelease

src/backoff.js

14

lib/index.es.js

@@ -265,3 +265,15 @@ import Promise from 'pouchdb-promise';

repId = res;
checkpointer = new Checkpointer(src, target, repId, returnValue);
var checkpointOpts = {};
if (opts.checkpoint === false) {
checkpointOpts = { writeSourceCheckpoint: false, writeTargetCheckpoint: false };
} else if (opts.checkpoint === 'source') {
checkpointOpts = { writeSourceCheckpoint: true, writeTargetCheckpoint: false };
} else if (opts.checkpoint === 'target') {
checkpointOpts = { writeSourceCheckpoint: false, writeTargetCheckpoint: true };
} else {
checkpointOpts = { writeSourceCheckpoint: true, writeTargetCheckpoint: true };
}
checkpointer = new Checkpointer(src, target, repId, returnValue, checkpointOpts);
});

@@ -268,0 +280,0 @@ }

@@ -269,3 +269,15 @@ 'use strict';

repId = res;
checkpointer = new Checkpointer(src, target, repId, returnValue);
var checkpointOpts = {};
if (opts.checkpoint === false) {
checkpointOpts = { writeSourceCheckpoint: false, writeTargetCheckpoint: false };
} else if (opts.checkpoint === 'source') {
checkpointOpts = { writeSourceCheckpoint: true, writeTargetCheckpoint: false };
} else if (opts.checkpoint === 'target') {
checkpointOpts = { writeSourceCheckpoint: false, writeTargetCheckpoint: true };
} else {
checkpointOpts = { writeSourceCheckpoint: true, writeTargetCheckpoint: true };
}
checkpointer = new Checkpointer(src, target, repId, returnValue, checkpointOpts);
});

@@ -272,0 +284,0 @@ }

17

package.json
{
"name": "pouchdb-replication",
"version": "6.2.0",
"version": "6.2.1-prerelease",
"description": "PouchDB's replication and sync algorithm, as a plugin.",

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

"repository": "https://github.com/pouchdb/pouchdb",
"jsnext:main": "./lib/index.es.js",
"dependencies": {
"inherits": "2.0.3",
"pouchdb-checkpointer": "6.2.0",
"pouchdb-errors": "6.2.0",
"pouchdb-generate-replication-id": "6.2.0",
"pouchdb-promise": "6.2.0",
"pouchdb-utils": "6.2.0"
},
"files": [
"lib",
"dist",
"tonic-example.js"
]
"jsnext:main": "./src/index.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