bloom-filters
Advanced tools
Comparing version 3.0.0 to 3.0.1
@@ -394,3 +394,3 @@ "use strict"; | ||
}); | ||
filter.seed = json.seed; | ||
filter.seed = json._seed; | ||
return filter; | ||
@@ -397,0 +397,0 @@ /* eslint-enable @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call */ |
{ | ||
"name": "bloom-filters", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "JS implementation of probabilistic data structures: Bloom Filter (and its derived), HyperLogLog, Count-Min Sketch, Top-K and MinHash", | ||
@@ -5,0 +5,0 @@ "main": "dist/api.js", |
@@ -99,3 +99,3 @@ /* file : cuckoo-filter.ts | ||
}) | ||
filter.seed = json.seed | ||
filter.seed = json._seed | ||
return filter | ||
@@ -102,0 +102,0 @@ /* eslint-enable @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call */ |
@@ -112,2 +112,3 @@ /* file : count-min-sketch-test.js | ||
const newSketch = CountMinSketch.fromJSON(exported) | ||
newSketch.seed.should.equal(sketch.seed) | ||
newSketch.columns.should.equal(sketch.columns) | ||
@@ -114,0 +115,0 @@ newSketch.rows.should.equal(sketch.rows) |
@@ -256,2 +256,3 @@ /* file : cuckoo-filter-test.js | ||
const newFilter = CuckooFilter.fromJSON(exported) | ||
newFilter.seed.should.equal(filter.seed) | ||
newFilter.size.should.equal(filter.size) | ||
@@ -258,0 +259,0 @@ newFilter.fingerprintLength.should.equal(filter.fingerprintLength) |
@@ -122,2 +122,3 @@ /* file : hyperloglog-test.js | ||
const newFilter = HyperLogLog.fromJSON(exported) | ||
newFilter.seed.should.equal(sketch.seed) | ||
newFilter._nbRegisters.should.equal(sketch._nbRegisters) | ||
@@ -124,0 +125,0 @@ newFilter._nbBytesPerHash.should.equal(sketch._nbBytesPerHash) |
@@ -154,2 +154,3 @@ /* file : bloom-filter-test.js | ||
iblt.equals(newIblt).should.equals(true) | ||
newIblt.seed.should.equal(iblt.seed) | ||
}) | ||
@@ -156,0 +157,0 @@ |
@@ -145,2 +145,3 @@ /* file : min-hash-test.js | ||
const newSet = MinHash.fromJSON(exported) | ||
newSet.seed.should.equal(mySet.seed) | ||
newSet._nbHashes.should.equal(mySet._nbHashes) | ||
@@ -147,0 +148,0 @@ newSet._hashFunctions.should.deep.equal(mySet._hashFunctions) |
@@ -143,2 +143,3 @@ /* file : partitioned-bloom-filter-test.js | ||
const newFilter = PartitionedBloomFilter.fromJSON(exported) | ||
newFilter.seed.should.equal(filter.seed) | ||
newFilter._capacity.should.equal(filter._capacity) | ||
@@ -145,0 +146,0 @@ newFilter._size.should.equal(filter._size) |
@@ -86,2 +86,3 @@ /* file : bloom-filter-test.js | ||
const imported = ScalableBloomFilter.fromJSON(exported) | ||
imported.seed.should.equal(filter.seed) | ||
imported.equals(filter).should.equal(true) | ||
@@ -88,0 +89,0 @@ for (let i = 0; i < 50; i++) { |
@@ -72,4 +72,5 @@ /* file : bloom-filter-test.js | ||
filter.equals(newFilter) | ||
filter.seed.should.equal(newFilter.seed) | ||
}) | ||
}) | ||
}) |
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
578964
13497