From 1a544d7c2d11f48361871f712bd0e77dd5abcdf4 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sun, 15 Oct 2023 15:55:41 -0400 Subject: [PATCH] dep: update helia and add delegatedPeerRouting back --- npm-shrinkwrap.json | 2326 +++++++++++++++++++++++++++++-------------- package.json | 12 +- src/bootstrap.ts | 4 +- src/config.ts | 26 +- src/index.ts | 10 +- 5 files changed, 1612 insertions(+), 766 deletions(-) diff --git a/npm-shrinkwrap.json b/npm-shrinkwrap.json index f9e07e8..d237f78 100644 --- a/npm-shrinkwrap.json +++ b/npm-shrinkwrap.json @@ -26,7 +26,7 @@ "blockstore-idb": "^1.1.1", "datastore-core": "^9.2.0", "datastore-idb": "^2.1.2", - "helia": "1.3.5", + "helia": "^2.0.3", "ipfs-http-client": "^60.0.1", "multiformats": "^12.0.1", "p-defer": "^4.0.0", @@ -694,86 +694,77 @@ "peer": true }, "node_modules/@chainsafe/is-ip": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/@chainsafe/is-ip/-/is-ip-2.0.1.tgz", - "integrity": "sha512-nqSJ8u2a1Rv9FYbyI8qpDhTYujaKEyLknNrTejLYoSWmdeg+2WB7R6BZqPZYfrJzDxVi3rl6ZQuoaEvpKRZWgQ==" + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/@chainsafe/is-ip/-/is-ip-2.0.2.tgz", + "integrity": "sha512-ndGqEMG1W5WkGagaqOZHpPU172AGdxr+LD15sv3WIUvT5oCFUrG1Y0CW/v2Egwj4JXEvSibaIIIqImsm98y1nA==" }, "node_modules/@chainsafe/libp2p-gossipsub": { - "version": "8.0.1", - "resolved": "https://registry.npmjs.org/@chainsafe/libp2p-gossipsub/-/libp2p-gossipsub-8.0.1.tgz", - "integrity": "sha512-vzRN7F1zLd/DKfK9VLQ7rrc/lYQFvE/RGnXjr+EanD2RoX+BjSdqZkvzcrJcaDzkCMJRCvpsFzgz2iLbV7SgYg==", + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/@chainsafe/libp2p-gossipsub/-/libp2p-gossipsub-10.1.0.tgz", + "integrity": "sha512-mOVYJAvxYRkh2HeggNFW/7ukEccQDVEI9LPhvlnJk7gnJhyJJ6mhZxUAaytfp3v3qTkmeBRnEL0eJOQBm+MoOA==", "dependencies": { - "@libp2p/crypto": "^1.0.3", - "@libp2p/interface-connection": "^5.0.1", - "@libp2p/interface-connection-manager": "^3.0.1", - "@libp2p/interface-keys": "^1.0.3", - "@libp2p/interface-peer-id": "^2.0.0", - "@libp2p/interface-peer-store": "^2.0.3", - "@libp2p/interface-pubsub": "^4.0.0", - "@libp2p/interface-registrar": "^2.0.3", - "@libp2p/interfaces": "^3.2.0", - "@libp2p/logger": "^2.0.0", - "@libp2p/peer-id": "^2.0.0", - "@libp2p/peer-record": "^5.0.0", - "@libp2p/pubsub": "^7.0.1", - "@libp2p/topology": "^4.0.0", - "@multiformats/multiaddr": "^12.0.0", + "@libp2p/crypto": "^2.0.0", + "@libp2p/interface": "^0.1.0", + "@libp2p/interface-internal": "^0.1.0", + "@libp2p/logger": "^3.0.0", + "@libp2p/peer-id": "^3.0.0", + "@libp2p/pubsub": "^8.0.0", + "@multiformats/multiaddr": "^12.1.3", "abortable-iterator": "^5.0.1", - "denque": "^1.5.0", + "denque": "^2.1.0", "it-length-prefixed": "^9.0.1", "it-pipe": "^3.0.1", - "it-pushable": "^3.1.0", - "multiformats": "^11.0.0", - "protobufjs": "^6.11.2", - "uint8arraylist": "^2.3.2", - "uint8arrays": "^4.0.2" + "it-pushable": "^3.2.0", + "multiformats": "^12.0.1", + "protobufjs": "^7.2.4", + "uint8arraylist": "^2.4.3", + "uint8arrays": "^4.0.4" }, "engines": { "npm": ">=8.7.0" } }, - "node_modules/@chainsafe/libp2p-gossipsub/node_modules/@libp2p/pubsub": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/@libp2p/pubsub/-/pubsub-7.0.3.tgz", - "integrity": "sha512-BrUBQ6ljN1tU+2Hn1Vq+ZT/foVBGUVIywqoavNrFw5CmaBBTGuVRrmqE/MUToIS8dhonpW5RNCRabz3woq/4iQ==", + "node_modules/@chainsafe/libp2p-gossipsub/node_modules/@libp2p/crypto": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@libp2p/crypto/-/crypto-2.0.5.tgz", + "integrity": "sha512-m6Rn7i9q3SHCzMUBkEwZgAKS4evpGQ4SEx/YD96pM0ZoPtU5PFO0psfrerraanxFBh8wUX4vkCtKfyTPH7F+bQ==", "dependencies": { - "@libp2p/crypto": "^1.0.0", - "@libp2p/interface-connection": "^5.0.1", - "@libp2p/interface-peer-id": "^2.0.1", - "@libp2p/interface-pubsub": "^4.0.0", - "@libp2p/interface-registrar": "^2.0.11", - "@libp2p/interfaces": "^3.3.1", - "@libp2p/logger": "^2.0.7", - "@libp2p/peer-collections": "^3.0.1", - "@libp2p/peer-id": "^2.0.3", - "@libp2p/topology": "^4.0.1", - "abortable-iterator": "^5.0.1", - "it-length-prefixed": "^9.0.0", - "it-pipe": "^3.0.1", - "it-pushable": "^3.1.3", - "multiformats": "^11.0.0", - "p-queue": "^7.2.0", - "uint8arraylist": "^2.0.0", - "uint8arrays": "^4.0.2" - }, - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" + "@libp2p/interface": "^0.1.3", + "@noble/curves": "^1.1.0", + "@noble/hashes": "^1.3.1", + "multiformats": "^12.0.1", + "node-forge": "^1.1.0", + "protons-runtime": "^5.0.0", + "uint8arraylist": "^2.4.3", + "uint8arrays": "^4.0.6" } }, - "node_modules/@chainsafe/libp2p-gossipsub/node_modules/multiformats": { - "version": "11.0.2", - "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-11.0.2.tgz", - "integrity": "sha512-b5mYMkOkARIuVZCpvijFj9a6m5wMVLC7cf/jIPd5D/ARDOfLC5+IFkbgDXQgcU2goIsTD/O9NY4DI/Mt4OGvlg==", - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" + "node_modules/@chainsafe/libp2p-gossipsub/node_modules/@libp2p/logger": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@libp2p/logger/-/logger-3.0.3.tgz", + "integrity": "sha512-85ioPX10QN4ZOZeurAZe5sQeRUCkIBT2DikKRbE/AIWKauIKHvvIrN4CSdCdzLw29XNA+xxNO2FVkf51HGgCeQ==", + "dependencies": { + "@libp2p/interface": "^0.1.3", + "@multiformats/multiaddr": "^12.1.5", + "debug": "^4.3.4", + "interface-datastore": "^8.2.0", + "multiformats": "^12.0.1" + } + }, + "node_modules/@chainsafe/libp2p-gossipsub/node_modules/@libp2p/peer-id": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@libp2p/peer-id/-/peer-id-3.0.3.tgz", + "integrity": "sha512-IPVeywoC40bDd3ohtAIzpN8AOkMmD3U0BjdrFz/5ZbNP1+4n2gDIAwVzkAbF/t1iYYS4CX1TWfHuMqaMvd8l1A==", + "dependencies": { + "@libp2p/interface": "^0.1.3", + "multiformats": "^12.0.1", + "uint8arrays": "^4.0.6" } }, "node_modules/@chainsafe/libp2p-noise": { - "version": "12.0.1", - "resolved": "https://registry.npmjs.org/@chainsafe/libp2p-noise/-/libp2p-noise-12.0.1.tgz", - "integrity": "sha512-VYuc5a3raIcCmv4F+LOfez7/9rmMgfjNo9h66cspLJKHuWgpzzIRRL9srVth6VC5DMjftExHM0aZv47Tf5govQ==", + "version": "12.0.2", + "resolved": "https://registry.npmjs.org/@chainsafe/libp2p-noise/-/libp2p-noise-12.0.2.tgz", + "integrity": "sha512-bKlasdYJBXsCgcOw+gNNnpvNo3jD8BiSRpKrhYxEmBPQzesme15PBrj5Cx369PZEk4SvKSHS6dzL4oLxXqPSLw==", "dependencies": { "@libp2p/crypto": "^1.0.11", "@libp2p/interface-connection-encrypter": "^4.0.0", @@ -782,9 +773,9 @@ "@libp2p/interface-peer-id": "^2.0.0", "@libp2p/logger": "^2.0.5", "@libp2p/peer-id": "^2.0.0", - "@noble/hashes": "^1.3.0", - "@stablelib/chacha20poly1305": "^1.0.1", - "@stablelib/x25519": "^1.0.3", + "@noble/ciphers": "^0.1.4", + "@noble/curves": "^1.1.0", + "@noble/hashes": "^1.3.1", "it-length-prefixed": "^9.0.1", "it-pair": "^2.0.2", "it-pb-stream": "^4.0.1", @@ -799,19 +790,25 @@ "npm": ">=7.0.0" } }, + "node_modules/@chainsafe/libp2p-noise/node_modules/@noble/ciphers": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/@noble/ciphers/-/ciphers-0.1.4.tgz", + "integrity": "sha512-d3ZR8vGSpy3v/nllS+bD/OMN5UZqusWiQqkyj7AwzTnhXFH72pF5oB4Ach6DQ50g5kXxC28LdaYBEpsyv9KOUQ==", + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, "node_modules/@chainsafe/libp2p-yamux": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/@chainsafe/libp2p-yamux/-/libp2p-yamux-4.0.2.tgz", - "integrity": "sha512-p0m/4ab4JLaIQqUtxvm8bSqdt9sb0uXX8PFj1CQM1eJLeV1LxzzygaSOeLxN/5ckHCuK7q/9eb9xybvl6vz/JA==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/@chainsafe/libp2p-yamux/-/libp2p-yamux-5.0.0.tgz", + "integrity": "sha512-aWTnBPR2hJt0A2y579sMtZVB6IqgSSHlZ6Eg+WDxNZQ0zcexafuruZQDj+z3FUTNPz+E8IeuyCi7tjI4IEehjw==", "dependencies": { - "@libp2p/interface-connection": "^5.1.0", - "@libp2p/interface-stream-muxer": "^4.1.2", - "@libp2p/interfaces": "^3.3.2", - "@libp2p/logger": "^2.0.7", + "@libp2p/interface": "^0.1.0", + "@libp2p/logger": "^3.0.0", "abortable-iterator": "^5.0.1", - "any-signal": "^4.1.1", + "it-foreach": "^2.0.3", "it-pipe": "^3.0.1", - "it-pushable": "^3.1.3", + "it-pushable": "^3.2.0", "uint8arraylist": "^2.4.3" }, "engines": { @@ -819,6 +816,18 @@ "npm": ">=7.0.0" } }, + "node_modules/@chainsafe/libp2p-yamux/node_modules/@libp2p/logger": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@libp2p/logger/-/logger-3.0.3.tgz", + "integrity": "sha512-85ioPX10QN4ZOZeurAZe5sQeRUCkIBT2DikKRbE/AIWKauIKHvvIrN4CSdCdzLw29XNA+xxNO2FVkf51HGgCeQ==", + "dependencies": { + "@libp2p/interface": "^0.1.3", + "@multiformats/multiaddr": "^12.1.5", + "debug": "^4.3.4", + "interface-datastore": "^8.2.0", + "multiformats": "^12.0.1" + } + }, "node_modules/@chainsafe/netmask": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/@chainsafe/netmask/-/netmask-2.0.0.tgz", @@ -2089,22 +2098,37 @@ "integrity": "sha512-Hcv+nVC0kZnQ3tD9GVu5xSMR4VVYOteQIr/hwFPVEvPdlXqgGEuRjiheChHgdM+JyqdgNcmzZOX/tnl0JOiI7A==" }, "node_modules/@libp2p/bootstrap": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/@libp2p/bootstrap/-/bootstrap-8.0.0.tgz", - "integrity": "sha512-xbaJ+ybx1FGsi8FeGl9g1Wk6P2zf5/Thdk9Fe1qXV0O0xIW0xRWrefOYG5Dvt+BV54C/zlnQ4CG+Xs+Rr7wsbA==", + "version": "9.0.8", + "resolved": "https://registry.npmjs.org/@libp2p/bootstrap/-/bootstrap-9.0.8.tgz", + "integrity": "sha512-d1kcvu9X64KVK/ec8Glr0mtqyjBoQUja8pGUH7vZ9nM5dIn7FITKgFMQwz//EImnsmbUoOEeEUBEzk2mialmww==", "dependencies": { - "@libp2p/interface-peer-discovery": "^2.0.0", - "@libp2p/interface-peer-info": "^1.0.7", - "@libp2p/interface-peer-store": "^2.0.0", - "@libp2p/interfaces": "^3.0.3", - "@libp2p/logger": "^2.0.1", - "@libp2p/peer-id": "^2.0.0", - "@multiformats/mafmt": "^12.0.0", - "@multiformats/multiaddr": "^12.0.0" - }, - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" + "@libp2p/interface": "^0.1.3", + "@libp2p/logger": "^3.0.3", + "@libp2p/peer-id": "^3.0.3", + "@multiformats/mafmt": "^12.1.2", + "@multiformats/multiaddr": "^12.1.5" + } + }, + "node_modules/@libp2p/bootstrap/node_modules/@libp2p/logger": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@libp2p/logger/-/logger-3.0.3.tgz", + "integrity": "sha512-85ioPX10QN4ZOZeurAZe5sQeRUCkIBT2DikKRbE/AIWKauIKHvvIrN4CSdCdzLw29XNA+xxNO2FVkf51HGgCeQ==", + "dependencies": { + "@libp2p/interface": "^0.1.3", + "@multiformats/multiaddr": "^12.1.5", + "debug": "^4.3.4", + "interface-datastore": "^8.2.0", + "multiformats": "^12.0.1" + } + }, + "node_modules/@libp2p/bootstrap/node_modules/@libp2p/peer-id": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@libp2p/peer-id/-/peer-id-3.0.3.tgz", + "integrity": "sha512-IPVeywoC40bDd3ohtAIzpN8AOkMmD3U0BjdrFz/5ZbNP1+4n2gDIAwVzkAbF/t1iYYS4CX1TWfHuMqaMvd8l1A==", + "dependencies": { + "@libp2p/interface": "^0.1.3", + "multiformats": "^12.0.1", + "uint8arrays": "^4.0.6" } }, "node_modules/@libp2p/crypto": { @@ -2190,16 +2214,19 @@ "npm": ">=7.0.0" } }, - "node_modules/@libp2p/interface-address-manager": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@libp2p/interface-address-manager/-/interface-address-manager-3.0.1.tgz", - "integrity": "sha512-8N1nfOtZ/CnZ/cL0Bnj59fhcSs7orI4evmNVsv2DM1VaNHXqc9tPy8JmQE2HRjrUXeUPwtzzG2eoP7l0ZYdC0g==", + "node_modules/@libp2p/interface": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/@libp2p/interface/-/interface-0.1.3.tgz", + "integrity": "sha512-C1O7Xqd2TGVWrIOEDx6kGJSk4YOysWGmYG5Oh3chnsCY0wjUSsLDpl9+wKrdiM/lJbAlHlV65ZOvSkIQ9cWPBQ==", "dependencies": { - "@multiformats/multiaddr": "^12.0.0" - }, - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" + "@multiformats/multiaddr": "^12.1.5", + "abortable-iterator": "^5.0.1", + "it-pushable": "^3.2.0", + "it-stream-types": "^2.0.1", + "multiformats": "^12.0.1", + "p-defer": "^4.0.0", + "race-signal": "^1.0.0", + "uint8arraylist": "^2.4.3" } }, "node_modules/@libp2p/interface-connection": { @@ -2231,36 +2258,6 @@ "npm": ">=7.0.0" } }, - "node_modules/@libp2p/interface-connection-gater": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@libp2p/interface-connection-gater/-/interface-connection-gater-3.0.1.tgz", - "integrity": "sha512-3a+EmcKFIdYVM6tmmIKZt/4fREPApA/Z/PZHOEa4lqJA9c/BHO1HTq0YzEoYsptudYTcdhQLgpYzh8FVhfZGDg==", - "dependencies": { - "@libp2p/interface-connection": "^5.0.0", - "@libp2p/interface-peer-id": "^2.0.0", - "@multiformats/multiaddr": "^12.0.0" - }, - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" - } - }, - "node_modules/@libp2p/interface-connection-manager": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@libp2p/interface-connection-manager/-/interface-connection-manager-3.0.1.tgz", - "integrity": "sha512-7ZAvzOWfHs3BtaoZoWsT+Ks1bo6HjyRMq1SJdFWDJ+ZkYEzrf6sdtQwsX8eXhwRDO6PuzpUDqLZ9TNQ2GVKEEw==", - "dependencies": { - "@libp2p/interface-connection": "^5.0.0", - "@libp2p/interface-peer-id": "^2.0.0", - "@libp2p/interfaces": "^3.0.0", - "@libp2p/peer-collections": "^3.0.1", - "@multiformats/multiaddr": "^12.0.0" - }, - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" - } - }, "node_modules/@libp2p/interface-content-routing": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/@libp2p/interface-content-routing/-/interface-content-routing-2.1.1.tgz", @@ -2309,6 +2306,17 @@ "npm": ">=7.0.0" } }, + "node_modules/@libp2p/interface-internal": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/@libp2p/interface-internal/-/interface-internal-0.1.6.tgz", + "integrity": "sha512-n4Sv9tSr+2QRN7tHShmUJILQRoIPRPPkl0Zr8mVOW91XcdN2CfLYrzqeM1Yvl/iZx98bNMZXJveZV9OVuBynuQ==", + "dependencies": { + "@libp2p/interface": "^0.1.3", + "@libp2p/peer-collections": "^4.0.5", + "@multiformats/multiaddr": "^12.1.5", + "uint8arraylist": "^2.4.3" + } + }, "node_modules/@libp2p/interface-keychain": { "version": "2.0.5", "resolved": "https://registry.npmjs.org/@libp2p/interface-keychain/-/interface-keychain-2.0.5.tgz", @@ -2465,19 +2473,6 @@ "npm": ">=7.0.0" } }, - "node_modules/@libp2p/interface-record": { - "version": "2.0.7", - "resolved": "https://registry.npmjs.org/@libp2p/interface-record/-/interface-record-2.0.7.tgz", - "integrity": "sha512-AFPytZWI+p8FJWP0xuK5zbSjalLAOIMzEed2lBKdRWvdGBQUHt9ENLTkfkI9G7p/Pp3hlhVzzBXdIErKd+0GxQ==", - "dependencies": { - "@libp2p/interface-peer-id": "^2.0.0", - "uint8arraylist": "^2.4.3" - }, - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" - } - }, "node_modules/@libp2p/interface-registrar": { "version": "2.0.12", "resolved": "https://registry.npmjs.org/@libp2p/interface-registrar/-/interface-registrar-2.0.12.tgz", @@ -2536,77 +2531,72 @@ } }, "node_modules/@libp2p/ipni-content-routing": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@libp2p/ipni-content-routing/-/ipni-content-routing-1.0.1.tgz", - "integrity": "sha512-zPNbkbRHDUPB3wyzm9bMFJBgE38bFJw90NAAwFM1paBuPOn7z+UjuGuZA1gQrgKLO+++Q0DCMeVmkO5Zo3Nzfg==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@libp2p/ipni-content-routing/-/ipni-content-routing-2.0.1.tgz", + "integrity": "sha512-35KVsxUP/Vr2PpoFk7Mz4oDcimQtRvu13RttByjIeh/dl0MbH5ch5iiP8mfno2iiJPYcjuVkXhMkGJZ0Dreing==", "dependencies": { - "@libp2p/interface-content-routing": "^2.0.2", - "@libp2p/interface-peer-info": "^1.0.9", - "@libp2p/interfaces": "^3.3.1", - "@libp2p/logger": "^2.0.7", - "@libp2p/peer-id": "^2.0.3", + "@libp2p/interface": "^0.1.1", + "@libp2p/logger": "^3.0.1", + "@libp2p/peer-id": "^3.0.1", "@multiformats/multiaddr": "^12.1.2", "any-signal": "^4.1.1", "browser-readablestream-to-it": "^2.0.2", "iterable-ndjson": "^1.1.0", - "multiformats": "^11.0.2", + "multiformats": "^12.0.1", "p-defer": "^4.0.0", "p-queue": "^7.3.4" - }, - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" } }, - "node_modules/@libp2p/ipni-content-routing/node_modules/multiformats": { - "version": "11.0.2", - "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-11.0.2.tgz", - "integrity": "sha512-b5mYMkOkARIuVZCpvijFj9a6m5wMVLC7cf/jIPd5D/ARDOfLC5+IFkbgDXQgcU2goIsTD/O9NY4DI/Mt4OGvlg==", - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" + "node_modules/@libp2p/ipni-content-routing/node_modules/@libp2p/logger": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@libp2p/logger/-/logger-3.0.3.tgz", + "integrity": "sha512-85ioPX10QN4ZOZeurAZe5sQeRUCkIBT2DikKRbE/AIWKauIKHvvIrN4CSdCdzLw29XNA+xxNO2FVkf51HGgCeQ==", + "dependencies": { + "@libp2p/interface": "^0.1.3", + "@multiformats/multiaddr": "^12.1.5", + "debug": "^4.3.4", + "interface-datastore": "^8.2.0", + "multiformats": "^12.0.1" + } + }, + "node_modules/@libp2p/ipni-content-routing/node_modules/@libp2p/peer-id": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@libp2p/peer-id/-/peer-id-3.0.3.tgz", + "integrity": "sha512-IPVeywoC40bDd3ohtAIzpN8AOkMmD3U0BjdrFz/5ZbNP1+4n2gDIAwVzkAbF/t1iYYS4CX1TWfHuMqaMvd8l1A==", + "dependencies": { + "@libp2p/interface": "^0.1.3", + "multiformats": "^12.0.1", + "uint8arrays": "^4.0.6" } }, "node_modules/@libp2p/kad-dht": { - "version": "9.3.8", - "resolved": "https://registry.npmjs.org/@libp2p/kad-dht/-/kad-dht-9.3.8.tgz", - "integrity": "sha512-vxYp8k6BKdlVexanH0qY3swyN3b9YqUmirdEz+SrbWtFpkqrebIfcuE/P0Hef4qfvF6I3osk4D+GtCDyl+IRhQ==", + "version": "10.0.9", + "resolved": "https://registry.npmjs.org/@libp2p/kad-dht/-/kad-dht-10.0.9.tgz", + "integrity": "sha512-O/Kwg4+eMip/I4n810WmCHAaQlB83LxvhOEcGtfRsKwF7JnJn/0Tu8+vEaIJATA7Ear6rWrhqyo7qgJonIauqA==", "dependencies": { - "@libp2p/crypto": "^1.0.4", - "@libp2p/interface-address-manager": "^3.0.0", - "@libp2p/interface-connection": "^5.0.1", - "@libp2p/interface-connection-manager": "^3.0.0", - "@libp2p/interface-content-routing": "^2.1.0", - "@libp2p/interface-metrics": "^4.0.0", - "@libp2p/interface-peer-discovery": "^2.0.0", - "@libp2p/interface-peer-id": "^2.0.0", - "@libp2p/interface-peer-info": "^1.0.3", - "@libp2p/interface-peer-routing": "^1.1.0", - "@libp2p/interface-peer-store": "^2.0.0", - "@libp2p/interface-registrar": "^2.0.11", - "@libp2p/interfaces": "^3.2.0", - "@libp2p/logger": "^2.0.1", - "@libp2p/peer-collections": "^3.0.0", - "@libp2p/peer-id": "^2.0.0", - "@libp2p/record": "^3.0.0", - "@libp2p/topology": "^4.0.0", - "@multiformats/multiaddr": "^12.0.0", - "@types/sinon": "^10.0.14", + "@libp2p/crypto": "^2.0.5", + "@libp2p/interface": "^0.1.3", + "@libp2p/interface-internal": "^0.1.6", + "@libp2p/logger": "^3.0.3", + "@libp2p/peer-collections": "^4.0.5", + "@libp2p/peer-id": "^3.0.3", + "@multiformats/multiaddr": "^12.1.5", + "@types/sinon": "^10.0.15", "abortable-iterator": "^5.0.1", "any-signal": "^4.1.1", "datastore-core": "^9.0.1", "events": "^3.3.0", "hashlru": "^2.3.0", - "interface-datastore": "^8.0.0", - "it-all": "^3.0.1", - "it-drain": "^3.0.1", + "interface-datastore": "^8.2.0", + "it-all": "^3.0.2", + "it-drain": "^3.0.2", "it-first": "^3.0.1", "it-length": "^3.0.1", - "it-length-prefixed": "^9.0.0", - "it-map": "^3.0.1", + "it-length-prefixed": "^9.0.1", + "it-map": "^3.0.3", "it-merge": "^3.0.0", "it-parallel": "^3.0.0", - "it-pipe": "^3.0.0", + "it-pipe": "^3.0.1", "it-stream-types": "^2.0.1", "it-take": "^3.0.1", "multiformats": "^12.0.1", @@ -2616,13 +2606,46 @@ "private-ip": "^3.0.0", "progress-events": "^1.0.0", "protons-runtime": "^5.0.0", - "uint8arraylist": "^2.0.0", - "uint8arrays": "^4.0.2", - "varint": "^6.0.0" - }, - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" + "uint8-varint": "^2.0.0", + "uint8arraylist": "^2.4.3", + "uint8arrays": "^4.0.6" + } + }, + "node_modules/@libp2p/kad-dht/node_modules/@libp2p/crypto": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@libp2p/crypto/-/crypto-2.0.5.tgz", + "integrity": "sha512-m6Rn7i9q3SHCzMUBkEwZgAKS4evpGQ4SEx/YD96pM0ZoPtU5PFO0psfrerraanxFBh8wUX4vkCtKfyTPH7F+bQ==", + "dependencies": { + "@libp2p/interface": "^0.1.3", + "@noble/curves": "^1.1.0", + "@noble/hashes": "^1.3.1", + "multiformats": "^12.0.1", + "node-forge": "^1.1.0", + "protons-runtime": "^5.0.0", + "uint8arraylist": "^2.4.3", + "uint8arrays": "^4.0.6" + } + }, + "node_modules/@libp2p/kad-dht/node_modules/@libp2p/logger": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@libp2p/logger/-/logger-3.0.3.tgz", + "integrity": "sha512-85ioPX10QN4ZOZeurAZe5sQeRUCkIBT2DikKRbE/AIWKauIKHvvIrN4CSdCdzLw29XNA+xxNO2FVkf51HGgCeQ==", + "dependencies": { + "@libp2p/interface": "^0.1.3", + "@multiformats/multiaddr": "^12.1.5", + "debug": "^4.3.4", + "interface-datastore": "^8.2.0", + "multiformats": "^12.0.1" + } + }, + "node_modules/@libp2p/kad-dht/node_modules/@libp2p/peer-id": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@libp2p/peer-id/-/peer-id-3.0.3.tgz", + "integrity": "sha512-IPVeywoC40bDd3ohtAIzpN8AOkMmD3U0BjdrFz/5ZbNP1+4n2gDIAwVzkAbF/t1iYYS4CX1TWfHuMqaMvd8l1A==", + "dependencies": { + "@libp2p/interface": "^0.1.3", + "multiformats": "^12.0.1", + "uint8arrays": "^4.0.6" } }, "node_modules/@libp2p/kad-dht/node_modules/it-all": { @@ -2652,39 +2675,65 @@ "npm": ">=7.0.0" } }, - "node_modules/@libp2p/kad-dht/node_modules/p-event": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/p-event/-/p-event-6.0.0.tgz", - "integrity": "sha512-Xbfxd0CfZmHLGKXH32k1JKjQYX6Rkv0UtQdaFJ8OyNcf+c0oWCeXHc1C4CX/IESZLmcvfPa5aFIO/vCr5gqtag==", + "node_modules/@libp2p/kad-dht/node_modules/uint8-varint": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/uint8-varint/-/uint8-varint-2.0.1.tgz", + "integrity": "sha512-euvmpuulJstK5+xNuI4S1KfnxJnbI5QP52RXIR3GZ3/ZMkOsEK2AgCtFpNvEQLXMxMx2o0qcyevK1fJwOZJagQ==", "dependencies": { - "p-timeout": "^6.1.2" - }, - "engines": { - "node": ">=16.17" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "uint8arraylist": "^2.0.0", + "uint8arrays": "^4.0.2" } }, "node_modules/@libp2p/keychain": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/@libp2p/keychain/-/keychain-2.0.1.tgz", - "integrity": "sha512-A59jilLYS+8Paq38Z96uSAxbD+3+3LJZx2qcHdMpTyqDO7yfJCbMPfVhP6EKmH5EY3z3qxBwUPVw35P4F4fslg==", + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/@libp2p/keychain/-/keychain-3.0.5.tgz", + "integrity": "sha512-D8Tisc5yi2+ykM4Yw4Qsan/hGITF+jfHMC6Nti1upOOLAhGFpm92if/hkb2rZH3Q1iXs7l3fIhgOs9VayNplhA==", "dependencies": { - "@libp2p/crypto": "^1.0.11", - "@libp2p/interface-keychain": "^2.0.3", - "@libp2p/interface-peer-id": "^2.0.1", - "@libp2p/interfaces": "^3.3.1", - "@libp2p/logger": "^2.0.5", - "@libp2p/peer-id": "^2.0.1", - "interface-datastore": "^8.0.0", + "@libp2p/crypto": "^2.0.5", + "@libp2p/interface": "^0.1.3", + "@libp2p/logger": "^3.0.3", + "@libp2p/peer-id": "^3.0.3", + "interface-datastore": "^8.2.0", "merge-options": "^3.0.4", "sanitize-filename": "^1.6.3", - "uint8arrays": "^4.0.3" - }, - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" + "uint8arrays": "^4.0.6" + } + }, + "node_modules/@libp2p/keychain/node_modules/@libp2p/crypto": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@libp2p/crypto/-/crypto-2.0.5.tgz", + "integrity": "sha512-m6Rn7i9q3SHCzMUBkEwZgAKS4evpGQ4SEx/YD96pM0ZoPtU5PFO0psfrerraanxFBh8wUX4vkCtKfyTPH7F+bQ==", + "dependencies": { + "@libp2p/interface": "^0.1.3", + "@noble/curves": "^1.1.0", + "@noble/hashes": "^1.3.1", + "multiformats": "^12.0.1", + "node-forge": "^1.1.0", + "protons-runtime": "^5.0.0", + "uint8arraylist": "^2.4.3", + "uint8arrays": "^4.0.6" + } + }, + "node_modules/@libp2p/keychain/node_modules/@libp2p/logger": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@libp2p/logger/-/logger-3.0.3.tgz", + "integrity": "sha512-85ioPX10QN4ZOZeurAZe5sQeRUCkIBT2DikKRbE/AIWKauIKHvvIrN4CSdCdzLw29XNA+xxNO2FVkf51HGgCeQ==", + "dependencies": { + "@libp2p/interface": "^0.1.3", + "@multiformats/multiaddr": "^12.1.5", + "debug": "^4.3.4", + "interface-datastore": "^8.2.0", + "multiformats": "^12.0.1" + } + }, + "node_modules/@libp2p/keychain/node_modules/@libp2p/peer-id": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@libp2p/peer-id/-/peer-id-3.0.3.tgz", + "integrity": "sha512-IPVeywoC40bDd3ohtAIzpN8AOkMmD3U0BjdrFz/5ZbNP1+4n2gDIAwVzkAbF/t1iYYS4CX1TWfHuMqaMvd8l1A==", + "dependencies": { + "@libp2p/interface": "^0.1.3", + "multiformats": "^12.0.1", + "uint8arrays": "^4.0.6" } }, "node_modules/@libp2p/logger": { @@ -2712,75 +2761,162 @@ "npm": ">=7.0.0" } }, - "node_modules/@libp2p/mplex": { - "version": "8.0.4", - "resolved": "https://registry.npmjs.org/@libp2p/mplex/-/mplex-8.0.4.tgz", - "integrity": "sha512-or3F5sGl8cw3TbnQgmkJ8z7/c97rwuzoy6f3b9gmkEVN8EzdxG2jOq+TEsgXzLz1GekRUR8nuDhliJ3UPhUnFw==", + "node_modules/@libp2p/mdns": { + "version": "9.0.10", + "resolved": "https://registry.npmjs.org/@libp2p/mdns/-/mdns-9.0.10.tgz", + "integrity": "sha512-EFbZbUxIjW7KDoGh7brZ2GLjY5Etbsq794aAbTfTXUQsClhPlErgnj6X21mDYq9IE2cD+ZazkqmKpfR9FOB5RQ==", "dependencies": { - "@libp2p/interface-connection": "^5.0.0", - "@libp2p/interface-stream-muxer": "^4.1.2", - "@libp2p/interfaces": "^3.2.0", - "@libp2p/logger": "^2.0.0", - "abortable-iterator": "^5.0.0", - "any-signal": "^4.0.1", + "@libp2p/interface": "^0.1.3", + "@libp2p/logger": "^3.0.3", + "@libp2p/peer-id": "^3.0.3", + "@libp2p/utils": "^4.0.4", + "@multiformats/multiaddr": "^12.1.5", + "@types/multicast-dns": "^7.2.1", + "dns-packet": "^5.4.0", + "multicast-dns": "^7.2.5" + } + }, + "node_modules/@libp2p/mdns/node_modules/@libp2p/logger": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@libp2p/logger/-/logger-3.0.3.tgz", + "integrity": "sha512-85ioPX10QN4ZOZeurAZe5sQeRUCkIBT2DikKRbE/AIWKauIKHvvIrN4CSdCdzLw29XNA+xxNO2FVkf51HGgCeQ==", + "dependencies": { + "@libp2p/interface": "^0.1.3", + "@multiformats/multiaddr": "^12.1.5", + "debug": "^4.3.4", + "interface-datastore": "^8.2.0", + "multiformats": "^12.0.1" + } + }, + "node_modules/@libp2p/mdns/node_modules/@libp2p/peer-id": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@libp2p/peer-id/-/peer-id-3.0.3.tgz", + "integrity": "sha512-IPVeywoC40bDd3ohtAIzpN8AOkMmD3U0BjdrFz/5ZbNP1+4n2gDIAwVzkAbF/t1iYYS4CX1TWfHuMqaMvd8l1A==", + "dependencies": { + "@libp2p/interface": "^0.1.3", + "multiformats": "^12.0.1", + "uint8arrays": "^4.0.6" + } + }, + "node_modules/@libp2p/mdns/node_modules/@libp2p/utils": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/@libp2p/utils/-/utils-4.0.4.tgz", + "integrity": "sha512-V++nWaCEO5QBk800SJ3kzzVn62cyBLt7fzVPDvVnxPyfLBn9prfShYb7XmvuZrnGSRCaUvD3b+q7CHGUEcdP2g==", + "dependencies": { + "@chainsafe/is-ip": "^2.0.2", + "@libp2p/interface": "^0.1.3", + "@libp2p/logger": "^3.0.3", + "@multiformats/multiaddr": "^12.1.5", + "@multiformats/multiaddr-matcher": "^1.0.1", + "is-loopback-addr": "^2.0.1", + "it-stream-types": "^2.0.1", + "private-ip": "^3.0.0", + "uint8arraylist": "^2.4.3" + } + }, + "node_modules/@libp2p/mplex": { + "version": "9.0.8", + "resolved": "https://registry.npmjs.org/@libp2p/mplex/-/mplex-9.0.8.tgz", + "integrity": "sha512-NHsoBWEImqr7nVNujNmedFW5ctefPG4kMAW0+UhLwJsq6X0p3qtaGbAAQZm6PqI7KIE16lEXFJkZfFFgMOpXJQ==", + "dependencies": { + "@libp2p/interface": "^0.1.3", + "@libp2p/logger": "^3.0.3", + "abortable-iterator": "^5.0.1", "benchmark": "^2.1.4", "it-batched-bytes": "^2.0.2", - "it-pushable": "^3.1.0", + "it-pushable": "^3.2.0", "it-stream-types": "^2.0.1", - "rate-limiter-flexible": "^2.3.9", - "uint8arraylist": "^2.1.1", - "uint8arrays": "^4.0.2", - "varint": "^6.0.0" - }, - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" + "rate-limiter-flexible": "^3.0.0", + "uint8-varint": "^2.0.0", + "uint8arraylist": "^2.4.3", + "uint8arrays": "^4.0.6" + } + }, + "node_modules/@libp2p/mplex/node_modules/@libp2p/logger": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@libp2p/logger/-/logger-3.0.3.tgz", + "integrity": "sha512-85ioPX10QN4ZOZeurAZe5sQeRUCkIBT2DikKRbE/AIWKauIKHvvIrN4CSdCdzLw29XNA+xxNO2FVkf51HGgCeQ==", + "dependencies": { + "@libp2p/interface": "^0.1.3", + "@multiformats/multiaddr": "^12.1.5", + "debug": "^4.3.4", + "interface-datastore": "^8.2.0", + "multiformats": "^12.0.1" + } + }, + "node_modules/@libp2p/mplex/node_modules/uint8-varint": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/uint8-varint/-/uint8-varint-2.0.1.tgz", + "integrity": "sha512-euvmpuulJstK5+xNuI4S1KfnxJnbI5QP52RXIR3GZ3/ZMkOsEK2AgCtFpNvEQLXMxMx2o0qcyevK1fJwOZJagQ==", + "dependencies": { + "uint8arraylist": "^2.0.0", + "uint8arrays": "^4.0.2" } }, "node_modules/@libp2p/multistream-select": { - "version": "3.1.9", - "resolved": "https://registry.npmjs.org/@libp2p/multistream-select/-/multistream-select-3.1.9.tgz", - "integrity": "sha512-iSNqr8jXvOrkNTyA43h/ARs4wd0Rd55/D6oFRndLcV4yQSUMmfjl7dUcbC5MAw+5/sgskfDx9TMawSwNq47Qwg==", + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/@libp2p/multistream-select/-/multistream-select-4.0.3.tgz", + "integrity": "sha512-6iBYf/TAqi0oqusZ3LJ3DC0odABRukuLN+4Xh7tDmHCJX0tCjSSRibRYsiFcBNQMpcI0btRkQ0dZ0KqKhQ2kUw==", "dependencies": { - "@libp2p/interfaces": "^3.2.0", - "@libp2p/logger": "^2.0.0", - "abortable-iterator": "^5.0.0", + "@libp2p/interface": "^0.1.3", + "@libp2p/logger": "^3.0.3", + "abortable-iterator": "^5.0.1", "it-first": "^3.0.1", "it-handshake": "^4.1.3", - "it-length-prefixed": "^9.0.0", + "it-length-prefixed": "^9.0.1", "it-merge": "^3.0.0", - "it-pipe": "^3.0.0", - "it-pushable": "^3.1.0", + "it-pipe": "^3.0.1", + "it-pushable": "^3.2.0", "it-reader": "^6.0.1", "it-stream-types": "^2.0.1", - "uint8arraylist": "^2.3.1", - "uint8arrays": "^4.0.2" - }, - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" + "uint8-varint": "^2.0.0", + "uint8arraylist": "^2.4.3", + "uint8arrays": "^4.0.6" + } + }, + "node_modules/@libp2p/multistream-select/node_modules/@libp2p/logger": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@libp2p/logger/-/logger-3.0.3.tgz", + "integrity": "sha512-85ioPX10QN4ZOZeurAZe5sQeRUCkIBT2DikKRbE/AIWKauIKHvvIrN4CSdCdzLw29XNA+xxNO2FVkf51HGgCeQ==", + "dependencies": { + "@libp2p/interface": "^0.1.3", + "@multiformats/multiaddr": "^12.1.5", + "debug": "^4.3.4", + "interface-datastore": "^8.2.0", + "multiformats": "^12.0.1" } }, "node_modules/@libp2p/multistream-select/node_modules/it-first": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/it-first/-/it-first-3.0.2.tgz", - "integrity": "sha512-QPLAM2BOkait/o6W25HvP0XTEv+Os3Ce4wET//ADNaPv+WYAHWfQwJuMu5FB8X066hA1F7LEMnULvTpE7/4yQw==", - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/it-first/-/it-first-3.0.3.tgz", + "integrity": "sha512-RC8tplctsDpoBUljwsp1viiyaR5fPvMe+FgbbcU0sFjKkJa7iwbB4CCPhHtVYSdjsrREfr0QEotfQrBoGyt7Dw==" + }, + "node_modules/@libp2p/multistream-select/node_modules/uint8-varint": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/uint8-varint/-/uint8-varint-2.0.1.tgz", + "integrity": "sha512-euvmpuulJstK5+xNuI4S1KfnxJnbI5QP52RXIR3GZ3/ZMkOsEK2AgCtFpNvEQLXMxMx2o0qcyevK1fJwOZJagQ==", + "dependencies": { + "uint8arraylist": "^2.0.0", + "uint8arrays": "^4.0.2" } }, "node_modules/@libp2p/peer-collections": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/@libp2p/peer-collections/-/peer-collections-3.0.2.tgz", - "integrity": "sha512-3vRVMWVRCF6dVs/1/CHbw4YSv83bcqjZuAt9ZQHW85vn6OfHNFQesOHWT1TbRBuL8TSb//IwJkOfTAVLd6Mymw==", + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/@libp2p/peer-collections/-/peer-collections-4.0.5.tgz", + "integrity": "sha512-GdbVufdDLhYyHbDBO2juK54Nm+Cdu01ws0N0hNB0yVLM7GIP075RLgSO/0vTpLoPS1cEufKPsYfl4Bb5nKHaRg==", "dependencies": { - "@libp2p/interface-peer-id": "^2.0.0", - "@libp2p/peer-id": "^2.0.0" - }, - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" + "@libp2p/interface": "^0.1.3", + "@libp2p/peer-id": "^3.0.3" + } + }, + "node_modules/@libp2p/peer-collections/node_modules/@libp2p/peer-id": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@libp2p/peer-id/-/peer-id-3.0.3.tgz", + "integrity": "sha512-IPVeywoC40bDd3ohtAIzpN8AOkMmD3U0BjdrFz/5ZbNP1+4n2gDIAwVzkAbF/t1iYYS4CX1TWfHuMqaMvd8l1A==", + "dependencies": { + "@libp2p/interface": "^0.1.3", + "multiformats": "^12.0.1", + "uint8arrays": "^4.0.6" } }, "node_modules/@libp2p/peer-id": { @@ -2799,31 +2935,42 @@ } }, "node_modules/@libp2p/peer-id-factory": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/@libp2p/peer-id-factory/-/peer-id-factory-2.0.4.tgz", - "integrity": "sha512-+0D+oklFzHpjRI3v7uw3PMMx00P36DV7YvAgL0+gpos0VzR/BI9tRiM6dpObZTrQ1hxp78F03p+qR1Zy9Qnmuw==", + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/@libp2p/peer-id-factory/-/peer-id-factory-3.0.5.tgz", + "integrity": "sha512-i7h/u3zDvcj8+GR+kpazmjikr3A6Rr5flVZmrTZfarkq5qAmD1bWd0vbgPrtKEgbhT+1S8NL3jR05/n7cbF7Tw==", "dependencies": { - "@libp2p/crypto": "^1.0.0", - "@libp2p/interface-keys": "^1.0.2", - "@libp2p/interface-peer-id": "^2.0.0", - "@libp2p/peer-id": "^2.0.0", - "multiformats": "^11.0.0", + "@libp2p/crypto": "^2.0.5", + "@libp2p/interface": "^0.1.3", + "@libp2p/peer-id": "^3.0.3", + "multiformats": "^12.0.1", "protons-runtime": "^5.0.0", - "uint8arraylist": "^2.0.0", - "uint8arrays": "^4.0.2" - }, - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" + "uint8arraylist": "^2.4.3", + "uint8arrays": "^4.0.6" } }, - "node_modules/@libp2p/peer-id-factory/node_modules/multiformats": { - "version": "11.0.2", - "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-11.0.2.tgz", - "integrity": "sha512-b5mYMkOkARIuVZCpvijFj9a6m5wMVLC7cf/jIPd5D/ARDOfLC5+IFkbgDXQgcU2goIsTD/O9NY4DI/Mt4OGvlg==", - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" + "node_modules/@libp2p/peer-id-factory/node_modules/@libp2p/crypto": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@libp2p/crypto/-/crypto-2.0.5.tgz", + "integrity": "sha512-m6Rn7i9q3SHCzMUBkEwZgAKS4evpGQ4SEx/YD96pM0ZoPtU5PFO0psfrerraanxFBh8wUX4vkCtKfyTPH7F+bQ==", + "dependencies": { + "@libp2p/interface": "^0.1.3", + "@noble/curves": "^1.1.0", + "@noble/hashes": "^1.3.1", + "multiformats": "^12.0.1", + "node-forge": "^1.1.0", + "protons-runtime": "^5.0.0", + "uint8arraylist": "^2.4.3", + "uint8arrays": "^4.0.6" + } + }, + "node_modules/@libp2p/peer-id-factory/node_modules/@libp2p/peer-id": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@libp2p/peer-id/-/peer-id-3.0.3.tgz", + "integrity": "sha512-IPVeywoC40bDd3ohtAIzpN8AOkMmD3U0BjdrFz/5ZbNP1+4n2gDIAwVzkAbF/t1iYYS4CX1TWfHuMqaMvd8l1A==", + "dependencies": { + "@libp2p/interface": "^0.1.3", + "multiformats": "^12.0.1", + "uint8arrays": "^4.0.6" } }, "node_modules/@libp2p/peer-id/node_modules/multiformats": { @@ -2835,72 +2982,166 @@ "npm": ">=7.0.0" } }, - "node_modules/@libp2p/peer-record": { - "version": "5.0.4", - "resolved": "https://registry.npmjs.org/@libp2p/peer-record/-/peer-record-5.0.4.tgz", - "integrity": "sha512-e+AArf7pwMLqF24mehTe1OYjr1v0SOKshVrI1E9YH/Cb1F3ZZuK3smyGmnLaS4JlqsarRCMSe3V50tRkqMFY7g==", - "dependencies": { - "@libp2p/crypto": "^1.0.11", - "@libp2p/interface-peer-id": "^2.0.0", - "@libp2p/interface-record": "^2.0.1", - "@libp2p/interfaces": "^3.2.0", - "@libp2p/peer-id": "^2.0.0", - "@libp2p/utils": "^3.0.0", - "@multiformats/multiaddr": "^12.0.0", - "protons-runtime": "^5.0.0", - "uint8-varint": "^1.0.2", - "uint8arraylist": "^2.1.0", - "uint8arrays": "^4.0.2" - }, - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" - } - }, "node_modules/@libp2p/peer-store": { - "version": "8.2.1", - "resolved": "https://registry.npmjs.org/@libp2p/peer-store/-/peer-store-8.2.1.tgz", - "integrity": "sha512-mr0GsZ7zucta3l5EblOGrBeVgdTVujRJ9WC+FmnYErQe023SRJevAZEv1WeMinMGVGL6CY+gmWw0oLpExu9AWg==", + "version": "9.0.6", + "resolved": "https://registry.npmjs.org/@libp2p/peer-store/-/peer-store-9.0.6.tgz", + "integrity": "sha512-aBAvRKKg2Hsf0/bGrHEcxr6cGL8RDJhBx2xBhNuu7sROMd0isPrKNxfnrQKadYMxlQUnGzIEY3qFVQJJPFHZvA==", "dependencies": { - "@libp2p/interface-libp2p": "^3.1.0", - "@libp2p/interface-peer-id": "^2.0.0", - "@libp2p/interface-peer-store": "^2.0.4", - "@libp2p/interfaces": "^3.2.0", - "@libp2p/logger": "^2.0.7", - "@libp2p/peer-collections": "^3.0.1", - "@libp2p/peer-id": "^2.0.0", - "@libp2p/peer-id-factory": "^2.0.0", - "@libp2p/peer-record": "^5.0.3", - "@multiformats/multiaddr": "^12.0.0", - "interface-datastore": "^8.0.0", + "@libp2p/interface": "^0.1.3", + "@libp2p/logger": "^3.0.3", + "@libp2p/peer-collections": "^4.0.5", + "@libp2p/peer-id": "^3.0.3", + "@libp2p/peer-id-factory": "^3.0.5", + "@libp2p/peer-record": "^6.0.6", + "@multiformats/multiaddr": "^12.1.5", + "interface-datastore": "^8.2.0", "it-all": "^3.0.2", "mortice": "^3.0.1", - "multiformats": "^11.0.0", + "multiformats": "^12.0.1", "protons-runtime": "^5.0.0", - "uint8arraylist": "^2.1.1", - "uint8arrays": "^4.0.2" - }, - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" + "uint8arraylist": "^2.4.3", + "uint8arrays": "^4.0.6" + } + }, + "node_modules/@libp2p/peer-store/node_modules/@libp2p/crypto": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@libp2p/crypto/-/crypto-2.0.5.tgz", + "integrity": "sha512-m6Rn7i9q3SHCzMUBkEwZgAKS4evpGQ4SEx/YD96pM0ZoPtU5PFO0psfrerraanxFBh8wUX4vkCtKfyTPH7F+bQ==", + "dependencies": { + "@libp2p/interface": "^0.1.3", + "@noble/curves": "^1.1.0", + "@noble/hashes": "^1.3.1", + "multiformats": "^12.0.1", + "node-forge": "^1.1.0", + "protons-runtime": "^5.0.0", + "uint8arraylist": "^2.4.3", + "uint8arrays": "^4.0.6" + } + }, + "node_modules/@libp2p/peer-store/node_modules/@libp2p/logger": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@libp2p/logger/-/logger-3.0.3.tgz", + "integrity": "sha512-85ioPX10QN4ZOZeurAZe5sQeRUCkIBT2DikKRbE/AIWKauIKHvvIrN4CSdCdzLw29XNA+xxNO2FVkf51HGgCeQ==", + "dependencies": { + "@libp2p/interface": "^0.1.3", + "@multiformats/multiaddr": "^12.1.5", + "debug": "^4.3.4", + "interface-datastore": "^8.2.0", + "multiformats": "^12.0.1" + } + }, + "node_modules/@libp2p/peer-store/node_modules/@libp2p/peer-id": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@libp2p/peer-id/-/peer-id-3.0.3.tgz", + "integrity": "sha512-IPVeywoC40bDd3ohtAIzpN8AOkMmD3U0BjdrFz/5ZbNP1+4n2gDIAwVzkAbF/t1iYYS4CX1TWfHuMqaMvd8l1A==", + "dependencies": { + "@libp2p/interface": "^0.1.3", + "multiformats": "^12.0.1", + "uint8arrays": "^4.0.6" + } + }, + "node_modules/@libp2p/peer-store/node_modules/@libp2p/peer-record": { + "version": "6.0.6", + "resolved": "https://registry.npmjs.org/@libp2p/peer-record/-/peer-record-6.0.6.tgz", + "integrity": "sha512-SNFafmUrnEOB2zplYJVjheN5UVFbi2UBdrYfIwi4SEaPA4ZFprnWBeQcVaLUSq7t2JkBGZUmWwtj4teVIxr60g==", + "dependencies": { + "@libp2p/crypto": "^2.0.5", + "@libp2p/interface": "^0.1.3", + "@libp2p/peer-id": "^3.0.3", + "@libp2p/utils": "^4.0.4", + "@multiformats/multiaddr": "^12.1.5", + "protons-runtime": "^5.0.0", + "uint8-varint": "^2.0.0", + "uint8arraylist": "^2.4.3", + "uint8arrays": "^4.0.6" + } + }, + "node_modules/@libp2p/peer-store/node_modules/@libp2p/utils": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/@libp2p/utils/-/utils-4.0.4.tgz", + "integrity": "sha512-V++nWaCEO5QBk800SJ3kzzVn62cyBLt7fzVPDvVnxPyfLBn9prfShYb7XmvuZrnGSRCaUvD3b+q7CHGUEcdP2g==", + "dependencies": { + "@chainsafe/is-ip": "^2.0.2", + "@libp2p/interface": "^0.1.3", + "@libp2p/logger": "^3.0.3", + "@multiformats/multiaddr": "^12.1.5", + "@multiformats/multiaddr-matcher": "^1.0.1", + "is-loopback-addr": "^2.0.1", + "it-stream-types": "^2.0.1", + "private-ip": "^3.0.0", + "uint8arraylist": "^2.4.3" } }, "node_modules/@libp2p/peer-store/node_modules/it-all": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/it-all/-/it-all-3.0.2.tgz", - "integrity": "sha512-ujqWETXhsDbF6C+6X6fvRw5ohlowRoy/o/h9BC8D+R3JQ13oLQ153w9gSWkWupOY7omZFQbJiAL1aJo5Gwe2yw==", - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/it-all/-/it-all-3.0.3.tgz", + "integrity": "sha512-LwEVD1d0b1O5mDwumnZk+80jSBn5sXDxQ41xiD6j6l2lRiWH6lBLdxXx1C6mlKrXQwRHzUQagOZUmqttDUwb0A==" + }, + "node_modules/@libp2p/peer-store/node_modules/uint8-varint": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/uint8-varint/-/uint8-varint-2.0.1.tgz", + "integrity": "sha512-euvmpuulJstK5+xNuI4S1KfnxJnbI5QP52RXIR3GZ3/ZMkOsEK2AgCtFpNvEQLXMxMx2o0qcyevK1fJwOZJagQ==", + "dependencies": { + "uint8arraylist": "^2.0.0", + "uint8arrays": "^4.0.2" } }, - "node_modules/@libp2p/peer-store/node_modules/multiformats": { - "version": "11.0.2", - "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-11.0.2.tgz", - "integrity": "sha512-b5mYMkOkARIuVZCpvijFj9a6m5wMVLC7cf/jIPd5D/ARDOfLC5+IFkbgDXQgcU2goIsTD/O9NY4DI/Mt4OGvlg==", - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" + "node_modules/@libp2p/pubsub": { + "version": "8.0.7", + "resolved": "https://registry.npmjs.org/@libp2p/pubsub/-/pubsub-8.0.7.tgz", + "integrity": "sha512-gpkKNMlxdF/tObBPE/3pY3aItfleLWUr7ghEpnK2CcRWkmb+ZACGC2MrYM9IbdHn3/jfQFSWoxJwMcoFJ8IJ0w==", + "dependencies": { + "@libp2p/crypto": "^2.0.5", + "@libp2p/interface": "^0.1.3", + "@libp2p/interface-internal": "^0.1.6", + "@libp2p/logger": "^3.0.3", + "@libp2p/peer-collections": "^4.0.5", + "@libp2p/peer-id": "^3.0.3", + "abortable-iterator": "^5.0.1", + "it-length-prefixed": "^9.0.1", + "it-pipe": "^3.0.1", + "it-pushable": "^3.2.0", + "multiformats": "^12.0.1", + "p-queue": "^7.3.4", + "uint8arraylist": "^2.4.3", + "uint8arrays": "^4.0.6" + } + }, + "node_modules/@libp2p/pubsub/node_modules/@libp2p/crypto": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@libp2p/crypto/-/crypto-2.0.5.tgz", + "integrity": "sha512-m6Rn7i9q3SHCzMUBkEwZgAKS4evpGQ4SEx/YD96pM0ZoPtU5PFO0psfrerraanxFBh8wUX4vkCtKfyTPH7F+bQ==", + "dependencies": { + "@libp2p/interface": "^0.1.3", + "@noble/curves": "^1.1.0", + "@noble/hashes": "^1.3.1", + "multiformats": "^12.0.1", + "node-forge": "^1.1.0", + "protons-runtime": "^5.0.0", + "uint8arraylist": "^2.4.3", + "uint8arrays": "^4.0.6" + } + }, + "node_modules/@libp2p/pubsub/node_modules/@libp2p/logger": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@libp2p/logger/-/logger-3.0.3.tgz", + "integrity": "sha512-85ioPX10QN4ZOZeurAZe5sQeRUCkIBT2DikKRbE/AIWKauIKHvvIrN4CSdCdzLw29XNA+xxNO2FVkf51HGgCeQ==", + "dependencies": { + "@libp2p/interface": "^0.1.3", + "@multiformats/multiaddr": "^12.1.5", + "debug": "^4.3.4", + "interface-datastore": "^8.2.0", + "multiformats": "^12.0.1" + } + }, + "node_modules/@libp2p/pubsub/node_modules/@libp2p/peer-id": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@libp2p/peer-id/-/peer-id-3.0.3.tgz", + "integrity": "sha512-IPVeywoC40bDd3ohtAIzpN8AOkMmD3U0BjdrFz/5ZbNP1+4n2gDIAwVzkAbF/t1iYYS4CX1TWfHuMqaMvd8l1A==", + "dependencies": { + "@libp2p/interface": "^0.1.3", + "multiformats": "^12.0.1", + "uint8arrays": "^4.0.6" } }, "node_modules/@libp2p/record": { @@ -3031,95 +3272,145 @@ } }, "node_modules/@libp2p/webrtc": { - "version": "2.0.11", - "resolved": "https://registry.npmjs.org/@libp2p/webrtc/-/webrtc-2.0.11.tgz", - "integrity": "sha512-6lhlndCYxRrkbqldUFruxIzyyFcrgnyueYIpLXJP2phZf2P19zwhborae0raRyeRz7MwJ+uw+Ksql8D8Ry+KXg==", + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/@libp2p/webrtc/-/webrtc-3.2.3.tgz", + "integrity": "sha512-OQxG4AyWpMPWT363Dm2haU/V18JJ191WEz062vH0lPZtgtF4adl80EjQgyMYwYQFh/8cho5Hf0emAlWKbqQA8w==", "dependencies": { - "@chainsafe/libp2p-noise": "^12.0.0", - "@libp2p/interface-connection": "^5.0.2", - "@libp2p/interface-metrics": "^4.0.8", - "@libp2p/interface-peer-id": "^2.0.2", - "@libp2p/interface-registrar": "^2.0.12", - "@libp2p/interface-stream-muxer": "^4.1.2", - "@libp2p/interface-transport": "^4.0.3", - "@libp2p/interfaces": "^3.3.2", - "@libp2p/logger": "^2.0.7", - "@libp2p/peer-id": "^2.0.3", + "@chainsafe/libp2p-noise": "^13.0.0", + "@libp2p/interface": "^0.1.3", + "@libp2p/interface-internal": "^0.1.6", + "@libp2p/logger": "^3.0.3", + "@libp2p/peer-id": "^3.0.3", "@multiformats/mafmt": "^12.1.2", - "@multiformats/multiaddr": "^12.1.2", + "@multiformats/multiaddr": "^12.1.5", + "@multiformats/multiaddr-matcher": "^1.0.1", "abortable-iterator": "^5.0.1", + "any-signal": "^4.1.1", "detect-browser": "^5.3.0", "it-length-prefixed": "^9.0.1", - "it-pb-stream": "^4.0.1", "it-pipe": "^3.0.1", - "it-pushable": "^3.1.3", + "it-protobuf-stream": "^1.0.0", + "it-pushable": "^3.2.0", "it-stream-types": "^2.0.1", "it-to-buffer": "^4.0.2", - "multiformats": "^11.0.2", + "multiformats": "^12.0.1", "multihashes": "^4.0.3", + "node-datachannel": "^0.5.0-dev", "p-defer": "^4.0.0", "p-event": "^6.0.0", + "p-timeout": "^6.1.2", "protons-runtime": "^5.0.0", + "race-signal": "^1.0.0", "uint8arraylist": "^2.4.3", - "uint8arrays": "^4.0.3" - }, - "engines": { - "node": ">=18.0.0", - "npm": ">=8.6.0" + "uint8arrays": "^4.0.6" } }, - "node_modules/@libp2p/webrtc/node_modules/multiformats": { - "version": "11.0.2", - "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-11.0.2.tgz", - "integrity": "sha512-b5mYMkOkARIuVZCpvijFj9a6m5wMVLC7cf/jIPd5D/ARDOfLC5+IFkbgDXQgcU2goIsTD/O9NY4DI/Mt4OGvlg==", - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" - } - }, - "node_modules/@libp2p/webrtc/node_modules/p-event": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/p-event/-/p-event-6.0.0.tgz", - "integrity": "sha512-Xbfxd0CfZmHLGKXH32k1JKjQYX6Rkv0UtQdaFJ8OyNcf+c0oWCeXHc1C4CX/IESZLmcvfPa5aFIO/vCr5gqtag==", + "node_modules/@libp2p/webrtc/node_modules/@libp2p/logger": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@libp2p/logger/-/logger-3.0.3.tgz", + "integrity": "sha512-85ioPX10QN4ZOZeurAZe5sQeRUCkIBT2DikKRbE/AIWKauIKHvvIrN4CSdCdzLw29XNA+xxNO2FVkf51HGgCeQ==", "dependencies": { - "p-timeout": "^6.1.2" - }, - "engines": { - "node": ">=16.17" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "@libp2p/interface": "^0.1.3", + "@multiformats/multiaddr": "^12.1.5", + "debug": "^4.3.4", + "interface-datastore": "^8.2.0", + "multiformats": "^12.0.1" + } + }, + "node_modules/@libp2p/webrtc/node_modules/@libp2p/peer-id": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@libp2p/peer-id/-/peer-id-3.0.3.tgz", + "integrity": "sha512-IPVeywoC40bDd3ohtAIzpN8AOkMmD3U0BjdrFz/5ZbNP1+4n2gDIAwVzkAbF/t1iYYS4CX1TWfHuMqaMvd8l1A==", + "dependencies": { + "@libp2p/interface": "^0.1.3", + "multiformats": "^12.0.1", + "uint8arrays": "^4.0.6" + } + }, + "node_modules/@libp2p/websockets": { + "version": "7.0.9", + "resolved": "https://registry.npmjs.org/@libp2p/websockets/-/websockets-7.0.9.tgz", + "integrity": "sha512-+MJKxGrLSv/aSHpdhlc05sVVPWg9TVJMCHfpN3WXG0B9DVk/qLdX+mCHpmPvRRdrDoYx6QfWvzHmhDHwfKNAdg==", + "dependencies": { + "@libp2p/interface": "^0.1.3", + "@libp2p/logger": "^3.0.3", + "@libp2p/utils": "^4.0.4", + "@multiformats/mafmt": "^12.1.2", + "@multiformats/multiaddr": "^12.1.5", + "@multiformats/multiaddr-to-uri": "^9.0.2", + "@types/ws": "^8.5.4", + "abortable-iterator": "^5.0.1", + "it-ws": "^6.0.0", + "p-defer": "^4.0.0", + "wherearewe": "^2.0.1", + "ws": "^8.12.1" + } + }, + "node_modules/@libp2p/websockets/node_modules/@libp2p/logger": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@libp2p/logger/-/logger-3.0.3.tgz", + "integrity": "sha512-85ioPX10QN4ZOZeurAZe5sQeRUCkIBT2DikKRbE/AIWKauIKHvvIrN4CSdCdzLw29XNA+xxNO2FVkf51HGgCeQ==", + "dependencies": { + "@libp2p/interface": "^0.1.3", + "@multiformats/multiaddr": "^12.1.5", + "debug": "^4.3.4", + "interface-datastore": "^8.2.0", + "multiformats": "^12.0.1" + } + }, + "node_modules/@libp2p/websockets/node_modules/@libp2p/utils": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/@libp2p/utils/-/utils-4.0.4.tgz", + "integrity": "sha512-V++nWaCEO5QBk800SJ3kzzVn62cyBLt7fzVPDvVnxPyfLBn9prfShYb7XmvuZrnGSRCaUvD3b+q7CHGUEcdP2g==", + "dependencies": { + "@chainsafe/is-ip": "^2.0.2", + "@libp2p/interface": "^0.1.3", + "@libp2p/logger": "^3.0.3", + "@multiformats/multiaddr": "^12.1.5", + "@multiformats/multiaddr-matcher": "^1.0.1", + "is-loopback-addr": "^2.0.1", + "it-stream-types": "^2.0.1", + "private-ip": "^3.0.0", + "uint8arraylist": "^2.4.3" } }, "node_modules/@libp2p/webtransport": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/@libp2p/webtransport/-/webtransport-2.0.2.tgz", - "integrity": "sha512-Vok9j2WT6tF7dlDdbDV3EfenTsGLim1icrR6HqSzTRZAZn7uOBtMKKoO2YnXgGyHmnstqxLt0axnZWc2v5uKNQ==", + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/@libp2p/webtransport/-/webtransport-3.1.3.tgz", + "integrity": "sha512-nlEJ4YgML5bHYnuZrYxek4y8UaM+VFlwfvmTXgZx9+nmjpap+GAn5KuI8LJwu3Jp1coKzoK3K7GFzLteNqSsdQ==", "dependencies": { - "@chainsafe/libp2p-noise": "^12.0.1", - "@libp2p/interface-connection": "^5.0.0", - "@libp2p/interface-peer-id": "^2.0.0", - "@libp2p/interface-stream-muxer": "^4.0.0", - "@libp2p/interface-transport": "^4.0.1", - "@libp2p/logger": "^2.0.2", - "@libp2p/peer-id": "^2.0.0", - "@multiformats/multiaddr": "^12.1.0", + "@chainsafe/libp2p-noise": "^13.0.0", + "@libp2p/interface": "^0.1.3", + "@libp2p/logger": "^3.0.3", + "@libp2p/peer-id": "^3.0.3", + "@multiformats/multiaddr": "^12.1.5", + "@multiformats/multiaddr-matcher": "^1.0.1", "it-stream-types": "^2.0.1", - "multiformats": "^11.0.0", - "uint8arraylist": "^2.3.3" - }, - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" + "multiformats": "^12.0.1", + "uint8arraylist": "^2.4.3", + "uint8arrays": "^4.0.6" } }, - "node_modules/@libp2p/webtransport/node_modules/multiformats": { - "version": "11.0.2", - "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-11.0.2.tgz", - "integrity": "sha512-b5mYMkOkARIuVZCpvijFj9a6m5wMVLC7cf/jIPd5D/ARDOfLC5+IFkbgDXQgcU2goIsTD/O9NY4DI/Mt4OGvlg==", - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" + "node_modules/@libp2p/webtransport/node_modules/@libp2p/logger": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@libp2p/logger/-/logger-3.0.3.tgz", + "integrity": "sha512-85ioPX10QN4ZOZeurAZe5sQeRUCkIBT2DikKRbE/AIWKauIKHvvIrN4CSdCdzLw29XNA+xxNO2FVkf51HGgCeQ==", + "dependencies": { + "@libp2p/interface": "^0.1.3", + "@multiformats/multiaddr": "^12.1.5", + "debug": "^4.3.4", + "interface-datastore": "^8.2.0", + "multiformats": "^12.0.1" + } + }, + "node_modules/@libp2p/webtransport/node_modules/@libp2p/peer-id": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@libp2p/peer-id/-/peer-id-3.0.3.tgz", + "integrity": "sha512-IPVeywoC40bDd3ohtAIzpN8AOkMmD3U0BjdrFz/5ZbNP1+4n2gDIAwVzkAbF/t1iYYS4CX1TWfHuMqaMvd8l1A==", + "dependencies": { + "@libp2p/interface": "^0.1.3", + "multiformats": "^12.0.1", + "uint8arrays": "^4.0.6" } }, "node_modules/@lumeweb/community-portals": { @@ -3275,21 +3566,31 @@ } }, "node_modules/@multiformats/multiaddr": { - "version": "12.1.3", - "resolved": "https://registry.npmjs.org/@multiformats/multiaddr/-/multiaddr-12.1.3.tgz", - "integrity": "sha512-rNcS3njkkSwuGF4x58L47jGH5kBXBfJPNsWnrt0gujhNYn6ReDt1je7vEU5/ddrVj0TStgxw+Hm+TkYDK0b60w==", + "version": "12.1.7", + "resolved": "https://registry.npmjs.org/@multiformats/multiaddr/-/multiaddr-12.1.7.tgz", + "integrity": "sha512-MZRj+uUrtF2WqgByrsPolrdyPDSFstw7Fe0ewabWgWl27fcOmfDOSrEt2aUVkSzapXbyCG7JQh0QvimmTF4aMA==", "dependencies": { "@chainsafe/is-ip": "^2.0.1", "@chainsafe/netmask": "^2.0.0", - "@libp2p/interfaces": "^3.3.1", + "@libp2p/interface": "^0.1.1", "dns-over-http-resolver": "^2.1.0", - "multiformats": "^11.0.0", - "uint8arrays": "^4.0.2", - "varint": "^6.0.0" + "multiformats": "^12.0.1", + "uint8-varint": "^2.0.1", + "uint8arrays": "^4.0.2" }, "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" + "node": ">=18.0.0", + "npm": ">=8.6.0" + } + }, + "node_modules/@multiformats/multiaddr-matcher": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@multiformats/multiaddr-matcher/-/multiaddr-matcher-1.0.2.tgz", + "integrity": "sha512-YzviFV31TsDbatWhEmkNnpWC82F/Wfc+alaOBT94Lk6KJeKKfzsaLhYPsjyhElXiUtCKvB3p5e4+WsE5ZYy1kg==", + "dependencies": { + "@chainsafe/is-ip": "^2.0.1", + "@multiformats/multiaddr": "^12.0.0", + "multiformats": "^12.0.1" } }, "node_modules/@multiformats/multiaddr-to-uri": { @@ -3304,13 +3605,13 @@ "npm": ">=7.0.0" } }, - "node_modules/@multiformats/multiaddr/node_modules/multiformats": { - "version": "11.0.2", - "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-11.0.2.tgz", - "integrity": "sha512-b5mYMkOkARIuVZCpvijFj9a6m5wMVLC7cf/jIPd5D/ARDOfLC5+IFkbgDXQgcU2goIsTD/O9NY4DI/Mt4OGvlg==", - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" + "node_modules/@multiformats/multiaddr/node_modules/uint8-varint": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/uint8-varint/-/uint8-varint-2.0.1.tgz", + "integrity": "sha512-euvmpuulJstK5+xNuI4S1KfnxJnbI5QP52RXIR3GZ3/ZMkOsEK2AgCtFpNvEQLXMxMx2o0qcyevK1fJwOZJagQ==", + "dependencies": { + "uint8arraylist": "^2.0.0", + "uint8arrays": "^4.0.2" } }, "node_modules/@multiformats/murmur3": { @@ -4795,97 +5096,6 @@ "@sinonjs/commons": "^3.0.0" } }, - "node_modules/@stablelib/aead": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@stablelib/aead/-/aead-1.0.1.tgz", - "integrity": "sha512-q39ik6sxGHewqtO0nP4BuSe3db5G1fEJE8ukvngS2gLkBXyy6E7pLubhbYgnkDFv6V8cWaxcE4Xn0t6LWcJkyg==" - }, - "node_modules/@stablelib/binary": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@stablelib/binary/-/binary-1.0.1.tgz", - "integrity": "sha512-ClJWvmL6UBM/wjkvv/7m5VP3GMr9t0osr4yVgLZsLCOz4hGN9gIAFEqnJ0TsSMAN+n840nf2cHZnA5/KFqHC7Q==", - "dependencies": { - "@stablelib/int": "^1.0.1" - } - }, - "node_modules/@stablelib/bytes": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@stablelib/bytes/-/bytes-1.0.1.tgz", - "integrity": "sha512-Kre4Y4kdwuqL8BR2E9hV/R5sOrUj6NanZaZis0V6lX5yzqC3hBuVSDXUIBqQv/sCpmuWRiHLwqiT1pqqjuBXoQ==" - }, - "node_modules/@stablelib/chacha": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@stablelib/chacha/-/chacha-1.0.1.tgz", - "integrity": "sha512-Pmlrswzr0pBzDofdFuVe1q7KdsHKhhU24e8gkEwnTGOmlC7PADzLVxGdn2PoNVBBabdg0l/IfLKg6sHAbTQugg==", - "dependencies": { - "@stablelib/binary": "^1.0.1", - "@stablelib/wipe": "^1.0.1" - } - }, - "node_modules/@stablelib/chacha20poly1305": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@stablelib/chacha20poly1305/-/chacha20poly1305-1.0.1.tgz", - "integrity": "sha512-MmViqnqHd1ymwjOQfghRKw2R/jMIGT3wySN7cthjXCBdO+qErNPUBnRzqNpnvIwg7JBCg3LdeCZZO4de/yEhVA==", - "dependencies": { - "@stablelib/aead": "^1.0.1", - "@stablelib/binary": "^1.0.1", - "@stablelib/chacha": "^1.0.1", - "@stablelib/constant-time": "^1.0.1", - "@stablelib/poly1305": "^1.0.1", - "@stablelib/wipe": "^1.0.1" - } - }, - "node_modules/@stablelib/constant-time": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@stablelib/constant-time/-/constant-time-1.0.1.tgz", - "integrity": "sha512-tNOs3uD0vSJcK6z1fvef4Y+buN7DXhzHDPqRLSXUel1UfqMB1PWNsnnAezrKfEwTLpN0cGH2p9NNjs6IqeD0eg==" - }, - "node_modules/@stablelib/int": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@stablelib/int/-/int-1.0.1.tgz", - "integrity": "sha512-byr69X/sDtDiIjIV6m4roLVWnNNlRGzsvxw+agj8CIEazqWGOQp2dTYgQhtyVXV9wpO6WyXRQUzLV/JRNumT2w==" - }, - "node_modules/@stablelib/keyagreement": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@stablelib/keyagreement/-/keyagreement-1.0.1.tgz", - "integrity": "sha512-VKL6xBwgJnI6l1jKrBAfn265cspaWBPAPEc62VBQrWHLqVgNRE09gQ/AnOEyKUWrrqfD+xSQ3u42gJjLDdMDQg==", - "dependencies": { - "@stablelib/bytes": "^1.0.1" - } - }, - "node_modules/@stablelib/poly1305": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@stablelib/poly1305/-/poly1305-1.0.1.tgz", - "integrity": "sha512-1HlG3oTSuQDOhSnLwJRKeTRSAdFNVB/1djy2ZbS35rBSJ/PFqx9cf9qatinWghC2UbfOYD8AcrtbUQl8WoxabA==", - "dependencies": { - "@stablelib/constant-time": "^1.0.1", - "@stablelib/wipe": "^1.0.1" - } - }, - "node_modules/@stablelib/random": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@stablelib/random/-/random-1.0.2.tgz", - "integrity": "sha512-rIsE83Xpb7clHPVRlBj8qNe5L8ISQOzjghYQm/dZ7VaM2KHYwMW5adjQjrzTZCchFnNCNhkwtnOBa9HTMJCI8w==", - "dependencies": { - "@stablelib/binary": "^1.0.1", - "@stablelib/wipe": "^1.0.1" - } - }, - "node_modules/@stablelib/wipe": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@stablelib/wipe/-/wipe-1.0.1.tgz", - "integrity": "sha512-WfqfX/eXGiAd3RJe4VU2snh/ZPwtSjLG4ynQ/vYzvghTh7dHFcI1wl+nrkWG6lGhukOxOsUHfv8dUXr58D0ayg==" - }, - "node_modules/@stablelib/x25519": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@stablelib/x25519/-/x25519-1.0.3.tgz", - "integrity": "sha512-KnTbKmUhPhHavzobclVJQG5kuivH+qDLpe84iRqX3CLrKp881cF160JvXJ+hjn1aMyCwYOKeIZefIH/P5cJoRw==", - "dependencies": { - "@stablelib/keyagreement": "^1.0.1", - "@stablelib/random": "^1.0.2", - "@stablelib/wipe": "^1.0.1" - } - }, "node_modules/@tootallnate/once": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-2.0.0.tgz", @@ -5002,9 +5212,9 @@ } }, "node_modules/@types/dns-packet": { - "version": "5.2.4", - "resolved": "https://registry.npmjs.org/@types/dns-packet/-/dns-packet-5.2.4.tgz", - "integrity": "sha512-OAruArypdNxR/tzbmrtoyEuXeNTLaZCpO19BXaNC10T5ACIbvjmvhmV2RDEy2eLc3w8IjK7SY3cvUCcAW+sfoQ==", + "version": "5.6.1", + "resolved": "https://registry.npmjs.org/@types/dns-packet/-/dns-packet-5.6.1.tgz", + "integrity": "sha512-F8X3srlDYXQSVGfjAWl0lxd9mGfYtkneMA0QFQ3BFBw/BUmBlhlAbpRjmvE7LbW3wIxf01KHi20/bPstYK6ssA==", "dependencies": { "@types/node": "*" } @@ -5074,11 +5284,6 @@ "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.195.tgz", "integrity": "sha512-Hwx9EUgdwf2GLarOjQp5ZH8ZmblzcbTBC2wtQWNKARBSxM9ezRIAUpeDTgoQRAFB0+8CNWXVA9+MaSOzOF3nPg==" }, - "node_modules/@types/long": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/@types/long/-/long-4.0.2.tgz", - "integrity": "sha512-MqTGEo5bj5t157U6fA/BiDynNkn0YknVdh48CMPkTSpFTVmvao5UQmm7uEF6xBEo7qIMAlY/JSleYaE6VOdpaA==" - }, "node_modules/@types/minimatch": { "version": "3.0.5", "resolved": "https://registry.npmjs.org/@types/minimatch/-/minimatch-3.0.5.tgz", @@ -5090,9 +5295,9 @@ "integrity": "sha512-jhuKLIRrhvCPLqwPcx6INqmKeiA5EWrsCOPhrlFSrbrmU4ZMPjj5Ul/oLCMDO98XRUIwVm78xICz4EPCektzeQ==" }, "node_modules/@types/multicast-dns": { - "version": "7.2.1", - "resolved": "https://registry.npmjs.org/@types/multicast-dns/-/multicast-dns-7.2.1.tgz", - "integrity": "sha512-A2PmB8MRcNVEkw6wzGT5rtBHqyHOVjiRMkJH+zpJKXipSi+GGkHg6JjNFApDiYK9WefJqkVG0taln1VMl4TGfw==", + "version": "7.2.2", + "resolved": "https://registry.npmjs.org/@types/multicast-dns/-/multicast-dns-7.2.2.tgz", + "integrity": "sha512-re0wpYJU2SdKkBbmCh7f5zYMLFA/FCbX46DI0rRMLlkkDqhk+0bTHbYsUVZumk/43GfJehPImK9e202eSuxPKA==", "dependencies": { "@types/dns-packet": "*", "@types/node": "*" @@ -5115,9 +5320,9 @@ "peer": true }, "node_modules/@types/retry": { - "version": "0.12.1", - "resolved": "https://registry.npmjs.org/@types/retry/-/retry-0.12.1.tgz", - "integrity": "sha512-xoDlM2S4ortawSWORYqsdU+2rxdh4LRW9ytc3zmT37RIKQh6IHyKwwtKhKis9ah8ol07DCkZxPt8BBvPjC6v4g==" + "version": "0.12.2", + "resolved": "https://registry.npmjs.org/@types/retry/-/retry-0.12.2.tgz", + "integrity": "sha512-XISRgDJ2Tc5q4TRqvgJtzsRkFYNJzZrhTdtMoGVBttwzzQJkPnS3WWTFc7kuDRoPtPakl+T+OfdEUjYJj7Jbow==" }, "node_modules/@types/semver": { "version": "7.5.0", @@ -5157,9 +5362,9 @@ "peer": true }, "node_modules/@types/ws": { - "version": "8.5.5", - "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.5.5.tgz", - "integrity": "sha512-lwhs8hktwxSjf9UaZ9tG5M03PGogvFaH8gUgLNbN9HKIg0dvv6q+gkSuJ8HN4/VbyxkuLzCjlN7GquQ0gUJfIg==", + "version": "8.5.7", + "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.5.7.tgz", + "integrity": "sha512-6UrLjiDUvn40CMrAubXuIVtj2PEfKDffJS7ychvnPU44j+KVeXmdHHTgqcM/dxLUTHxlXHiFM8Skmb8ozGdTnQ==", "dependencies": { "@types/node": "*" } @@ -7909,15 +8114,26 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/delay": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/delay/-/delay-6.0.0.tgz", + "integrity": "sha512-2NJozoOHQ4NuZuVIr5CWd0iiLVIRSDepakaovIN+9eIDHEhdCAEvSy2cuf1DCrPPQLvHmbqTHODlhHg8UCy4zw==", + "engines": { + "node": ">=16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/delegates": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz", "integrity": "sha512-bd2L678uiWATM6m5Z1VzNCErI3jiGzt6HGY8OVICs40JQq/HALfbyNJmp0UDakEY4pMMaN0Ly5om/B1VI/+xfQ==" }, "node_modules/denque": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/denque/-/denque-1.5.1.tgz", - "integrity": "sha512-XwE+iZ4D6ZUB7mfYRMb5wByE8L74HCn30FBN7sWnXksWc1LO1bPDl67pBR9o/kC4z/xSNAwkMYcGgqDV3BE3Hw==", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/denque/-/denque-2.1.0.tgz", + "integrity": "sha512-HVQE3AAb/pxF8fQAoiqpvg9i3evqug3hoiwakOyZAwJm+6vZehbkYXZ0l4JxS+I3QxM97v5aaRNhj8v5oBhekw==", "engines": { "node": ">=0.10" } @@ -8032,9 +8248,9 @@ } }, "node_modules/dns-packet": { - "version": "5.6.0", - "resolved": "https://registry.npmjs.org/dns-packet/-/dns-packet-5.6.0.tgz", - "integrity": "sha512-rza3UH1LwdHh9qyPXp8lkwpjSNk/AMD3dPytUoRoqnypDUhY0xvbdmVhWOfxO68frEfV9BU8V12Ez7ZsHGZpCQ==", + "version": "5.6.1", + "resolved": "https://registry.npmjs.org/dns-packet/-/dns-packet-5.6.1.tgz", + "integrity": "sha512-l4gcSouhcgIKRvyy99RNVOgxXiicE+2jZoNmaNmZ6JXiGajBOJAesk1OBlJuM5k2c+eudGdLxDqXuPCKIj6kpw==", "dependencies": { "@leichtgewicht/ip-codec": "^2.0.1" }, @@ -10113,93 +10329,185 @@ "integrity": "sha512-0cMsjjIC8I+D3M44pOQdsy0OHXGLVz6Z0beRuufhKa0KfaD2wGwAev6jILzXsd3/vpnNQJmWyZtIILqM1N+n5A==" }, "node_modules/helia": { - "version": "1.3.5", - "resolved": "https://registry.npmjs.org/helia/-/helia-1.3.5.tgz", - "integrity": "sha512-WBy9SYneHPD96UX3i6F3NOWGnIpnt2CvBqQfobv3CkL+Gxs2eEs1OX4RmdDCzu+NbLNjKIuBLrDfw5foxylbCg==", + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/helia/-/helia-2.0.3.tgz", + "integrity": "sha512-8Uze/U48R9p3013+oh5Eg29RwkzRXpCHDYyKxf7yU1S5GGnVguaWrmEHYJ2pKMMYMCgNasmCvfouurKIQvM+cg==", "dependencies": { - "@chainsafe/libp2p-gossipsub": "^8.0.0", - "@chainsafe/libp2p-noise": "^12.0.0", - "@chainsafe/libp2p-yamux": "^4.0.2", - "@helia/interface": "^1.0.0", + "@chainsafe/libp2p-gossipsub": "^10.0.0", + "@chainsafe/libp2p-noise": "^13.0.0", + "@chainsafe/libp2p-yamux": "^5.0.0", + "@helia/interface": "^2.0.0", + "@ipld/dag-cbor": "^9.0.0", + "@ipld/dag-json": "^10.0.1", "@ipld/dag-pb": "^4.0.3", - "@libp2p/bootstrap": "^8.0.0", - "@libp2p/interface-libp2p": "^3.2.0", - "@libp2p/interface-pubsub": "^4.0.1", - "@libp2p/interfaces": "^3.3.2", - "@libp2p/ipni-content-routing": "^1.0.0", - "@libp2p/kad-dht": "^9.3.3", - "@libp2p/logger": "^2.0.7", - "@libp2p/mdns": "^8.0.0", - "@libp2p/mplex": "^8.0.3", - "@libp2p/tcp": "^7.0.1", - "@libp2p/webrtc": "^2.0.4", - "@libp2p/websockets": "^6.0.1", - "@libp2p/webtransport": "^2.0.1", + "@libp2p/bootstrap": "^9.0.2", + "@libp2p/interface": "^0.1.1", + "@libp2p/ipni-content-routing": "^2.0.0", + "@libp2p/kad-dht": "^10.0.2", + "@libp2p/logger": "^3.0.1", + "@libp2p/mdns": "^9.0.2", + "@libp2p/mplex": "^9.0.2", + "@libp2p/tcp": "^8.0.2", + "@libp2p/webrtc": "^3.1.3", + "@libp2p/websockets": "^7.0.2", + "@libp2p/webtransport": "^3.0.3", "blockstore-core": "^4.0.0", - "cborg": "^1.10.0", + "cborg": "^4.0.1", "datastore-core": "^9.0.0", "interface-blockstore": "^5.0.0", "interface-datastore": "^8.0.0", "interface-store": "^5.0.1", - "ipfs-bitswap": "^18.0.0", - "ipns": "^6.0.0", + "ipfs-bitswap": "^19.0.0", + "ipns": "^7.0.1", "it-all": "^3.0.2", "it-drain": "^3.0.1", "it-filter": "^3.0.1", "it-foreach": "^2.0.2", - "libp2p": "^0.45.2", + "libp2p": "^0.46.6", "mortice": "^3.0.1", - "multiformats": "^11.0.1", + "multiformats": "^12.0.1", "p-defer": "^4.0.0", "p-queue": "^7.3.4", "progress-events": "^1.0.0", "uint8arrays": "^4.0.3" } }, - "node_modules/helia/node_modules/@libp2p/mdns": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/@libp2p/mdns/-/mdns-8.0.0.tgz", - "integrity": "sha512-/q2qDWGzZpv2/LmvlwsImoEwjOhmaO9H7HDFloEs2D1+rT0dRFuQpXHAm7/sCLwx9PtmSUZp/sNj0ppnGGwK5A==", + "node_modules/helia/node_modules/@helia/interface": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@helia/interface/-/interface-2.0.0.tgz", + "integrity": "sha512-LW8iRyits8/Tyi6KkZy6I8VydJZvdmeI5kxLanbLNgcCKrgE9bgrlUjR1cQXV5N+CDV8Rn9FRp6I7tYEYnTC0Q==", "dependencies": { - "@libp2p/interface-peer-discovery": "^2.0.0", - "@libp2p/interface-peer-info": "^1.0.8", - "@libp2p/interfaces": "^3.3.1", - "@libp2p/logger": "^2.0.5", - "@libp2p/peer-id": "^2.0.1", - "@multiformats/multiaddr": "^12.0.0", - "@types/multicast-dns": "^7.2.1", - "dns-packet": "^5.4.0", - "multicast-dns": "^7.2.5" - }, - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" + "@libp2p/interface": "^0.1.1", + "interface-blockstore": "^5.0.0", + "interface-datastore": "^8.0.0", + "interface-store": "^5.0.1", + "ipfs-bitswap": "^19.0.0", + "multiformats": "^12.0.1", + "progress-events": "^1.0.0" } }, - "node_modules/helia/node_modules/@libp2p/websockets": { - "version": "6.0.3", - "resolved": "https://registry.npmjs.org/@libp2p/websockets/-/websockets-6.0.3.tgz", - "integrity": "sha512-pwOr3iAbczWmmCg1nHnC2Dl0Ek81Y6LE8ptImiUbuZ08q1E/fTumM8pRNmrrsogSshG4lugebArIO9SNMylJZg==", + "node_modules/helia/node_modules/@libp2p/crypto": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@libp2p/crypto/-/crypto-2.0.5.tgz", + "integrity": "sha512-m6Rn7i9q3SHCzMUBkEwZgAKS4evpGQ4SEx/YD96pM0ZoPtU5PFO0psfrerraanxFBh8wUX4vkCtKfyTPH7F+bQ==", "dependencies": { - "@libp2p/interface-connection": "^5.0.0", - "@libp2p/interface-transport": "^4.0.0", - "@libp2p/interfaces": "^3.0.3", - "@libp2p/logger": "^2.0.0", - "@libp2p/utils": "^3.0.2", - "@multiformats/mafmt": "^12.0.0", - "@multiformats/multiaddr": "^12.0.0", - "@multiformats/multiaddr-to-uri": "^9.0.2", - "@types/ws": "^8.5.4", - "abortable-iterator": "^5.0.0", - "it-ws": "^6.0.0", - "p-defer": "^4.0.0", - "p-timeout": "^6.0.0", - "wherearewe": "^2.0.1", - "ws": "^8.12.1" - }, - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" + "@libp2p/interface": "^0.1.3", + "@noble/curves": "^1.1.0", + "@noble/hashes": "^1.3.1", + "multiformats": "^12.0.1", + "node-forge": "^1.1.0", + "protons-runtime": "^5.0.0", + "uint8arraylist": "^2.4.3", + "uint8arrays": "^4.0.6" + } + }, + "node_modules/helia/node_modules/@libp2p/logger": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@libp2p/logger/-/logger-3.0.3.tgz", + "integrity": "sha512-85ioPX10QN4ZOZeurAZe5sQeRUCkIBT2DikKRbE/AIWKauIKHvvIrN4CSdCdzLw29XNA+xxNO2FVkf51HGgCeQ==", + "dependencies": { + "@libp2p/interface": "^0.1.3", + "@multiformats/multiaddr": "^12.1.5", + "debug": "^4.3.4", + "interface-datastore": "^8.2.0", + "multiformats": "^12.0.1" + } + }, + "node_modules/helia/node_modules/@libp2p/peer-id": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@libp2p/peer-id/-/peer-id-3.0.3.tgz", + "integrity": "sha512-IPVeywoC40bDd3ohtAIzpN8AOkMmD3U0BjdrFz/5ZbNP1+4n2gDIAwVzkAbF/t1iYYS4CX1TWfHuMqaMvd8l1A==", + "dependencies": { + "@libp2p/interface": "^0.1.3", + "multiformats": "^12.0.1", + "uint8arrays": "^4.0.6" + } + }, + "node_modules/helia/node_modules/@libp2p/tcp": { + "version": "8.0.9", + "resolved": "https://registry.npmjs.org/@libp2p/tcp/-/tcp-8.0.9.tgz", + "integrity": "sha512-SCZ22aSt5D5yvxt1pthCcU7hXO6z9qGo/3E3E3pyJaDS/wmLDHJzDuaOhpI7/fRs9lWfRhNAZIhCU4zo+Qeb+w==", + "dependencies": { + "@libp2p/interface": "^0.1.3", + "@libp2p/logger": "^3.0.3", + "@libp2p/utils": "^4.0.4", + "@multiformats/mafmt": "^12.1.2", + "@multiformats/multiaddr": "^12.1.5", + "@types/sinon": "^10.0.15", + "stream-to-it": "^0.2.2" + } + }, + "node_modules/helia/node_modules/@libp2p/utils": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/@libp2p/utils/-/utils-4.0.4.tgz", + "integrity": "sha512-V++nWaCEO5QBk800SJ3kzzVn62cyBLt7fzVPDvVnxPyfLBn9prfShYb7XmvuZrnGSRCaUvD3b+q7CHGUEcdP2g==", + "dependencies": { + "@chainsafe/is-ip": "^2.0.2", + "@libp2p/interface": "^0.1.3", + "@libp2p/logger": "^3.0.3", + "@multiformats/multiaddr": "^12.1.5", + "@multiformats/multiaddr-matcher": "^1.0.1", + "is-loopback-addr": "^2.0.1", + "it-stream-types": "^2.0.1", + "private-ip": "^3.0.0", + "uint8arraylist": "^2.4.3" + } + }, + "node_modules/helia/node_modules/cborg": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/cborg/-/cborg-4.0.3.tgz", + "integrity": "sha512-poLvpK30KT5KI8gzDx3J/IuVCbsLqMT2fEbOrOuX0H7Hyj8yg5LezeWhRh9aLa5Z6MfPC5sriW3HVJF328M8LQ==", + "bin": { + "cborg": "lib/bin.js" + } + }, + "node_modules/helia/node_modules/ipfs-bitswap": { + "version": "19.0.1", + "resolved": "https://registry.npmjs.org/ipfs-bitswap/-/ipfs-bitswap-19.0.1.tgz", + "integrity": "sha512-q5xVJdg8/I9LiBTWfYcfcgPvC8H17QbACYg5HeIrpo3Hci5lQ1HEvWS20IsbmpaSJ3Bv9dHY6orCvmy0OsvTLw==", + "dependencies": { + "@libp2p/interface": "^0.1.1", + "@libp2p/logger": "^3.0.1", + "@multiformats/multiaddr": "^12.1.0", + "@vascosantos/moving-average": "^1.1.0", + "any-signal": "^4.1.1", + "blockstore-core": "^4.0.0", + "events": "^3.3.0", + "interface-blockstore": "^5.0.0", + "interface-store": "^5.1.0", + "it-foreach": "^2.0.2", + "it-length-prefixed": "^9.0.0", + "it-map": "^3.0.2", + "it-pipe": "^3.0.1", + "it-take": "^3.0.1", + "just-debounce-it": "^3.0.1", + "multiformats": "^12.0.1", + "progress-events": "^1.0.0", + "protons-runtime": "^5.0.0", + "timeout-abort-controller": "^3.0.0", + "uint8arraylist": "^2.4.3", + "uint8arrays": "^4.0.2", + "varint": "^6.0.0", + "varint-decoder": "^1.0.0" + } + }, + "node_modules/helia/node_modules/ipns": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/ipns/-/ipns-7.0.1.tgz", + "integrity": "sha512-S74hlKNeAW9eExGmRwEfOLAk5l/lEL3HajcenbIc7PTeyeL6PkKE31qQmTi7qynn1ll32hMAo1OagbtnceCtXQ==", + "dependencies": { + "@libp2p/crypto": "^2.0.3", + "@libp2p/interface": "^0.1.2", + "@libp2p/logger": "^3.0.2", + "@libp2p/peer-id": "^3.0.2", + "cborg": "^4.0.1", + "err-code": "^3.0.1", + "interface-datastore": "^8.1.0", + "multiformats": "^12.0.1", + "protons-runtime": "^5.0.0", + "timestamp-nano": "^1.0.0", + "uint8arraylist": "^2.4.3", + "uint8arrays": "^4.0.2" } }, "node_modules/helia/node_modules/it-all": { @@ -10211,31 +10519,6 @@ "npm": ">=7.0.0" } }, - "node_modules/helia/node_modules/it-ws": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/it-ws/-/it-ws-6.0.1.tgz", - "integrity": "sha512-tWsIEN/hYlBGgvikP3B/afBBR0nZesw6mwQjyeBfpOK69mKYNMOqWn/OxurQaK3TLhxTmbAoy/yLX6jYEqcQVw==", - "dependencies": { - "event-iterator": "^2.0.0", - "iso-url": "^1.1.2", - "it-stream-types": "^2.0.1", - "uint8arrays": "^4.0.2", - "ws": "^8.4.0" - }, - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" - } - }, - "node_modules/helia/node_modules/multiformats": { - "version": "11.0.2", - "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-11.0.2.tgz", - "integrity": "sha512-b5mYMkOkARIuVZCpvijFj9a6m5wMVLC7cf/jIPd5D/ARDOfLC5+IFkbgDXQgcU2goIsTD/O9NY4DI/Mt4OGvlg==", - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" - } - }, "node_modules/highlight-es": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/highlight-es/-/highlight-es-1.0.3.tgz", @@ -10879,11 +11162,6 @@ "npm": ">=7.0.0" } }, - "node_modules/ipfs-core-types/node_modules/long": { - "version": "5.2.3", - "resolved": "https://registry.npmjs.org/long/-/long-5.2.3.tgz", - "integrity": "sha512-lcHwpNoggQTObv5apGNCTdJrO69eHOZMi4BNC+rTLER8iHAqGrUVeLh/irVIM7zTw2bOXA8T6uNPeujwOLg/2Q==" - }, "node_modules/ipfs-core-types/node_modules/multiformats": { "version": "11.0.2", "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-11.0.2.tgz", @@ -10992,11 +11270,6 @@ "npm": ">=7.0.0" } }, - "node_modules/ipfs-core-utils/node_modules/long": { - "version": "5.2.3", - "resolved": "https://registry.npmjs.org/long/-/long-5.2.3.tgz", - "integrity": "sha512-lcHwpNoggQTObv5apGNCTdJrO69eHOZMi4BNC+rTLER8iHAqGrUVeLh/irVIM7zTw2bOXA8T6uNPeujwOLg/2Q==" - }, "node_modules/ipfs-core-utils/node_modules/multiformats": { "version": "11.0.2", "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-11.0.2.tgz", @@ -11677,6 +11950,17 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/is-network-error": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-network-error/-/is-network-error-1.0.0.tgz", + "integrity": "sha512-P3fxi10Aji2FZmHTrMPSNFbNC6nnp4U5juPAIjXPHkUNubi4+qK7vvdsaNpAUwXslhYm9oyjEYTxs1xd/+Ph0w==", + "engines": { + "node": ">=16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/is-number": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", @@ -12018,6 +12302,16 @@ "npm": ">=7.0.0" } }, + "node_modules/it-byte-stream": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/it-byte-stream/-/it-byte-stream-1.0.1.tgz", + "integrity": "sha512-Nu1/y8ObmrEmpHfWBHrWKtla9xwTdnMceB7v1z7tM+H84VP5Ou59wyFiJHsyvuIETLfKFY+TfhEbOJy24FRGjQ==", + "dependencies": { + "it-pushable": "^3.2.0", + "it-stream-types": "^2.0.1", + "uint8arraylist": "^2.4.1" + } + }, "node_modules/it-drain": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/it-drain/-/it-drain-3.0.2.tgz", @@ -12153,6 +12447,27 @@ "npm": ">=7.0.0" } }, + "node_modules/it-length-prefixed-stream": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/it-length-prefixed-stream/-/it-length-prefixed-stream-1.0.2.tgz", + "integrity": "sha512-gWevodoctgwWUaRJN9t+xEs1H1GQNYAjLCR7FO50fon9Ph4OJGgrxPKTc26QXKrC/cIQZLkHYClphUw0wl1k2A==", + "dependencies": { + "it-byte-stream": "^1.0.0", + "it-length-prefixed": "^9.0.1", + "it-stream-types": "^2.0.1", + "uint8-varint": "^2.0.1", + "uint8arraylist": "^2.4.1" + } + }, + "node_modules/it-length-prefixed-stream/node_modules/uint8-varint": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/uint8-varint/-/uint8-varint-2.0.1.tgz", + "integrity": "sha512-euvmpuulJstK5+xNuI4S1KfnxJnbI5QP52RXIR3GZ3/ZMkOsEK2AgCtFpNvEQLXMxMx2o0qcyevK1fJwOZJagQ==", + "dependencies": { + "uint8arraylist": "^2.0.0", + "uint8arrays": "^4.0.2" + } + }, "node_modules/it-map": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/it-map/-/it-map-3.0.3.tgz", @@ -12252,6 +12567,17 @@ "npm": ">=7.0.0" } }, + "node_modules/it-protobuf-stream": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/it-protobuf-stream/-/it-protobuf-stream-1.0.2.tgz", + "integrity": "sha512-2lESJIeZS2ZlYJc/1SKs6LL4Y83rCCvZv750xV1e4uuP9114yNkw2MhIGCtSReg+qNWCvzGqOwjQbKV0LFE6wQ==", + "dependencies": { + "it-length-prefixed-stream": "^1.0.0", + "it-stream-types": "^2.0.1", + "protons-runtime": "^5.0.0", + "uint8arraylist": "^2.4.1" + } + }, "node_modules/it-pushable": { "version": "3.2.1", "resolved": "https://registry.npmjs.org/it-pushable/-/it-pushable-3.2.1.tgz", @@ -12354,6 +12680,23 @@ "node": ">=8" } }, + "node_modules/it-ws": { + "version": "6.0.5", + "resolved": "https://registry.npmjs.org/it-ws/-/it-ws-6.0.5.tgz", + "integrity": "sha512-xp7tF4fHgx8+vN3Qy/8wGiWUKbC9E1U1g9PwtlbdxD7pY4zld71ZyWZVFHLxnxxg14T9mVNK5uO7U9HK11VQ5g==", + "dependencies": { + "@types/ws": "^8.2.2", + "event-iterator": "^2.0.0", + "iso-url": "^1.1.2", + "it-stream-types": "^2.0.1", + "uint8arrays": "^4.0.2", + "ws": "^8.4.0" + }, + "engines": { + "node": ">=16.0.0", + "npm": ">=7.0.0" + } + }, "node_modules/iterable-ndjson": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/iterable-ndjson/-/iterable-ndjson-1.1.0.tgz", @@ -13333,78 +13676,125 @@ } }, "node_modules/libp2p": { - "version": "0.45.9", - "resolved": "https://registry.npmjs.org/libp2p/-/libp2p-0.45.9.tgz", - "integrity": "sha512-cf2dCf8naZqQoDw3xxSEZ6rKgQ8BBne5iWgtIKHAYrCvL+ulshz72jNgeAG0FQ/jjRD3yzmUuwoMaLHj6gf7Bw==", + "version": "0.46.14", + "resolved": "https://registry.npmjs.org/libp2p/-/libp2p-0.46.14.tgz", + "integrity": "sha512-7HC1VdVqeSVRZ8PdtGHwpCyGGz2Xrd5TeLcOspqdBXL6EOXeFY0n0P6qaC83IVzVP4SWULCbnzjstACw+SGluw==", "dependencies": { "@achingbrain/nat-port-mapper": "^1.0.9", - "@libp2p/crypto": "^1.0.17", - "@libp2p/interface-address-manager": "^3.0.0", - "@libp2p/interface-connection": "^5.1.1", - "@libp2p/interface-connection-encrypter": "^4.0.0", - "@libp2p/interface-connection-gater": "^3.0.0", - "@libp2p/interface-connection-manager": "^3.0.0", - "@libp2p/interface-content-routing": "^2.1.0", - "@libp2p/interface-keychain": "^2.0.4", - "@libp2p/interface-libp2p": "^3.2.0", - "@libp2p/interface-metrics": "^4.0.0", - "@libp2p/interface-peer-discovery": "^2.0.0", - "@libp2p/interface-peer-id": "^2.0.1", - "@libp2p/interface-peer-info": "^1.0.3", - "@libp2p/interface-peer-routing": "^1.1.0", - "@libp2p/interface-peer-store": "^2.0.4", - "@libp2p/interface-pubsub": "^4.0.0", - "@libp2p/interface-record": "^2.0.6", - "@libp2p/interface-registrar": "^2.0.3", - "@libp2p/interface-stream-muxer": "^4.0.0", - "@libp2p/interface-transport": "^4.0.0", - "@libp2p/interfaces": "^3.2.0", - "@libp2p/keychain": "^2.0.0", - "@libp2p/logger": "^2.1.1", - "@libp2p/multistream-select": "^3.1.8", - "@libp2p/peer-collections": "^3.0.0", - "@libp2p/peer-id": "^2.0.0", - "@libp2p/peer-id-factory": "^2.0.0", - "@libp2p/peer-record": "^5.0.0", - "@libp2p/peer-store": "^8.2.0", - "@libp2p/topology": "^4.0.1", - "@libp2p/tracked-map": "^3.0.0", - "@libp2p/utils": "^3.0.10", - "@multiformats/mafmt": "^12.0.0", - "@multiformats/multiaddr": "^12.0.0", - "abortable-iterator": "^5.0.1", + "@libp2p/crypto": "^2.0.5", + "@libp2p/interface": "^0.1.3", + "@libp2p/interface-internal": "^0.1.6", + "@libp2p/keychain": "^3.0.5", + "@libp2p/logger": "^3.0.3", + "@libp2p/multistream-select": "^4.0.3", + "@libp2p/peer-collections": "^4.0.5", + "@libp2p/peer-id": "^3.0.3", + "@libp2p/peer-id-factory": "^3.0.5", + "@libp2p/peer-record": "^6.0.6", + "@libp2p/peer-store": "^9.0.6", + "@libp2p/utils": "^4.0.4", + "@multiformats/mafmt": "^12.1.2", + "@multiformats/multiaddr": "^12.1.5", + "@multiformats/multiaddr-matcher": "^1.0.0", "any-signal": "^4.1.1", - "datastore-core": "^9.0.0", - "interface-datastore": "^8.0.0", - "it-all": "^3.0.1", - "it-drain": "^3.0.1", + "datastore-core": "^9.0.1", + "delay": "^6.0.0", + "events": "^3.3.0", + "interface-datastore": "^8.2.0", + "it-all": "^3.0.2", + "it-drain": "^3.0.2", "it-filter": "^3.0.1", "it-first": "^3.0.1", "it-handshake": "^4.1.3", "it-length-prefixed": "^9.0.1", - "it-map": "^3.0.2", + "it-map": "^3.0.3", "it-merge": "^3.0.0", - "it-pair": "^2.0.2", + "it-pair": "^2.0.6", "it-parallel": "^3.0.0", - "it-pb-stream": "^4.0.1", "it-pipe": "^3.0.1", + "it-protobuf-stream": "^1.0.0", "it-stream-types": "^2.0.1", "merge-options": "^3.0.4", - "multiformats": "^11.0.0", + "multiformats": "^12.0.1", "p-defer": "^4.0.0", "p-queue": "^7.3.4", - "p-retry": "^5.0.0", + "p-retry": "^6.0.0", "private-ip": "^3.0.0", "protons-runtime": "^5.0.0", - "rate-limiter-flexible": "^2.3.11", - "uint8arraylist": "^2.3.2", - "uint8arrays": "^4.0.2", - "wherearewe": "^2.0.0", + "rate-limiter-flexible": "^3.0.0", + "uint8arraylist": "^2.4.3", + "uint8arrays": "^4.0.6", + "wherearewe": "^2.0.1", "xsalsa20": "^1.1.0" - }, - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" + } + }, + "node_modules/libp2p/node_modules/@libp2p/crypto": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@libp2p/crypto/-/crypto-2.0.5.tgz", + "integrity": "sha512-m6Rn7i9q3SHCzMUBkEwZgAKS4evpGQ4SEx/YD96pM0ZoPtU5PFO0psfrerraanxFBh8wUX4vkCtKfyTPH7F+bQ==", + "dependencies": { + "@libp2p/interface": "^0.1.3", + "@noble/curves": "^1.1.0", + "@noble/hashes": "^1.3.1", + "multiformats": "^12.0.1", + "node-forge": "^1.1.0", + "protons-runtime": "^5.0.0", + "uint8arraylist": "^2.4.3", + "uint8arrays": "^4.0.6" + } + }, + "node_modules/libp2p/node_modules/@libp2p/logger": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@libp2p/logger/-/logger-3.0.3.tgz", + "integrity": "sha512-85ioPX10QN4ZOZeurAZe5sQeRUCkIBT2DikKRbE/AIWKauIKHvvIrN4CSdCdzLw29XNA+xxNO2FVkf51HGgCeQ==", + "dependencies": { + "@libp2p/interface": "^0.1.3", + "@multiformats/multiaddr": "^12.1.5", + "debug": "^4.3.4", + "interface-datastore": "^8.2.0", + "multiformats": "^12.0.1" + } + }, + "node_modules/libp2p/node_modules/@libp2p/peer-id": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@libp2p/peer-id/-/peer-id-3.0.3.tgz", + "integrity": "sha512-IPVeywoC40bDd3ohtAIzpN8AOkMmD3U0BjdrFz/5ZbNP1+4n2gDIAwVzkAbF/t1iYYS4CX1TWfHuMqaMvd8l1A==", + "dependencies": { + "@libp2p/interface": "^0.1.3", + "multiformats": "^12.0.1", + "uint8arrays": "^4.0.6" + } + }, + "node_modules/libp2p/node_modules/@libp2p/peer-record": { + "version": "6.0.6", + "resolved": "https://registry.npmjs.org/@libp2p/peer-record/-/peer-record-6.0.6.tgz", + "integrity": "sha512-SNFafmUrnEOB2zplYJVjheN5UVFbi2UBdrYfIwi4SEaPA4ZFprnWBeQcVaLUSq7t2JkBGZUmWwtj4teVIxr60g==", + "dependencies": { + "@libp2p/crypto": "^2.0.5", + "@libp2p/interface": "^0.1.3", + "@libp2p/peer-id": "^3.0.3", + "@libp2p/utils": "^4.0.4", + "@multiformats/multiaddr": "^12.1.5", + "protons-runtime": "^5.0.0", + "uint8-varint": "^2.0.0", + "uint8arraylist": "^2.4.3", + "uint8arrays": "^4.0.6" + } + }, + "node_modules/libp2p/node_modules/@libp2p/utils": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/@libp2p/utils/-/utils-4.0.4.tgz", + "integrity": "sha512-V++nWaCEO5QBk800SJ3kzzVn62cyBLt7fzVPDvVnxPyfLBn9prfShYb7XmvuZrnGSRCaUvD3b+q7CHGUEcdP2g==", + "dependencies": { + "@chainsafe/is-ip": "^2.0.2", + "@libp2p/interface": "^0.1.3", + "@libp2p/logger": "^3.0.3", + "@multiformats/multiaddr": "^12.1.5", + "@multiformats/multiaddr-matcher": "^1.0.1", + "is-loopback-addr": "^2.0.1", + "it-stream-types": "^2.0.1", + "private-ip": "^3.0.0", + "uint8arraylist": "^2.4.3" } }, "node_modules/libp2p/node_modules/it-all": { @@ -13425,13 +13815,13 @@ "npm": ">=7.0.0" } }, - "node_modules/libp2p/node_modules/multiformats": { - "version": "11.0.2", - "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-11.0.2.tgz", - "integrity": "sha512-b5mYMkOkARIuVZCpvijFj9a6m5wMVLC7cf/jIPd5D/ARDOfLC5+IFkbgDXQgcU2goIsTD/O9NY4DI/Mt4OGvlg==", - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" + "node_modules/libp2p/node_modules/uint8-varint": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/uint8-varint/-/uint8-varint-2.0.1.tgz", + "integrity": "sha512-euvmpuulJstK5+xNuI4S1KfnxJnbI5QP52RXIR3GZ3/ZMkOsEK2AgCtFpNvEQLXMxMx2o0qcyevK1fJwOZJagQ==", + "dependencies": { + "uint8arraylist": "^2.0.0", + "uint8arrays": "^4.0.2" } }, "node_modules/lilconfig": { @@ -13947,9 +14337,9 @@ } }, "node_modules/long": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/long/-/long-4.0.0.tgz", - "integrity": "sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA==" + "version": "5.2.3", + "resolved": "https://registry.npmjs.org/long/-/long-5.2.3.tgz", + "integrity": "sha512-lcHwpNoggQTObv5apGNCTdJrO69eHOZMi4BNC+rTLER8iHAqGrUVeLh/irVIM7zTw2bOXA8T6uNPeujwOLg/2Q==" }, "node_modules/longbits": { "version": "1.1.0", @@ -14867,6 +15257,446 @@ "node": ">= 0.4.0" } }, + "node_modules/node-datachannel": { + "version": "0.5.0-dev", + "resolved": "https://registry.npmjs.org/node-datachannel/-/node-datachannel-0.5.0-dev.tgz", + "integrity": "sha512-XVTXJ9aoLDSAKN8gNP+GmXho19cbAREVl4rEqvkwfqrkz/yY9pfui9i4h3BqfWLluqdC3TSdgBft1WAGmbbGeA==", + "bundleDependencies": [ + "prebuild-install" + ], + "hasInstallScript": true, + "dependencies": { + "node-domexception": "^2.0.1", + "prebuild-install": "^7.0.1" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/node-datachannel/node_modules/base64-js": { + "version": "1.5.1", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "inBundle": true, + "license": "MIT" + }, + "node_modules/node-datachannel/node_modules/buffer": { + "version": "5.7.1", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "inBundle": true, + "license": "MIT", + "dependencies": { + "base64-js": "^1.3.1", + "ieee754": "^1.1.13" + } + }, + "node_modules/node-datachannel/node_modules/chownr": { + "version": "1.1.4", + "inBundle": true, + "license": "ISC" + }, + "node_modules/node-datachannel/node_modules/decompress-response": { + "version": "6.0.0", + "inBundle": true, + "license": "MIT", + "dependencies": { + "mimic-response": "^3.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/node-datachannel/node_modules/deep-extend": { + "version": "0.6.0", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=4.0.0" + } + }, + "node_modules/node-datachannel/node_modules/detect-libc": { + "version": "2.0.2", + "inBundle": true, + "license": "Apache-2.0", + "engines": { + "node": ">=8" + } + }, + "node_modules/node-datachannel/node_modules/end-of-stream": { + "version": "1.4.4", + "inBundle": true, + "license": "MIT", + "dependencies": { + "once": "^1.4.0" + } + }, + "node_modules/node-datachannel/node_modules/expand-template": { + "version": "2.0.3", + "inBundle": true, + "license": "(MIT OR WTFPL)", + "engines": { + "node": ">=6" + } + }, + "node_modules/node-datachannel/node_modules/fs-constants": { + "version": "1.0.0", + "inBundle": true, + "license": "MIT" + }, + "node_modules/node-datachannel/node_modules/github-from-package": { + "version": "0.0.0", + "inBundle": true, + "license": "MIT" + }, + "node_modules/node-datachannel/node_modules/ieee754": { + "version": "1.2.1", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "inBundle": true, + "license": "BSD-3-Clause" + }, + "node_modules/node-datachannel/node_modules/inherits": { + "version": "2.0.4", + "inBundle": true, + "license": "ISC" + }, + "node_modules/node-datachannel/node_modules/ini": { + "version": "1.3.8", + "inBundle": true, + "license": "ISC" + }, + "node_modules/node-datachannel/node_modules/mimic-response": { + "version": "3.1.0", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/node-datachannel/node_modules/minimist": { + "version": "1.2.8", + "inBundle": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/node-datachannel/node_modules/mkdirp-classic": { + "version": "0.5.3", + "inBundle": true, + "license": "MIT" + }, + "node_modules/node-datachannel/node_modules/napi-build-utils": { + "version": "1.0.2", + "inBundle": true, + "license": "MIT" + }, + "node_modules/node-datachannel/node_modules/node-abi": { + "version": "3.47.0", + "inBundle": true, + "license": "MIT", + "dependencies": { + "semver": "^7.3.5" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/node-datachannel/node_modules/node-domexception": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/node-domexception/-/node-domexception-2.0.1.tgz", + "integrity": "sha512-M85rnSC7WQ7wnfQTARPT4LrK7nwCHLdDFOCcItZMhTQjyCebJH8GciKqYJNgaOFZs9nFmTmd/VMyi3OW5jA47w==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/jimmywarting" + }, + { + "type": "github", + "url": "https://paypal.me/jimmywarting" + } + ], + "engines": { + "node": ">=16" + } + }, + "node_modules/node-datachannel/node_modules/once": { + "version": "1.4.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/node-datachannel/node_modules/prebuild-install": { + "version": "7.1.1", + "inBundle": true, + "license": "MIT", + "dependencies": { + "detect-libc": "^2.0.0", + "expand-template": "^2.0.3", + "github-from-package": "0.0.0", + "minimist": "^1.2.3", + "mkdirp-classic": "^0.5.3", + "napi-build-utils": "^1.0.1", + "node-abi": "^3.3.0", + "pump": "^3.0.0", + "rc": "^1.2.7", + "simple-get": "^4.0.0", + "tar-fs": "^2.0.0", + "tunnel-agent": "^0.6.0" + }, + "bin": { + "prebuild-install": "bin.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/node-datachannel/node_modules/pump": { + "version": "3.0.0", + "inBundle": true, + "license": "MIT", + "dependencies": { + "end-of-stream": "^1.1.0", + "once": "^1.3.1" + } + }, + "node_modules/node-datachannel/node_modules/rc": { + "version": "1.2.8", + "inBundle": true, + "license": "(BSD-2-Clause OR MIT OR Apache-2.0)", + "dependencies": { + "deep-extend": "^0.6.0", + "ini": "~1.3.0", + "minimist": "^1.2.0", + "strip-json-comments": "~2.0.1" + }, + "bin": { + "rc": "cli.js" + } + }, + "node_modules/node-datachannel/node_modules/rc/node_modules/strip-json-comments": { + "version": "2.0.1", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/node-datachannel/node_modules/safe-buffer": { + "version": "5.2.1", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "inBundle": true, + "license": "MIT" + }, + "node_modules/node-datachannel/node_modules/semver": { + "version": "7.5.4", + "inBundle": true, + "license": "ISC", + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/node-datachannel/node_modules/semver/node_modules/lru-cache": { + "version": "6.0.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/node-datachannel/node_modules/semver/node_modules/yallist": { + "version": "4.0.0", + "inBundle": true, + "license": "ISC" + }, + "node_modules/node-datachannel/node_modules/simple-concat": { + "version": "1.0.1", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "inBundle": true, + "license": "MIT" + }, + "node_modules/node-datachannel/node_modules/simple-get": { + "version": "4.0.1", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "inBundle": true, + "license": "MIT", + "dependencies": { + "decompress-response": "^6.0.0", + "once": "^1.3.1", + "simple-concat": "^1.0.0" + } + }, + "node_modules/node-datachannel/node_modules/tar-fs": { + "version": "2.1.1", + "inBundle": true, + "license": "MIT", + "dependencies": { + "chownr": "^1.1.1", + "mkdirp-classic": "^0.5.2", + "pump": "^3.0.0", + "tar-stream": "^2.1.4" + } + }, + "node_modules/node-datachannel/node_modules/tar-fs/node_modules/bl": { + "version": "4.1.0", + "inBundle": true, + "license": "MIT", + "dependencies": { + "buffer": "^5.5.0", + "inherits": "^2.0.4", + "readable-stream": "^3.4.0" + } + }, + "node_modules/node-datachannel/node_modules/tar-fs/node_modules/readable-stream": { + "version": "3.6.2", + "inBundle": true, + "license": "MIT", + "dependencies": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/node-datachannel/node_modules/tar-fs/node_modules/string_decoder": { + "version": "1.3.0", + "inBundle": true, + "license": "MIT", + "dependencies": { + "safe-buffer": "~5.2.0" + } + }, + "node_modules/node-datachannel/node_modules/tar-fs/node_modules/tar-stream": { + "version": "2.2.0", + "inBundle": true, + "license": "MIT", + "dependencies": { + "bl": "^4.0.3", + "end-of-stream": "^1.4.1", + "fs-constants": "^1.0.0", + "inherits": "^2.0.3", + "readable-stream": "^3.1.1" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/node-datachannel/node_modules/tunnel-agent": { + "version": "0.6.0", + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "safe-buffer": "^5.0.1" + }, + "engines": { + "node": "*" + } + }, + "node_modules/node-datachannel/node_modules/util-deprecate": { + "version": "1.0.2", + "inBundle": true, + "license": "MIT" + }, + "node_modules/node-datachannel/node_modules/wrappy": { + "version": "1.0.2", + "inBundle": true, + "license": "ISC" + }, "node_modules/node-domexception": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/node-domexception/-/node-domexception-1.0.0.tgz", @@ -18316,6 +19146,20 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/p-event": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/p-event/-/p-event-6.0.0.tgz", + "integrity": "sha512-Xbfxd0CfZmHLGKXH32k1JKjQYX6Rkv0UtQdaFJ8OyNcf+c0oWCeXHc1C4CX/IESZLmcvfPa5aFIO/vCr5gqtag==", + "dependencies": { + "p-timeout": "^6.1.2" + }, + "engines": { + "node": ">=16.17" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/p-fifo": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/p-fifo/-/p-fifo-1.0.0.tgz", @@ -18497,15 +19341,16 @@ } }, "node_modules/p-retry": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/p-retry/-/p-retry-5.1.2.tgz", - "integrity": "sha512-couX95waDu98NfNZV+i/iLt+fdVxmI7CbrrdC2uDWfPdUAApyxT4wmDlyOtR5KtTDmkDO0zDScDjDou9YHhd9g==", + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/p-retry/-/p-retry-6.1.0.tgz", + "integrity": "sha512-fJLEQ2KqYBJRuaA/8cKMnqhulqNM+bpcjYtXNex2t3mOXKRYPitAJt9NacSf8XAFzcYahSAbKpobiWDSqHSh2g==", "dependencies": { - "@types/retry": "0.12.1", + "@types/retry": "0.12.2", + "is-network-error": "^1.0.0", "retry": "^0.13.1" }, "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + "node": ">=16.17" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" @@ -19633,9 +20478,9 @@ "integrity": "sha512-vtK/94akxsTMhe0/cbfpR+syPuszcuwhqVjJq26CuNDgFGj682oRBXOP5MJpv2r7JtE8MsiepGIqvvOTBwn2vA==" }, "node_modules/protobufjs": { - "version": "6.11.3", - "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-6.11.3.tgz", - "integrity": "sha512-xL96WDdCZYdU7Slin569tFX712BxsxslWwAfAhCYjQKGTq7dAU91Lomy6nLLhh/dyGhk/YH4TwTSRxTzhuHyZg==", + "version": "7.2.5", + "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.2.5.tgz", + "integrity": "sha512-gGXRSXvxQ7UiPgfw8gevrfRWcTlSbOFg+p/N+JVJEK5VhueL2miT6qTymqAmjr1Q5WbOCyJbyrk6JfWKwlFn6A==", "hasInstallScript": true, "dependencies": { "@protobufjs/aspromise": "^1.1.2", @@ -19648,13 +20493,11 @@ "@protobufjs/path": "^1.1.2", "@protobufjs/pool": "^1.1.0", "@protobufjs/utf8": "^1.1.0", - "@types/long": "^4.0.1", "@types/node": ">=13.7.0", - "long": "^4.0.0" + "long": "^5.0.0" }, - "bin": { - "pbjs": "bin/pbjs", - "pbts": "bin/pbts" + "engines": { + "node": ">=12.0.0" } }, "node_modules/protomux": { @@ -19680,11 +20523,6 @@ "uint8arraylist": "^2.3.2" } }, - "node_modules/protons-runtime/node_modules/long": { - "version": "5.2.3", - "resolved": "https://registry.npmjs.org/long/-/long-5.2.3.tgz", - "integrity": "sha512-lcHwpNoggQTObv5apGNCTdJrO69eHOZMi4BNC+rTLER8iHAqGrUVeLh/irVIM7zTw2bOXA8T6uNPeujwOLg/2Q==" - }, "node_modules/protons-runtime/node_modules/protobufjs": { "version": "7.2.4", "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.2.4.tgz", @@ -19895,6 +20733,11 @@ } } }, + "node_modules/race-signal": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/race-signal/-/race-signal-1.0.1.tgz", + "integrity": "sha512-a5un4dInIWoB7+76DieVE+Xv+wmyochKJ3P2GVs9dUKIzGuPyFR5iU3gEWJvztde/15fSOGkslbIsPxi+Loosw==" + }, "node_modules/randombytes": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", @@ -19913,9 +20756,9 @@ } }, "node_modules/rate-limiter-flexible": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/rate-limiter-flexible/-/rate-limiter-flexible-2.4.1.tgz", - "integrity": "sha512-dgH4T44TzKVO9CLArNto62hJOwlWJMLUjVVr/ii0uUzZXEXthDNr7/yefW5z/1vvHAfycc1tnuiYyNJ8CTRB3g==" + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/rate-limiter-flexible/-/rate-limiter-flexible-3.0.0.tgz", + "integrity": "sha512-janAJkWxWxmLka0hV+XvCTo0M8keeSeOuz8ZL33cTXrkS4ek9mQ2VJm9ri7fm03oTVth19Sfqb1ijCmo7K/vAg==" }, "node_modules/rc": { "version": "1.2.8", @@ -22914,20 +23757,11 @@ } }, "node_modules/uint8arrays": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/uint8arrays/-/uint8arrays-4.0.4.tgz", - "integrity": "sha512-AOoA66e/A7zoXm1mgzQjGmkWDTvCrS3ttWXLHFtlVAwMobLcaOA7G7WRNNAcyfjjYdFDtkEK6njRDX7hZLIO9Q==", + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/uint8arrays/-/uint8arrays-4.0.6.tgz", + "integrity": "sha512-4ZesjQhqOU2Ip6GPReIwN60wRxIupavL8T0Iy36BBHr2qyMrNxsPJvr7vpS4eFt8F8kSguWUPad6ZM9izs/vyw==", "dependencies": { - "multiformats": "^11.0.0" - } - }, - "node_modules/uint8arrays/node_modules/multiformats": { - "version": "11.0.2", - "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-11.0.2.tgz", - "integrity": "sha512-b5mYMkOkARIuVZCpvijFj9a6m5wMVLC7cf/jIPd5D/ARDOfLC5+IFkbgDXQgcU2goIsTD/O9NY4DI/Mt4OGvlg==", - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" + "multiformats": "^12.0.1" } }, "node_modules/unbox-primitive": { diff --git a/package.json b/package.json index dcbe788..47dfae3 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,7 @@ "blockstore-idb": "^1.1.1", "datastore-core": "^9.2.0", "datastore-idb": "^2.1.2", - "helia": "1.3.5", + "helia": "^2.0.3", "ipfs-http-client": "^60.0.1", "multiformats": "^12.0.1", "p-defer": "^4.0.0", @@ -46,12 +46,12 @@ "rollup-plugin-ignore-import": "^1.3.2" }, "overrides": { - "libp2p": "^0.45", - "@libp2p/kad-dht": "^9.3.8", + "libp2p": "^0.46.6", + "@libp2p/kad-dht": "^10.0.2", "@chainsafe/libp2p-noise": "^12.0.0", - "@libp2p/mplex": "^8.0.3", - "@libp2p/bootstrap": "^8.0.0", - "@chainsafe/libp2p-gossipsub": "^8.0.0", + "@libp2p/mplex": "^9.0.2", + "@libp2p/bootstrap": "^9.0.2", + "@chainsafe/libp2p-gossipsub": "^10.0.0", "@libp2p/interface-datastore": "^8.0.0" } } diff --git a/src/bootstrap.ts b/src/bootstrap.ts index 890f017..9bc800a 100644 --- a/src/bootstrap.ts +++ b/src/bootstrap.ts @@ -1,3 +1,5 @@ +import type { BootstrapInit } from "@libp2p/bootstrap"; + export const bootstrapConfig = { list: [ "/dnsaddr/bootstrap.libp2p.io/p2p/QmNnooDu7bfjPFoTZYxMNLWUQJyrVwtbZg5gBMjTezGAJN", @@ -54,4 +56,4 @@ export const bootstrapConfig = { "/ip6/2a01:4ff:f0:3764::1/tcp/4001/p2p/12D3KooWSDj6JM2JmoHwE9AUUwqAFUEg9ndd3pMA8aF2bkYckZfo", "/ip6/2a01:4ff:f0:3764::1/udp/4001/quic/p2p/12D3KooWSDj6JM2JmoHwE9AUUwqAFUEg9ndd3pMA8aF2bkYckZfo", ], -}; +} as BootstrapInit; diff --git a/src/config.ts b/src/config.ts index 15fb980..8f85c11 100644 --- a/src/config.ts +++ b/src/config.ts @@ -18,7 +18,14 @@ import { reframeContentRouting } from "@libp2p/reframe-content-routing"; import { multiaddr } from "@multiformats/multiaddr"; import { create as createIpfsHttpClient } from "ipfs-http-client"; import { delegatedContentRouting } from "@libp2p/delegated-content-routing"; +import { delegatedPeerRouting } from "@libp2p/delegated-peer-routing"; +import { circuitRelayTransport } from "libp2p/circuit-relay"; import { DELEGATE_LIST } from "./constants.js"; +import { webSockets } from "@libp2p/websockets"; +import { webTransport } from "@libp2p/webtransport"; +import { dcutrService } from "libp2p/dcutr"; +// @ts-ignore +import type { DefaultLibp2pServices } from "helia/dist/src/utils/libp2p-defaults.browser.js"; function getDelegateConfig(): any { const delegateString = @@ -34,19 +41,22 @@ function getDelegateConfig(): any { }; } -export function libp2pConfig(proxy: MultiSocketProxy): Libp2pOptions<{ - dht: DualKadDHT; - pubsub: PubSub; - identify: unknown; - autoNAT: unknown; -}> { +export function libp2pConfig( + proxy: MultiSocketProxy, +): Libp2pOptions { const client = createIpfsHttpClient(getDelegateConfig()); return { addresses: { listen: [], }, - transports: [hypercoreTransport({ proxy })], + transports: [ + circuitRelayTransport({ + discoverRelays: 1, + }), + webTransport(), + webSockets(), + ], connectionEncryption: [noise()], streamMuxers: [yamux(), mplex()], peerDiscovery: [bootstrap(bootstrapConfig)], @@ -55,10 +65,12 @@ export function libp2pConfig(proxy: MultiSocketProxy): Libp2pOptions<{ ipniContentRouting("https://cid.contact"), reframeContentRouting("https://cid.contact/reframe"), ], + peerRouters: [delegatedPeerRouting(client)], services: { identify: identifyService(), autoNAT: autoNATService(), pubsub: gossipsub(), + dcutr: dcutrService(), dht: kadDHT({ clientMode: true, validators: { diff --git a/src/index.ts b/src/index.ts index 69c05f9..7b94d49 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,6 +1,4 @@ import { createHelia } from "helia"; -// @ts-ignore -import Hyperswarm from "hyperswarm"; import { MultiSocketProxy } from "@lumeweb/libhyperproxy"; import { UnixFS, unixfs } from "@helia/unixfs"; import { PROTOCOL } from "./constants.js"; @@ -11,9 +9,8 @@ import { } from "@lumeweb/libkernel/module"; import { createClient } from "@lumeweb/kernel-swarm-client"; import { ipns, IPNS } from "@helia/ipns"; -import { dht, pubsub } from "@helia/ipns/routing"; +import { dht } from "@helia/ipns/routing"; // @ts-ignore -import { gossipsub } from "@chainsafe/libp2p-gossipsub"; import { CID } from "multiformats/cid"; import { bases } from "multiformats/basics"; import { substr } from "runes2"; @@ -27,6 +24,7 @@ import { Helia } from "@helia/interface"; import type { Components } from "libp2p/src/components.js"; import { libp2pConfig } from "./config.js"; import { createClient as createNetworkRegistryClient } from "@lumeweb/kernel-network-registry-client"; +import { Libp2p } from "@libp2p/interface"; const basesByPrefix: { [prefix: string]: MultibaseDecoder } = Object.keys( bases, @@ -50,7 +48,7 @@ let swarm; let proxy: MultiSocketProxy; let fs: UnixFS; let IPNS: IPNS; -let ipfs: Helia; +let ipfs: Helia>; // @ts-ignore BigInt.prototype.toJSON = function () { @@ -106,7 +104,7 @@ async function handlePresentKey() { await swarm.ready(); // @ts-ignore fs = unixfs(ipfs); - IPNS = ipns(ipfs as any, [dht(ipfs), pubsub(ipfs as any)]); + IPNS = ipns(ipfs as any, [dht(ipfs)]); ipfs.libp2p.addEventListener("peer:connect", () => { if (ipfs.libp2p.getPeers().length > 0) {