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

zcache

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zcache - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

9

lib/ConsistentHasher.js

@@ -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 = []

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