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

ipfs-pubsub-peer-monitor

Package Overview
Dependencies
Maintainers
3
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.9 to 0.0.10

6

package.json
{
"name": "ipfs-pubsub-peer-monitor",
"version": "0.0.9",
"version": "0.0.10",
"description": "Monitor peers joining and leaving an IPFS PubSub topic",

@@ -12,7 +12,7 @@ "main": "src/ipfs-pubsub-peer-monitor.js",

"dependencies": {
"p-forever": "^1.0.1"
"p-forever": "^2.1.0"
},
"devDependencies": {
"mocha": "^5.0.5"
"mocha": "^8.1.3"
}
}

@@ -32,3 +32,3 @@ 'use strict'

this._interval = setInterval(
this._pollPeers.bind(this),
this._pollPeers.bind(this),
this._options.pollInterval

@@ -35,0 +35,0 @@ )

@@ -69,3 +69,5 @@ 'use strict'

const m = new Monitor(mockPubsub, topic, { pollInterval: interval })
const startTime = new Date().getTime()
// Substract the interval from the time since the interval also
// fires immediately instead of waiting for the interval
const startTime = new Date().getTime() - interval

@@ -72,0 +74,0 @@ await new Promise((resolve, reject) => {

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