Socket
Socket
Sign inDemoInstall

hyperswarm

Package Overview
Dependencies
Maintainers
4
Versions
88
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.6 to 4.7.7

7

lib/peer-discovery.js

@@ -191,3 +191,3 @@ const safetyCatch = require('safety-catch')

const nodes = this._closestNodes
let nodes = this._closestNodes

@@ -204,3 +204,4 @@ if (this._currentRefresh) {

if (this._closestNodes !== nodes) {
if (!nodes) nodes = this._closestNodes
else if (this._closestNodes !== nodes) {
for (const newer of this._closestNodes) {

@@ -215,3 +216,3 @@ for (const older of nodes) {

if (this._needsUnannounce) {
await this.swarm.dht.unannounce(this.topic, this.swarm.keyPair, { closestNodes: nodes, onlyClosestNodes: true })
if (nodes && nodes.length) await this.swarm.dht.unannounce(this.topic, this.swarm.keyPair, { closestNodes: nodes, onlyClosestNodes: true })
this._needsUnannounce = false

@@ -218,0 +219,0 @@ }

{
"name": "hyperswarm",
"version": "4.7.6",
"version": "4.7.7",
"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