Socket
Socket
Sign inDemoInstall

couchdb-worker

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

couchdb-worker - npm Package Compare versions

Comparing version 0.4.2 to 0.4.3

10

lib/worker.js

@@ -242,3 +242,3 @@ /*

// reset on errors
if (this._checkResponse(error, resp, data, 'commit doc')) return this._reset(newDoc);
if (this._checkResponse(error, resp, data, 'commit doc')) return this._reset(doc);

@@ -265,6 +265,6 @@ // update doc's rev

// TODO: retry on errors
if (this._checkResponse(error, resp, data, 'fetch doc')) return this._nextChange();
if (this._checkResponse(error, resp, newDoc, 'fetch doc')) return this._nextChange();
// reset the worker state
if (doc.worker_status) delete doc.worker_status[this.name];
if (newDoc.worker_status) delete newDoc.worker_status[this.name];

@@ -277,3 +277,3 @@ // save doc

method: 'PUT',
body: JSON.stringify(doc),
body: JSON.stringify(newDoc),
json: true

@@ -283,3 +283,3 @@ }, function(error, resp, data) {

// TODO: do not try in that endless loop
if (this._checkResponse(error, resp, data, 'commit doc')) return this._reset(doc);
if (this._checkResponse(error, resp, data, 'commit doc')) return this._reset(newDoc);

@@ -286,0 +286,0 @@ this._log('reset: ' + doc._id);

@@ -9,3 +9,3 @@ {

},
"version": "0.4.2",
"version": "0.4.3",
"dependencies": {

@@ -12,0 +12,0 @@ "request": "*",

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