Socket
Socket
Sign inDemoInstall

follow

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

follow - npm Package Compare versions

Comparing version 0.7.1 to 0.7.2

2

lib/feed.js

@@ -211,3 +211,3 @@ // Core routines for event emitters

if(resp.body || body)
if((resp !== undefined && resp.body) || body)
return self.die(new Error('Cannot handle a body in the feed response: ' + lib.JS(resp.body || body)))

@@ -214,0 +214,0 @@

{ "name": "follow"
, "version": "0.7.1"
, "version": "0.7.2"
, "author": { "name": "Jason Smith"

@@ -4,0 +4,0 @@ , "email": "jhs@iriscouch.com" }

@@ -14,16 +14,12 @@ var tap = require('tap')

test('Issue #9', function(t) {
test('Issue #10', function(t) {
follow({db:couch.DB, inactivity_ms:30000}, function(er, change) {
console.error('Change: ' + JSON.stringify(change))
if(change.seq == 1)
return // Let it run through once, just for fun.
if(change.seq == 2)
this.stop()
//t.equal(change.seq, 2, 'The second change will be the last')
this.stop()
setTimeout(finish, 250)
function finish() {
this.on('stop', function() {
t.end()
}
})
})
})
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