ipfs-pubsub-peer-monitor
Advanced tools
Comparing version 0.0.9 to 0.0.10
{ | ||
"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) => { |
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
9783
231
+ Addedp-forever@2.1.0(transitive)
- Removedp-forever@1.0.1(transitive)
Updatedp-forever@^2.1.0