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.5 to 0.0.6

9

bloomfilter.js

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

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

@@ -54,10 +55,10 @@

var l = this.locations(v),
n = l.length,
i = -1,
k = this.k,
m = this.m,
b,
buckets = this.buckets;
while (++i < n) {
while (++i < k) {
b = l[i];
if ((buckets[Math.floor(b / k)] & (1 << (b % k))) === 0) {
if ((buckets[Math.floor(b / m)] & (1 << (b % m))) === 0) {
return false;

@@ -64,0 +65,0 @@ }

{
"name": "bloomfilter",
"version": "0.0.5",
"version": "0.0.6",
"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