@dxos/hypercore 0.1.57-main.e87098f → 0.1.57

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.
@@ -1 +1 @@
1
- {"inputs":{"node_modules/.pnpm/last-one-wins@1.0.4/node_modules/last-one-wins/index.js":{"bytes":712,"imports":[],"format":"cjs"},"node_modules/.pnpm/unordered-array-remove@1.0.2/node_modules/unordered-array-remove/index.js":{"bytes":212,"imports":[],"format":"cjs"},"node_modules/.pnpm/unordered-set@2.0.1/node_modules/unordered-set/index.js":{"bytes":677,"imports":[],"format":"cjs"},"node_modules/.pnpm/flat-tree@1.9.0/node_modules/flat-tree/index.js":{"bytes":5856,"imports":[],"format":"cjs"},"node_modules/.pnpm/merkle-tree-stream@4.0.0/node_modules/merkle-tree-stream/generator.js":{"bytes":1621,"imports":[{"path":"node_modules/.pnpm/flat-tree@1.9.0/node_modules/flat-tree/index.js","kind":"require-call","original":"flat-tree"}],"format":"cjs"},"node_modules/.pnpm/codecs@2.2.0/node_modules/codecs/index.js":{"bytes":1956,"imports":[],"format":"cjs"},"node_modules/.pnpm/atomic-batcher@1.0.2/node_modules/atomic-batcher/index.js":{"bytes":1230,"imports":[],"format":"cjs"},"node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits_browser.js":{"bytes":753,"imports":[],"format":"cjs"},"node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits.js":{"bytes":250,"imports":[{"path":"node:util","kind":"require-call","external":true},{"path":"node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits_browser.js","kind":"require-call","original":"./inherits_browser.js"}],"format":"cjs"},"node_modules/.pnpm/varint@4.0.1/node_modules/varint/encode.js":{"bytes":452,"imports":[],"format":"cjs"},"node_modules/.pnpm/varint@4.0.1/node_modules/varint/decode.js":{"bytes":515,"imports":[],"format":"cjs"},"node_modules/.pnpm/varint@4.0.1/node_modules/varint/length.js":{"bytes":471,"imports":[],"format":"cjs"},"node_modules/.pnpm/varint@4.0.1/node_modules/varint/index.js":{"bytes":134,"imports":[{"path":"node_modules/.pnpm/varint@4.0.1/node_modules/varint/encode.js","kind":"require-call","original":"./encode.js"},{"path":"node_modules/.pnpm/varint@4.0.1/node_modules/varint/decode.js","kind":"require-call","original":"./decode.js"},{"path":"node_modules/.pnpm/varint@4.0.1/node_modules/varint/length.js","kind":"require-call","original":"./length.js"}],"format":"cjs"},"node_modules/.pnpm/buffer-alloc-unsafe@1.1.0/node_modules/buffer-alloc-unsafe/index.js":{"bytes":356,"imports":[],"format":"cjs"},"node_modules/.pnpm/bitfield-rle@2.2.1/node_modules/bitfield-rle/index.js":{"bytes":4094,"imports":[{"path":"node_modules/.pnpm/varint@4.0.1/node_modules/varint/index.js","kind":"require-call","original":"varint"},{"path":"node_modules/.pnpm/buffer-alloc-unsafe@1.1.0/node_modules/buffer-alloc-unsafe/index.js","kind":"require-call","original":"buffer-alloc-unsafe"}],"format":"cjs"},"node_modules/.pnpm/memory-pager@1.5.0/node_modules/memory-pager/index.js":{"bytes":3731,"imports":[],"format":"cjs"},"node_modules/.pnpm/sparse-bitfield@3.0.3/node_modules/sparse-bitfield/index.js":{"bytes":2303,"imports":[{"path":"node_modules/.pnpm/memory-pager@1.5.0/node_modules/memory-pager/index.js","kind":"require-call","original":"memory-pager"}],"format":"cjs"},"node_modules/.pnpm/hypercore@9.12.0/node_modules/hypercore/lib/bitfield.js":{"bytes":8371,"imports":[{"path":"node_modules/.pnpm/flat-tree@1.9.0/node_modules/flat-tree/index.js","kind":"require-call","original":"flat-tree"},{"path":"node_modules/.pnpm/bitfield-rle@2.2.1/node_modules/bitfield-rle/index.js","kind":"require-call","original":"bitfield-rle"},{"path":"node_modules/.pnpm/memory-pager@1.5.0/node_modules/memory-pager/index.js","kind":"require-call","original":"memory-pager"},{"path":"node_modules/.pnpm/sparse-bitfield@3.0.3/node_modules/sparse-bitfield/index.js","kind":"require-call","original":"sparse-bitfield"}],"format":"cjs"},"node_modules/.pnpm/hypercore@9.12.0/node_modules/hypercore/lib/tree-index.js":{"bytes":4624,"imports":[{"path":"node_modules/.pnpm/flat-tree@1.9.0/node_modules/flat-tree/index.js","kind":"require-call","original":"flat-tree"},{"path":"node_modules/.pnpm/sparse-bitfield@3.0.3/node_modules/sparse-bitfield/index.js","kind":"require-call","original":"sparse-bitfield"}],"format":"cjs"},"node_modules/.pnpm/buffer-fill@1.0.0/node_modules/buffer-fill/index.js":{"bytes":2433,"imports":[],"format":"cjs"},"node_modules/.pnpm/buffer-alloc@1.2.0/node_modules/buffer-alloc/index.js":{"bytes":664,"imports":[{"path":"node_modules/.pnpm/buffer-fill@1.0.0/node_modules/buffer-fill/index.js","kind":"require-call","original":"buffer-fill"},{"path":"node_modules/.pnpm/buffer-alloc-unsafe@1.1.0/node_modules/buffer-alloc-unsafe/index.js","kind":"require-call","original":"buffer-alloc-unsafe"}],"format":"cjs"},"node_modules/.pnpm/uint64be@2.0.2/node_modules/uint64be/index.js":{"bytes":637,"imports":[{"path":"node_modules/.pnpm/buffer-alloc@1.2.0/node_modules/buffer-alloc/index.js","kind":"require-call","original":"buffer-alloc"}],"format":"cjs"},"node_modules/.pnpm/hypercore-cache@1.0.2/node_modules/hypercore-cache/index.js":{"bytes":2818,"imports":[],"format":"cjs"},"node_modules/.pnpm/hypercore@9.12.0/node_modules/hypercore/lib/cache.js":{"bytes":777,"imports":[{"path":"node_modules/.pnpm/hypercore-cache@1.0.2/node_modules/hypercore-cache/index.js","kind":"require-call","original":"hypercore-cache"}],"format":"cjs"},"node_modules/.pnpm/hypercore@9.12.0/node_modules/hypercore/lib/storage.js":{"bytes":10122,"imports":[{"path":"node_modules/.pnpm/uint64be@2.0.2/node_modules/uint64be/index.js","kind":"require-call","original":"uint64be"},{"path":"node_modules/.pnpm/flat-tree@1.9.0/node_modules/flat-tree/index.js","kind":"require-call","original":"flat-tree"},{"path":"node_modules/.pnpm/hypercore@9.12.0/node_modules/hypercore/lib/cache.js","kind":"require-call","original":"./cache"}],"format":"cjs"},"node_modules/.pnpm/uint64be@3.0.0/node_modules/uint64be/index.js":{"bytes":611,"imports":[],"format":"cjs"},"node_modules/.pnpm/hypercore-crypto@2.3.2/node_modules/hypercore-crypto/index.js":{"bytes":4243,"imports":[{"path":"sodium-universal","kind":"require-call","external":true},{"path":"node_modules/.pnpm/uint64be@3.0.0/node_modules/uint64be/index.js","kind":"require-call","original":"uint64be"}],"format":"cjs"},"node_modules/.pnpm/inspect-custom-symbol@1.1.1/node_modules/inspect-custom-symbol/index.js":{"bytes":129,"imports":[{"path":"node:util","kind":"require-call","external":true}],"format":"cjs"},"node_modules/.pnpm/pretty-hash@1.0.1/node_modules/pretty-hash/index.js":{"bytes":219,"imports":[],"format":"cjs"},"node_modules/.pnpm/nanoguard@1.3.0/node_modules/nanoguard/index.js":{"bytes":1199,"imports":[],"format":"cjs"},"node_modules/.pnpm/hypercore@9.12.0/node_modules/hypercore/lib/safe-buffer-equals.js":{"bytes":185,"imports":[],"format":"cjs"},"node_modules/.pnpm/nanoassert@2.0.0/node_modules/nanoassert/index.js":{"bytes":438,"imports":[],"format":"cjs"},"node_modules/.pnpm/clone@2.1.2/node_modules/clone/clone.js":{"bytes":7293,"imports":[],"format":"cjs"},"node_modules/.pnpm/noise-protocol@3.0.1/node_modules/noise-protocol/cipher.js":{"bytes":2722,"imports":[{"path":"sodium-universal/memory","kind":"require-call","external":true},{"path":"sodium-universal/crypto_aead","kind":"require-call","external":true},{"path":"node_modules/.pnpm/nanoassert@2.0.0/node_modules/nanoassert/index.js","kind":"require-call","original":"nanoassert"}],"format":"cjs"},"node_modules/.pnpm/noise-protocol@3.0.1/node_modules/noise-protocol/cipher-state.js":{"bytes":3101,"imports":[{"path":"sodium-universal/memory","kind":"require-call","external":true},{"path":"sodium-universal/helpers","kind":"require-call","external":true},{"path":"node_modules/.pnpm/nanoassert@2.0.0/node_modules/nanoassert/index.js","kind":"require-call","original":"nanoassert"},{"path":"node_modules/.pnpm/noise-protocol@3.0.1/node_modules/noise-protocol/cipher.js","kind":"require-call","original":"./cipher"}],"format":"cjs"},"node_modules/.pnpm/nanoassert@1.1.0/node_modules/nanoassert/index.js":{"bytes":396,"imports":[],"format":"cjs"},"node_modules/.pnpm/hmac-blake2b@2.0.0/node_modules/hmac-blake2b/index.js":{"bytes":1520,"imports":[{"path":"sodium-universal/memory","kind":"require-call","external":true},{"path":"sodium-universal/crypto_generichash","kind":"require-call","external":true},{"path":"node_modules/.pnpm/nanoassert@1.1.0/node_modules/nanoassert/index.js","kind":"require-call","original":"nanoassert"}],"format":"cjs"},"node_modules/.pnpm/noise-protocol@3.0.1/node_modules/noise-protocol/dh.js":{"bytes":1092,"imports":[{"path":"sodium-universal/crypto_kx","kind":"require-call","external":true},{"path":"sodium-universal/crypto_scalarmult","kind":"require-call","external":true},{"path":"node_modules/.pnpm/nanoassert@2.0.0/node_modules/nanoassert/index.js","kind":"require-call","original":"nanoassert"}],"format":"cjs"},"node_modules/.pnpm/noise-protocol@3.0.1/node_modules/noise-protocol/hash.js":{"bytes":1482,"imports":[{"path":"sodium-universal/memory","kind":"require-call","external":true},{"path":"sodium-universal/crypto_generichash","kind":"require-call","external":true},{"path":"node_modules/.pnpm/nanoassert@2.0.0/node_modules/nanoassert/index.js","kind":"require-call","original":"nanoassert"},{"path":"node_modules/.pnpm/hmac-blake2b@2.0.0/node_modules/hmac-blake2b/index.js","kind":"require-call","original":"hmac-blake2b"},{"path":"node_modules/.pnpm/noise-protocol@3.0.1/node_modules/noise-protocol/dh.js","kind":"require-call","original":"./dh"}],"format":"cjs"},"node_modules/.pnpm/noise-protocol@3.0.1/node_modules/noise-protocol/symmetric-state.js":{"bytes":4758,"imports":[{"path":"sodium-universal/memory","kind":"require-call","external":true},{"path":"node_modules/.pnpm/nanoassert@2.0.0/node_modules/nanoassert/index.js","kind":"require-call","original":"nanoassert"},{"path":"node_modules/.pnpm/noise-protocol@3.0.1/node_modules/noise-protocol/cipher-state.js","kind":"require-call","original":"./cipher-state"},{"path":"node_modules/.pnpm/noise-protocol@3.0.1/node_modules/noise-protocol/hash.js","kind":"require-call","original":"./hash"}],"format":"cjs"},"node_modules/.pnpm/noise-protocol@3.0.1/node_modules/noise-protocol/handshake-state.js":{"bytes":12735,"imports":[{"path":"sodium-universal/memory","kind":"require-call","external":true},{"path":"node_modules/.pnpm/nanoassert@2.0.0/node_modules/nanoassert/index.js","kind":"require-call","original":"nanoassert"},{"path":"node_modules/.pnpm/clone@2.1.2/node_modules/clone/clone.js","kind":"require-call","original":"clone"},{"path":"node_modules/.pnpm/noise-protocol@3.0.1/node_modules/noise-protocol/symmetric-state.js","kind":"require-call","original":"./symmetric-state"},{"path":"node_modules/.pnpm/noise-protocol@3.0.1/node_modules/noise-protocol/cipher-state.js","kind":"require-call","original":"./cipher-state"},{"path":"node_modules/.pnpm/noise-protocol@3.0.1/node_modules/noise-protocol/dh.js","kind":"require-call","original":"./dh"}],"format":"cjs"},"node_modules/.pnpm/noise-protocol@3.0.1/node_modules/noise-protocol/index.js":{"bytes":46,"imports":[{"path":"node_modules/.pnpm/noise-protocol@3.0.1/node_modules/noise-protocol/handshake-state.js","kind":"require-call","original":"./handshake-state"}],"format":"cjs"},"node_modules/.pnpm/simple-handshake@3.0.0/node_modules/simple-handshake/index.js":{"bytes":4170,"imports":[{"path":"node_modules/.pnpm/noise-protocol@3.0.1/node_modules/noise-protocol/index.js","kind":"require-call","original":"noise-protocol"},{"path":"node_modules/.pnpm/noise-protocol@3.0.1/node_modules/noise-protocol/symmetric-state.js","kind":"require-call","original":"noise-protocol/symmetric-state"},{"path":"node_modules/.pnpm/noise-protocol@3.0.1/node_modules/noise-protocol/hash.js","kind":"require-call","original":"noise-protocol/hash"},{"path":"node_modules/.pnpm/nanoassert@2.0.0/node_modules/nanoassert/index.js","kind":"require-call","original":"nanoassert"}],"format":"cjs"},"node_modules/.pnpm/varint@5.0.2/node_modules/varint/encode.js":{"bytes":452,"imports":[],"format":"cjs"},"node_modules/.pnpm/varint@5.0.2/node_modules/varint/decode.js":{"bytes":508,"imports":[],"format":"cjs"},"node_modules/.pnpm/varint@5.0.2/node_modules/varint/length.js":{"bytes":471,"imports":[],"format":"cjs"},"node_modules/.pnpm/varint@5.0.2/node_modules/varint/index.js":{"bytes":134,"imports":[{"path":"node_modules/.pnpm/varint@5.0.2/node_modules/varint/encode.js","kind":"require-call","original":"./encode.js"},{"path":"node_modules/.pnpm/varint@5.0.2/node_modules/varint/decode.js","kind":"require-call","original":"./decode.js"},{"path":"node_modules/.pnpm/varint@5.0.2/node_modules/varint/length.js","kind":"require-call","original":"./length.js"}],"format":"cjs"},"node_modules/.pnpm/simple-hypercore-protocol@2.1.2/node_modules/simple-hypercore-protocol/lib/handshake.js":{"bytes":3605,"imports":[{"path":"node_modules/.pnpm/simple-handshake@3.0.0/node_modules/simple-handshake/index.js","kind":"require-call","original":"simple-handshake"},{"path":"node_modules/.pnpm/noise-protocol@3.0.1/node_modules/noise-protocol/dh.js","kind":"require-call","original":"noise-protocol/dh"},{"path":"node_modules/.pnpm/hypercore-crypto@2.3.2/node_modules/hypercore-crypto/index.js","kind":"require-call","original":"hypercore-crypto"},{"path":"node_modules/.pnpm/varint@5.0.2/node_modules/varint/index.js","kind":"require-call","original":"varint"}],"format":"cjs"},"node_modules/.pnpm/varint@5.0.0/node_modules/varint/encode.js":{"bytes":452,"imports":[],"format":"cjs"},"node_modules/.pnpm/varint@5.0.0/node_modules/varint/decode.js":{"bytes":508,"imports":[],"format":"cjs"},"node_modules/.pnpm/varint@5.0.0/node_modules/varint/length.js":{"bytes":471,"imports":[],"format":"cjs"},"node_modules/.pnpm/varint@5.0.0/node_modules/varint/index.js":{"bytes":134,"imports":[{"path":"node_modules/.pnpm/varint@5.0.0/node_modules/varint/encode.js","kind":"require-call","original":"./encode.js"},{"path":"node_modules/.pnpm/varint@5.0.0/node_modules/varint/decode.js","kind":"require-call","original":"./decode.js"},{"path":"node_modules/.pnpm/varint@5.0.0/node_modules/varint/length.js","kind":"require-call","original":"./length.js"}],"format":"cjs"},"node_modules/.pnpm/signed-varint@2.0.1/node_modules/signed-varint/index.js":{"bytes":435,"imports":[{"path":"node_modules/.pnpm/varint@5.0.2/node_modules/varint/index.js","kind":"require-call","original":"varint"}],"format":"cjs"},"node_modules/.pnpm/b4a@1.6.0/node_modules/b4a/index.js":{"bytes":3179,"imports":[],"format":"cjs"},"node_modules/.pnpm/protocol-buffers-encodings@1.2.0/node_modules/protocol-buffers-encodings/index.js":{"bytes":6489,"imports":[{"path":"node_modules/.pnpm/varint@5.0.0/node_modules/varint/index.js","kind":"require-call","original":"varint"},{"path":"node_modules/.pnpm/signed-varint@2.0.1/node_modules/signed-varint/index.js","kind":"require-call","original":"signed-varint"},{"path":"node_modules/.pnpm/b4a@1.6.0/node_modules/b4a/index.js","kind":"require-call","original":"b4a"}],"format":"cjs"},"node_modules/.pnpm/simple-hypercore-protocol@2.1.2/node_modules/simple-hypercore-protocol/messages.js":{"bytes":30739,"imports":[{"path":"node_modules/.pnpm/protocol-buffers-encodings@1.2.0/node_modules/protocol-buffers-encodings/index.js","kind":"require-call","original":"protocol-buffers-encodings"}],"format":"cjs"},"node_modules/.pnpm/xsalsa20-universal@1.0.0/node_modules/xsalsa20-universal/index.js":{"bytes":450,"imports":[{"path":"sodium-native","kind":"require-call","external":true}],"format":"cjs"},"node_modules/.pnpm/simple-hypercore-protocol@2.1.2/node_modules/simple-hypercore-protocol/lib/xor.js":{"bytes":609,"imports":[{"path":"node_modules/.pnpm/xsalsa20-universal@1.0.0/node_modules/xsalsa20-universal/index.js","kind":"require-call","original":"xsalsa20-universal"},{"path":"node_modules/.pnpm/hypercore-crypto@2.3.2/node_modules/hypercore-crypto/index.js","kind":"require-call","original":"hypercore-crypto"}],"format":"cjs"},"node_modules/.pnpm/simple-message-channels@1.2.1/node_modules/simple-message-channels/index.js":{"bytes":5278,"imports":[{"path":"node_modules/.pnpm/varint@5.0.2/node_modules/varint/index.js","kind":"require-call","original":"varint"}],"format":"cjs"},"node_modules/.pnpm/simple-hypercore-protocol@2.1.2/node_modules/simple-hypercore-protocol/index.js":{"bytes":7913,"imports":[{"path":"node_modules/.pnpm/simple-hypercore-protocol@2.1.2/node_modules/simple-hypercore-protocol/lib/handshake.js","kind":"require-call","original":"./lib/handshake"},{"path":"node_modules/.pnpm/simple-hypercore-protocol@2.1.2/node_modules/simple-hypercore-protocol/messages.js","kind":"require-call","original":"./messages"},{"path":"node_modules/.pnpm/simple-hypercore-protocol@2.1.2/node_modules/simple-hypercore-protocol/lib/xor.js","kind":"require-call","original":"./lib/xor"},{"path":"node_modules/.pnpm/simple-message-channels@1.2.1/node_modules/simple-message-channels/index.js","kind":"require-call","original":"simple-message-channels"},{"path":"node_modules/.pnpm/hypercore-crypto@2.3.2/node_modules/hypercore-crypto/index.js","kind":"require-call","original":"hypercore-crypto"},{"path":"node_modules/.pnpm/varint@5.0.2/node_modules/varint/index.js","kind":"require-call","original":"varint"}],"format":"cjs"},"node_modules/.pnpm/timeout-refresh@1.0.3/node_modules/timeout-refresh/refresh.js":{"bytes":578,"imports":[],"format":"cjs"},"node_modules/.pnpm/timeout-refresh@1.0.3/node_modules/timeout-refresh/browser.js":{"bytes":620,"imports":[],"format":"cjs"},"node_modules/.pnpm/timeout-refresh@1.0.3/node_modules/timeout-refresh/timers.js":{"bytes":739,"imports":[{"path":"node:timers","kind":"require-call","external":true}],"format":"cjs"},"node_modules/.pnpm/timeout-refresh@1.0.3/node_modules/timeout-refresh/index.js":{"bytes":190,"imports":[{"path":"node_modules/.pnpm/timeout-refresh@1.0.3/node_modules/timeout-refresh/refresh.js","kind":"require-call","original":"./refresh"},{"path":"node_modules/.pnpm/timeout-refresh@1.0.3/node_modules/timeout-refresh/browser.js","kind":"require-call","original":"./browser"},{"path":"node_modules/.pnpm/timeout-refresh@1.0.3/node_modules/timeout-refresh/timers.js","kind":"require-call","original":"./timers"}],"format":"cjs"},"node_modules/.pnpm/abstract-extension@3.1.1/node_modules/abstract-extension/index.js":{"bytes":3630,"imports":[{"path":"node_modules/.pnpm/codecs@2.2.0/node_modules/codecs/index.js","kind":"require-call","original":"codecs"}],"format":"cjs"},"node_modules/.pnpm/ms@2.1.2/node_modules/ms/index.js":{"bytes":3023,"imports":[],"format":"cjs"},"node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/common.js":{"bytes":6289,"imports":[{"path":"node_modules/.pnpm/ms@2.1.2/node_modules/ms/index.js","kind":"require-call","original":"ms"}],"format":"cjs"},"node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/browser.js":{"bytes":6010,"imports":[{"path":"node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/common.js","kind":"require-call","original":"./common"}],"format":"cjs"},"node_modules/.pnpm/has-flag@4.0.0/node_modules/has-flag/index.js":{"bytes":330,"imports":[],"format":"cjs"},"node_modules/.pnpm/supports-color@8.1.1/node_modules/supports-color/index.js":{"bytes":3065,"imports":[{"path":"node:os","kind":"require-call","external":true},{"path":"node:tty","kind":"require-call","external":true},{"path":"node_modules/.pnpm/has-flag@4.0.0/node_modules/has-flag/index.js","kind":"require-call","original":"has-flag"}],"format":"cjs"},"node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/node.js":{"bytes":4685,"imports":[{"path":"node:tty","kind":"require-call","external":true},{"path":"node:util","kind":"require-call","external":true},{"path":"node_modules/.pnpm/supports-color@8.1.1/node_modules/supports-color/index.js","kind":"require-call","original":"supports-color"},{"path":"node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/common.js","kind":"require-call","original":"./common"}],"format":"cjs"},"node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/index.js":{"bytes":314,"imports":[{"path":"node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/browser.js","kind":"require-call","original":"./browser.js"},{"path":"node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/node.js","kind":"require-call","original":"./node.js"}],"format":"cjs"},"node_modules/.pnpm/hypercore-protocol@8.0.7/node_modules/hypercore-protocol/index.js":{"bytes":15546,"imports":[{"path":"node_modules/.pnpm/simple-hypercore-protocol@2.1.2/node_modules/simple-hypercore-protocol/index.js","kind":"require-call","original":"simple-hypercore-protocol"},{"path":"node_modules/.pnpm/hypercore-crypto@2.3.2/node_modules/hypercore-crypto/index.js","kind":"require-call","original":"hypercore-crypto"},{"path":"node_modules/.pnpm/timeout-refresh@1.0.3/node_modules/timeout-refresh/index.js","kind":"require-call","original":"timeout-refresh"},{"path":"node_modules/.pnpm/inspect-custom-symbol@1.1.1/node_modules/inspect-custom-symbol/index.js","kind":"require-call","original":"inspect-custom-symbol"},{"path":"node_modules/.pnpm/nanoguard@1.3.0/node_modules/nanoguard/index.js","kind":"require-call","original":"nanoguard"},{"path":"node_modules/.pnpm/pretty-hash@1.0.1/node_modules/pretty-hash/index.js","kind":"require-call","original":"pretty-hash"},{"path":"node_modules/.pnpm/abstract-extension@3.1.1/node_modules/abstract-extension/index.js","kind":"require-call","original":"abstract-extension"},{"path":"streamx","kind":"require-call","external":true},{"path":"node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/index.js","kind":"require-call","original":"debug"}],"format":"cjs"},"node_modules/.pnpm/count-trailing-zeros@1.0.1/node_modules/count-trailing-zeros/ctz.js":{"bytes":226,"imports":[],"format":"cjs"},"node_modules/.pnpm/fast-bitfield@1.2.2/node_modules/fast-bitfield/index.js":{"bytes":10700,"imports":[{"path":"node_modules/.pnpm/count-trailing-zeros@1.0.1/node_modules/count-trailing-zeros/ctz.js","kind":"require-call","original":"count-trailing-zeros"}],"format":"cjs"},"node_modules/.pnpm/hypercore@9.12.0/node_modules/hypercore/lib/replicate.js":{"bytes":23715,"imports":[{"path":"node_modules/.pnpm/hypercore-protocol@8.0.7/node_modules/hypercore-protocol/index.js","kind":"require-call","original":"hypercore-protocol"},{"path":"node_modules/.pnpm/timeout-refresh@1.0.3/node_modules/timeout-refresh/index.js","kind":"require-call","original":"timeout-refresh"},{"path":"node_modules/.pnpm/fast-bitfield@1.2.2/node_modules/fast-bitfield/index.js","kind":"require-call","original":"fast-bitfield"},{"path":"node_modules/.pnpm/unordered-set@2.0.1/node_modules/unordered-set/index.js","kind":"require-call","original":"unordered-set"},{"path":"node_modules/.pnpm/bitfield-rle@2.2.1/node_modules/bitfield-rle/index.js","kind":"require-call","original":"bitfield-rle"},{"path":"node_modules/.pnpm/hypercore@9.12.0/node_modules/hypercore/lib/tree-index.js","kind":"require-call","original":"./tree-index"}],"format":"cjs"},"node_modules/.pnpm/nanoresource@1.3.0/node_modules/nanoresource/emitter.js":{"bytes":3204,"imports":[{"path":"node:events","kind":"require-call","external":true},{"path":"node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits.js","kind":"require-call","original":"inherits"}],"format":"cjs"},"packages/common/hypercore/src/empty.ts":{"bytes":1183,"imports":[],"format":"cjs"},"node_modules/.pnpm/hypercore-streams@1.0.1/node_modules/hypercore-streams/index.js":{"bytes":1970,"imports":[{"path":"streamx","kind":"require-call","external":true}],"format":"cjs"},"node_modules/.pnpm/hypercore@9.12.0/node_modules/hypercore/index.js":{"bytes":50005,"imports":[{"path":"node_modules/.pnpm/last-one-wins@1.0.4/node_modules/last-one-wins/index.js","kind":"require-call","original":"last-one-wins"},{"path":"node_modules/.pnpm/unordered-array-remove@1.0.2/node_modules/unordered-array-remove/index.js","kind":"require-call","original":"unordered-array-remove"},{"path":"node_modules/.pnpm/unordered-set@2.0.1/node_modules/unordered-set/index.js","kind":"require-call","original":"unordered-set"},{"path":"node_modules/.pnpm/merkle-tree-stream@4.0.0/node_modules/merkle-tree-stream/generator.js","kind":"require-call","original":"merkle-tree-stream/generator"},{"path":"node_modules/.pnpm/flat-tree@1.9.0/node_modules/flat-tree/index.js","kind":"require-call","original":"flat-tree"},{"path":"node_modules/.pnpm/codecs@2.2.0/node_modules/codecs/index.js","kind":"require-call","original":"codecs"},{"path":"node_modules/.pnpm/atomic-batcher@1.0.2/node_modules/atomic-batcher/index.js","kind":"require-call","original":"atomic-batcher"},{"path":"node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits.js","kind":"require-call","original":"inherits"},{"path":"node_modules/.pnpm/hypercore@9.12.0/node_modules/hypercore/lib/bitfield.js","kind":"require-call","original":"./lib/bitfield"},{"path":"node_modules/.pnpm/sparse-bitfield@3.0.3/node_modules/sparse-bitfield/index.js","kind":"require-call","original":"sparse-bitfield"},{"path":"node_modules/.pnpm/hypercore@9.12.0/node_modules/hypercore/lib/tree-index.js","kind":"require-call","original":"./lib/tree-index"},{"path":"node_modules/.pnpm/hypercore@9.12.0/node_modules/hypercore/lib/storage.js","kind":"require-call","original":"./lib/storage"},{"path":"node_modules/.pnpm/hypercore-crypto@2.3.2/node_modules/hypercore-crypto/index.js","kind":"require-call","original":"hypercore-crypto"},{"path":"node_modules/.pnpm/inspect-custom-symbol@1.1.1/node_modules/inspect-custom-symbol/index.js","kind":"require-call","original":"inspect-custom-symbol"},{"path":"node_modules/.pnpm/pretty-hash@1.0.1/node_modules/pretty-hash/index.js","kind":"require-call","original":"pretty-hash"},{"path":"node_modules/.pnpm/nanoguard@1.3.0/node_modules/nanoguard/index.js","kind":"require-call","original":"nanoguard"},{"path":"node_modules/.pnpm/hypercore@9.12.0/node_modules/hypercore/lib/safe-buffer-equals.js","kind":"require-call","original":"./lib/safe-buffer-equals"},{"path":"node_modules/.pnpm/hypercore@9.12.0/node_modules/hypercore/lib/replicate.js","kind":"require-call","original":"./lib/replicate"},{"path":"node_modules/.pnpm/hypercore-protocol@8.0.7/node_modules/hypercore-protocol/index.js","kind":"require-call","original":"hypercore-protocol"},{"path":"node_modules/.pnpm/abstract-extension@3.1.1/node_modules/abstract-extension/index.js","kind":"require-call","original":"abstract-extension"},{"path":"node_modules/.pnpm/nanoresource@1.3.0/node_modules/nanoresource/emitter.js","kind":"require-call","original":"nanoresource/emitter"},{"path":"packages/common/hypercore/src/empty.ts","kind":"require-call","original":"hypercore-default-storage"},{"path":"node_modules/.pnpm/hypercore-streams@1.0.1/node_modules/hypercore-streams/index.js","kind":"require-call","original":"hypercore-streams"}],"format":"cjs"},"packages/common/hypercore/src/crypto.ts":{"bytes":4891,"imports":[{"path":"node:util","kind":"import-statement","external":true},{"path":"@dxos/crypto","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"packages/common/hypercore/src/defaults.ts":{"bytes":3726,"imports":[],"format":"esm"},"packages/common/hypercore/src/util.ts":{"bytes":801,"imports":[{"path":"node:util","kind":"import-statement","external":true}],"format":"esm"},"packages/common/hypercore/src/hypercore-factory.ts":{"bytes":5186,"imports":[{"path":"node_modules/.pnpm/hypercore@9.12.0/node_modules/hypercore/index.js","kind":"import-statement","original":"hypercore"},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/random-access-storage","kind":"import-statement","external":true},{"path":"packages/common/hypercore/src/util.ts","kind":"import-statement","original":"./util"}],"format":"esm"},"packages/common/hypercore/src/iterator.ts":{"bytes":3965,"imports":[{"path":"readable-stream","kind":"import-statement","external":true}],"format":"esm"},"packages/common/hypercore/src/index.ts":{"bytes":1078,"imports":[{"path":"node_modules/.pnpm/hypercore@9.12.0/node_modules/hypercore/index.js","kind":"import-statement","original":"hypercore"},{"path":"packages/common/hypercore/src/crypto.ts","kind":"import-statement","original":"./crypto"},{"path":"packages/common/hypercore/src/defaults.ts","kind":"import-statement","original":"./defaults"},{"path":"packages/common/hypercore/src/hypercore-factory.ts","kind":"import-statement","original":"./hypercore-factory"},{"path":"packages/common/hypercore/src/iterator.ts","kind":"import-statement","original":"./iterator"}],"format":"esm"}},"outputs":{"packages/common/hypercore/dist/lib/node/index.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":562041},"packages/common/hypercore/dist/lib/node/index.cjs":{"imports":[{"path":"node:util","kind":"require-call","external":true},{"path":"sodium-universal","kind":"require-call","external":true},{"path":"node:util","kind":"require-call","external":true},{"path":"sodium-universal/memory","kind":"require-call","external":true},{"path":"sodium-universal/crypto_aead","kind":"require-call","external":true},{"path":"sodium-universal/memory","kind":"require-call","external":true},{"path":"sodium-universal/helpers","kind":"require-call","external":true},{"path":"sodium-universal/memory","kind":"require-call","external":true},{"path":"sodium-universal/crypto_generichash","kind":"require-call","external":true},{"path":"sodium-universal/crypto_kx","kind":"require-call","external":true},{"path":"sodium-universal/crypto_scalarmult","kind":"require-call","external":true},{"path":"sodium-universal/memory","kind":"require-call","external":true},{"path":"sodium-universal/crypto_generichash","kind":"require-call","external":true},{"path":"sodium-universal/memory","kind":"require-call","external":true},{"path":"sodium-universal/memory","kind":"require-call","external":true},{"path":"sodium-native","kind":"require-call","external":true},{"path":"node:timers","kind":"require-call","external":true},{"path":"node:os","kind":"require-call","external":true},{"path":"node:tty","kind":"require-call","external":true},{"path":"node:tty","kind":"require-call","external":true},{"path":"node:util","kind":"require-call","external":true},{"path":"streamx","kind":"require-call","external":true},{"path":"node:events","kind":"require-call","external":true},{"path":"streamx","kind":"require-call","external":true},{"path":"node:util","kind":"require-call","external":true},{"path":"@dxos/crypto","kind":"require-call","external":true},{"path":"@dxos/invariant","kind":"require-call","external":true},{"path":"@dxos/util","kind":"require-call","external":true},{"path":"@dxos/invariant","kind":"require-call","external":true},{"path":"@dxos/random-access-storage","kind":"require-call","external":true},{"path":"node:util","kind":"require-call","external":true},{"path":"readable-stream","kind":"require-call","external":true}],"exports":[],"entryPoint":"packages/common/hypercore/src/index.ts","inputs":{"node_modules/.pnpm/last-one-wins@1.0.4/node_modules/last-one-wins/index.js":{"bytesInOutput":1050},"node_modules/.pnpm/unordered-array-remove@1.0.2/node_modules/unordered-array-remove/index.js":{"bytesInOutput":445},"node_modules/.pnpm/unordered-set@2.0.1/node_modules/unordered-set/index.js":{"bytesInOutput":970},"node_modules/.pnpm/flat-tree@1.9.0/node_modules/flat-tree/index.js":{"bytesInOutput":7061},"node_modules/.pnpm/merkle-tree-stream@4.0.0/node_modules/merkle-tree-stream/generator.js":{"bytesInOutput":1808},"node_modules/.pnpm/codecs@2.2.0/node_modules/codecs/index.js":{"bytesInOutput":2401},"node_modules/.pnpm/atomic-batcher@1.0.2/node_modules/atomic-batcher/index.js":{"bytesInOutput":1667},"node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits_browser.js":{"bytesInOutput":931},"node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits.js":{"bytesInOutput":379},"node_modules/.pnpm/varint@4.0.1/node_modules/varint/encode.js":{"bytesInOutput":665},"node_modules/.pnpm/varint@4.0.1/node_modules/varint/decode.js":{"bytesInOutput":665},"node_modules/.pnpm/varint@4.0.1/node_modules/varint/length.js":{"bytesInOutput":614},"node_modules/.pnpm/varint@4.0.1/node_modules/varint/index.js":{"bytesInOutput":261},"node_modules/.pnpm/buffer-alloc-unsafe@1.1.0/node_modules/buffer-alloc-unsafe/index.js":{"bytesInOutput":580},"node_modules/.pnpm/bitfield-rle@2.2.1/node_modules/bitfield-rle/index.js":{"bytesInOutput":4882},"node_modules/.pnpm/memory-pager@1.5.0/node_modules/memory-pager/index.js":{"bytesInOutput":4541},"node_modules/.pnpm/sparse-bitfield@3.0.3/node_modules/sparse-bitfield/index.js":{"bytesInOutput":2821},"node_modules/.pnpm/hypercore@9.12.0/node_modules/hypercore/lib/bitfield.js":{"bytesInOutput":9709},"node_modules/.pnpm/hypercore@9.12.0/node_modules/hypercore/lib/tree-index.js":{"bytesInOutput":5147},"node_modules/.pnpm/buffer-fill@1.0.0/node_modules/buffer-fill/index.js":{"bytesInOutput":2789},"node_modules/.pnpm/buffer-alloc@1.2.0/node_modules/buffer-alloc/index.js":{"bytesInOutput":900},"node_modules/.pnpm/uint64be@2.0.2/node_modules/uint64be/index.js":{"bytesInOutput":879},"node_modules/.pnpm/hypercore-cache@1.0.2/node_modules/hypercore-cache/index.js":{"bytesInOutput":3301},"node_modules/.pnpm/hypercore@9.12.0/node_modules/hypercore/lib/cache.js":{"bytesInOutput":1012},"node_modules/.pnpm/hypercore@9.12.0/node_modules/hypercore/lib/storage.js":{"bytesInOutput":11808},"node_modules/.pnpm/uint64be@3.0.0/node_modules/uint64be/index.js":{"bytesInOutput":849},"node_modules/.pnpm/hypercore-crypto@2.3.2/node_modules/hypercore-crypto/index.js":{"bytesInOutput":4890},"node_modules/.pnpm/inspect-custom-symbol@1.1.1/node_modules/inspect-custom-symbol/index.js":{"bytesInOutput":323},"node_modules/.pnpm/pretty-hash@1.0.1/node_modules/pretty-hash/index.js":{"bytesInOutput":401},"node_modules/.pnpm/nanoguard@1.3.0/node_modules/nanoguard/index.js":{"bytesInOutput":1703},"node_modules/.pnpm/hypercore@9.12.0/node_modules/hypercore/lib/safe-buffer-equals.js":{"bytesInOutput":333},"node_modules/.pnpm/nanoassert@2.0.0/node_modules/nanoassert/index.js":{"bytesInOutput":480},"node_modules/.pnpm/clone@2.1.2/node_modules/clone/clone.js":{"bytesInOutput":6792},"node_modules/.pnpm/noise-protocol@3.0.1/node_modules/noise-protocol/cipher.js":{"bytesInOutput":3082},"node_modules/.pnpm/noise-protocol@3.0.1/node_modules/noise-protocol/cipher-state.js":{"bytesInOutput":3684},"node_modules/.pnpm/nanoassert@1.1.0/node_modules/nanoassert/index.js":{"bytesInOutput":553},"node_modules/.pnpm/hmac-blake2b@2.0.0/node_modules/hmac-blake2b/index.js":{"bytesInOutput":1622},"node_modules/.pnpm/noise-protocol@3.0.1/node_modules/noise-protocol/dh.js":{"bytesInOutput":1349},"node_modules/.pnpm/noise-protocol@3.0.1/node_modules/noise-protocol/hash.js":{"bytesInOutput":1738},"node_modules/.pnpm/noise-protocol@3.0.1/node_modules/noise-protocol/symmetric-state.js":{"bytesInOutput":5136},"node_modules/.pnpm/noise-protocol@3.0.1/node_modules/noise-protocol/handshake-state.js":{"bytesInOutput":14528},"node_modules/.pnpm/noise-protocol@3.0.1/node_modules/noise-protocol/index.js":{"bytesInOutput":200},"node_modules/.pnpm/simple-handshake@3.0.0/node_modules/simple-handshake/index.js":{"bytesInOutput":4337},"node_modules/.pnpm/varint@5.0.2/node_modules/varint/encode.js":{"bytesInOutput":666},"node_modules/.pnpm/varint@5.0.2/node_modules/varint/decode.js":{"bytesInOutput":670},"node_modules/.pnpm/varint@5.0.2/node_modules/varint/length.js":{"bytesInOutput":615},"node_modules/.pnpm/varint@5.0.2/node_modules/varint/index.js":{"bytesInOutput":265},"node_modules/.pnpm/simple-hypercore-protocol@2.1.2/node_modules/simple-hypercore-protocol/lib/handshake.js":{"bytesInOutput":4161},"node_modules/.pnpm/varint@5.0.0/node_modules/varint/encode.js":{"bytesInOutput":666},"node_modules/.pnpm/varint@5.0.0/node_modules/varint/decode.js":{"bytesInOutput":670},"node_modules/.pnpm/varint@5.0.0/node_modules/varint/length.js":{"bytesInOutput":615},"node_modules/.pnpm/varint@5.0.0/node_modules/varint/index.js":{"bytesInOutput":265},"node_modules/.pnpm/signed-varint@2.0.1/node_modules/signed-varint/index.js":{"bytesInOutput":652},"node_modules/.pnpm/b4a@1.6.0/node_modules/b4a/index.js":{"bytesInOutput":3757},"node_modules/.pnpm/protocol-buffers-encodings@1.2.0/node_modules/protocol-buffers-encodings/index.js":{"bytesInOutput":7734},"node_modules/.pnpm/simple-hypercore-protocol@2.1.2/node_modules/simple-hypercore-protocol/messages.js":{"bytesInOutput":36932},"node_modules/.pnpm/xsalsa20-universal@1.0.0/node_modules/xsalsa20-universal/index.js":{"bytesInOutput":674},"node_modules/.pnpm/simple-hypercore-protocol@2.1.2/node_modules/simple-hypercore-protocol/lib/xor.js":{"bytesInOutput":872},"node_modules/.pnpm/simple-message-channels@1.2.1/node_modules/simple-message-channels/index.js":{"bytesInOutput":6172},"node_modules/.pnpm/simple-hypercore-protocol@2.1.2/node_modules/simple-hypercore-protocol/index.js":{"bytesInOutput":9176},"node_modules/.pnpm/timeout-refresh@1.0.3/node_modules/timeout-refresh/refresh.js":{"bytesInOutput":839},"node_modules/.pnpm/timeout-refresh@1.0.3/node_modules/timeout-refresh/browser.js":{"bytesInOutput":881},"node_modules/.pnpm/timeout-refresh@1.0.3/node_modules/timeout-refresh/timers.js":{"bytesInOutput":1029},"node_modules/.pnpm/timeout-refresh@1.0.3/node_modules/timeout-refresh/index.js":{"bytesInOutput":347},"node_modules/.pnpm/abstract-extension@3.1.1/node_modules/abstract-extension/index.js":{"bytesInOutput":4426},"node_modules/.pnpm/ms@2.1.2/node_modules/ms/index.js":{"bytesInOutput":2911},"node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/common.js":{"bytesInOutput":5495},"node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/browser.js":{"bytesInOutput":4677},"node_modules/.pnpm/has-flag@4.0.0/node_modules/has-flag/index.js":{"bytesInOutput":493},"node_modules/.pnpm/supports-color@8.1.1/node_modules/supports-color/index.js":{"bytesInOutput":3570},"node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/node.js":{"bytesInOutput":4334},"node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/index.js":{"bytesInOutput":348},"node_modules/.pnpm/hypercore-protocol@8.0.7/node_modules/hypercore-protocol/index.js":{"bytesInOutput":17697},"node_modules/.pnpm/count-trailing-zeros@1.0.1/node_modules/count-trailing-zeros/ctz.js":{"bytesInOutput":470},"node_modules/.pnpm/fast-bitfield@1.2.2/node_modules/fast-bitfield/index.js":{"bytesInOutput":12024},"node_modules/.pnpm/hypercore@9.12.0/node_modules/hypercore/lib/replicate.js":{"bytesInOutput":24997},"node_modules/.pnpm/nanoresource@1.3.0/node_modules/nanoresource/emitter.js":{"bytesInOutput":3945},"packages/common/hypercore/src/empty.ts":{"bytesInOutput":243},"node_modules/.pnpm/hypercore-streams@1.0.1/node_modules/hypercore-streams/index.js":{"bytesInOutput":2525},"node_modules/.pnpm/hypercore@9.12.0/node_modules/hypercore/index.js":{"bytesInOutput":54633},"packages/common/hypercore/src/index.ts":{"bytesInOutput":641},"packages/common/hypercore/src/crypto.ts":{"bytesInOutput":1264},"packages/common/hypercore/src/defaults.ts":{"bytesInOutput":426},"packages/common/hypercore/src/hypercore-factory.ts":{"bytesInOutput":1431},"packages/common/hypercore/src/util.ts":{"bytesInOutput":128},"packages/common/hypercore/src/iterator.ts":{"bytesInOutput":266}},"bytes":352394}}}
1
+ {"inputs":{"node_modules/.pnpm/last-one-wins@1.0.4/node_modules/last-one-wins/index.js":{"bytes":712,"imports":[],"format":"cjs"},"node_modules/.pnpm/unordered-array-remove@1.0.2/node_modules/unordered-array-remove/index.js":{"bytes":212,"imports":[],"format":"cjs"},"node_modules/.pnpm/unordered-set@2.0.1/node_modules/unordered-set/index.js":{"bytes":677,"imports":[],"format":"cjs"},"node_modules/.pnpm/flat-tree@1.9.0/node_modules/flat-tree/index.js":{"bytes":5856,"imports":[],"format":"cjs"},"node_modules/.pnpm/merkle-tree-stream@4.0.0/node_modules/merkle-tree-stream/generator.js":{"bytes":1621,"imports":[{"path":"node_modules/.pnpm/flat-tree@1.9.0/node_modules/flat-tree/index.js","kind":"require-call","original":"flat-tree"}],"format":"cjs"},"node_modules/.pnpm/codecs@2.2.0/node_modules/codecs/index.js":{"bytes":1956,"imports":[],"format":"cjs"},"node_modules/.pnpm/atomic-batcher@1.0.2/node_modules/atomic-batcher/index.js":{"bytes":1230,"imports":[],"format":"cjs"},"node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits_browser.js":{"bytes":753,"imports":[],"format":"cjs"},"node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits.js":{"bytes":250,"imports":[{"path":"node:util","kind":"require-call","external":true},{"path":"node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits_browser.js","kind":"require-call","original":"./inherits_browser.js"}],"format":"cjs"},"node_modules/.pnpm/varint@4.0.1/node_modules/varint/encode.js":{"bytes":452,"imports":[],"format":"cjs"},"node_modules/.pnpm/varint@4.0.1/node_modules/varint/decode.js":{"bytes":515,"imports":[],"format":"cjs"},"node_modules/.pnpm/varint@4.0.1/node_modules/varint/length.js":{"bytes":471,"imports":[],"format":"cjs"},"node_modules/.pnpm/varint@4.0.1/node_modules/varint/index.js":{"bytes":134,"imports":[{"path":"node_modules/.pnpm/varint@4.0.1/node_modules/varint/encode.js","kind":"require-call","original":"./encode.js"},{"path":"node_modules/.pnpm/varint@4.0.1/node_modules/varint/decode.js","kind":"require-call","original":"./decode.js"},{"path":"node_modules/.pnpm/varint@4.0.1/node_modules/varint/length.js","kind":"require-call","original":"./length.js"}],"format":"cjs"},"node_modules/.pnpm/buffer-alloc-unsafe@1.1.0/node_modules/buffer-alloc-unsafe/index.js":{"bytes":356,"imports":[],"format":"cjs"},"node_modules/.pnpm/bitfield-rle@2.2.1/node_modules/bitfield-rle/index.js":{"bytes":4094,"imports":[{"path":"node_modules/.pnpm/varint@4.0.1/node_modules/varint/index.js","kind":"require-call","original":"varint"},{"path":"node_modules/.pnpm/buffer-alloc-unsafe@1.1.0/node_modules/buffer-alloc-unsafe/index.js","kind":"require-call","original":"buffer-alloc-unsafe"}],"format":"cjs"},"node_modules/.pnpm/memory-pager@1.5.0/node_modules/memory-pager/index.js":{"bytes":3731,"imports":[],"format":"cjs"},"node_modules/.pnpm/sparse-bitfield@3.0.3/node_modules/sparse-bitfield/index.js":{"bytes":2303,"imports":[{"path":"node_modules/.pnpm/memory-pager@1.5.0/node_modules/memory-pager/index.js","kind":"require-call","original":"memory-pager"}],"format":"cjs"},"node_modules/.pnpm/hypercore@9.12.0/node_modules/hypercore/lib/bitfield.js":{"bytes":8371,"imports":[{"path":"node_modules/.pnpm/flat-tree@1.9.0/node_modules/flat-tree/index.js","kind":"require-call","original":"flat-tree"},{"path":"node_modules/.pnpm/bitfield-rle@2.2.1/node_modules/bitfield-rle/index.js","kind":"require-call","original":"bitfield-rle"},{"path":"node_modules/.pnpm/memory-pager@1.5.0/node_modules/memory-pager/index.js","kind":"require-call","original":"memory-pager"},{"path":"node_modules/.pnpm/sparse-bitfield@3.0.3/node_modules/sparse-bitfield/index.js","kind":"require-call","original":"sparse-bitfield"}],"format":"cjs"},"node_modules/.pnpm/hypercore@9.12.0/node_modules/hypercore/lib/tree-index.js":{"bytes":4624,"imports":[{"path":"node_modules/.pnpm/flat-tree@1.9.0/node_modules/flat-tree/index.js","kind":"require-call","original":"flat-tree"},{"path":"node_modules/.pnpm/sparse-bitfield@3.0.3/node_modules/sparse-bitfield/index.js","kind":"require-call","original":"sparse-bitfield"}],"format":"cjs"},"node_modules/.pnpm/buffer-fill@1.0.0/node_modules/buffer-fill/index.js":{"bytes":2433,"imports":[],"format":"cjs"},"node_modules/.pnpm/buffer-alloc@1.2.0/node_modules/buffer-alloc/index.js":{"bytes":664,"imports":[{"path":"node_modules/.pnpm/buffer-fill@1.0.0/node_modules/buffer-fill/index.js","kind":"require-call","original":"buffer-fill"},{"path":"node_modules/.pnpm/buffer-alloc-unsafe@1.1.0/node_modules/buffer-alloc-unsafe/index.js","kind":"require-call","original":"buffer-alloc-unsafe"}],"format":"cjs"},"node_modules/.pnpm/uint64be@2.0.2/node_modules/uint64be/index.js":{"bytes":637,"imports":[{"path":"node_modules/.pnpm/buffer-alloc@1.2.0/node_modules/buffer-alloc/index.js","kind":"require-call","original":"buffer-alloc"}],"format":"cjs"},"node_modules/.pnpm/hypercore-cache@1.0.2/node_modules/hypercore-cache/index.js":{"bytes":2818,"imports":[],"format":"cjs"},"node_modules/.pnpm/hypercore@9.12.0/node_modules/hypercore/lib/cache.js":{"bytes":777,"imports":[{"path":"node_modules/.pnpm/hypercore-cache@1.0.2/node_modules/hypercore-cache/index.js","kind":"require-call","original":"hypercore-cache"}],"format":"cjs"},"node_modules/.pnpm/hypercore@9.12.0/node_modules/hypercore/lib/storage.js":{"bytes":10122,"imports":[{"path":"node_modules/.pnpm/uint64be@2.0.2/node_modules/uint64be/index.js","kind":"require-call","original":"uint64be"},{"path":"node_modules/.pnpm/flat-tree@1.9.0/node_modules/flat-tree/index.js","kind":"require-call","original":"flat-tree"},{"path":"node_modules/.pnpm/hypercore@9.12.0/node_modules/hypercore/lib/cache.js","kind":"require-call","original":"./cache"}],"format":"cjs"},"node_modules/.pnpm/uint64be@3.0.0/node_modules/uint64be/index.js":{"bytes":611,"imports":[],"format":"cjs"},"node_modules/.pnpm/hypercore-crypto@2.3.2/node_modules/hypercore-crypto/index.js":{"bytes":4243,"imports":[{"path":"sodium-universal","kind":"require-call","external":true},{"path":"node_modules/.pnpm/uint64be@3.0.0/node_modules/uint64be/index.js","kind":"require-call","original":"uint64be"}],"format":"cjs"},"node_modules/.pnpm/inspect-custom-symbol@1.1.1/node_modules/inspect-custom-symbol/index.js":{"bytes":129,"imports":[{"path":"node:util","kind":"require-call","external":true}],"format":"cjs"},"node_modules/.pnpm/pretty-hash@1.0.1/node_modules/pretty-hash/index.js":{"bytes":219,"imports":[],"format":"cjs"},"node_modules/.pnpm/nanoguard@1.3.0/node_modules/nanoguard/index.js":{"bytes":1199,"imports":[],"format":"cjs"},"node_modules/.pnpm/hypercore@9.12.0/node_modules/hypercore/lib/safe-buffer-equals.js":{"bytes":185,"imports":[],"format":"cjs"},"node_modules/.pnpm/nanoassert@2.0.0/node_modules/nanoassert/index.js":{"bytes":438,"imports":[],"format":"cjs"},"node_modules/.pnpm/clone@2.1.2/node_modules/clone/clone.js":{"bytes":7293,"imports":[],"format":"cjs"},"node_modules/.pnpm/noise-protocol@3.0.1/node_modules/noise-protocol/cipher.js":{"bytes":2722,"imports":[{"path":"sodium-universal/memory","kind":"require-call","external":true},{"path":"sodium-universal/crypto_aead","kind":"require-call","external":true},{"path":"node_modules/.pnpm/nanoassert@2.0.0/node_modules/nanoassert/index.js","kind":"require-call","original":"nanoassert"}],"format":"cjs"},"node_modules/.pnpm/noise-protocol@3.0.1/node_modules/noise-protocol/cipher-state.js":{"bytes":3101,"imports":[{"path":"sodium-universal/memory","kind":"require-call","external":true},{"path":"sodium-universal/helpers","kind":"require-call","external":true},{"path":"node_modules/.pnpm/nanoassert@2.0.0/node_modules/nanoassert/index.js","kind":"require-call","original":"nanoassert"},{"path":"node_modules/.pnpm/noise-protocol@3.0.1/node_modules/noise-protocol/cipher.js","kind":"require-call","original":"./cipher"}],"format":"cjs"},"node_modules/.pnpm/nanoassert@1.1.0/node_modules/nanoassert/index.js":{"bytes":396,"imports":[],"format":"cjs"},"node_modules/.pnpm/hmac-blake2b@2.0.0/node_modules/hmac-blake2b/index.js":{"bytes":1520,"imports":[{"path":"sodium-universal/memory","kind":"require-call","external":true},{"path":"sodium-universal/crypto_generichash","kind":"require-call","external":true},{"path":"node_modules/.pnpm/nanoassert@1.1.0/node_modules/nanoassert/index.js","kind":"require-call","original":"nanoassert"}],"format":"cjs"},"node_modules/.pnpm/noise-protocol@3.0.1/node_modules/noise-protocol/dh.js":{"bytes":1092,"imports":[{"path":"sodium-universal/crypto_kx","kind":"require-call","external":true},{"path":"sodium-universal/crypto_scalarmult","kind":"require-call","external":true},{"path":"node_modules/.pnpm/nanoassert@2.0.0/node_modules/nanoassert/index.js","kind":"require-call","original":"nanoassert"}],"format":"cjs"},"node_modules/.pnpm/noise-protocol@3.0.1/node_modules/noise-protocol/hash.js":{"bytes":1482,"imports":[{"path":"sodium-universal/memory","kind":"require-call","external":true},{"path":"sodium-universal/crypto_generichash","kind":"require-call","external":true},{"path":"node_modules/.pnpm/nanoassert@2.0.0/node_modules/nanoassert/index.js","kind":"require-call","original":"nanoassert"},{"path":"node_modules/.pnpm/hmac-blake2b@2.0.0/node_modules/hmac-blake2b/index.js","kind":"require-call","original":"hmac-blake2b"},{"path":"node_modules/.pnpm/noise-protocol@3.0.1/node_modules/noise-protocol/dh.js","kind":"require-call","original":"./dh"}],"format":"cjs"},"node_modules/.pnpm/noise-protocol@3.0.1/node_modules/noise-protocol/symmetric-state.js":{"bytes":4758,"imports":[{"path":"sodium-universal/memory","kind":"require-call","external":true},{"path":"node_modules/.pnpm/nanoassert@2.0.0/node_modules/nanoassert/index.js","kind":"require-call","original":"nanoassert"},{"path":"node_modules/.pnpm/noise-protocol@3.0.1/node_modules/noise-protocol/cipher-state.js","kind":"require-call","original":"./cipher-state"},{"path":"node_modules/.pnpm/noise-protocol@3.0.1/node_modules/noise-protocol/hash.js","kind":"require-call","original":"./hash"}],"format":"cjs"},"node_modules/.pnpm/noise-protocol@3.0.1/node_modules/noise-protocol/handshake-state.js":{"bytes":12735,"imports":[{"path":"sodium-universal/memory","kind":"require-call","external":true},{"path":"node_modules/.pnpm/nanoassert@2.0.0/node_modules/nanoassert/index.js","kind":"require-call","original":"nanoassert"},{"path":"node_modules/.pnpm/clone@2.1.2/node_modules/clone/clone.js","kind":"require-call","original":"clone"},{"path":"node_modules/.pnpm/noise-protocol@3.0.1/node_modules/noise-protocol/symmetric-state.js","kind":"require-call","original":"./symmetric-state"},{"path":"node_modules/.pnpm/noise-protocol@3.0.1/node_modules/noise-protocol/cipher-state.js","kind":"require-call","original":"./cipher-state"},{"path":"node_modules/.pnpm/noise-protocol@3.0.1/node_modules/noise-protocol/dh.js","kind":"require-call","original":"./dh"}],"format":"cjs"},"node_modules/.pnpm/noise-protocol@3.0.1/node_modules/noise-protocol/index.js":{"bytes":46,"imports":[{"path":"node_modules/.pnpm/noise-protocol@3.0.1/node_modules/noise-protocol/handshake-state.js","kind":"require-call","original":"./handshake-state"}],"format":"cjs"},"node_modules/.pnpm/simple-handshake@3.0.0/node_modules/simple-handshake/index.js":{"bytes":4170,"imports":[{"path":"node_modules/.pnpm/noise-protocol@3.0.1/node_modules/noise-protocol/index.js","kind":"require-call","original":"noise-protocol"},{"path":"node_modules/.pnpm/noise-protocol@3.0.1/node_modules/noise-protocol/symmetric-state.js","kind":"require-call","original":"noise-protocol/symmetric-state"},{"path":"node_modules/.pnpm/noise-protocol@3.0.1/node_modules/noise-protocol/hash.js","kind":"require-call","original":"noise-protocol/hash"},{"path":"node_modules/.pnpm/nanoassert@2.0.0/node_modules/nanoassert/index.js","kind":"require-call","original":"nanoassert"}],"format":"cjs"},"node_modules/.pnpm/varint@5.0.2/node_modules/varint/encode.js":{"bytes":452,"imports":[],"format":"cjs"},"node_modules/.pnpm/varint@5.0.2/node_modules/varint/decode.js":{"bytes":508,"imports":[],"format":"cjs"},"node_modules/.pnpm/varint@5.0.2/node_modules/varint/length.js":{"bytes":471,"imports":[],"format":"cjs"},"node_modules/.pnpm/varint@5.0.2/node_modules/varint/index.js":{"bytes":134,"imports":[{"path":"node_modules/.pnpm/varint@5.0.2/node_modules/varint/encode.js","kind":"require-call","original":"./encode.js"},{"path":"node_modules/.pnpm/varint@5.0.2/node_modules/varint/decode.js","kind":"require-call","original":"./decode.js"},{"path":"node_modules/.pnpm/varint@5.0.2/node_modules/varint/length.js","kind":"require-call","original":"./length.js"}],"format":"cjs"},"node_modules/.pnpm/simple-hypercore-protocol@2.1.2/node_modules/simple-hypercore-protocol/lib/handshake.js":{"bytes":3605,"imports":[{"path":"node_modules/.pnpm/simple-handshake@3.0.0/node_modules/simple-handshake/index.js","kind":"require-call","original":"simple-handshake"},{"path":"node_modules/.pnpm/noise-protocol@3.0.1/node_modules/noise-protocol/dh.js","kind":"require-call","original":"noise-protocol/dh"},{"path":"node_modules/.pnpm/hypercore-crypto@2.3.2/node_modules/hypercore-crypto/index.js","kind":"require-call","original":"hypercore-crypto"},{"path":"node_modules/.pnpm/varint@5.0.2/node_modules/varint/index.js","kind":"require-call","original":"varint"}],"format":"cjs"},"node_modules/.pnpm/varint@5.0.0/node_modules/varint/encode.js":{"bytes":452,"imports":[],"format":"cjs"},"node_modules/.pnpm/varint@5.0.0/node_modules/varint/decode.js":{"bytes":508,"imports":[],"format":"cjs"},"node_modules/.pnpm/varint@5.0.0/node_modules/varint/length.js":{"bytes":471,"imports":[],"format":"cjs"},"node_modules/.pnpm/varint@5.0.0/node_modules/varint/index.js":{"bytes":134,"imports":[{"path":"node_modules/.pnpm/varint@5.0.0/node_modules/varint/encode.js","kind":"require-call","original":"./encode.js"},{"path":"node_modules/.pnpm/varint@5.0.0/node_modules/varint/decode.js","kind":"require-call","original":"./decode.js"},{"path":"node_modules/.pnpm/varint@5.0.0/node_modules/varint/length.js","kind":"require-call","original":"./length.js"}],"format":"cjs"},"node_modules/.pnpm/signed-varint@2.0.1/node_modules/signed-varint/index.js":{"bytes":435,"imports":[{"path":"node_modules/.pnpm/varint@5.0.2/node_modules/varint/index.js","kind":"require-call","original":"varint"}],"format":"cjs"},"node_modules/.pnpm/b4a@1.6.0/node_modules/b4a/index.js":{"bytes":3179,"imports":[],"format":"cjs"},"node_modules/.pnpm/protocol-buffers-encodings@1.2.0/node_modules/protocol-buffers-encodings/index.js":{"bytes":6489,"imports":[{"path":"node_modules/.pnpm/varint@5.0.0/node_modules/varint/index.js","kind":"require-call","original":"varint"},{"path":"node_modules/.pnpm/signed-varint@2.0.1/node_modules/signed-varint/index.js","kind":"require-call","original":"signed-varint"},{"path":"node_modules/.pnpm/b4a@1.6.0/node_modules/b4a/index.js","kind":"require-call","original":"b4a"}],"format":"cjs"},"node_modules/.pnpm/simple-hypercore-protocol@2.1.2/node_modules/simple-hypercore-protocol/messages.js":{"bytes":30739,"imports":[{"path":"node_modules/.pnpm/protocol-buffers-encodings@1.2.0/node_modules/protocol-buffers-encodings/index.js","kind":"require-call","original":"protocol-buffers-encodings"}],"format":"cjs"},"node_modules/.pnpm/xsalsa20-universal@1.0.0/node_modules/xsalsa20-universal/index.js":{"bytes":450,"imports":[{"path":"sodium-native","kind":"require-call","external":true}],"format":"cjs"},"node_modules/.pnpm/simple-hypercore-protocol@2.1.2/node_modules/simple-hypercore-protocol/lib/xor.js":{"bytes":609,"imports":[{"path":"node_modules/.pnpm/xsalsa20-universal@1.0.0/node_modules/xsalsa20-universal/index.js","kind":"require-call","original":"xsalsa20-universal"},{"path":"node_modules/.pnpm/hypercore-crypto@2.3.2/node_modules/hypercore-crypto/index.js","kind":"require-call","original":"hypercore-crypto"}],"format":"cjs"},"node_modules/.pnpm/simple-message-channels@1.2.1/node_modules/simple-message-channels/index.js":{"bytes":5278,"imports":[{"path":"node_modules/.pnpm/varint@5.0.2/node_modules/varint/index.js","kind":"require-call","original":"varint"}],"format":"cjs"},"node_modules/.pnpm/simple-hypercore-protocol@2.1.2/node_modules/simple-hypercore-protocol/index.js":{"bytes":7913,"imports":[{"path":"node_modules/.pnpm/simple-hypercore-protocol@2.1.2/node_modules/simple-hypercore-protocol/lib/handshake.js","kind":"require-call","original":"./lib/handshake"},{"path":"node_modules/.pnpm/simple-hypercore-protocol@2.1.2/node_modules/simple-hypercore-protocol/messages.js","kind":"require-call","original":"./messages"},{"path":"node_modules/.pnpm/simple-hypercore-protocol@2.1.2/node_modules/simple-hypercore-protocol/lib/xor.js","kind":"require-call","original":"./lib/xor"},{"path":"node_modules/.pnpm/simple-message-channels@1.2.1/node_modules/simple-message-channels/index.js","kind":"require-call","original":"simple-message-channels"},{"path":"node_modules/.pnpm/hypercore-crypto@2.3.2/node_modules/hypercore-crypto/index.js","kind":"require-call","original":"hypercore-crypto"},{"path":"node_modules/.pnpm/varint@5.0.2/node_modules/varint/index.js","kind":"require-call","original":"varint"}],"format":"cjs"},"node_modules/.pnpm/timeout-refresh@1.0.3/node_modules/timeout-refresh/refresh.js":{"bytes":578,"imports":[],"format":"cjs"},"node_modules/.pnpm/timeout-refresh@1.0.3/node_modules/timeout-refresh/browser.js":{"bytes":620,"imports":[],"format":"cjs"},"node_modules/.pnpm/timeout-refresh@1.0.3/node_modules/timeout-refresh/timers.js":{"bytes":739,"imports":[{"path":"node:timers","kind":"require-call","external":true}],"format":"cjs"},"node_modules/.pnpm/timeout-refresh@1.0.3/node_modules/timeout-refresh/index.js":{"bytes":190,"imports":[{"path":"node_modules/.pnpm/timeout-refresh@1.0.3/node_modules/timeout-refresh/refresh.js","kind":"require-call","original":"./refresh"},{"path":"node_modules/.pnpm/timeout-refresh@1.0.3/node_modules/timeout-refresh/browser.js","kind":"require-call","original":"./browser"},{"path":"node_modules/.pnpm/timeout-refresh@1.0.3/node_modules/timeout-refresh/timers.js","kind":"require-call","original":"./timers"}],"format":"cjs"},"node_modules/.pnpm/abstract-extension@3.1.1/node_modules/abstract-extension/index.js":{"bytes":3630,"imports":[{"path":"node_modules/.pnpm/codecs@2.2.0/node_modules/codecs/index.js","kind":"require-call","original":"codecs"}],"format":"cjs"},"node_modules/.pnpm/ms@2.1.2/node_modules/ms/index.js":{"bytes":3023,"imports":[],"format":"cjs"},"node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/common.js":{"bytes":6289,"imports":[{"path":"node_modules/.pnpm/ms@2.1.2/node_modules/ms/index.js","kind":"require-call","original":"ms"}],"format":"cjs"},"node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/browser.js":{"bytes":6010,"imports":[{"path":"node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/common.js","kind":"require-call","original":"./common"}],"format":"cjs"},"node_modules/.pnpm/has-flag@4.0.0/node_modules/has-flag/index.js":{"bytes":330,"imports":[],"format":"cjs"},"node_modules/.pnpm/supports-color@8.1.1/node_modules/supports-color/index.js":{"bytes":3065,"imports":[{"path":"node:os","kind":"require-call","external":true},{"path":"node:tty","kind":"require-call","external":true},{"path":"node_modules/.pnpm/has-flag@4.0.0/node_modules/has-flag/index.js","kind":"require-call","original":"has-flag"}],"format":"cjs"},"node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/node.js":{"bytes":4685,"imports":[{"path":"node:tty","kind":"require-call","external":true},{"path":"node:util","kind":"require-call","external":true},{"path":"node_modules/.pnpm/supports-color@8.1.1/node_modules/supports-color/index.js","kind":"require-call","original":"supports-color"},{"path":"node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/common.js","kind":"require-call","original":"./common"}],"format":"cjs"},"node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/index.js":{"bytes":314,"imports":[{"path":"node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/browser.js","kind":"require-call","original":"./browser.js"},{"path":"node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/node.js","kind":"require-call","original":"./node.js"}],"format":"cjs"},"node_modules/.pnpm/hypercore-protocol@8.0.7/node_modules/hypercore-protocol/index.js":{"bytes":15546,"imports":[{"path":"node_modules/.pnpm/simple-hypercore-protocol@2.1.2/node_modules/simple-hypercore-protocol/index.js","kind":"require-call","original":"simple-hypercore-protocol"},{"path":"node_modules/.pnpm/hypercore-crypto@2.3.2/node_modules/hypercore-crypto/index.js","kind":"require-call","original":"hypercore-crypto"},{"path":"node_modules/.pnpm/timeout-refresh@1.0.3/node_modules/timeout-refresh/index.js","kind":"require-call","original":"timeout-refresh"},{"path":"node_modules/.pnpm/inspect-custom-symbol@1.1.1/node_modules/inspect-custom-symbol/index.js","kind":"require-call","original":"inspect-custom-symbol"},{"path":"node_modules/.pnpm/nanoguard@1.3.0/node_modules/nanoguard/index.js","kind":"require-call","original":"nanoguard"},{"path":"node_modules/.pnpm/pretty-hash@1.0.1/node_modules/pretty-hash/index.js","kind":"require-call","original":"pretty-hash"},{"path":"node_modules/.pnpm/abstract-extension@3.1.1/node_modules/abstract-extension/index.js","kind":"require-call","original":"abstract-extension"},{"path":"streamx","kind":"require-call","external":true},{"path":"node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/index.js","kind":"require-call","original":"debug"}],"format":"cjs"},"node_modules/.pnpm/count-trailing-zeros@1.0.1/node_modules/count-trailing-zeros/ctz.js":{"bytes":226,"imports":[],"format":"cjs"},"node_modules/.pnpm/fast-bitfield@1.2.2/node_modules/fast-bitfield/index.js":{"bytes":10700,"imports":[{"path":"node_modules/.pnpm/count-trailing-zeros@1.0.1/node_modules/count-trailing-zeros/ctz.js","kind":"require-call","original":"count-trailing-zeros"}],"format":"cjs"},"node_modules/.pnpm/hypercore@9.12.0/node_modules/hypercore/lib/replicate.js":{"bytes":23715,"imports":[{"path":"node_modules/.pnpm/hypercore-protocol@8.0.7/node_modules/hypercore-protocol/index.js","kind":"require-call","original":"hypercore-protocol"},{"path":"node_modules/.pnpm/timeout-refresh@1.0.3/node_modules/timeout-refresh/index.js","kind":"require-call","original":"timeout-refresh"},{"path":"node_modules/.pnpm/fast-bitfield@1.2.2/node_modules/fast-bitfield/index.js","kind":"require-call","original":"fast-bitfield"},{"path":"node_modules/.pnpm/unordered-set@2.0.1/node_modules/unordered-set/index.js","kind":"require-call","original":"unordered-set"},{"path":"node_modules/.pnpm/bitfield-rle@2.2.1/node_modules/bitfield-rle/index.js","kind":"require-call","original":"bitfield-rle"},{"path":"node_modules/.pnpm/hypercore@9.12.0/node_modules/hypercore/lib/tree-index.js","kind":"require-call","original":"./tree-index"}],"format":"cjs"},"node_modules/.pnpm/nanoresource@1.3.0/node_modules/nanoresource/emitter.js":{"bytes":3204,"imports":[{"path":"node:events","kind":"require-call","external":true},{"path":"node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits.js","kind":"require-call","original":"inherits"}],"format":"cjs"},"packages/common/hypercore/src/empty.ts":{"bytes":1173,"imports":[],"format":"cjs"},"node_modules/.pnpm/hypercore-streams@1.0.1/node_modules/hypercore-streams/index.js":{"bytes":1970,"imports":[{"path":"streamx","kind":"require-call","external":true}],"format":"cjs"},"node_modules/.pnpm/hypercore@9.12.0/node_modules/hypercore/index.js":{"bytes":50005,"imports":[{"path":"node_modules/.pnpm/last-one-wins@1.0.4/node_modules/last-one-wins/index.js","kind":"require-call","original":"last-one-wins"},{"path":"node_modules/.pnpm/unordered-array-remove@1.0.2/node_modules/unordered-array-remove/index.js","kind":"require-call","original":"unordered-array-remove"},{"path":"node_modules/.pnpm/unordered-set@2.0.1/node_modules/unordered-set/index.js","kind":"require-call","original":"unordered-set"},{"path":"node_modules/.pnpm/merkle-tree-stream@4.0.0/node_modules/merkle-tree-stream/generator.js","kind":"require-call","original":"merkle-tree-stream/generator"},{"path":"node_modules/.pnpm/flat-tree@1.9.0/node_modules/flat-tree/index.js","kind":"require-call","original":"flat-tree"},{"path":"node_modules/.pnpm/codecs@2.2.0/node_modules/codecs/index.js","kind":"require-call","original":"codecs"},{"path":"node_modules/.pnpm/atomic-batcher@1.0.2/node_modules/atomic-batcher/index.js","kind":"require-call","original":"atomic-batcher"},{"path":"node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits.js","kind":"require-call","original":"inherits"},{"path":"node_modules/.pnpm/hypercore@9.12.0/node_modules/hypercore/lib/bitfield.js","kind":"require-call","original":"./lib/bitfield"},{"path":"node_modules/.pnpm/sparse-bitfield@3.0.3/node_modules/sparse-bitfield/index.js","kind":"require-call","original":"sparse-bitfield"},{"path":"node_modules/.pnpm/hypercore@9.12.0/node_modules/hypercore/lib/tree-index.js","kind":"require-call","original":"./lib/tree-index"},{"path":"node_modules/.pnpm/hypercore@9.12.0/node_modules/hypercore/lib/storage.js","kind":"require-call","original":"./lib/storage"},{"path":"node_modules/.pnpm/hypercore-crypto@2.3.2/node_modules/hypercore-crypto/index.js","kind":"require-call","original":"hypercore-crypto"},{"path":"node_modules/.pnpm/inspect-custom-symbol@1.1.1/node_modules/inspect-custom-symbol/index.js","kind":"require-call","original":"inspect-custom-symbol"},{"path":"node_modules/.pnpm/pretty-hash@1.0.1/node_modules/pretty-hash/index.js","kind":"require-call","original":"pretty-hash"},{"path":"node_modules/.pnpm/nanoguard@1.3.0/node_modules/nanoguard/index.js","kind":"require-call","original":"nanoguard"},{"path":"node_modules/.pnpm/hypercore@9.12.0/node_modules/hypercore/lib/safe-buffer-equals.js","kind":"require-call","original":"./lib/safe-buffer-equals"},{"path":"node_modules/.pnpm/hypercore@9.12.0/node_modules/hypercore/lib/replicate.js","kind":"require-call","original":"./lib/replicate"},{"path":"node_modules/.pnpm/hypercore-protocol@8.0.7/node_modules/hypercore-protocol/index.js","kind":"require-call","original":"hypercore-protocol"},{"path":"node_modules/.pnpm/abstract-extension@3.1.1/node_modules/abstract-extension/index.js","kind":"require-call","original":"abstract-extension"},{"path":"node_modules/.pnpm/nanoresource@1.3.0/node_modules/nanoresource/emitter.js","kind":"require-call","original":"nanoresource/emitter"},{"path":"packages/common/hypercore/src/empty.ts","kind":"require-call","original":"hypercore-default-storage"},{"path":"node_modules/.pnpm/hypercore-streams@1.0.1/node_modules/hypercore-streams/index.js","kind":"require-call","original":"hypercore-streams"}],"format":"cjs"},"packages/common/hypercore/src/crypto.ts":{"bytes":4881,"imports":[{"path":"node:util","kind":"import-statement","external":true},{"path":"@dxos/crypto","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"packages/common/hypercore/src/defaults.ts":{"bytes":3716,"imports":[],"format":"esm"},"packages/common/hypercore/src/util.ts":{"bytes":791,"imports":[{"path":"node:util","kind":"import-statement","external":true}],"format":"esm"},"packages/common/hypercore/src/hypercore-factory.ts":{"bytes":5193,"imports":[{"path":"node_modules/.pnpm/hypercore@9.12.0/node_modules/hypercore/index.js","kind":"import-statement","original":"hypercore"},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/random-access-storage","kind":"import-statement","external":true},{"path":"packages/common/hypercore/src/util.ts","kind":"import-statement","original":"./util"}],"format":"esm"},"packages/common/hypercore/src/iterator.ts":{"bytes":3955,"imports":[{"path":"readable-stream","kind":"import-statement","external":true}],"format":"esm"},"packages/common/hypercore/src/index.ts":{"bytes":1068,"imports":[{"path":"node_modules/.pnpm/hypercore@9.12.0/node_modules/hypercore/index.js","kind":"import-statement","original":"hypercore"},{"path":"packages/common/hypercore/src/crypto.ts","kind":"import-statement","original":"./crypto"},{"path":"packages/common/hypercore/src/defaults.ts","kind":"import-statement","original":"./defaults"},{"path":"packages/common/hypercore/src/hypercore-factory.ts","kind":"import-statement","original":"./hypercore-factory"},{"path":"packages/common/hypercore/src/iterator.ts","kind":"import-statement","original":"./iterator"}],"format":"esm"}},"outputs":{"packages/common/hypercore/dist/lib/node/index.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":562051},"packages/common/hypercore/dist/lib/node/index.cjs":{"imports":[{"path":"node:util","kind":"require-call","external":true},{"path":"sodium-universal","kind":"require-call","external":true},{"path":"node:util","kind":"require-call","external":true},{"path":"sodium-universal/memory","kind":"require-call","external":true},{"path":"sodium-universal/crypto_aead","kind":"require-call","external":true},{"path":"sodium-universal/memory","kind":"require-call","external":true},{"path":"sodium-universal/helpers","kind":"require-call","external":true},{"path":"sodium-universal/memory","kind":"require-call","external":true},{"path":"sodium-universal/crypto_generichash","kind":"require-call","external":true},{"path":"sodium-universal/crypto_kx","kind":"require-call","external":true},{"path":"sodium-universal/crypto_scalarmult","kind":"require-call","external":true},{"path":"sodium-universal/memory","kind":"require-call","external":true},{"path":"sodium-universal/crypto_generichash","kind":"require-call","external":true},{"path":"sodium-universal/memory","kind":"require-call","external":true},{"path":"sodium-universal/memory","kind":"require-call","external":true},{"path":"sodium-native","kind":"require-call","external":true},{"path":"node:timers","kind":"require-call","external":true},{"path":"node:os","kind":"require-call","external":true},{"path":"node:tty","kind":"require-call","external":true},{"path":"node:tty","kind":"require-call","external":true},{"path":"node:util","kind":"require-call","external":true},{"path":"streamx","kind":"require-call","external":true},{"path":"node:events","kind":"require-call","external":true},{"path":"streamx","kind":"require-call","external":true},{"path":"node:util","kind":"require-call","external":true},{"path":"@dxos/crypto","kind":"require-call","external":true},{"path":"@dxos/invariant","kind":"require-call","external":true},{"path":"@dxos/util","kind":"require-call","external":true},{"path":"@dxos/invariant","kind":"require-call","external":true},{"path":"@dxos/random-access-storage","kind":"require-call","external":true},{"path":"node:util","kind":"require-call","external":true},{"path":"readable-stream","kind":"require-call","external":true}],"exports":[],"entryPoint":"packages/common/hypercore/src/index.ts","inputs":{"node_modules/.pnpm/last-one-wins@1.0.4/node_modules/last-one-wins/index.js":{"bytesInOutput":1050},"node_modules/.pnpm/unordered-array-remove@1.0.2/node_modules/unordered-array-remove/index.js":{"bytesInOutput":445},"node_modules/.pnpm/unordered-set@2.0.1/node_modules/unordered-set/index.js":{"bytesInOutput":970},"node_modules/.pnpm/flat-tree@1.9.0/node_modules/flat-tree/index.js":{"bytesInOutput":7061},"node_modules/.pnpm/merkle-tree-stream@4.0.0/node_modules/merkle-tree-stream/generator.js":{"bytesInOutput":1808},"node_modules/.pnpm/codecs@2.2.0/node_modules/codecs/index.js":{"bytesInOutput":2401},"node_modules/.pnpm/atomic-batcher@1.0.2/node_modules/atomic-batcher/index.js":{"bytesInOutput":1667},"node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits_browser.js":{"bytesInOutput":931},"node_modules/.pnpm/inherits@2.0.4/node_modules/inherits/inherits.js":{"bytesInOutput":379},"node_modules/.pnpm/varint@4.0.1/node_modules/varint/encode.js":{"bytesInOutput":665},"node_modules/.pnpm/varint@4.0.1/node_modules/varint/decode.js":{"bytesInOutput":665},"node_modules/.pnpm/varint@4.0.1/node_modules/varint/length.js":{"bytesInOutput":614},"node_modules/.pnpm/varint@4.0.1/node_modules/varint/index.js":{"bytesInOutput":261},"node_modules/.pnpm/buffer-alloc-unsafe@1.1.0/node_modules/buffer-alloc-unsafe/index.js":{"bytesInOutput":580},"node_modules/.pnpm/bitfield-rle@2.2.1/node_modules/bitfield-rle/index.js":{"bytesInOutput":4882},"node_modules/.pnpm/memory-pager@1.5.0/node_modules/memory-pager/index.js":{"bytesInOutput":4541},"node_modules/.pnpm/sparse-bitfield@3.0.3/node_modules/sparse-bitfield/index.js":{"bytesInOutput":2821},"node_modules/.pnpm/hypercore@9.12.0/node_modules/hypercore/lib/bitfield.js":{"bytesInOutput":9709},"node_modules/.pnpm/hypercore@9.12.0/node_modules/hypercore/lib/tree-index.js":{"bytesInOutput":5147},"node_modules/.pnpm/buffer-fill@1.0.0/node_modules/buffer-fill/index.js":{"bytesInOutput":2789},"node_modules/.pnpm/buffer-alloc@1.2.0/node_modules/buffer-alloc/index.js":{"bytesInOutput":900},"node_modules/.pnpm/uint64be@2.0.2/node_modules/uint64be/index.js":{"bytesInOutput":879},"node_modules/.pnpm/hypercore-cache@1.0.2/node_modules/hypercore-cache/index.js":{"bytesInOutput":3301},"node_modules/.pnpm/hypercore@9.12.0/node_modules/hypercore/lib/cache.js":{"bytesInOutput":1012},"node_modules/.pnpm/hypercore@9.12.0/node_modules/hypercore/lib/storage.js":{"bytesInOutput":11808},"node_modules/.pnpm/uint64be@3.0.0/node_modules/uint64be/index.js":{"bytesInOutput":849},"node_modules/.pnpm/hypercore-crypto@2.3.2/node_modules/hypercore-crypto/index.js":{"bytesInOutput":4890},"node_modules/.pnpm/inspect-custom-symbol@1.1.1/node_modules/inspect-custom-symbol/index.js":{"bytesInOutput":323},"node_modules/.pnpm/pretty-hash@1.0.1/node_modules/pretty-hash/index.js":{"bytesInOutput":401},"node_modules/.pnpm/nanoguard@1.3.0/node_modules/nanoguard/index.js":{"bytesInOutput":1703},"node_modules/.pnpm/hypercore@9.12.0/node_modules/hypercore/lib/safe-buffer-equals.js":{"bytesInOutput":333},"node_modules/.pnpm/nanoassert@2.0.0/node_modules/nanoassert/index.js":{"bytesInOutput":480},"node_modules/.pnpm/clone@2.1.2/node_modules/clone/clone.js":{"bytesInOutput":6792},"node_modules/.pnpm/noise-protocol@3.0.1/node_modules/noise-protocol/cipher.js":{"bytesInOutput":3082},"node_modules/.pnpm/noise-protocol@3.0.1/node_modules/noise-protocol/cipher-state.js":{"bytesInOutput":3684},"node_modules/.pnpm/nanoassert@1.1.0/node_modules/nanoassert/index.js":{"bytesInOutput":553},"node_modules/.pnpm/hmac-blake2b@2.0.0/node_modules/hmac-blake2b/index.js":{"bytesInOutput":1622},"node_modules/.pnpm/noise-protocol@3.0.1/node_modules/noise-protocol/dh.js":{"bytesInOutput":1349},"node_modules/.pnpm/noise-protocol@3.0.1/node_modules/noise-protocol/hash.js":{"bytesInOutput":1738},"node_modules/.pnpm/noise-protocol@3.0.1/node_modules/noise-protocol/symmetric-state.js":{"bytesInOutput":5136},"node_modules/.pnpm/noise-protocol@3.0.1/node_modules/noise-protocol/handshake-state.js":{"bytesInOutput":14528},"node_modules/.pnpm/noise-protocol@3.0.1/node_modules/noise-protocol/index.js":{"bytesInOutput":200},"node_modules/.pnpm/simple-handshake@3.0.0/node_modules/simple-handshake/index.js":{"bytesInOutput":4337},"node_modules/.pnpm/varint@5.0.2/node_modules/varint/encode.js":{"bytesInOutput":666},"node_modules/.pnpm/varint@5.0.2/node_modules/varint/decode.js":{"bytesInOutput":670},"node_modules/.pnpm/varint@5.0.2/node_modules/varint/length.js":{"bytesInOutput":615},"node_modules/.pnpm/varint@5.0.2/node_modules/varint/index.js":{"bytesInOutput":265},"node_modules/.pnpm/simple-hypercore-protocol@2.1.2/node_modules/simple-hypercore-protocol/lib/handshake.js":{"bytesInOutput":4161},"node_modules/.pnpm/varint@5.0.0/node_modules/varint/encode.js":{"bytesInOutput":666},"node_modules/.pnpm/varint@5.0.0/node_modules/varint/decode.js":{"bytesInOutput":670},"node_modules/.pnpm/varint@5.0.0/node_modules/varint/length.js":{"bytesInOutput":615},"node_modules/.pnpm/varint@5.0.0/node_modules/varint/index.js":{"bytesInOutput":265},"node_modules/.pnpm/signed-varint@2.0.1/node_modules/signed-varint/index.js":{"bytesInOutput":652},"node_modules/.pnpm/b4a@1.6.0/node_modules/b4a/index.js":{"bytesInOutput":3757},"node_modules/.pnpm/protocol-buffers-encodings@1.2.0/node_modules/protocol-buffers-encodings/index.js":{"bytesInOutput":7734},"node_modules/.pnpm/simple-hypercore-protocol@2.1.2/node_modules/simple-hypercore-protocol/messages.js":{"bytesInOutput":36932},"node_modules/.pnpm/xsalsa20-universal@1.0.0/node_modules/xsalsa20-universal/index.js":{"bytesInOutput":674},"node_modules/.pnpm/simple-hypercore-protocol@2.1.2/node_modules/simple-hypercore-protocol/lib/xor.js":{"bytesInOutput":872},"node_modules/.pnpm/simple-message-channels@1.2.1/node_modules/simple-message-channels/index.js":{"bytesInOutput":6172},"node_modules/.pnpm/simple-hypercore-protocol@2.1.2/node_modules/simple-hypercore-protocol/index.js":{"bytesInOutput":9176},"node_modules/.pnpm/timeout-refresh@1.0.3/node_modules/timeout-refresh/refresh.js":{"bytesInOutput":839},"node_modules/.pnpm/timeout-refresh@1.0.3/node_modules/timeout-refresh/browser.js":{"bytesInOutput":881},"node_modules/.pnpm/timeout-refresh@1.0.3/node_modules/timeout-refresh/timers.js":{"bytesInOutput":1029},"node_modules/.pnpm/timeout-refresh@1.0.3/node_modules/timeout-refresh/index.js":{"bytesInOutput":347},"node_modules/.pnpm/abstract-extension@3.1.1/node_modules/abstract-extension/index.js":{"bytesInOutput":4426},"node_modules/.pnpm/ms@2.1.2/node_modules/ms/index.js":{"bytesInOutput":2911},"node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/common.js":{"bytesInOutput":5495},"node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/browser.js":{"bytesInOutput":4677},"node_modules/.pnpm/has-flag@4.0.0/node_modules/has-flag/index.js":{"bytesInOutput":493},"node_modules/.pnpm/supports-color@8.1.1/node_modules/supports-color/index.js":{"bytesInOutput":3570},"node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/node.js":{"bytesInOutput":4334},"node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/index.js":{"bytesInOutput":348},"node_modules/.pnpm/hypercore-protocol@8.0.7/node_modules/hypercore-protocol/index.js":{"bytesInOutput":17697},"node_modules/.pnpm/count-trailing-zeros@1.0.1/node_modules/count-trailing-zeros/ctz.js":{"bytesInOutput":470},"node_modules/.pnpm/fast-bitfield@1.2.2/node_modules/fast-bitfield/index.js":{"bytesInOutput":12024},"node_modules/.pnpm/hypercore@9.12.0/node_modules/hypercore/lib/replicate.js":{"bytesInOutput":24997},"node_modules/.pnpm/nanoresource@1.3.0/node_modules/nanoresource/emitter.js":{"bytesInOutput":3945},"packages/common/hypercore/src/empty.ts":{"bytesInOutput":243},"node_modules/.pnpm/hypercore-streams@1.0.1/node_modules/hypercore-streams/index.js":{"bytesInOutput":2525},"node_modules/.pnpm/hypercore@9.12.0/node_modules/hypercore/index.js":{"bytesInOutput":54633},"packages/common/hypercore/src/index.ts":{"bytesInOutput":641},"packages/common/hypercore/src/crypto.ts":{"bytesInOutput":1254},"packages/common/hypercore/src/defaults.ts":{"bytesInOutput":426},"packages/common/hypercore/src/hypercore-factory.ts":{"bytesInOutput":1426},"packages/common/hypercore/src/util.ts":{"bytesInOutput":128},"packages/common/hypercore/src/iterator.ts":{"bytesInOutput":266}},"bytes":352379}}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/hypercore",
3
- "version": "0.1.57-main.e87098f",
3
+ "version": "0.1.57",
4
4
  "description": "Hypercore wrapper and utils.",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -20,16 +20,16 @@
20
20
  "sodium-native": "^3.2.0",
21
21
  "sodium-universal": "^3.0.2",
22
22
  "streamx": "^2.12.5",
23
- "@dxos/async": "0.1.57-main.e87098f",
24
- "@dxos/codec-protobuf": "0.1.57-main.e87098f",
25
- "@dxos/crypto": "0.1.57-main.e87098f",
26
- "@dxos/debug": "0.1.57-main.e87098f",
27
- "@dxos/invariant": "0.1.57-main.e87098f",
28
- "@dxos/keys": "0.1.57-main.e87098f",
29
- "@dxos/node-std": "0.1.57-main.e87098f",
30
- "@dxos/random-access-storage": "0.1.57-main.e87098f",
31
- "@dxos/typings": "0.1.57-main.e87098f",
32
- "@dxos/util": "0.1.57-main.e87098f"
23
+ "@dxos/async": "0.1.57",
24
+ "@dxos/codec-protobuf": "0.1.57",
25
+ "@dxos/crypto": "0.1.57",
26
+ "@dxos/debug": "0.1.57",
27
+ "@dxos/invariant": "0.1.57",
28
+ "@dxos/keys": "0.1.57",
29
+ "@dxos/node-std": "0.1.57",
30
+ "@dxos/random-access-storage": "0.1.57",
31
+ "@dxos/typings": "0.1.57",
32
+ "@dxos/util": "0.1.57"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@faker-js/faker": "^8.0.2",
@@ -39,8 +39,9 @@
39
39
  "hypercore-protocol": "^8.0.7",
40
40
  "noise-protocol": "3.0.1",
41
41
  "random-access-memory": "^4.1.0",
42
- "@dxos/log": "0.1.57-main.e87098f",
43
- "@dxos/util": "0.1.57-main.e87098f"
42
+ "@dxos/log": "0.1.57",
43
+ "@dxos/tracing": "0.1.57",
44
+ "@dxos/util": "0.1.57"
44
45
  },
45
46
  "publishConfig": {
46
47
  "access": "public"
@@ -28,7 +28,7 @@ export class HypercoreFactory<T> {
28
28
  * do not behave uniformly across platforms.
29
29
  */
30
30
  createFeed(publicKey: Buffer, options?: HypercoreOptions): Hypercore<T> {
31
- const directory = this._root.createDirectory(publicKey.toString());
31
+ const directory = this._root.createDirectory(publicKey.toString('hex'));
32
32
  const storage = (filename: string) => directory.getOrCreateFile(filename).native;
33
33
  return hypercore(storage, publicKey, Object.assign({}, this._options, options));
34
34
  }
@@ -5,10 +5,13 @@
5
5
  import { faker } from '@faker-js/faker';
6
6
  import { expect } from 'chai';
7
7
 
8
- import { latch } from '@dxos/async';
8
+ import { latch, sleep, Trigger } from '@dxos/async';
9
9
  import { createKeyPair } from '@dxos/crypto';
10
10
  import { log } from '@dxos/log';
11
+ import { createStorage, StorageType } from '@dxos/random-access-storage';
11
12
  import { describe, test } from '@dxos/test';
13
+ import { TRACE_PROCESSOR } from '@dxos/tracing';
14
+ import { range, sum } from '@dxos/util';
12
15
 
13
16
  import { HypercoreFactory } from './hypercore-factory';
14
17
  import { createReadable } from './iterator';
@@ -17,13 +20,14 @@ import { batch, createDataItem, TestDataItem } from './testing';
17
20
  const noop = () => {};
18
21
 
19
22
  describe('Replication', () => {
20
- const factory1 = new HypercoreFactory();
21
- const factory2 = new HypercoreFactory();
23
+ const storage = createStorage({ type: StorageType.RAM, root: 'x' });
24
+ const factory1 = new HypercoreFactory(storage.createDirectory('one'));
25
+ const factory2 = new HypercoreFactory(storage.createDirectory('two'));
22
26
 
23
27
  test('replicates feeds', async () => {
24
28
  const { publicKey, secretKey } = createKeyPair();
25
- const core1 = factory1.createFeed(publicKey, { secretKey });
26
- const core2 = factory2.createFeed(publicKey);
29
+ const core1 = factory1.createFeed(publicKey, { stats: true, sparse: true, eagerUpdate: false, secretKey });
30
+ const core2 = factory2.createFeed(publicKey, { stats: true, sparse: true, eagerUpdate: false });
27
31
 
28
32
  // Open.
29
33
  {
@@ -33,13 +37,42 @@ describe('Replication', () => {
33
37
  await ready();
34
38
  }
35
39
 
36
- const numBlocks = 10;
40
+ const numBlocks = 100;
41
+
42
+ // TODO(burdon): Test # wire requests
43
+ // Defined by replication or feed options (defaults to 16).
44
+ const maxRequests = undefined;
37
45
 
38
46
  // Sync.
39
47
  {
40
- const stream1 = core1.replicate(true);
41
- const stream2 = core2.replicate(false);
48
+ // TODO(burdon): Replicate options.
49
+ // https://github.com/holepunchto/hypercore/tree/v9.12.0#var-stream--feedreplicateisinitiator-options
50
+ const stream1 = core1.replicate(true, { maxRequests });
51
+ const stream2 = core2.replicate(false, { maxRequests });
52
+
53
+ {
54
+ const uploaded: number[] = [];
55
+ const downloaded: number[] = [];
56
+ core1.on('upload', (i) => {
57
+ uploaded.push(i);
58
+ });
59
+ core2.on('download', (i) => {
60
+ downloaded.push(i);
61
+ });
42
62
 
63
+ // Fired when all data is replicated.
64
+ core2.on('sync', () => {
65
+ const blocks = downloaded.reduce((set, i) => set.add(i), new Set<number>());
66
+ expect(uploaded.length).to.eq(downloaded.length);
67
+ expect(blocks.size).to.eq(numBlocks);
68
+
69
+ // TODO(burdon): Not linear or matching.
70
+ // console.log('##', JSON.stringify({ uploaded, stats: core1.stats }));
71
+ // console.log('##', JSON.stringify({ downloaded, stats: core2.stats }));
72
+ });
73
+ }
74
+
75
+ // TODO(burdon): Buffer requests: 1) network stream; 2) file IO.
43
76
  const [streamsClosed, onClose] = latch({ count: 2 });
44
77
  stream1.pipe(stream2, onClose).pipe(stream1, onClose);
45
78
 
@@ -57,6 +90,9 @@ describe('Replication', () => {
57
90
  core1.append(`test-${i}`, noop);
58
91
  }
59
92
 
93
+ // Explicitly download (since sparse and not eager).
94
+ // Not completely linear but much more ordered than eager replication.
95
+ core2.download({ start: 0, linear: true });
60
96
  await streamsClosed();
61
97
  }
62
98
 
@@ -65,7 +101,6 @@ describe('Replication', () => {
65
101
  const [closed, close] = latch({ count: 2 });
66
102
  core1.close(close);
67
103
  core1.close(close);
68
-
69
104
  await closed();
70
105
  }
71
106
 
@@ -163,8 +198,8 @@ describe('Replication', () => {
163
198
 
164
199
  // Close feeds.
165
200
  {
166
- await core1.close();
167
- await core2.close();
201
+ core1.close();
202
+ core2.close();
168
203
 
169
204
  expect(core1.writable).to.be.false;
170
205
  expect(core1.stats.totals.uploadedBlocks).to.eq(numBlocks);
@@ -225,6 +260,8 @@ describe('Replication', () => {
225
260
  {
226
261
  const [done, inc] = latch({ count: numBlocks });
227
262
 
263
+ // TODO(burdon): Batch size.
264
+ // https://github.com/holepunchto/hypercore/tree/v9.12.0#var-stream--feedcreatereadstreamoptions
228
265
  setTimeout(async () => {
229
266
  for await (const _ of createReadable(core2.createReadStream({ live: true }))) {
230
267
  inc();
@@ -239,4 +276,147 @@ describe('Replication', () => {
239
276
 
240
277
  await done();
241
278
  }).timeout(5_000);
279
+
280
+ test
281
+ .skip('replication bench', async () => {
282
+ const numBlocks = 1_000;
283
+ const maxRequests = 1024;
284
+ const sparse = true;
285
+ const eagerUpdate = false;
286
+ const linear = false;
287
+
288
+ const { publicKey, secretKey } = createKeyPair();
289
+
290
+ const core1 = factory1.createFeed(publicKey, { secretKey, writable: true, sparse, eagerUpdate });
291
+ core1.on('error', (err) => {
292
+ console.error(err);
293
+ });
294
+ // console.log('create')
295
+ // await new Promise((resolve, reject) => core1.open(err => err ? reject(err) : resolve));
296
+ // console.log('OPENED')
297
+
298
+ // Write.
299
+ console.log('begin append');
300
+ const appendChunk = 100;
301
+ for (let i = 0; i < numBlocks / appendChunk; i++) {
302
+ const blocks = range(appendChunk).map((x) => `test-${i * appendChunk + x}`);
303
+ await new Promise((resolve) => core1.append(blocks, resolve));
304
+ }
305
+ expect(core1.length).to.eq(numBlocks);
306
+ console.log('end append');
307
+
308
+ console.log('begin wait');
309
+ await sleep(1_000);
310
+ console.log('end wait');
311
+
312
+ let lastHeartbeat = performance.now();
313
+ const heartbeat = setInterval(() => {
314
+ const now = performance.now();
315
+ console.log(`heartbeat dt=${now - lastHeartbeat}ms time=${now}`);
316
+ lastHeartbeat = now;
317
+ }, 500);
318
+
319
+ const core2 = factory2.createFeed(publicKey, { sparse, eagerUpdate });
320
+ core2.on('error', (err) => {
321
+ console.error(err);
322
+ });
323
+ // await new Promise(resolve => core2.open(resolve));
324
+
325
+ const begin = performance.now();
326
+
327
+ const done = new Trigger();
328
+ core2.download({ start: 0, end: core1.length, linear }, () => done.wake());
329
+
330
+ // Replicate.
331
+ {
332
+ console.log('begin replication');
333
+ const reporter = setInterval(() => {
334
+ console.log(core2.stats);
335
+ }, 1000);
336
+
337
+ // console.log("BEGIN replication")
338
+ const stream1 = core1.replicate(true, {
339
+ live: true,
340
+ noise: false,
341
+ encrypted: false,
342
+ maxRequests,
343
+ });
344
+ const stream2 = core2.replicate(false, {
345
+ live: true,
346
+ noise: false,
347
+ encrypted: false,
348
+ maxRequests,
349
+ });
350
+
351
+ const onClose = (err: any) => {
352
+ console.log('onclose');
353
+ if (err && !err.message.includes('Writable stream closed prematurely')) {
354
+ console.error(err);
355
+ }
356
+ };
357
+ stream1.pipe(stream2, onClose).pipe(stream1, onClose);
358
+
359
+ // expect(core1.stats.peers).to.have.lengthOf(1);
360
+ // expect(core2.stats.peers).to.have.lengthOf(1);
361
+
362
+ // Wait for complete sync.
363
+ core2.on('sync', () => {
364
+ // console.log('SYNC')
365
+ // stream1.end();
366
+ // stream2.end();
367
+ });
368
+
369
+ await done.wait();
370
+ // await streamsClosed();
371
+
372
+ clearInterval(reporter);
373
+ console.log(await core2.stats);
374
+ }
375
+
376
+ const end = performance.now();
377
+
378
+ // Make sure flushes are counted.
379
+ await sleep(1000);
380
+
381
+ TRACE_PROCESSOR.refresh();
382
+
383
+ // console.log(inspect(TRACE_PROCESSOR.findResourcesByClassName('WebFile').map(r => [
384
+ // r.data.info._fileName,
385
+ // ...r.data.metrics!.map(m => [m.name, m.timeSeries!.tracks![0].total])
386
+ // ])), false, null, true)
387
+ const totalFlushes = sum(
388
+ TRACE_PROCESSOR.findResourcesByClassName('WebFile').map(
389
+ (resource) => resource.getMetric('_flushes')!.timeSeries!.tracks![0].total,
390
+ ),
391
+ );
392
+
393
+ log.info('time', {
394
+ timeMs: end - begin,
395
+ numBlocks,
396
+ maxRequests,
397
+ storage: storage.type,
398
+ sparse,
399
+ eagerUpdate,
400
+ linear,
401
+ totalFlushes,
402
+ });
403
+
404
+ expect(await core2.has(0, numBlocks)).to.eq(true);
405
+
406
+ // Close.
407
+ {
408
+ const [closed, close] = latch({ count: 2 });
409
+ core1.on('close', close);
410
+ core2.on('close', close);
411
+ core1.close();
412
+ core2.close();
413
+ await closed();
414
+ }
415
+
416
+ clearInterval(heartbeat);
417
+
418
+ // expect(core1.stats.totals.uploadedBlocks).to.eq(numBlocks);
419
+ // expect(core2.stats.totals.downloadedBlocks).to.eq(numBlocks);
420
+ })
421
+ .timeout(500_000);
242
422
  });