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

mnemonist

Package Overview
Dependencies
Maintainers
1
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mnemonist - npm Package Compare versions

Comparing version 0.10.2 to 0.11.0

set.js

6

bloom-filter.js

@@ -65,3 +65,3 @@ /**

if (!capacityOrOptions)
throw new Error('BloomFilter.constructor: a BloomFilter must be created with a capacity.');
throw new Error('mnemonist/BloomFilter.constructor: a BloomFilter must be created with a capacity.');

@@ -75,3 +75,3 @@ if (typeof capacityOrOptions === 'object')

if (typeof options.capacity !== 'number' || options.capacity <= 0)
throw new Error('BloomFilter.constructor: `capacity` option should be a positive integer.');
throw new Error('mnemonist/BloomFilter.constructor: `capacity` option should be a positive integer.');

@@ -84,3 +84,3 @@ this.capacity = options.capacity;

if (typeof this.errorRate !== 'number' || options.errorRate <= 0)
throw new Error('BloomFilter.constructor: `errorRate` option should be a positive float.');
throw new Error('mnemonist/BloomFilter.constructor: `errorRate` option should be a positive float.');

@@ -87,0 +87,0 @@ this.clear();

# Changelog
## 0.11.0
* Adding bunch of set functions.
## 0.10.2

@@ -4,0 +8,0 @@

@@ -24,3 +24,3 @@ /* eslint no-constant-condition: 0 */

if (typeof this.comparator !== 'function')
throw new Error('FibonacciHeap.constructor: given comparator should be a function.');
throw new Error('mnemonist/FibonacciHeap.constructor: given comparator should be a function.');
}

@@ -278,3 +278,3 @@

if (typeof this.comparator !== 'function')
throw new Error('FibonacciHeap.constructor: given comparator should be a function.');
throw new Error('mnemonist/FibonacciHeap.constructor: given comparator should be a function.');

@@ -281,0 +281,0 @@ this.comparator = reverseComparator(this.comparator);

@@ -23,3 +23,3 @@ /**

if (typeof this.comparator !== 'function')
throw new Error('Heap.constructor: given comparator should be a function.');
throw new Error('mnemonist/Heap.constructor: given comparator should be a function.');
}

@@ -183,3 +183,3 @@

if (typeof this.comparator !== 'function')
throw new Error('Heap.constructor: given comparator should be a function.');
throw new Error('mnemonist/Heap.constructor: given comparator should be a function.');

@@ -186,0 +186,0 @@ this.comparator = reverseComparator(this.comparator);

{
"name": "mnemonist",
"version": "0.10.2",
"version": "0.11.0",
"description": "Curated collection of data structures for the JavaScript language.",

@@ -5,0 +5,0 @@ "main": "endpoint.js",

@@ -55,6 +55,9 @@ /**

// The target is a plain object
for (k in target)
callback(target[k], k);
for (k in target) {
if (target.hasOwnProperty(k)) {
callback(target[k], k);
}
}
return;
};
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