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

cluster-key-slot

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cluster-key-slot - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2-p

14

lib/index.js

@@ -97,11 +97,9 @@ /*

if (start === -1 && char === 0x7B) {
start = i;
}
if (start > -1 && char !== 0x7B && char !== 0x7D) {
if (start === -1) {
if (char === 0x7B) {
start = i;
}
} else if (char !== 0x7D) {
resultHash = lookup[(char ^ (resultHash >> 8)) & 0xFF] ^ (resultHash << 8);
}
if (char === 0x7D && i - 1 > start) {
} else if (i - 1 !== start) {
return resultHash & 0x3FFF;

@@ -108,0 +106,0 @@ }

{
"name": "cluster-key-slot",
"version": "1.0.1",
"version": "1.0.2p",
"description": "Generates CRC hashes for strings - for use by node redis clients to determine key slots.",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

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