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

hyperswarm

Package Overview
Dependencies
Maintainers
4
Versions
90
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hyperswarm - npm Package Compare versions

Comparing version 4.7.10 to 4.7.11

15

lib/peer-discovery.js

@@ -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": [

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