discovery-swarm
Advanced tools
Comparing version 5.1.2 to 5.1.3
@@ -6,3 +6,2 @@ var discovery = require('discovery-channel') | ||
var net = require('net') | ||
var equals = require('buffer-equals') | ||
var toBuffer = require('to-buffer') | ||
@@ -143,3 +142,3 @@ var crypto = require('crypto') | ||
for (var i = 0; i < this._adding.length; i++) { | ||
if (equals(this._adding[i].name, name)) { | ||
if (Buffer.equals(this._adding[i].name, name)) { | ||
this._adding.splice(i, 1) | ||
@@ -150,3 +149,3 @@ return | ||
} else { | ||
this._discovery.leave(name, this.address().port) | ||
this._discovery.leave(name, this.address() ? this.address().port : 0) | ||
} | ||
@@ -153,0 +152,0 @@ } |
{ | ||
"name": "discovery-swarm", | ||
"version": "5.1.2", | ||
"version": "5.1.3", | ||
"description": "A network swarm that uses discovery-channel to find peers", | ||
"main": "index.js", | ||
"dependencies": { | ||
"buffer-equals": "^1.0.3", | ||
"connections": "^1.4.2", | ||
@@ -9,0 +8,0 @@ "debug": "^3.1.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
7
27257
634
- Removedbuffer-equals@^1.0.3