cluster-key-slot
Advanced tools
Comparing version 1.0.1 to 1.0.2-p
@@ -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", |
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
8822
1
1