bloom-filters
Advanced tools
Comparing version 1.3.1 to 1.3.2
@@ -27,22 +27,22 @@ /* file : api.ts | ||
var bloom_filter_1 = require("./bloom/bloom-filter"); | ||
Object.defineProperty(exports, "BloomFilter", { enumerable: true, get: function () { return bloom_filter_1.default; } }); | ||
exports.BloomFilter = bloom_filter_1.default; | ||
var counting_bloom_filter_1 = require("./bloom/counting-bloom-filter"); | ||
Object.defineProperty(exports, "CountingBloomFilter", { enumerable: true, get: function () { return counting_bloom_filter_1.default; } }); | ||
exports.CountingBloomFilter = counting_bloom_filter_1.default; | ||
var partitioned_bloom_filter_1 = require("./bloom/partitioned-bloom-filter"); | ||
Object.defineProperty(exports, "PartitionedBloomFilter", { enumerable: true, get: function () { return partitioned_bloom_filter_1.default; } }); | ||
exports.PartitionedBloomFilter = partitioned_bloom_filter_1.default; | ||
var count_min_sketch_1 = require("./sketch/count-min-sketch"); | ||
Object.defineProperty(exports, "CountMinSketch", { enumerable: true, get: function () { return count_min_sketch_1.default; } }); | ||
exports.CountMinSketch = count_min_sketch_1.default; | ||
var hyperloglog_1 = require("./sketch/hyperloglog"); | ||
Object.defineProperty(exports, "HyperLogLog", { enumerable: true, get: function () { return hyperloglog_1.default; } }); | ||
exports.HyperLogLog = hyperloglog_1.default; | ||
var topk_1 = require("./sketch/topk"); | ||
Object.defineProperty(exports, "TopK", { enumerable: true, get: function () { return topk_1.default; } }); | ||
exports.TopK = topk_1.default; | ||
var min_hash_1 = require("./sketch/min-hash"); | ||
Object.defineProperty(exports, "MinHash", { enumerable: true, get: function () { return min_hash_1.MinHash; } }); | ||
exports.MinHash = min_hash_1.MinHash; | ||
var min_hash_factory_1 = require("./sketch/min-hash-factory"); | ||
Object.defineProperty(exports, "MinHashFactory", { enumerable: true, get: function () { return min_hash_factory_1.default; } }); | ||
exports.MinHashFactory = min_hash_factory_1.default; | ||
var cuckoo_filter_1 = require("./cuckoo/cuckoo-filter"); | ||
Object.defineProperty(exports, "CuckooFilter", { enumerable: true, get: function () { return cuckoo_filter_1.default; } }); | ||
exports.CuckooFilter = cuckoo_filter_1.default; | ||
var invertible_bloom_lookup_tables_1 = require("./iblt/invertible-bloom-lookup-tables"); | ||
Object.defineProperty(exports, "InvertibleBloomFilter", { enumerable: true, get: function () { return invertible_bloom_lookup_tables_1.default; } }); | ||
exports.InvertibleBloomFilter = invertible_bloom_lookup_tables_1.default; | ||
var cell_1 = require("./iblt/cell"); | ||
Object.defineProperty(exports, "Cell", { enumerable: true, get: function () { return cell_1.default; } }); | ||
exports.Cell = cell_1.default; |
@@ -24,2 +24,12 @@ /** | ||
get random(): () => number; | ||
/** | ||
* Save the current structure as a JSON object | ||
*/ | ||
saveAsJSON(): void; | ||
/** | ||
* Load an Object from a provided JSON object | ||
* @param json the JSON object to load | ||
* @return Return the Object loaded from the provided JSON object | ||
*/ | ||
static fromJSON(json: any): void; | ||
} |
@@ -25,19 +25,7 @@ /* file : base-filter.ts | ||
'use strict'; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; | ||
result["default"] = mod; | ||
return result; | ||
@@ -76,3 +64,3 @@ }; | ||
}, | ||
enumerable: false, | ||
enumerable: true, | ||
configurable: true | ||
@@ -88,7 +76,21 @@ }); | ||
}, | ||
enumerable: false, | ||
enumerable: true, | ||
configurable: true | ||
}); | ||
/** | ||
* Save the current structure as a JSON object | ||
*/ | ||
BaseFilter.prototype.saveAsJSON = function () { | ||
throw new Error('Not Implemented'); | ||
}; | ||
/** | ||
* Load an Object from a provided JSON object | ||
* @param json the JSON object to load | ||
* @return Return the Object loaded from the provided JSON object | ||
*/ | ||
BaseFilter.fromJSON = function (json) { | ||
throw new Error('Not Implemented'); | ||
}; | ||
return BaseFilter; | ||
}()); | ||
exports.default = BaseFilter; |
@@ -120,3 +120,3 @@ /* file : bloom-filter.ts | ||
}, | ||
enumerable: false, | ||
enumerable: true, | ||
configurable: true | ||
@@ -132,3 +132,3 @@ }); | ||
}, | ||
enumerable: false, | ||
enumerable: true, | ||
configurable: true | ||
@@ -135,0 +135,0 @@ }); |
@@ -117,3 +117,3 @@ /* file : counting-bloom-filter.ts | ||
}, | ||
enumerable: false, | ||
enumerable: true, | ||
configurable: true | ||
@@ -128,3 +128,3 @@ }); | ||
}, | ||
enumerable: false, | ||
enumerable: true, | ||
configurable: true | ||
@@ -131,0 +131,0 @@ }); |
@@ -160,3 +160,3 @@ /* file : partitioned-bloom-filter.ts | ||
}, | ||
enumerable: false, | ||
enumerable: true, | ||
configurable: true | ||
@@ -171,3 +171,3 @@ }); | ||
}, | ||
enumerable: false, | ||
enumerable: true, | ||
configurable: true | ||
@@ -182,3 +182,3 @@ }); | ||
}, | ||
enumerable: false, | ||
enumerable: true, | ||
configurable: true | ||
@@ -193,3 +193,3 @@ }); | ||
}, | ||
enumerable: false, | ||
enumerable: true, | ||
configurable: true | ||
@@ -196,0 +196,0 @@ }); |
@@ -25,14 +25,2 @@ /* file : bucket.ts | ||
'use strict'; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
@@ -44,9 +32,2 @@ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; | ||
}; | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
var __metadata = (this && this.__metadata) || function (k, v) { | ||
@@ -58,2 +39,9 @@ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); | ||
}; | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; | ||
result["default"] = mod; | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -89,3 +77,3 @@ var lodash_eq_1 = __importDefault(require("lodash.eq")); | ||
}, | ||
enumerable: false, | ||
enumerable: true, | ||
configurable: true | ||
@@ -100,3 +88,3 @@ }); | ||
}, | ||
enumerable: false, | ||
enumerable: true, | ||
configurable: true | ||
@@ -103,0 +91,0 @@ }); |
@@ -136,3 +136,3 @@ /* file : cuckoo-filter.ts | ||
}, | ||
enumerable: false, | ||
enumerable: true, | ||
configurable: true | ||
@@ -147,3 +147,3 @@ }); | ||
}, | ||
enumerable: false, | ||
enumerable: true, | ||
configurable: true | ||
@@ -158,3 +158,3 @@ }); | ||
}, | ||
enumerable: false, | ||
enumerable: true, | ||
configurable: true | ||
@@ -169,3 +169,3 @@ }); | ||
}, | ||
enumerable: false, | ||
enumerable: true, | ||
configurable: true | ||
@@ -180,3 +180,3 @@ }); | ||
}, | ||
enumerable: false, | ||
enumerable: true, | ||
configurable: true | ||
@@ -191,3 +191,3 @@ }); | ||
}, | ||
enumerable: false, | ||
enumerable: true, | ||
configurable: true | ||
@@ -194,0 +194,0 @@ }); |
@@ -46,3 +46,2 @@ /* file : exportable.ts | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.AutoExportable = exports.Parameter = exports.Field = exports.Exportable = exports.cloneObject = exports.cloneField = void 0; | ||
require("reflect-metadata"); | ||
@@ -49,0 +48,0 @@ /** |
@@ -26,3 +26,2 @@ /* file : formulas.ts | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.optimalHashes = exports.optimalFilterSize = void 0; | ||
/** | ||
@@ -29,0 +28,0 @@ * Various formulas used with Bloom Filters |
@@ -98,3 +98,3 @@ /* file: cell.ts | ||
}, | ||
enumerable: false, | ||
enumerable: true, | ||
configurable: true | ||
@@ -109,3 +109,3 @@ }); | ||
}, | ||
enumerable: false, | ||
enumerable: true, | ||
configurable: true | ||
@@ -120,3 +120,3 @@ }); | ||
}, | ||
enumerable: false, | ||
enumerable: true, | ||
configurable: true | ||
@@ -123,0 +123,0 @@ }); |
@@ -148,3 +148,3 @@ /* file : invertible-bloom-lookup-tables.ts | ||
}, | ||
enumerable: false, | ||
enumerable: true, | ||
configurable: true | ||
@@ -159,3 +159,3 @@ }); | ||
}, | ||
enumerable: false, | ||
enumerable: true, | ||
configurable: true | ||
@@ -171,3 +171,3 @@ }); | ||
}, | ||
enumerable: false, | ||
enumerable: true, | ||
configurable: true | ||
@@ -182,3 +182,3 @@ }); | ||
}, | ||
enumerable: false, | ||
enumerable: true, | ||
configurable: true | ||
@@ -185,0 +185,0 @@ }); |
@@ -139,3 +139,3 @@ /* file : count-min-sketch.ts | ||
}, | ||
enumerable: false, | ||
enumerable: true, | ||
configurable: true | ||
@@ -150,3 +150,3 @@ }); | ||
}, | ||
enumerable: false, | ||
enumerable: true, | ||
configurable: true | ||
@@ -161,3 +161,3 @@ }); | ||
}, | ||
enumerable: false, | ||
enumerable: true, | ||
configurable: true | ||
@@ -164,0 +164,0 @@ }); |
@@ -104,3 +104,3 @@ "use strict"; | ||
}, | ||
enumerable: false, | ||
enumerable: true, | ||
configurable: true | ||
@@ -107,0 +107,0 @@ }); |
@@ -74,3 +74,2 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.MinHash = void 0; | ||
var base_filter_1 = __importDefault(require("../base-filter")); | ||
@@ -130,3 +129,3 @@ var exportable_1 = require("../exportable"); | ||
}, | ||
enumerable: false, | ||
enumerable: true, | ||
configurable: true | ||
@@ -133,0 +132,0 @@ }); |
@@ -100,3 +100,3 @@ "use strict"; | ||
}, | ||
enumerable: false, | ||
enumerable: true, | ||
configurable: true | ||
@@ -111,3 +111,3 @@ }); | ||
}, | ||
enumerable: false, | ||
enumerable: true, | ||
configurable: true | ||
@@ -114,0 +114,0 @@ }); |
@@ -40,3 +40,2 @@ /* file : utils.ts | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.hex2bin = exports.power2 = exports.getDefaultSeed = exports.hashIntAndString = exports.hashAsString = exports.hashAsInt = exports.isEmptyBuffer = exports.xorBuffer = exports.randomInt = exports.getIndices = exports.getDistinctIndices = exports.doubleHashing = exports.allInOneHashTwice = exports.hashTwiceAsString = exports.hashTwice = exports.allocateArray = void 0; | ||
var xxhashjs_1 = __importDefault(require("xxhashjs")); | ||
@@ -43,0 +42,0 @@ /** |
{ | ||
"name": "bloom-filters", | ||
"version": "1.3.1", | ||
"version": "1.3.2", | ||
"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", |
@@ -67,2 +67,18 @@ /* file : base-filter.ts | ||
} | ||
/** | ||
* Save the current structure as a JSON object | ||
*/ | ||
saveAsJSON() { | ||
throw new Error('Not Implemented') | ||
} | ||
/** | ||
* Load an Object from a provided JSON object | ||
* @param json the JSON object to load | ||
* @return Return the Object loaded from the provided JSON object | ||
*/ | ||
static fromJSON(json: any) { | ||
throw new Error('Not Implemented') | ||
} | ||
} |
@@ -62,3 +62,3 @@ /* file : min-hash-test.js | ||
setB.forEach(value => secondSet.add(value)) | ||
firstSet.compareWith(secondSet).should.be.closeTo(jaccard(setA, setB), 0.1) | ||
firstSet.compareWith(secondSet).should.be.closeTo(jaccard(setA, setB), 0.2) | ||
}) | ||
@@ -73,3 +73,3 @@ }) | ||
secondSet.bulkLoad(setB) | ||
firstSet.compareWith(secondSet).should.be.closeTo(jaccard(setA, setB), 0.1) | ||
firstSet.compareWith(secondSet).should.be.closeTo(jaccard(setA, setB), 0.2) | ||
}) | ||
@@ -76,0 +76,0 @@ }) |
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
9954
439422