Comparing version 0.0.5 to 0.0.6
@@ -50,4 +50,7 @@ var crypto = require('crypto') | ||
for (i = 0; i < keys.length; i++) { | ||
results[keys[i]] = [] | ||
hashMapping[this._generateHash(keys[i])] = keys[i] | ||
key = keys[i] | ||
results[key] = [] | ||
if (typeof key === 'string') { | ||
hashMapping[this._generateHash(keys[i])] = key | ||
} | ||
} | ||
@@ -62,3 +65,3 @@ | ||
idx = hashResults[hash] | ||
var key = hashMapping[hash] | ||
key = hashMapping[hash] | ||
var foundNodes = {} | ||
@@ -65,0 +68,0 @@ |
{ | ||
"name": "zcache" | ||
, "description": "AWS zone-aware caching" | ||
, "version": "0.0.5" | ||
, "version": "0.0.6" | ||
, "homepage": "https://github.com/azulus/zcache" | ||
@@ -6,0 +6,0 @@ , "authors": [ |
@@ -9,2 +9,10 @@ var Q = require('kew') | ||
exports.testBadKey = function (test) { | ||
this.hasher.setNodeCapacity('first', 10) | ||
this.hasher.setNodeCapacity('second', 10) | ||
this.hasher.getNodesForKeys([undefined, null, 'abc', 123, {name: 'jeremy'}]) | ||
test.done() | ||
} | ||
exports.testSimple = function (test) { | ||
@@ -11,0 +19,0 @@ var keys = [] |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
44315
798
0