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

bloomfilter

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bloomfilter - npm Package Compare versions

Comparing version 0.0.8 to 0.0.9

6

bloomfilter.js

@@ -48,5 +48,4 @@ (function(exports) {

k = this.k,
m = this.m,
buckets = this.buckets;
while (++i < k) buckets[Math.floor(l[i] / m)] |= 1 << (l[i] % m);
while (++i < k) buckets[Math.floor(l[i] / 32)] |= 1 << (l[i] % 32);
};

@@ -58,3 +57,2 @@

k = this.k,
m = this.m,
b,

@@ -64,3 +62,3 @@ buckets = this.buckets;

b = l[i];
if ((buckets[Math.floor(b / m)] & (1 << (b % m))) === 0) {
if ((buckets[Math.floor(b / 32)] & (1 << (b % 32))) === 0) {
return false;

@@ -67,0 +65,0 @@ }

{
"name": "bloomfilter",
"version": "0.0.8",
"version": "0.0.9",
"description": "Fast bloom filter in JavaScript.",

@@ -5,0 +5,0 @@ "keywords": [

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