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

bfilter

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bfilter - npm Package Compare versions

Comparing version 0.1.2 to 0.2.0

11

lib/rolling.js

@@ -11,2 +11,3 @@ /*!

const assert = require('assert');
const bio = require('bufio');
const murmur3 = require('mrmr');

@@ -54,3 +55,3 @@ const DUMMY = Buffer.alloc(0);

assert(typeof rate === 'number', '`rate` must be a number.');
assert(rate >= 0 && rate <= 1, '`rate` must be between 0.0 and 1.0.');
assert(rate > 0 && rate <= 1, '`rate` must be between 0.0 and 1.0.');

@@ -241,4 +242,4 @@ const logRate = Math.log(rate);

function read(data, off) {
const hi = data.readUInt32LE(off + 4, true);
const lo = data.readUInt32LE(off, true);
const hi = bio.readU32(data, off + 4);
const lo = bio.readU32(data, off);
return new U64(hi, lo);

@@ -248,4 +249,4 @@ }

function write(data, value, off) {
data.writeUInt32LE(value.hi, off + 4, true);
data.writeUInt32LE(value.lo, off, true);
bio.writeU32(data, value.hi, off + 4);
bio.writeU32(data, value.lo, off);
}

@@ -252,0 +253,0 @@

{
"name": "bfilter",
"version": "0.1.2",
"version": "0.2.0",
"description": "Bloom filters for javascript",

@@ -23,22 +23,23 @@ "keywords": [

"test": "mocha --reporter spec test/*-test.js",
"webpack": "webpack --config webpack.config.js"
"webpack": "webpack --mode production --config webpack.config.js"
},
"dependencies": {
"bufio": "~0.1.0",
"mrmr": "~0.0.1"
"bufio": "~0.2.0",
"mrmr": "~0.1.0"
},
"devDependencies": {
"babelify": "^8.0.0",
"babel-core": "^6.26.0",
"babel-core": "^6.26.3",
"babel-loader": "^7.1.4",
"babel-preset-env": "^1.6.1",
"browserify": "^16.1.1",
"eslint": "^4.18.2",
"mocha": "^5.0.4",
"uglifyjs-webpack-plugin": "^1.2.3",
"babel-preset-env": "^1.7.0",
"browserify": "^16.2.2",
"eslint": "^4.19.1",
"mocha": "^5.2.0",
"uglifyjs-webpack-plugin": "^1.2.5",
"uglify-es": "^3.3.9",
"webpack": "^4.1.1"
"webpack": "^4.11.1",
"webpack-cli": "^3.0.3"
},
"engines": {
"node": ">=7.6.0"
"node": ">=8.0.0"
},

@@ -45,0 +46,0 @@ "browserify": {

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