hyperswarm
Advanced tools
Comparing version 4.7.11 to 4.7.12
@@ -395,2 +395,3 @@ const { EventEmitter } = require('events') | ||
wait: discovery ? discovery.destroy() : null, | ||
suspended: this.suspended, | ||
onpeer: peer => this._handlePeer(peer, topic) | ||
@@ -397,0 +398,0 @@ }) |
@@ -9,3 +9,3 @@ const safetyCatch = require('safety-catch') | ||
module.exports = class PeerDiscovery { | ||
constructor (swarm, topic, { wait = null, onpeer = noop, onerror = safetyCatch }) { | ||
constructor (swarm, topic, { wait = null, suspended = false, onpeer = noop, onerror = safetyCatch }) { | ||
this.swarm = swarm | ||
@@ -17,3 +17,3 @@ this.topic = topic | ||
this.destroying = null | ||
this.suspended = false | ||
this.suspended = suspended | ||
@@ -20,0 +20,0 @@ this._sessions = [] |
{ | ||
"name": "hyperswarm", | ||
"version": "4.7.11", | ||
"version": "4.7.12", | ||
"description": "A distributed networking stack for connecting peers", | ||
@@ -5,0 +5,0 @@ "files": [ |
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
38034
862