New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

consistent-hashing

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

consistent-hashing - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

.npmignore

4

lib/consistent_hashing.js

@@ -67,3 +67,3 @@ var crypto = require('crypto');

ConsistentHashing.prototype.getNodePosition = function(hash) {
var upper = this.getRingLength();
var upper = this.getRingLength() - 1;
var lower = 0;

@@ -88,3 +88,3 @@ var idx = 0;

if (upper < 0) {
upper = this.getRingLength();
upper = this.getRingLength() - 1;
}

@@ -91,0 +91,0 @@

{
"name": "consistent-hashing",
"version": "0.2.0",
"version": "0.2.1",
"description": "A pure JavaScript implementation of Consistent Hashing",

@@ -5,0 +5,0 @@ "author": "Dai Akatsuka <d.akatsuka@gmail.com>",

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