Comparing version 0.10.2 to 0.11.0
@@ -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; | ||
}; |
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
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
97380
24
3703