cloudant-follow
Advanced tools
Comparing version 0.18.0-SNAPSHOT.13 to 0.18.0-SNAPSHOT.14
# 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) |
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
59137
1064