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

cloudant-follow

Package Overview
Dependencies
Maintainers
4
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cloudant-follow - npm Package Compare versions

Comparing version 0.18.0-SNAPSHOT.13 to 0.18.0-SNAPSHOT.14

1

CHANGES.md
# UNRELEASED
- [NEW] Support use of changes selector filter.
- [FIXED] Abort request retry for dead feed.
- [FIXED] Support using `since="now"` parameter in a `/_db_updates` feed.

@@ -5,0 +6,0 @@ # 0.17.0 (2018-03-22)

29

lib/feed.js

@@ -200,17 +200,18 @@ // Copyright © 2017, 2018 IBM Corp. All rights reserved.

if (self.since === 'now') {
self.log.debug('Query since "now" is the same as query since -1');
self.since = -1;
}
if (self.since === -1) {
self.log.debug('Query since ' + self.since + ' will start at ' + db.update_seq);
self.since = db.update_seq;
} else if (self.since < 0) {
if (isNaN(db.update_seq)) {
return self.emit('error', new Error('DB requires specific id in "since"'));
// `/_db_updates` does not support since=-1, we use since="now" instead.
if (!self.is_db_updates) {
if (self.since === 'now') {
self.log.debug('Query since "now" is the same as query since -1');
self.since = -1;
}
self.log.debug('Query since ' + self.since + ' will start at ' + (db.update_seq + self.since + 1));
self.since = db.update_seq + self.since + 1;
if (self.since === -1) {
self.log.debug('Query since ' + self.since + ' will start at ' + db.update_seq);
self.since = db.update_seq;
} else if (self.since < 0) {
if (isNaN(db.update_seq)) {
return self.emit('error', new Error('DB requires specific id in "since"'));
}
self.log.debug('Query since ' + self.since + ' will start at ' + (db.update_seq + self.since + 1));
self.since = db.update_seq + self.since + 1;
}
}

@@ -217,0 +218,0 @@

{
"name": "cloudant-follow",
"version": "0.18.0-SNAPSHOT.13",
"version": "0.18.0-SNAPSHOT.14",
"author": {

@@ -5,0 +5,0 @@ "name": "IBM Cloudant",

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