From db3f1bf2cfd53c5d33e2385f279020de4f4531cd Mon Sep 17 00:00:00 2001 From: Chris Troutner Date: Tue, 17 Sep 2024 07:49:43 -0700 Subject: [PATCH] fix(webRTC): Renabling webRTC & circuit relays --- package-lock.json | 220 ++++++++++++++++++++------------------ package.json | 2 +- src/adapters/ipfs/ipfs.js | 18 ++-- 3 files changed, 126 insertions(+), 114 deletions(-) diff --git a/package-lock.json b/package-lock.json index 2f66591..7667bbc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -28,7 +28,7 @@ "datastore-fs": "9.1.7", "glob": "7.1.6", "helia": "4.2.5", - "helia-coord": "1.5.14", + "helia-coord": "1.5.15", "jsonrpc-lite": "2.2.0", "jsonwebtoken": "8.5.1", "jwt-bch-lib": "1.3.0", @@ -3056,9 +3056,9 @@ } }, "node_modules/@eslint-community/regexpp": { - "version": "4.11.0", - "resolved": "http://94.130.170.209:4873/@eslint-community%2fregexpp/-/regexpp-4.11.0.tgz", - "integrity": "sha512-G/M/tIiMrTAxEWRfLfQJMmGNX28IxBg4PBz8XqQhqUHLFI6TL2htpIB1iQCj144V5ee/JaKyT9/WZ0MGZWfA7A==", + "version": "4.11.1", + "resolved": "http://94.130.170.209:4873/@eslint-community%2fregexpp/-/regexpp-4.11.1.tgz", + "integrity": "sha512-m4DVN9ZqskZoLU5GlWZadwDnYo3vAEydiUayB9widCl9ffWx2IvPnp6n3on5rJmziJSw9Bv+Z3ChDVdMwXCY8Q==", "dev": true, "license": "MIT", "engines": { @@ -3157,9 +3157,9 @@ } }, "node_modules/@eslint/js": { - "version": "8.57.0", - "resolved": "http://94.130.170.209:4873/@eslint%2fjs/-/js-8.57.0.tgz", - "integrity": "sha512-Ys+3g2TaW7gADOJzPt83SJtCDhMjndcDMFVQ/Tj9iA1BfJzFKD9mAUXT3OenpuPHbI6P/myECxRJrofUsDx/5g==", + "version": "8.57.1", + "resolved": "http://94.130.170.209:4873/@eslint%2fjs/-/js-8.57.1.tgz", + "integrity": "sha512-d9zaMRSTIKDLhctzH12MtXvJKSSUhaHcjV+2Z+GK+EEY7XKpP5yR4x+N3TAcHTcu963nIr+TMcCb4DBCYX1z6Q==", "dev": true, "license": "MIT", "engines": { @@ -3190,14 +3190,14 @@ } }, "node_modules/@helia/bitswap": { - "version": "1.1.3", - "resolved": "http://94.130.170.209:4873/@helia%2fbitswap/-/bitswap-1.1.3.tgz", - "integrity": "sha512-nCszNky/kOxaj1CZrZbzzFz6Fn7uNWigudn4KaLV+ZuFx6xyB8+t6aCmjKQ59me0WA3mwkmHkPtUOi9Y75zLSw==", + "version": "1.1.4", + "resolved": "http://94.130.170.209:4873/@helia%2fbitswap/-/bitswap-1.1.4.tgz", + "integrity": "sha512-BcmIc2FZ0NEjSYrwJxzFO5OapcOCBfcHmaBKaDoPNVh1egLLUkws2a7C3hPH5ZR7PXGQPXonH1YFz1CKYypzgA==", "license": "Apache-2.0 OR MIT", "dependencies": { "@helia/interface": "^4.3.1", "@helia/utils": "^0.3.3", - "@libp2p/interface": "^1.1.2", + "@libp2p/interface": "^1.1.4", "@libp2p/logger": "^4.0.5", "@libp2p/peer-collections": "^5.1.6", "@libp2p/utils": "^5.2.3", @@ -3222,12 +3222,12 @@ } }, "node_modules/@helia/block-brokers": { - "version": "3.0.3", - "resolved": "http://94.130.170.209:4873/@helia%2fblock-brokers/-/block-brokers-3.0.3.tgz", - "integrity": "sha512-xSnmWv1jgeBJURcdF/KFOHEa1CQygk3jm1qxYPYqnMWxRXhsFG5Qi13EA+QfslCXyywfxbr4yJWleUUV2Mw4oQ==", + "version": "3.0.4", + "resolved": "http://94.130.170.209:4873/@helia%2fblock-brokers/-/block-brokers-3.0.4.tgz", + "integrity": "sha512-ymtV2cNrVeRoXsAOTpx558nDzfyOu87bLAewF98OVZ/NB28EUTy0c592GHLX3QcMaW/XfTzSGCi+te3fvVIuQg==", "license": "Apache-2.0 OR MIT", "dependencies": { - "@helia/bitswap": "^1.1.3", + "@helia/bitswap": "^1.1.4", "@helia/interface": "^4.3.1", "@helia/utils": "^0.3.3", "@libp2p/interface": "^1.1.4", @@ -3358,13 +3358,13 @@ } }, "node_modules/@humanwhocodes/config-array": { - "version": "0.11.14", - "resolved": "http://94.130.170.209:4873/@humanwhocodes%2fconfig-array/-/config-array-0.11.14.tgz", - "integrity": "sha512-3T8LkOmg45BV5FICb15QQMsyUSWrQ8AygVfC7ZG32zOalnqrilm018ZVCw0eapXux8FtA33q8PSRSstjee3jSg==", + "version": "0.13.0", + "resolved": "http://94.130.170.209:4873/@humanwhocodes%2fconfig-array/-/config-array-0.13.0.tgz", + "integrity": "sha512-DZLEEqFWQFiyK6h5YIeynKx7JlvCYWL0cImfSRXZ9l4Sg2efkFGTuFf6vzXjK1cq6IYkU+Eg/JizXw+TD2vRNw==", "dev": true, "license": "Apache-2.0", "dependencies": { - "@humanwhocodes/object-schema": "^2.0.2", + "@humanwhocodes/object-schema": "^2.0.3", "debug": "^4.3.1", "minimatch": "^3.0.5" }, @@ -6649,9 +6649,9 @@ "license": "MIT" }, "node_modules/@types/node": { - "version": "22.5.4", - "resolved": "http://94.130.170.209:4873/@types%2fnode/-/node-22.5.4.tgz", - "integrity": "sha512-FDuKUJQm/ju9fT/SeX/6+gBzoPzlVCzfzmGkwKvRHQVxi4BntVbyIwf6a4Xn62mrvndLiml6z/UBXIdEVjQLXg==", + "version": "22.5.5", + "resolved": "http://94.130.170.209:4873/@types%2fnode/-/node-22.5.5.tgz", + "integrity": "sha512-Xjs4y5UPO/CLdzpgR6GirZJx36yScjh73+2NlLlkFRSoQN8B0DpfXPdZGnvVmLRLOsqDpOfTNv7D9trgGhmOIA==", "license": "MIT", "dependencies": { "undici-types": "~6.19.2" @@ -10251,9 +10251,9 @@ "license": "MIT" }, "node_modules/electron-to-chromium": { - "version": "1.5.21", - "resolved": "http://94.130.170.209:4873/electron-to-chromium/-/electron-to-chromium-1.5.21.tgz", - "integrity": "sha512-+rBAerCpQvFSPyAO677i5gJuWGO2WFsoujENdcMzsrpP7Ebcc3pmpERgU8CV4fFF10a5haP4ivnFQ/AmLICBVg==", + "version": "1.5.24", + "resolved": "http://94.130.170.209:4873/electron-to-chromium/-/electron-to-chromium-1.5.24.tgz", + "integrity": "sha512-0x0wLCmpdKFCi9ulhvYZebgcPmHTkFVUfU2wzDykadkslKwT4oAmDTHEKLnlrDsMGZe4B+ksn8quZfZjYsBetA==", "license": "ISC" }, "node_modules/elliptic": { @@ -10471,9 +10471,9 @@ } }, "node_modules/envinfo": { - "version": "7.13.0", - "resolved": "http://94.130.170.209:4873/envinfo/-/envinfo-7.13.0.tgz", - "integrity": "sha512-cvcaMr7KqXVh4nyzGTVqTum+gAiL265x5jUWQIDLq//zOGbW+gSW/C+OWLleY/rs9Qole6AZLMXPbtIFQbqu+Q==", + "version": "7.14.0", + "resolved": "http://94.130.170.209:4873/envinfo/-/envinfo-7.14.0.tgz", + "integrity": "sha512-CO40UI41xDQzhLB1hWyqUKgFhs250pNcGbyGKe1l/e4FSaI/+YE4IMG76GDt0In67WLPACIITC+sOi08x4wIvg==", "license": "MIT", "bin": { "envinfo": "dist/cli.js" @@ -10792,17 +10792,17 @@ } }, "node_modules/eslint": { - "version": "8.57.0", - "resolved": "http://94.130.170.209:4873/eslint/-/eslint-8.57.0.tgz", - "integrity": "sha512-dZ6+mexnaTIbSBZWgou51U6OmzIhYM2VcNdtiTtI7qPNZm35Akpr0f6vtw3w1Kmn5PYo+tZVfh13WrhpS6oLqQ==", + "version": "8.57.1", + "resolved": "http://94.130.170.209:4873/eslint/-/eslint-8.57.1.tgz", + "integrity": "sha512-ypowyDxpVSYpkXr9WPv2PAZCtNip1Mv5KTW0SCurXv/9iOpcrH9PaqUElksqEB6pChqHGDRCFTyrZlGhnLNGiA==", "dev": true, "license": "MIT", "dependencies": { "@eslint-community/eslint-utils": "^4.2.0", "@eslint-community/regexpp": "^4.6.1", "@eslint/eslintrc": "^2.1.4", - "@eslint/js": "8.57.0", - "@humanwhocodes/config-array": "^0.11.14", + "@eslint/js": "8.57.1", + "@humanwhocodes/config-array": "^0.13.0", "@humanwhocodes/module-importer": "^1.0.1", "@nodelib/fs.walk": "^1.2.8", "@ungap/structured-clone": "^1.2.0", @@ -11938,9 +11938,9 @@ "peer": true }, "node_modules/flow-parser": { - "version": "0.245.2", - "resolved": "http://94.130.170.209:4873/flow-parser/-/flow-parser-0.245.2.tgz", - "integrity": "sha512-FU4yuqC1j2IeWWicpzG0YJrXHJgKjK/AU8QKK/7MvQaNhcoGisDoE7FJLGCtbvnifzsgDWdm9/jtTF7Mp+PJXQ==", + "version": "0.246.0", + "resolved": "http://94.130.170.209:4873/flow-parser/-/flow-parser-0.246.0.tgz", + "integrity": "sha512-WHRizzSrWFTcKo7cVcbP3wzZVhzsoYxoWqbnH4z+JXGqrjVmnsld6kBZWVlB200PwD5ur8r+HV3KUDxv3cHhOQ==", "license": "MIT", "peer": true, "engines": { @@ -12742,9 +12742,9 @@ } }, "node_modules/helia-coord": { - "version": "1.5.14", - "resolved": "http://94.130.170.209:4873/helia-coord/-/helia-coord-1.5.14.tgz", - "integrity": "sha512-HUd6jYla/bM0tAV2bc5NWQFPBUScBTljoxl2SulvYWcH19k8LAwL5cZjbBJG88/nzC6RwtQFRV1zMQxKjBy/WA==", + "version": "1.5.15", + "resolved": "http://94.130.170.209:4873/helia-coord/-/helia-coord-1.5.15.tgz", + "integrity": "sha512-j3Oe0HKRf60iGfM0zigkaTEOE+KArWyI4LArQuVyew+EJ10anIfz6lgl+NBsOd8IlgtbaORmJlf2/Qed76HKkQ==", "license": "MIT", "dependencies": { "@chris.troutner/retry-queue": "1.0.10", @@ -13262,35 +13262,35 @@ "license": "ISC" }, "node_modules/interface-blockstore": { - "version": "5.3.0", - "resolved": "http://94.130.170.209:4873/interface-blockstore/-/interface-blockstore-5.3.0.tgz", - "integrity": "sha512-MsOE2H9duZdpxXk7KVOQLaQnX4LfqHegshKxSr4b/YD44t13koT5Lg4lphZ0FwB5uvtvqQPm7LNcS0T/5Z2YUQ==", + "version": "5.3.1", + "resolved": "http://94.130.170.209:4873/interface-blockstore/-/interface-blockstore-5.3.1.tgz", + "integrity": "sha512-nhgrQnz6yUQEqxTFLhlOBurQOy5lWlwCpgFmZ3GTObTVTQS9RZjK/JTozY6ty9uz2lZs7VFJSqwjWAltorJ4Vw==", "license": "Apache-2.0 OR MIT", "dependencies": { - "interface-store": "6.0.0", - "multiformats": "^13.0.1" + "interface-store": "^6.0.0", + "multiformats": "^13.2.3" } }, "node_modules/interface-blockstore/node_modules/interface-store": { - "version": "6.0.0", - "resolved": "http://94.130.170.209:4873/interface-store/-/interface-store-6.0.0.tgz", - "integrity": "sha512-HkjsDPsjA7SKkCr+TH1elUQApAAM3X3JPwrz3vFzaf614wI+ZD6GVvwKGZCHYcbSRqeZP/uzVPqezzeISeo5kA==", + "version": "6.0.2", + "resolved": "http://94.130.170.209:4873/interface-store/-/interface-store-6.0.2.tgz", + "integrity": "sha512-KSFCXtBlNoG0hzwNa0RmhHtrdhzexp+S+UY2s0rWTBJyfdEIgn6i6Zl9otVqrcFYbYrneBT7hbmHQ8gE0C3umA==", "license": "Apache-2.0 OR MIT" }, "node_modules/interface-datastore": { - "version": "8.3.0", - "resolved": "http://94.130.170.209:4873/interface-datastore/-/interface-datastore-8.3.0.tgz", - "integrity": "sha512-RM/rTSmRcnoCwGZIHrPm+nlGYVoT4R0lcFvNnDyhdFT4R6BuHHhfFP47UldVEjs98SfxLuMhaNMsyjI918saHw==", + "version": "8.3.1", + "resolved": "http://94.130.170.209:4873/interface-datastore/-/interface-datastore-8.3.1.tgz", + "integrity": "sha512-3r0ETmHIi6HmvM5sc09QQiCD3gUfwtEM/AAChOyAd/UAKT69uk8LXfTSUBufbUIO/dU65Vj8nb9O6QjwW8vDSQ==", "license": "Apache-2.0 OR MIT", "dependencies": { - "interface-store": "6.0.0", - "uint8arrays": "^5.0.2" + "interface-store": "^6.0.0", + "uint8arrays": "^5.1.0" } }, "node_modules/interface-datastore/node_modules/interface-store": { - "version": "6.0.0", - "resolved": "http://94.130.170.209:4873/interface-store/-/interface-store-6.0.0.tgz", - "integrity": "sha512-HkjsDPsjA7SKkCr+TH1elUQApAAM3X3JPwrz3vFzaf614wI+ZD6GVvwKGZCHYcbSRqeZP/uzVPqezzeISeo5kA==", + "version": "6.0.2", + "resolved": "http://94.130.170.209:4873/interface-store/-/interface-store-6.0.2.tgz", + "integrity": "sha512-KSFCXtBlNoG0hzwNa0RmhHtrdhzexp+S+UY2s0rWTBJyfdEIgn6i6Zl9otVqrcFYbYrneBT7hbmHQ8gE0C3umA==", "license": "Apache-2.0 OR MIT" }, "node_modules/interface-store": { @@ -13362,63 +13362,77 @@ } }, "node_modules/ipfs-unixfs": { - "version": "11.1.4", - "resolved": "http://94.130.170.209:4873/ipfs-unixfs/-/ipfs-unixfs-11.1.4.tgz", - "integrity": "sha512-RE4nyx5qgG2w7JOLj0Y0D7SfAR1ZkEdramNaBx0OSD4DlQ2Y2NORgc4FHfej3Pgy31v+QISDVP1pQJhdv3bUUg==", + "version": "11.2.0", + "resolved": "http://94.130.170.209:4873/ipfs-unixfs/-/ipfs-unixfs-11.2.0.tgz", + "integrity": "sha512-J8FN1qM5nfrDo8sQKQwfj0+brTg1uBfZK2vY9hxci33lcl3BFrsELS9+1+4q/8tO1ASKfxZO8W3Pi2O4sVX2Lg==", "license": "Apache-2.0 OR MIT", "dependencies": { - "err-code": "^3.0.1", - "protons-runtime": "^5.4.0", + "protons-runtime": "^5.5.0", "uint8arraylist": "^2.4.8" } }, "node_modules/ipfs-unixfs-exporter": { - "version": "13.5.0", - "resolved": "http://94.130.170.209:4873/ipfs-unixfs-exporter/-/ipfs-unixfs-exporter-13.5.0.tgz", - "integrity": "sha512-s1eWXzoyhQFNEAB1p+QE3adjhW+lBdgpORmmjiCLiruHs5z7T5zsAgRVcWpM8LWYhq2flRtJHObb7Hg73J+oLQ==", + "version": "13.6.1", + "resolved": "http://94.130.170.209:4873/ipfs-unixfs-exporter/-/ipfs-unixfs-exporter-13.6.1.tgz", + "integrity": "sha512-pYPI4oBTWao2//sFzAL0pURyojn79q/u5BuK6L5/nVbVUQVw6DcVP5uB1ySdWlTM2H+0Zlhp9+OL9aJBRIICpg==", "license": "Apache-2.0 OR MIT", "dependencies": { - "@ipld/dag-cbor": "^9.0.0", - "@ipld/dag-json": "^10.1.7", - "@ipld/dag-pb": "^4.0.0", - "@multiformats/murmur3": "^2.0.0", - "err-code": "^3.0.1", - "hamt-sharding": "^3.0.0", - "interface-blockstore": "^5.0.0", + "@ipld/dag-cbor": "^9.2.1", + "@ipld/dag-json": "^10.2.2", + "@ipld/dag-pb": "^4.1.2", + "@multiformats/murmur3": "^2.1.8", + "hamt-sharding": "^3.0.6", + "interface-blockstore": "^5.3.0", "ipfs-unixfs": "^11.0.0", - "it-filter": "^3.0.2", - "it-last": "^3.0.2", - "it-map": "^3.0.3", - "it-parallel": "^3.0.0", + "it-filter": "^3.1.1", + "it-last": "^3.0.6", + "it-map": "^3.1.1", + "it-parallel": "^3.0.8", "it-pipe": "^3.0.1", - "it-pushable": "^3.1.0", - "multiformats": "^13.0.0", + "it-pushable": "^3.2.3", + "multiformats": "^13.2.3", "p-queue": "^8.0.1", - "progress-events": "^1.0.0" + "progress-events": "^1.0.1" } }, "node_modules/ipfs-unixfs-importer": { - "version": "15.2.5", - "resolved": "http://94.130.170.209:4873/ipfs-unixfs-importer/-/ipfs-unixfs-importer-15.2.5.tgz", - "integrity": "sha512-K8tybgmhOthQ/ThPcjohYnTaVhv1hi3YKo+gPREBXcMUUG7Yd2HYfz1jExuOfhaMzICl0hDKwUMJsaU6FXMJew==", + "version": "15.3.1", + "resolved": "http://94.130.170.209:4873/ipfs-unixfs-importer/-/ipfs-unixfs-importer-15.3.1.tgz", + "integrity": "sha512-wHCTBqNsZXLJZ9/GSr7Msb3FDXD5yXF20Y9sKyUbbqNjbvaXs3n3h1+NM/5+WrgESHfwRcJIlJtaOKafL8Ymdg==", "license": "Apache-2.0 OR MIT", "dependencies": { - "@ipld/dag-pb": "^4.1.0", + "@ipld/dag-pb": "^4.1.2", "@multiformats/murmur3": "^2.1.8", - "err-code": "^3.0.1", "hamt-sharding": "^3.0.6", - "interface-blockstore": "^5.2.10", - "interface-store": "^5.1.8", + "interface-blockstore": "^5.3.0", + "interface-store": "^6.0.0", "ipfs-unixfs": "^11.0.0", - "it-all": "^3.0.4", - "it-batch": "^3.0.4", - "it-first": "^3.0.4", - "it-parallel-batch": "^3.0.4", - "multiformats": "^13.1.0", - "progress-events": "^1.0.0", + "it-all": "^3.0.6", + "it-batch": "^3.0.6", + "it-first": "^3.0.6", + "it-parallel-batch": "^3.0.6", + "multiformats": "^13.2.3", + "progress-events": "^1.0.1", "rabin-wasm": "^0.1.5", "uint8arraylist": "^2.4.8", - "uint8arrays": "^5.0.3" + "uint8arrays": "^5.1.0" + } + }, + "node_modules/ipfs-unixfs-importer/node_modules/interface-store": { + "version": "6.0.2", + "resolved": "http://94.130.170.209:4873/interface-store/-/interface-store-6.0.2.tgz", + "integrity": "sha512-KSFCXtBlNoG0hzwNa0RmhHtrdhzexp+S+UY2s0rWTBJyfdEIgn6i6Zl9otVqrcFYbYrneBT7hbmHQ8gE0C3umA==", + "license": "Apache-2.0 OR MIT" + }, + "node_modules/ipfs-unixfs/node_modules/protons-runtime": { + "version": "5.5.0", + "resolved": "http://94.130.170.209:4873/protons-runtime/-/protons-runtime-5.5.0.tgz", + "integrity": "sha512-EsALjF9QsrEk6gbCx3lmfHxVN0ah7nG3cY7GySD4xf4g8cr7g543zB88Foh897Sr1RQJ9yDCUsoT1i1H/cVUFA==", + "license": "Apache-2.0 OR MIT", + "dependencies": { + "uint8-varint": "^2.0.2", + "uint8arraylist": "^2.4.3", + "uint8arrays": "^5.0.1" } }, "node_modules/ipns": { @@ -16865,7 +16879,6 @@ "resolved": "http://94.130.170.209:4873/mkdirp/-/mkdirp-0.5.6.tgz", "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==", "license": "MIT", - "peer": true, "dependencies": { "minimist": "^1.2.6" }, @@ -17267,9 +17280,9 @@ } }, "node_modules/multiformats": { - "version": "13.2.3", - "resolved": "http://94.130.170.209:4873/multiformats/-/multiformats-13.2.3.tgz", - "integrity": "sha512-TXwZIhK1GYOM6zO4H8tRYgXi9wRrRl+MSa3PY5DZaD7YdUMLYLXRbRTJwtCrqeDW8dLhzO9ehlC7A8vi6dMJyA==", + "version": "13.3.0", + "resolved": "http://94.130.170.209:4873/multiformats/-/multiformats-13.3.0.tgz", + "integrity": "sha512-CBiqvsufgmpo01VT5ze94O+uc+Pbf6f/sThlvWss0sBZmAOu6GQn5usrYV2sf2mr17FWYc0rO8c/CNe2T90QAA==", "license": "Apache-2.0 OR MIT" }, "node_modules/murmurhash3js-revisited": { @@ -24478,9 +24491,9 @@ } }, "node_modules/tape": { - "version": "5.8.1", - "resolved": "http://94.130.170.209:4873/tape/-/tape-5.8.1.tgz", - "integrity": "sha512-pUzADXBVYm5Jkneh9hfXnirADrzQrDA3vddKbPOc/ZLORj4dFQ6GR1KdGWX0/NvOLDcYkVgeMdw78Uf6BzO3KA==", + "version": "5.9.0", + "resolved": "http://94.130.170.209:4873/tape/-/tape-5.9.0.tgz", + "integrity": "sha512-czbGgxSVwRlbB3Ly/aqQrNwrDAzKHDW/kVXegp4hSFmR2c8qqm3hCgZbUy1+3QAQFGhPDG7J56UsV1uNilBFCA==", "license": "MIT", "dependencies": { "@ljharb/resumer": "^0.1.3", @@ -24498,8 +24511,8 @@ "inherits": "^2.0.4", "is-regex": "^1.1.4", "minimist": "^1.2.8", - "mock-property": "^1.0.3", - "object-inspect": "^1.13.1", + "mock-property": "^1.1.0", + "object-inspect": "^1.13.2", "object-is": "^1.1.6", "object-keys": "^1.1.1", "object.assign": "^4.1.5", @@ -24728,9 +24741,9 @@ } }, "node_modules/terser": { - "version": "5.32.0", - "resolved": "http://94.130.170.209:4873/terser/-/terser-5.32.0.tgz", - "integrity": "sha512-v3Gtw3IzpBJ0ugkxEX8U0W6+TnPKRRCWGh1jC/iM/e3Ki5+qvO1L1EAZ56bZasc64aXHwRHNIQEzm6//i5cemQ==", + "version": "5.33.0", + "resolved": "http://94.130.170.209:4873/terser/-/terser-5.33.0.tgz", + "integrity": "sha512-JuPVaB7s1gdFKPKTelwUyRq5Sid2A3Gko2S0PncwdBq7kN9Ti9HPWDQ06MPsEDGsZeVESjKEnyGy68quBk1w6g==", "license": "BSD-2-Clause", "dependencies": { "@jridgewell/source-map": "^0.3.3", @@ -26096,7 +26109,6 @@ "resolved": "http://94.130.170.209:4873/write-file-atomic/-/write-file-atomic-2.4.3.tgz", "integrity": "sha512-GaETH5wwsX+GcnzhPgKcKjJ6M2Cq3/iZp1WyY/X1CSqrW+jVNM9Y7D8EC2sM4ZG/V8wZlSniJnCKWPmBYAucRQ==", "license": "ISC", - "peer": true, "dependencies": { "graceful-fs": "^4.1.11", "imurmurhash": "^0.1.4", diff --git a/package.json b/package.json index b19958a..baedcf9 100644 --- a/package.json +++ b/package.json @@ -43,7 +43,7 @@ "datastore-fs": "9.1.7", "glob": "7.1.6", "helia": "4.2.5", - "helia-coord": "1.5.14", + "helia-coord": "1.5.15", "jsonrpc-lite": "2.2.0", "jsonwebtoken": "8.5.1", "jwt-bch-lib": "1.3.0", diff --git a/src/adapters/ipfs/ipfs.js b/src/adapters/ipfs/ipfs.js index 73a9af9..d6667cd 100644 --- a/src/adapters/ipfs/ipfs.js +++ b/src/adapters/ipfs/ipfs.js @@ -20,13 +20,13 @@ import { yamux } from '@chainsafe/libp2p-yamux' // import { bootstrap } from '@libp2p/bootstrap' // import { identifyService } from 'libp2p/identify' import { identify } from '@libp2p/identify' -// import { circuitRelayServer, circuitRelayTransport } from 'libp2p/circuit-relay' -import { circuitRelayServer } from '@libp2p/circuit-relay-v2' +import { circuitRelayServer, circuitRelayTransport } from '@libp2p/circuit-relay-v2' +// import { circuitRelayServer } from '@libp2p/circuit-relay-v2' import { gossipsub } from '@chainsafe/libp2p-gossipsub' import { webSockets } from '@libp2p/websockets' import { publicIpv4 } from 'public-ip' import { multiaddr } from '@multiformats/multiaddr' -// import { webRTC } from '@libp2p/webrtc' +import { webRTC } from '@libp2p/webrtc' import { keychain } from '@libp2p/keychain' import { defaultLogger } from '@libp2p/logger' import { unixfs } from '@helia/unixfs' @@ -177,12 +177,12 @@ class IpfsAdapter { const transports = [ tcp(), - webSockets() - // circuitRelayTransport({ - // discoverRelays: 3, - // reservationConcurrency: 3 - // }), - // webRTC() + webSockets(), + circuitRelayTransport({ + discoverRelays: 3, + reservationConcurrency: 3 + }), + webRTC() ] // libp2p is the networking layer that underpins Helia