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 @@ |
{ | ||
"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": { |
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
50202
898