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

discovery-swarm

Package Overview
Dependencies
Maintainers
4
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

discovery-swarm - npm Package Compare versions

Comparing version 5.1.2 to 5.1.3

5

index.js

@@ -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 @@ }

3

package.json
{
"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",

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