hyperswarm
Advanced tools
Comparing version 4.7.10 to 4.7.11
@@ -205,7 +205,5 @@ const safetyCatch = require('safety-catch') | ||
else if (this._closestNodes !== nodes) { | ||
const len = nodes.length | ||
for (const newer of this._closestNodes) { | ||
for (const older of nodes) { | ||
if (!older.id || !newer.id || b4a.equals(older.id, newer.id)) continue | ||
nodes.push(newer) | ||
} | ||
if (newer.id && !hasNode(nodes, len, newer)) nodes.push(newer) | ||
} | ||
@@ -292,2 +290,11 @@ } | ||
function hasNode (nodes, len, node) { | ||
for (let i = 0; i < len; i++) { | ||
const existing = nodes[i] | ||
if (existing.id && b4a.equals(existing.id, node.id)) return true | ||
} | ||
return false | ||
} | ||
function noop () {} |
{ | ||
"name": "hyperswarm", | ||
"version": "4.7.10", | ||
"version": "4.7.11", | ||
"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
37978
861