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

k-bucket

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

k-bucket - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

10

index.js

@@ -234,10 +234,8 @@ /*

for (var i=0; i < self.bucket.length; ++i) {
if (bufferEqual(self.bucket[i].id, id)) {
return self.bucket[i];
}
var index = self.indexOf({id: id}); // index of uses contact.id for matching
if (index < 0) {
return null; // contact not found
}
// we did not find the contact
return null;
return self.bucket[index];
};

@@ -244,0 +242,0 @@

2

package.json
{
"name": "k-bucket",
"version": "0.3.0",
"version": "0.3.1",
"description": "Kademlia DHT K-bucket implementation as a binary tree",

@@ -5,0 +5,0 @@ "scripts": {

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