consistent-hashing
Advanced tools
Comparing version 0.2.2 to 0.2.3
@@ -96,5 +96,3 @@ var crypto = require('crypto'); | ||
ConsistentHashing.prototype.getRingLength = function() { | ||
var i = 0; | ||
for (var key in this.ring) { i++ } | ||
return i; | ||
return Object.keys(this.ring).length; | ||
}; | ||
@@ -101,0 +99,0 @@ |
{ | ||
"name": "consistent-hashing", | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"description": "A pure JavaScript implementation of Consistent Hashing", | ||
@@ -5,0 +5,0 @@ "author": "Dai Akatsuka <d.akatsuka@gmail.com>", |
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
Non-existent author
Supply chain riskThe package was published by an npm account that no longer exists.
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
7799
156
1