Socket
Socket
Sign inDemoInstall

ipfs-pubsub-peer-monitor

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ipfs-pubsub-peer-monitor - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

2

package.json
{
"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 @@ }

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