@waku/sds 0.0.2-c41b319.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ {"program":{"fileNames":["../../../node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/typescript/lib/lib.es2021.d.ts","../../../node_modules/typescript/lib/lib.es2022.d.ts","../../../node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../node_modules/typescript/lib/lib.es2021.string.d.ts","../../../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../node_modules/typescript/lib/lib.es2022.array.d.ts","../../../node_modules/typescript/lib/lib.es2022.error.d.ts","../../../node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../node_modules/typescript/lib/lib.es2022.object.d.ts","../../../node_modules/typescript/lib/lib.es2022.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2022.string.d.ts","../../../node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../src/nim_hashn/nim_hashn.mjs.d.ts","../src/probabilities.ts","../src/bloom.ts","../src/index.ts","../../../node_modules/@noble/hashes/utils.d.ts","../../../node_modules/@noble/hashes/_md.d.ts","../../../node_modules/@noble/hashes/sha256.d.ts","../../../node_modules/protons-runtime/dist/src/codec.d.ts","../../../node_modules/uint8arraylist/dist/src/index.d.ts","../../../node_modules/protons-runtime/dist/src/decode.d.ts","../../../node_modules/protons-runtime/dist/src/encode.d.ts","../../../node_modules/protons-runtime/dist/src/codecs/enum.d.ts","../../../node_modules/protons-runtime/dist/src/codecs/message.d.ts","../../../node_modules/protons-runtime/dist/src/utils/reader.d.ts","../../../node_modules/protons-runtime/dist/src/utils/writer.d.ts","../../../node_modules/protons-runtime/dist/src/index.d.ts","../../proto/dist/generated/message.d.ts","../../proto/dist/generated/filter.d.ts","../../proto/dist/generated/topic_only_message.d.ts","../../proto/dist/generated/filter_v2.d.ts","../../proto/dist/generated/light_push.d.ts","../../proto/dist/generated/store_v3.d.ts","../../proto/dist/generated/peer_exchange.d.ts","../../proto/dist/generated/metadata.d.ts","../../proto/dist/generated/sds_message.d.ts","../../proto/dist/index.d.ts","../src/sds.ts","../src/nim_hashn/nim_hashn.mjs","../../../node_modules/@types/node/compatibility/disposable.d.ts","../../../node_modules/@types/node/compatibility/indexable.d.ts","../../../node_modules/@types/node/compatibility/iterators.d.ts","../../../node_modules/@types/node/compatibility/index.d.ts","../../../node_modules/@types/node/ts5.6/globals.typedarray.d.ts","../../../node_modules/@types/node/ts5.6/buffer.buffer.d.ts","../../../node_modules/buffer/index.d.ts","../../../node_modules/undici-types/header.d.ts","../../../node_modules/undici-types/readable.d.ts","../../../node_modules/undici-types/file.d.ts","../../../node_modules/undici-types/fetch.d.ts","../../../node_modules/undici-types/formdata.d.ts","../../../node_modules/undici-types/connector.d.ts","../../../node_modules/undici-types/client.d.ts","../../../node_modules/undici-types/errors.d.ts","../../../node_modules/undici-types/dispatcher.d.ts","../../../node_modules/undici-types/global-dispatcher.d.ts","../../../node_modules/undici-types/global-origin.d.ts","../../../node_modules/undici-types/pool-stats.d.ts","../../../node_modules/undici-types/pool.d.ts","../../../node_modules/undici-types/handlers.d.ts","../../../node_modules/undici-types/balanced-pool.d.ts","../../../node_modules/undici-types/agent.d.ts","../../../node_modules/undici-types/mock-interceptor.d.ts","../../../node_modules/undici-types/mock-agent.d.ts","../../../node_modules/undici-types/mock-client.d.ts","../../../node_modules/undici-types/mock-pool.d.ts","../../../node_modules/undici-types/mock-errors.d.ts","../../../node_modules/undici-types/proxy-agent.d.ts","../../../node_modules/undici-types/env-http-proxy-agent.d.ts","../../../node_modules/undici-types/retry-handler.d.ts","../../../node_modules/undici-types/retry-agent.d.ts","../../../node_modules/undici-types/api.d.ts","../../../node_modules/undici-types/interceptors.d.ts","../../../node_modules/undici-types/util.d.ts","../../../node_modules/undici-types/cookies.d.ts","../../../node_modules/undici-types/patch.d.ts","../../../node_modules/undici-types/websocket.d.ts","../../../node_modules/undici-types/eventsource.d.ts","../../../node_modules/undici-types/filereader.d.ts","../../../node_modules/undici-types/diagnostics-channel.d.ts","../../../node_modules/undici-types/content-type.d.ts","../../../node_modules/undici-types/cache.d.ts","../../../node_modules/undici-types/index.d.ts","../../../node_modules/@types/node/globals.d.ts","../../../node_modules/@types/node/assert.d.ts","../../../node_modules/@types/node/assert/strict.d.ts","../../../node_modules/@types/node/async_hooks.d.ts","../../../node_modules/@types/node/buffer.d.ts","../../../node_modules/@types/node/child_process.d.ts","../../../node_modules/@types/node/cluster.d.ts","../../../node_modules/@types/node/console.d.ts","../../../node_modules/@types/node/constants.d.ts","../../../node_modules/@types/node/crypto.d.ts","../../../node_modules/@types/node/dgram.d.ts","../../../node_modules/@types/node/diagnostics_channel.d.ts","../../../node_modules/@types/node/dns.d.ts","../../../node_modules/@types/node/dns/promises.d.ts","../../../node_modules/@types/node/domain.d.ts","../../../node_modules/@types/node/dom-events.d.ts","../../../node_modules/@types/node/events.d.ts","../../../node_modules/@types/node/fs.d.ts","../../../node_modules/@types/node/fs/promises.d.ts","../../../node_modules/@types/node/http.d.ts","../../../node_modules/@types/node/http2.d.ts","../../../node_modules/@types/node/https.d.ts","../../../node_modules/@types/node/inspector.d.ts","../../../node_modules/@types/node/module.d.ts","../../../node_modules/@types/node/net.d.ts","../../../node_modules/@types/node/os.d.ts","../../../node_modules/@types/node/path.d.ts","../../../node_modules/@types/node/perf_hooks.d.ts","../../../node_modules/@types/node/process.d.ts","../../../node_modules/@types/node/punycode.d.ts","../../../node_modules/@types/node/querystring.d.ts","../../../node_modules/@types/node/readline.d.ts","../../../node_modules/@types/node/readline/promises.d.ts","../../../node_modules/@types/node/repl.d.ts","../../../node_modules/@types/node/sea.d.ts","../../../node_modules/@types/node/sqlite.d.ts","../../../node_modules/@types/node/stream.d.ts","../../../node_modules/@types/node/stream/promises.d.ts","../../../node_modules/@types/node/stream/consumers.d.ts","../../../node_modules/@types/node/stream/web.d.ts","../../../node_modules/@types/node/string_decoder.d.ts","../../../node_modules/@types/node/test.d.ts","../../../node_modules/@types/node/timers.d.ts","../../../node_modules/@types/node/timers/promises.d.ts","../../../node_modules/@types/node/tls.d.ts","../../../node_modules/@types/node/trace_events.d.ts","../../../node_modules/@types/node/tty.d.ts","../../../node_modules/@types/node/url.d.ts","../../../node_modules/@types/node/util.d.ts","../../../node_modules/@types/node/v8.d.ts","../../../node_modules/@types/node/vm.d.ts","../../../node_modules/@types/node/wasi.d.ts","../../../node_modules/@types/node/worker_threads.d.ts","../../../node_modules/@types/node/zlib.d.ts","../../../node_modules/@types/node/ts5.6/index.d.ts","../../../node_modules/@types/mocha/index.d.ts"],"fileInfos":[{"version":"824cb491a40f7e8fdeb56f1df5edf91b23f3e3ee6b4cde84d4a99be32338faee","affectsGlobalScope":true},"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","9a68c0c07ae2fa71b44384a839b7b8d81662a236d4b9ac30916718f7510b1b2d","5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","5514e54f17d6d74ecefedc73c504eadffdeda79c7ea205cf9febead32d45c4bc",{"version":"87d693a4920d794a73384b3c779cadcb8548ac6945aa7a925832fe2418c9527a","affectsGlobalScope":true},{"version":"138fb588d26538783b78d1e3b2c2cc12d55840b97bf5e08bca7f7a174fbe2f17","affectsGlobalScope":true},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true},{"version":"4443e68b35f3332f753eacc66a04ac1d2053b8b035a0e0ac1d455392b5e243b3","affectsGlobalScope":true},{"version":"bc47685641087c015972a3f072480889f0d6c65515f12bd85222f49a98952ed7","affectsGlobalScope":true},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true},{"version":"93495ff27b8746f55d19fcbcdbaccc99fd95f19d057aed1bd2c0cafe1335fbf0","affectsGlobalScope":true},{"version":"6fc23bb8c3965964be8c597310a2878b53a0306edb71d4b5a4dfe760186bcc01","affectsGlobalScope":true},{"version":"ea011c76963fb15ef1cdd7ce6a6808b46322c527de2077b6cfdf23ae6f5f9ec7","affectsGlobalScope":true},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true},{"version":"bb42a7797d996412ecdc5b2787720de477103a0b2e53058569069a0e2bae6c7e","affectsGlobalScope":true},{"version":"4738f2420687fd85629c9efb470793bb753709c2379e5f85bc1815d875ceadcd","affectsGlobalScope":true},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true},{"version":"9fc46429fbe091ac5ad2608c657201eb68b6f1b8341bd6d670047d32ed0a88fa","affectsGlobalScope":true},{"version":"61c37c1de663cf4171e1192466e52c7a382afa58da01b1dc75058f032ddf0839","affectsGlobalScope":true},{"version":"b541a838a13f9234aba650a825393ffc2292dc0fc87681a5d81ef0c96d281e7a","affectsGlobalScope":true},{"version":"b20fe0eca9a4e405f1a5ae24a2b3290b37cf7f21eba6cbe4fc3fab979237d4f3","affectsGlobalScope":true},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true},{"version":"49ed889be54031e1044af0ad2c603d627b8bda8b50c1a68435fe85583901d072","affectsGlobalScope":true},{"version":"e93d098658ce4f0c8a0779e6cab91d0259efb88a318137f686ad76f8410ca270","affectsGlobalScope":true},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true},{"version":"bf14a426dbbf1022d11bd08d6b8e709a2e9d246f0c6c1032f3b2edb9a902adbe","affectsGlobalScope":true},{"version":"5e07ed3809d48205d5b985642a59f2eba47c402374a7cf8006b686f79efadcbd","affectsGlobalScope":true},{"version":"2b72d528b2e2fe3c57889ca7baef5e13a56c957b946906d03767c642f386bbc3","affectsGlobalScope":true},{"version":"8073890e29d2f46fdbc19b8d6d2eb9ea58db9a2052f8640af20baff9afbc8640","affectsGlobalScope":true},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true},{"version":"51e547984877a62227042850456de71a5c45e7fe86b7c975c6e68896c86fa23b","affectsGlobalScope":true},{"version":"956d27abdea9652e8368ce029bb1e0b9174e9678a273529f426df4b3d90abd60","affectsGlobalScope":true},{"version":"4fa6ed14e98aa80b91f61b9805c653ee82af3502dc21c9da5268d3857772ca05","affectsGlobalScope":true},{"version":"e6633e05da3ff36e6da2ec170d0d03ccf33de50ca4dc6f5aeecb572cedd162fb","affectsGlobalScope":true},{"version":"d8670852241d4c6e03f2b89d67497a4bbefe29ecaa5a444e2c11a9b05e6fccc6","affectsGlobalScope":true},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true},{"version":"caccc56c72713969e1cfe5c3d44e5bab151544d9d2b373d7dbe5a1e4166652be","affectsGlobalScope":true},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true},{"version":"50d53ccd31f6667aff66e3d62adf948879a3a16f05d89882d1188084ee415bbc","affectsGlobalScope":true},{"version":"33358442698bb565130f52ba79bfd3d4d484ac85fe33f3cb1759c54d18201393","affectsGlobalScope":true},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true},"7b45dadaf995d67b156f2f01aa4bf176903e45233ebc48ca9faccf35188fe076",{"version":"f33914752ace04d12fe05a0af671b07350a73bb2c0f862a45c179b4b0fad7bce","signature":"8559244d350f56ccebd44938ca03c249b3ba51fc093f2583fa5c12110b7012dd"},{"version":"c3fa361927070a9a3b3e82a0ec524aff13d0b3a36aa49edd3dde061e6205865c","signature":"4c94ccf15375d40c0fae342e0b775ae63b7c6a47590667bc4b916ff776d91c25"},{"version":"b5cf9b88e100b3ffc715874a40c4e689d56b32defda133c429ba52af87820afe","signature":"79dc41a99830c1e1d9a1739569ee0a1222d10dd280136d218a35f0e683945c45"},"de6166d1f3098af78fe1bd1206e875fd1f02b19eb6bef83431467aff80731380","4bc1b3495cfec279d9c4f1e01d9289d2a31b59bfcae9d59d0d1f944448e08805","180467ed987aa942e66b2673206debf3c42b25445184551dc3d35eebe5f4b5f5","6d268309f0e15dd820b2df9806234166554cb4e2fe00d11737adcb4e5489f700","d35b5db21a04a45ae6323c4d4b25acc983dfe2870fc670fd05249eb19d839a5e","58cf96187feb10cc8ad3bb080871cd30888ef63bc5db131f11458850ef8f6245","9102986ff52326a2016e8cddc1cf3092f0808ac916dcc8dc2d2c7195cd181987","fa82b7b22d9df87323e31e9e2ad75911028f3e544647fd212424b3c4452fee3f","01f20dac9dc14f0d306e5d1215c5c1c3b4d1805905e60ae92fabac4031eae7da","9ceec2a882368c0160a8a3879aa0efce0fb985751fc23ff6191006030969cfa4","cad5d6451789234434c28dd2d6a8267b0d64c479b1ad267321faa31ba90d570b","6516fc98fa10b0cb22c7e332bacea4a7ea80257e113f6cdddd924d03bfde218e","13122c2f3f51d08b986460444b9860d00fd38fee39e862ad6d61bf873525ae0a","88c836190daddad5257c0963159a2cd9ced899f7a3262271583703034caba890","ba7c356f3fa418d4486b3b4e405c01c6d529c274e1e877b98166c46dd7cc0f0d","433b9953d8e0864997b5aaf7cc102f80c98304758244731c3fd0a5d6d645033c","366563a75f042b1a7c61d504a90a8a79810c694e445f038310303f232b6dc89a","f9facf2db5c46c5524f53472e03169f3e13e4f83ee14b98d46248c76146fca14","2945b371f6e04c29e3f96b611ecbf7ed75e172f8aeb603aee5e50510b4bc68a7","1ddbb5149b9d13b2c0441835f41a1b20561339264b05c6902966fc698d7d2863","28d51f937939edd0bd0dc8c63b5d0e57cd6082381cf98d5df941d9efc485d175","3f55047f1cd741d4abdbc4c8aafec026521a2c8dcad872dc99162b6eefb4e4a6",{"version":"d9e5757389f968ecae9167488547fd7fb99a37b0eb043fb8eab51175f384a359","signature":"f705d6d929fae855b3af686f3f1a29fe4310fa0b12ba44905053481e10aa7046"},{"version":"8cde84dd9b2725de0cbe54aa044b40921fa3d751b175a8503cea0f08330a80a7","signature":"7e477b06ac34b6ba360319bc93d834e48abc5d042b2f49c79fa2abce5496424e"},{"version":"70521b6ab0dcba37539e5303104f29b721bfb2940b2776da4cc818c07e1fefc1","affectsGlobalScope":true},{"version":"030e350db2525514580ed054f712ffb22d273e6bc7eddc1bb7eda1e0ba5d395e","affectsGlobalScope":true},{"version":"d153a11543fd884b596587ccd97aebbeed950b26933ee000f94009f1ab142848","affectsGlobalScope":true},"21d819c173c0cf7cc3ce57c3276e77fd9a8a01d35a06ad87158781515c9a438a",{"version":"613b21ccdf3be6329d56e6caa13b258c842edf8377be7bc9f014ed14cdcfc308","affectsGlobalScope":true},{"version":"2d1319e6b5d0efd8c5eae07eb864a00102151e8b9afddd2d45db52e9aae002c4","affectsGlobalScope":true},"4967529644e391115ca5592184d4b63980569adf60ee685f968fd59ab1557188","5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","24bd580b5743dc56402c440dc7f9a4f5d592ad7a419f25414d37a7bfe11e342b","25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","c464d66b20788266e5353b48dc4aa6bc0dc4a707276df1e7152ab0c9ae21fad8","78d0d27c130d35c60b5e5566c9f1e5be77caf39804636bc1a40133919a949f21","c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","1d6e127068ea8e104a912e42fc0a110e2aa5a66a356a917a163e8cf9a65e4a75","5ded6427296cdf3b9542de4471d2aa8d3983671d4cac0f4bf9c637208d1ced43","6bdc71028db658243775263e93a7db2fd2abfce3ca569c3cca5aee6ed5eb186d","cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","0b8a9268adaf4da35e7fa830c8981cfa22adbbe5b3f6f5ab91f6658899e657a7","11396ed8a44c02ab9798b7dca436009f866e8dae3c9c25e8c1fbc396880bf1bb","ba7bc87d01492633cb5a0e5da8a4a42a1c86270e7b3d2dea5d156828a84e4882","4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","c21dc52e277bcfc75fac0436ccb75c204f9e1b3fa5e12729670910639f27343e","13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","ea0148f897b45a76544ae179784c95af1bd6721b8610af9ffa467a518a086a43","24c6a117721e606c9984335f71711877293a9651e44f59f3d21c1ea0856f9cc9","dd3273ead9fbde62a72949c97dbec2247ea08e0c6952e701a483d74ef92d6a17","405822be75ad3e4d162e07439bac80c6bcc6dbae1929e179cf467ec0b9ee4e2e","0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","e61be3f894b41b7baa1fbd6a66893f2579bfad01d208b4ff61daef21493ef0a8","bd0532fd6556073727d28da0edfd1736417a3f9f394877b6d5ef6ad88fba1d1a","89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","615ba88d0128ed16bf83ef8ccbb6aff05c3ee2db1cc0f89ab50a4939bfc1943f","a4d551dbf8746780194d550c88f26cf937caf8d56f102969a110cfaed4b06656","8bd86b8e8f6a6aa6c49b71e14c4ffe1211a0e97c80f08d2c8cc98838006e4b88","317e63deeb21ac07f3992f5b50cdca8338f10acd4fbb7257ebf56735bf52ab00","4732aec92b20fb28c5fe9ad99521fb59974289ed1e45aecb282616202184064f","2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","bf67d53d168abc1298888693338cb82854bdb2e69ef83f8a0092093c2d562107",{"version":"d2bc987ae352271d0d615a420dcf98cc886aa16b87fb2b569358c1fe0ca0773d","affectsGlobalScope":true},"f52e8dacc97d71dcc96af29e49584353f9c54cb916d132e3e768d8b8129c928d","7394959e5a741b185456e1ef5d64599c36c60a323207450991e7a42e08911419","76103716ba397bbb61f9fa9c9090dca59f39f9047cb1352b2179c5d8e7f4e8d0",{"version":"53eac70430b30089a3a1959d8306b0f9cfaf0de75224b68ef25243e0b5ad1ca3","affectsGlobalScope":true},"4314c7a11517e221f7296b46547dbc4df047115b182f544d072bdccffa57fc72","115971d64632ea4742b5b115fb64ed04bcaae2c3c342f13d9ba7e3f9ee39c4e7",{"version":"c2510f124c0293ab80b1777c44d80f812b75612f297b9857406468c0f4dafe29","affectsGlobalScope":true},"a40826e8476694e90da94aa008283a7de50d1dafd37beada623863f1901cb7fb",{"version":"86956cc2eb9dd371d6fab493d326a574afedebf76eef3fa7833b8e0d9b52d6f1","affectsGlobalScope":true},"91c1a729db5b28b2fc32bafa7a53611d417bc3f03f649278d4fd948aa4dec898","e6f5a38687bebe43a4cef426b69d34373ef68be9a6b1538ec0a371e69f309354","a6bf63d17324010ca1fbf0389cab83f93389bb0b9a01dc8a346d092f65b3605f","e009777bef4b023a999b2e5b9a136ff2cde37dc3f77c744a02840f05b18be8ff","1e0d1f8b0adfa0b0330e028c7941b5a98c08b600efe7f14d2d2a00854fb2f393",{"version":"ee1ee365d88c4c6c0c0a5a5701d66ebc27ccd0bcfcfaa482c6e2e7fe7b98edf7","affectsGlobalScope":true},{"version":"88bc59b32d0d5b4e5d9632ac38edea23454057e643684c3c0b94511296f2998c","affectsGlobalScope":true},"1ff5a53a58e756d2661b73ba60ffe274231a4432d21f7a2d0d9e4f6aa99f4283","eaf9ee1d90a35d56264f0bf39842282c58b9219e112ac7d0c1bce98c6c5da672","c15c4427ae7fd1dcd7f312a8a447ac93581b0d4664ddf151ecd07de4bf2bb9d7","5135bdd72cc05a8192bd2e92f0914d7fc43ee077d1293dc622a049b7035a0afb","4f80de3a11c0d2f1329a72e92c7416b2f7eab14f67e92cac63bb4e8d01c6edc8","6d386bc0d7f3afa1d401afc3e00ed6b09205a354a9795196caed937494a713e6",{"version":"c72ccc191348ac1933226cab7a814cfda8b29a827d1df5dbebfe516a6fd734a8","affectsGlobalScope":true},"8bea55446a296d289fbc762f61954a0e3e38ffbcacc06e47e0cba491030e3235","b1b6ee0d012aeebe11d776a155d8979730440082797695fc8e2a5c326285678f","45875bcae57270aeb3ebc73a5e3fb4c7b9d91d6b045f107c1d8513c28ece71c0",{"version":"3eb62baae4df08c9173e6903d3ca45942ccec8c3659b0565684a75f3292cffbb","affectsGlobalScope":true},{"version":"42aaa94addeed66a04b61e433c14e829c43d1efd653cf2fda480c5fb3d722ed8","affectsGlobalScope":true},"3f16a7e4deafa527ed9995a772bb380eb7d3c2c0fd4ae178c5263ed18394db2c","c6b4e0a02545304935ecbf7de7a8e056a31bb50939b5b321c9d50a405b5a0bba","fab29e6d649aa074a6b91e3bdf2bff484934a46067f6ee97a30fcd9762ae2213","8145e07aad6da5f23f2fcd8c8e4c5c13fb26ee986a79d03b0829b8fce152d8b2","e1120271ebbc9952fdc7b2dd3e145560e52e06956345e6fdf91d70ca4886464f","15c5e91b5f08be34a78e3d976179bf5b7a9cc28dc0ef1ffebffeb3c7812a2dca","d63ff33a2fa221b36a4da0dd5a3dad3156f3dd0fe1baf43a186e607d4ba5af99","553870e516f8c772b89f3820576152ebc70181d7994d96917bb943e37da7f8a7","37ba7b45141a45ce6e80e66f2a96c8a5ab1bcef0fc2d0f56bb58df96ec67e972","93452d394fdd1dc551ec62f5042366f011a00d342d36d50793b3529bfc9bd633",{"version":"745c4240220559bd340c8aeb6e3c5270a709d3565e934dc22a69c304703956bc","affectsGlobalScope":true},"2754d8221d77c7b382096651925eb476f1066b3348da4b73fe71ced7801edada",{"version":"9212c6e9d80cb45441a3614e95afd7235a55a18584c2ed32d6c1aca5a0c53d93","affectsGlobalScope":true},{"version":"bef91efa0baea5d0e0f0f27b574a8bc100ce62a6d7e70220a0d58af6acab5e89","affectsGlobalScope":true},"282fd2a1268a25345b830497b4b7bf5037a5e04f6a9c44c840cb605e19fea841","5360a27d3ebca11b224d7d3e38e3e2c63f8290cb1fcf6c3610401898f8e68bc3","66ba1b2c3e3a3644a1011cd530fb444a96b1b2dfe2f5e837a002d41a1a799e60","7e514f5b852fdbc166b539fdd1f4e9114f29911592a5eb10a94bb3a13ccac3c4",{"version":"7d6ff413e198d25639f9f01f16673e7df4e4bd2875a42455afd4ecc02ef156da","affectsGlobalScope":true},{"version":"1f58ebc40c84046ba4c25cf7e86e1ae92c3f064fb641af6c46a5acebf0b8b20b","affectsGlobalScope":true},"f689c4237b70ae6be5f0e4180e8833f34ace40529d1acc0676ab8fb8f70457d7","ae25afbbf1ed5df63a177d67b9048bf7481067f1b8dc9c39212e59db94fc9fc6","ac5ed35e649cdd8143131964336ab9076937fa91802ec760b3ea63b59175c10a",{"version":"52a8e7e8a1454b6d1b5ad428efae3870ffc56f2c02d923467f2940c454aa9aec","affectsGlobalScope":true},"78dc0513cc4f1642906b74dda42146bcbd9df7401717d6e89ea6d72d12ecb539","171fd8807643c46a9d17e843959abdf10480d57d60d38d061fb44a4c8d4a8cc4",{"version":"29f72ec1289ae3aeda78bf14b38086d3d803262ac13904b400422941a26a3636","affectsGlobalScope":true}],"root":[[59,62],85,86],"options":{"allowJs":true,"alwaysStrict":true,"declaration":true,"esModuleInterop":true,"module":99,"noFallthroughCasesInSwitch":true,"noImplicitAny":true,"noImplicitReturns":true,"noImplicitThis":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","rootDir":"../src","skipLibCheck":true,"sourceMap":true,"strict":true,"strictFunctionTypes":true,"strictNullChecks":true,"strictPropertyInitialization":true,"target":9,"tsBuildInfoFile":"./.tsbuildinfo"},"fileIdsList":[[63,92,135],[63,64,92,135],[92,135],[92,132,135],[92,134,135],[92,135,140,170],[92,135,136,141,147,148,155,167,178],[92,135,136,137,147,155],[87,88,89,92,135],[92,135,138,179],[92,135,139,140,148,156],[92,135,140,167,175],[92,135,141,143,147,155],[92,134,135,142],[92,135,143,144],[92,135,147],[92,135,145,147],[92,134,135,147],[92,135,147,148,149,167,178],[92,135,147,148,149,162,167,170],[92,130,135,183],[92,130,135,143,147,150,155,167,178],[92,135,147,148,150,151,155,167,175,178],[92,135,150,152,167,175,178],[92,135,147,153],[92,135,154,178],[92,135,143,147,155,167],[92,135,156],[92,135,157],[92,134,135,158],[92,132,133,134,135,136,137,138,139,140,141,142,143,144,145,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184],[92,135,160],[92,135,161],[92,135,147,162,163],[92,135,162,164,179,181],[92,135,147,167,168,169,170],[92,135,167,169],[92,135,167,168],[92,135,170],[92,135,171],[92,132,135,167],[92,135,147,173,174],[92,135,173,174],[92,135,140,155,167,175],[92,135,176],[135],[90,91,92,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184],[92,135,155,177],[92,135,150,161,178],[92,135,140,179],[92,135,167,180],[92,135,154,181],[92,135,182],[92,135,140,147,149,158,167,178,181,183],[92,135,167,184],[74,92,135],[66,92,135],[66,67,92,135],[66,68,69,70,71,72,73,92,135],[67,74,92,135],[92,102,106,135,178],[92,102,135,167,178],[92,97,135],[92,99,102,135,175,178],[92,135,155,175],[92,135,185],[92,97,135,185],[92,99,102,135,155,178],[92,94,95,98,101,135,147,167,178],[92,102,109,135],[92,94,100,135],[92,102,123,124,135],[92,98,102,135,170,178,185],[92,123,135,185],[92,96,97,135,185],[92,102,135],[92,96,97,98,99,100,101,102,103,104,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,124,125,126,127,128,129,135],[92,102,117,135],[92,102,109,110,135],[92,100,102,110,111,135],[92,101,135],[92,94,97,102,135],[92,102,106,110,111,135],[92,106,135],[92,100,102,105,135,178],[92,94,99,102,109,135],[92,135,167],[92,97,102,123,135,183,185],[75,76,77,78,79,80,81,82,83,92,135],[59,60,92,135],[61,92,135],[61,63,65,84,92,135],[61],[84]],"referencedMap":[[64,1],[65,2],[63,3],[186,3],[132,4],[133,4],[134,5],[135,6],[136,7],[137,8],[87,3],[90,9],[88,3],[89,3],[138,10],[139,11],[140,12],[141,13],[142,14],[143,15],[144,15],[146,16],[145,17],[147,18],[148,19],[149,20],[131,21],[150,22],[151,23],[152,24],[153,25],[154,26],[155,27],[156,28],[157,29],[158,30],[159,31],[160,32],[161,33],[162,34],[163,34],[164,35],[165,3],[166,3],[167,36],[169,37],[168,38],[170,39],[171,40],[172,41],[173,42],[174,43],[175,44],[176,45],[92,46],[91,3],[185,47],[177,48],[178,49],[179,50],[180,51],[181,52],[182,53],[183,54],[184,55],[93,3],[66,56],[70,57],[71,57],[68,58],[69,57],[74,59],[72,60],[73,56],[57,3],[58,3],[10,3],[12,3],[11,3],[2,3],[13,3],[14,3],[15,3],[16,3],[17,3],[18,3],[19,3],[20,3],[3,3],[21,3],[4,3],[22,3],[26,3],[23,3],[24,3],[25,3],[27,3],[28,3],[29,3],[5,3],[30,3],[31,3],[32,3],[33,3],[6,3],[37,3],[34,3],[35,3],[36,3],[38,3],[7,3],[39,3],[44,3],[45,3],[40,3],[41,3],[42,3],[43,3],[8,3],[49,3],[46,3],[47,3],[48,3],[50,3],[9,3],[51,3],[52,3],[53,3],[56,3],[54,3],[55,3],[1,3],[67,3],[109,61],[119,62],[108,61],[129,63],[100,64],[99,65],[128,66],[122,67],[127,68],[102,69],[116,70],[101,71],[125,72],[97,73],[96,66],[126,74],[98,75],[103,76],[104,3],[107,76],[94,3],[130,77],[120,78],[111,79],[112,80],[114,81],[110,82],[113,83],[123,66],[105,84],[106,85],[115,86],[95,87],[118,78],[117,76],[121,3],[124,88],[76,60],[78,60],[79,60],[75,60],[82,60],[81,60],[83,60],[80,60],[77,60],[84,89],[61,90],[62,91],[86,3],[59,3],[60,3],[85,92]],"exportedModulesMap":[[64,1],[65,2],[63,3],[186,3],[132,4],[133,4],[134,5],[135,6],[136,7],[137,8],[87,3],[90,9],[88,3],[89,3],[138,10],[139,11],[140,12],[141,13],[142,14],[143,15],[144,15],[146,16],[145,17],[147,18],[148,19],[149,20],[131,21],[150,22],[151,23],[152,24],[153,25],[154,26],[155,27],[156,28],[157,29],[158,30],[159,31],[160,32],[161,33],[162,34],[163,34],[164,35],[165,3],[166,3],[167,36],[169,37],[168,38],[170,39],[171,40],[172,41],[173,42],[174,43],[175,44],[176,45],[92,46],[91,3],[185,47],[177,48],[178,49],[179,50],[180,51],[181,52],[182,53],[183,54],[184,55],[93,3],[66,56],[70,57],[71,57],[68,58],[69,57],[74,59],[72,60],[73,56],[57,3],[58,3],[10,3],[12,3],[11,3],[2,3],[13,3],[14,3],[15,3],[16,3],[17,3],[18,3],[19,3],[20,3],[3,3],[21,3],[4,3],[22,3],[26,3],[23,3],[24,3],[25,3],[27,3],[28,3],[29,3],[5,3],[30,3],[31,3],[32,3],[33,3],[6,3],[37,3],[34,3],[35,3],[36,3],[38,3],[7,3],[39,3],[44,3],[45,3],[40,3],[41,3],[42,3],[43,3],[8,3],[49,3],[46,3],[47,3],[48,3],[50,3],[9,3],[51,3],[52,3],[53,3],[56,3],[54,3],[55,3],[1,3],[67,3],[109,61],[119,62],[108,61],[129,63],[100,64],[99,65],[128,66],[122,67],[127,68],[102,69],[116,70],[101,71],[125,72],[97,73],[96,66],[126,74],[98,75],[103,76],[104,3],[107,76],[94,3],[130,77],[120,78],[111,79],[112,80],[114,81],[110,82],[113,83],[123,66],[105,84],[106,85],[115,86],[95,87],[118,78],[117,76],[121,3],[124,88],[76,60],[78,60],[79,60],[75,60],[82,60],[81,60],[83,60],[80,60],[77,60],[84,89],[62,93],[59,3],[85,94]],"semanticDiagnosticsPerFile":[64,65,63,186,132,133,134,135,136,137,87,90,88,89,138,139,140,141,142,143,144,146,145,147,148,149,131,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,169,168,170,171,172,173,174,175,176,92,91,185,177,178,179,180,181,182,183,184,93,66,70,71,68,69,74,72,73,57,58,10,12,11,2,13,14,15,16,17,18,19,20,3,21,4,22,26,23,24,25,27,28,29,5,30,31,32,33,6,37,34,35,36,38,7,39,44,45,40,41,42,43,8,49,46,47,48,50,9,51,52,53,56,54,55,1,67,109,119,108,129,100,99,128,122,127,102,116,101,125,97,96,126,98,103,104,107,94,130,120,111,112,114,110,113,123,105,106,115,95,118,117,121,124,76,78,79,75,82,81,83,80,77,84,61,62,86,59,60,85]},"version":"5.4.5"}
@@ -0,0 +1,32 @@
1
+ export interface BloomFilterOptions {
2
+ capacity: number;
3
+ errorRate: number;
4
+ kHashes?: number;
5
+ forceNBitsPerElem?: number;
6
+ }
7
+ /**
8
+ * A probabilistic data structure that tracks memberships in a set.
9
+ * Supports time and space efficient lookups, but may return false-positives.
10
+ * Can never return false-negatives.
11
+ * A bloom filter can tell us if an element is:
12
+ * - Definitely not in the set
13
+ * - Potentially in the set (with a probability depending on the false-positive rate)
14
+ */
15
+ export declare class BloomFilter {
16
+ totalBits: number;
17
+ data: Array<bigint>;
18
+ kHashes: number;
19
+ errorRate: number;
20
+ options: BloomFilterOptions;
21
+ private hashN;
22
+ constructor(options: BloomFilterOptions, hashN: (item: string, n: number, maxValue: number) => number);
23
+ computeHashes(item: string): number[];
24
+ insert(item: string): void;
25
+ lookup(item: string): boolean;
26
+ toBytes(): Uint8Array;
27
+ static fromBytes(bytes: Uint8Array, options: BloomFilterOptions, hashN: (item: string, n: number, maxValue: number) => number): BloomFilter;
28
+ }
29
+ export declare class DefaultBloomFilter extends BloomFilter {
30
+ constructor(options: BloomFilterOptions);
31
+ static fromBytes(bytes: Uint8Array, options: BloomFilterOptions): DefaultBloomFilter;
32
+ }
package/dist/bloom.js ADDED
@@ -0,0 +1,108 @@
1
+ import { hashN } from "./nim_hashn/nim_hashn.mjs";
2
+ import { getMOverNBitsForK } from "./probabilities.js";
3
+ const sizeOfInt = 8;
4
+ /**
5
+ * A probabilistic data structure that tracks memberships in a set.
6
+ * Supports time and space efficient lookups, but may return false-positives.
7
+ * Can never return false-negatives.
8
+ * A bloom filter can tell us if an element is:
9
+ * - Definitely not in the set
10
+ * - Potentially in the set (with a probability depending on the false-positive rate)
11
+ */
12
+ export class BloomFilter {
13
+ totalBits;
14
+ data = [];
15
+ kHashes;
16
+ errorRate;
17
+ options;
18
+ hashN;
19
+ constructor(options, hashN) {
20
+ this.options = options;
21
+ let nBitsPerElem;
22
+ let k = options.kHashes ?? 0;
23
+ const forceNBitsPerElem = options.forceNBitsPerElem ?? 0;
24
+ if (k < 1) {
25
+ // Calculate optimal k based on target error rate
26
+ const bitsPerElem = Math.ceil(-1.0 * (Math.log(options.errorRate) / Math.pow(Math.log(2), 2)));
27
+ k = Math.round(Math.log(2) * bitsPerElem);
28
+ nBitsPerElem = Math.round(bitsPerElem);
29
+ }
30
+ else {
31
+ // Use specified k if possible
32
+ if (forceNBitsPerElem < 1) {
33
+ // Use lookup table
34
+ nBitsPerElem = getMOverNBitsForK(k, options.errorRate);
35
+ }
36
+ else {
37
+ nBitsPerElem = forceNBitsPerElem;
38
+ }
39
+ }
40
+ const mBits = options.capacity * nBitsPerElem;
41
+ const mInts = 1 + Math.floor(mBits / (sizeOfInt * 8));
42
+ this.totalBits = mBits;
43
+ this.data = new Array(mInts);
44
+ this.data.fill(BigInt(0));
45
+ this.kHashes = k;
46
+ this.hashN = hashN;
47
+ this.errorRate = options.errorRate;
48
+ }
49
+ computeHashes(item) {
50
+ const hashes = new Array(this.kHashes);
51
+ for (let i = 0; i < this.kHashes; i++) {
52
+ hashes[i] = this.hashN(item, i, this.totalBits);
53
+ }
54
+ return hashes;
55
+ }
56
+ // Adds an item to the bloom filter by computing its hash values
57
+ // and setting corresponding bits in "data".
58
+ insert(item) {
59
+ const hashSet = this.computeHashes(item);
60
+ for (const h of hashSet) {
61
+ const intAddress = Math.floor(h / (sizeOfInt * 8));
62
+ const bitOffset = h % (sizeOfInt * 8);
63
+ this.data[intAddress] =
64
+ this.data[intAddress] | (BigInt(1) << BigInt(bitOffset));
65
+ }
66
+ }
67
+ // Checks if the item is potentially in the bloom filter.
68
+ // The method is guaranteed to return "true" for items that were inserted,
69
+ // but might also return "true" for items that were never inserted
70
+ // (purpose of false-positive probability).
71
+ lookup(item) {
72
+ const hashSet = this.computeHashes(item);
73
+ for (const h of hashSet) {
74
+ const intAddress = Math.floor(h / (sizeOfInt * 8));
75
+ const bitOffset = h % (sizeOfInt * 8);
76
+ const currentInt = this.data[intAddress];
77
+ if (currentInt != (currentInt | (BigInt(1) << BigInt(bitOffset)))) {
78
+ return false;
79
+ }
80
+ }
81
+ return true;
82
+ }
83
+ toBytes() {
84
+ const buffer = new ArrayBuffer(this.data.length * 8);
85
+ const view = new DataView(buffer);
86
+ for (let i = 0; i < this.data.length; i++) {
87
+ view.setBigInt64(i * 8, this.data[i]);
88
+ }
89
+ return new Uint8Array(buffer);
90
+ }
91
+ static fromBytes(bytes, options, hashN) {
92
+ const bloomFilter = new BloomFilter(options, hashN);
93
+ const view = new DataView(bytes.buffer);
94
+ for (let i = 0; i < bloomFilter.data.length; i++) {
95
+ bloomFilter.data[i] = view.getBigUint64(i * 8, false);
96
+ }
97
+ return bloomFilter;
98
+ }
99
+ }
100
+ export class DefaultBloomFilter extends BloomFilter {
101
+ constructor(options) {
102
+ super(options, hashN);
103
+ }
104
+ static fromBytes(bytes, options) {
105
+ return BloomFilter.fromBytes(bytes, options, hashN);
106
+ }
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AAI,CAAC,WAAW,CAAC,CAAC,GAAG,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;QACxC,CAAC;QACD,OAAO,IAAI,UAAU,CAAC,MAAM,CAAC,CAAC;IAChC,CAAC;IAEM,MAAM,CAAC,SAAS,CACrB,KAAiB,EACjB,OAA2B,EAC3B,KAA4D;QAE5D,MAAM,WAAW,GAAG,IAAI,WAAW,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;QACpD,MAAM,IAAI,GAAG,IAAI,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QACxC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,WAAW,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YACjD,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,YAAY,CAAC,CAAC,GAAG,CAAC,EAAE,KAAK,CAAC,CAAC;QACxD,CAAC;QACD,OAAO,WAAW,CAAC;IACrB,CAAC;CACF;AAED,MAAM,OAAO,kBAAmB,SAAQ,WAAW;IACjD,YAAmB,OAA2B;QAC5C,KAAK,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;IACxB,CAAC;IAEM,MAAM,CAAC,SAAS,CACrB,KAAiB,EACjB,OAA2B;QAE3B,OAAO,WAAW,CAAC,SAAS,CAAC,KAAK,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC;IACtD,CAAC;CACF"}
@@ -0,0 +1,2 @@
1
+ import { BloomFilter } from "./bloom.js";
2
+ export { BloomFilter };
package/dist/index.js ADDED
@@ -0,0 +1,3 @@
1
+ import { BloomFilter } from "./bloom.js";
2
+ export { BloomFilter };
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAEzC,OAAO,EAAE,WAAW,EAAE,CAAC"}
@@ -0,0 +1 @@
1
+ export function hashN(item: any, n: any, maxValue: any): number;