ipfs-pubsub-peer-monitor
Advanced tools
Comparing version 0.0.4 to 0.0.5
{ | ||
"name": "ipfs-pubsub-peer-monitor", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "Monitor peers joining and leaving an IPFS PubSub topic", | ||
@@ -5,0 +5,0 @@ "main": "src/ipfs-pubsub-peer-monitor.js", |
@@ -48,10 +48,9 @@ 'use strict' | ||
stop () { | ||
this._started = false | ||
this.removeAllListeners('error') | ||
this.removeAllListeners('join') | ||
this.removeAllListeners('leave') | ||
this._started = false | ||
} | ||
static _start (pubsub, topic, interval, eventEmitter, options) { | ||
const shouldStop = !options && !options.shouldContinue && !options.shouldContinue() | ||
const beforeEach = options && options.beforeEach ? options.beforeEach : () => {} | ||
@@ -66,4 +65,6 @@ | ||
} catch (e) { | ||
eventEmitter.emit('error', e) | ||
if (this._started) | ||
eventEmitter.emit('error', e) | ||
} | ||
const shouldStop = !options && !options.shouldStop && !options.shouldStop() | ||
return shouldStop ? pForever.end : peers | ||
@@ -70,0 +71,0 @@ } |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
10115
236
0