From 8f2ccbfb677aae6334f5a2f808276f42bee864cc Mon Sep 17 00:00:00 2001 From: Russell Dempsey <1173416+SgtPooki@users.noreply.github.com> Date: Mon, 26 Feb 2024 16:03:27 -0700 Subject: [PATCH 1/4] chore: use latest verified-fetch RC --- package-lock.json | 599 ++++++++++++++++++++-------------------------- package.json | 2 +- 2 files changed, 254 insertions(+), 347 deletions(-) diff --git a/package-lock.json b/package-lock.json index 7ce402e6..28188b5e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,7 +14,7 @@ "@helia/http": "^1.0.0", "@helia/interface": "^4.0.0", "@helia/routers": "^1.0.0", - "@helia/verified-fetch": "^0.0.0-3283a5c", + "@helia/verified-fetch": "^0.0.0-1ee6a4a", "@sgtpooki/file-type": "^1.0.1", "blockstore-idb": "^1.1.8", "datastore-idb": "^2.1.8", @@ -2326,54 +2326,27 @@ "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-13.0.1.tgz", "integrity": "sha512-bt3R5iXe2O8xpp3wkmQhC73b/lC4S2ihU8Dndwcsysqbydqb8N+bpP116qMcClZ17g58iSIwtXUTcg2zT4sniA==" }, - "node_modules/@helia/dag-cbor": { - "version": "3.0.0-3283a5c", - "resolved": "https://registry.npmjs.org/@helia/dag-cbor/-/dag-cbor-3.0.0-3283a5c.tgz", - "integrity": "sha512-BIUHcCoof38KamBGmDBjc2JylDtzQusrgnbUUuqGQTaQNQqVxOl7H0gIbfjWp0sdo2WRfq0+htFKaUCp0EMsuA==", + "node_modules/@helia/car": { + "version": "3.0.0-1ee6a4a", + "resolved": "https://registry.npmjs.org/@helia/car/-/car-3.0.0-1ee6a4a.tgz", + "integrity": "sha512-tEA2Cyc5RFV0gaAoW39RYriLtjaBohX6u1ACnfqjPiMU73Ic9AauO9V3lxW4y5h2vNx44B4LWyAPI5VjcC5VAQ==", "dependencies": { - "@helia/interface": "4.0.0-3283a5c", - "@ipld/dag-cbor": "^9.1.0", + "@helia/interface": "4.0.0-1ee6a4a", + "@ipld/car": "^5.2.6", "@libp2p/interfaces": "^3.3.2", "interface-blockstore": "^5.2.9", + "it-drain": "^3.0.5", + "it-map": "^3.0.5", "multiformats": "^13.0.1", + "p-defer": "^4.0.0", + "p-queue": "^8.0.1", "progress-events": "^1.0.0" } }, - "node_modules/@helia/dag-cbor/node_modules/@helia/interface": { - "version": "4.0.0-3283a5c", - "resolved": "https://registry.npmjs.org/@helia/interface/-/interface-4.0.0-3283a5c.tgz", - "integrity": "sha512-9WFcYfjAo+gL+XBLvGvejefQCuNewaiUf4Fo9mVEaCW2I8vB2xddBkws2oaQgHohqoEI9IkE7mafnAexzzoi1g==", - "dependencies": { - "@libp2p/interface": "^1.1.2", - "interface-blockstore": "^5.2.9", - "interface-datastore": "^8.2.10", - "interface-store": "^5.1.7", - "multiformats": "^13.0.1", - "progress-events": "^1.0.0" - } - }, - "node_modules/@helia/dag-cbor/node_modules/multiformats": { - "version": "13.0.1", - "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-13.0.1.tgz", - "integrity": "sha512-bt3R5iXe2O8xpp3wkmQhC73b/lC4S2ihU8Dndwcsysqbydqb8N+bpP116qMcClZ17g58iSIwtXUTcg2zT4sniA==" - }, - "node_modules/@helia/dag-json": { - "version": "3.0.0-3283a5c", - "resolved": "https://registry.npmjs.org/@helia/dag-json/-/dag-json-3.0.0-3283a5c.tgz", - "integrity": "sha512-bQRfH/iDIiw8EjbE02G0HpkGlQGSEGR2OUE/qwc5sZjEGawf7JklZQdIVPVwvTKzyorHPe8N3SkaFSD7g1cStw==", - "dependencies": { - "@helia/interface": "4.0.0-3283a5c", - "@ipld/dag-json": "^10.1.7", - "@libp2p/interfaces": "^3.3.2", - "interface-blockstore": "^5.2.9", - "multiformats": "^13.0.1", - "progress-events": "^1.0.0" - } - }, - "node_modules/@helia/dag-json/node_modules/@helia/interface": { - "version": "4.0.0-3283a5c", - "resolved": "https://registry.npmjs.org/@helia/interface/-/interface-4.0.0-3283a5c.tgz", - "integrity": "sha512-9WFcYfjAo+gL+XBLvGvejefQCuNewaiUf4Fo9mVEaCW2I8vB2xddBkws2oaQgHohqoEI9IkE7mafnAexzzoi1g==", + "node_modules/@helia/car/node_modules/@helia/interface": { + "version": "4.0.0-1ee6a4a", + "resolved": "https://registry.npmjs.org/@helia/interface/-/interface-4.0.0-1ee6a4a.tgz", + "integrity": "sha512-K8rlxQkun7FnsVCBa6UWvGdjyhN5C/NU8ZOvM2Z8tkJZUJ+iZ5moM5w9It+TyNf8bn+KNkaX2aKd9rGUQAtoEA==", "dependencies": { "@libp2p/interface": "^1.1.2", "interface-blockstore": "^5.2.9", @@ -2383,10 +2356,10 @@ "progress-events": "^1.0.0" } }, - "node_modules/@helia/dag-json/node_modules/multiformats": { - "version": "13.0.1", - "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-13.0.1.tgz", - "integrity": "sha512-bt3R5iXe2O8xpp3wkmQhC73b/lC4S2ihU8Dndwcsysqbydqb8N+bpP116qMcClZ17g58iSIwtXUTcg2zT4sniA==" + "node_modules/@helia/car/node_modules/multiformats": { + "version": "13.1.0", + "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-13.1.0.tgz", + "integrity": "sha512-HzdtdBwxsIkzpeXzhQ5mAhhuxcHbjEHH+JQoxt7hG/2HGFjjwyolLo7hbaexcnhoEuV4e0TNJ8kkpMjiEYY4VQ==" }, "node_modules/@helia/delegated-routing-v1-http-api-client": { "version": "3.0.0", @@ -2409,14 +2382,6 @@ "uint8arrays": "^5.0.1" } }, - "node_modules/@helia/delegated-routing-v1-http-api-client/node_modules/it-map": { - "version": "3.0.5", - "resolved": "https://registry.npmjs.org/it-map/-/it-map-3.0.5.tgz", - "integrity": "sha512-hB0TDXo/h4KSJJDSRLgAPmDroiXP6Fx1ck4Bzl3US9hHfZweTKsuiP0y4gXuTMcJlS6vj0bb+f70rhkD47ZA3w==", - "dependencies": { - "it-peekable": "^3.0.0" - } - }, "node_modules/@helia/delegated-routing-v1-http-api-client/node_modules/multiformats": { "version": "13.0.1", "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-13.0.1.tgz", @@ -2453,11 +2418,11 @@ "license": "Apache-2.0 OR MIT" }, "node_modules/@helia/ipns": { - "version": "6.0.0-3283a5c", - "resolved": "https://registry.npmjs.org/@helia/ipns/-/ipns-6.0.0-3283a5c.tgz", - "integrity": "sha512-mGy8FVBK88Yuv9583A9BZTGdAZp5No6pcFH1YFzd6lIFLD+O7uO52fmFDlHpfO1C2nHwQh8vn43X7mTK85Au0A==", + "version": "6.0.0-1ee6a4a", + "resolved": "https://registry.npmjs.org/@helia/ipns/-/ipns-6.0.0-1ee6a4a.tgz", + "integrity": "sha512-ikq5B8UkhjY0BU3Frejht9iMhzyfdX6x1h4C+D8nee3noz3AoTZ31ZxnTpFZEefRzUrvr5dlIt8J4yQft1QrCA==", "dependencies": { - "@helia/interface": "4.0.0-3283a5c", + "@helia/interface": "4.0.0-1ee6a4a", "@libp2p/interface": "^1.1.2", "@libp2p/kad-dht": "^12.0.5", "@libp2p/logger": "^4.0.5", @@ -2474,9 +2439,9 @@ } }, "node_modules/@helia/ipns/node_modules/@helia/interface": { - "version": "4.0.0-3283a5c", - "resolved": "https://registry.npmjs.org/@helia/interface/-/interface-4.0.0-3283a5c.tgz", - "integrity": "sha512-9WFcYfjAo+gL+XBLvGvejefQCuNewaiUf4Fo9mVEaCW2I8vB2xddBkws2oaQgHohqoEI9IkE7mafnAexzzoi1g==", + "version": "4.0.0-1ee6a4a", + "resolved": "https://registry.npmjs.org/@helia/interface/-/interface-4.0.0-1ee6a4a.tgz", + "integrity": "sha512-K8rlxQkun7FnsVCBa6UWvGdjyhN5C/NU8ZOvM2Z8tkJZUJ+iZ5moM5w9It+TyNf8bn+KNkaX2aKd9rGUQAtoEA==", "dependencies": { "@libp2p/interface": "^1.1.2", "interface-blockstore": "^5.2.9", @@ -2487,39 +2452,9 @@ } }, "node_modules/@helia/ipns/node_modules/multiformats": { - "version": "13.0.1", - "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-13.0.1.tgz", - "integrity": "sha512-bt3R5iXe2O8xpp3wkmQhC73b/lC4S2ihU8Dndwcsysqbydqb8N+bpP116qMcClZ17g58iSIwtXUTcg2zT4sniA==" - }, - "node_modules/@helia/json": { - "version": "3.0.0-3283a5c", - "resolved": "https://registry.npmjs.org/@helia/json/-/json-3.0.0-3283a5c.tgz", - "integrity": "sha512-MzxC/TebDQHqSdsEIs+nGaDD/Po+WYMTWWeLD3GRg0f6muMLz6tFqJ3MfBzI2lei0P947CdkPjJFXdKtylZnPw==", - "dependencies": { - "@helia/interface": "4.0.0-3283a5c", - "@libp2p/interfaces": "^3.3.2", - "interface-blockstore": "^5.2.9", - "multiformats": "^13.0.1", - "progress-events": "^1.0.0" - } - }, - "node_modules/@helia/json/node_modules/@helia/interface": { - "version": "4.0.0-3283a5c", - "resolved": "https://registry.npmjs.org/@helia/interface/-/interface-4.0.0-3283a5c.tgz", - "integrity": "sha512-9WFcYfjAo+gL+XBLvGvejefQCuNewaiUf4Fo9mVEaCW2I8vB2xddBkws2oaQgHohqoEI9IkE7mafnAexzzoi1g==", - "dependencies": { - "@libp2p/interface": "^1.1.2", - "interface-blockstore": "^5.2.9", - "interface-datastore": "^8.2.10", - "interface-store": "^5.1.7", - "multiformats": "^13.0.1", - "progress-events": "^1.0.0" - } - }, - "node_modules/@helia/json/node_modules/multiformats": { - "version": "13.0.1", - "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-13.0.1.tgz", - "integrity": "sha512-bt3R5iXe2O8xpp3wkmQhC73b/lC4S2ihU8Dndwcsysqbydqb8N+bpP116qMcClZ17g58iSIwtXUTcg2zT4sniA==" + "version": "13.1.0", + "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-13.1.0.tgz", + "integrity": "sha512-HzdtdBwxsIkzpeXzhQ5mAhhuxcHbjEHH+JQoxt7hG/2HGFjjwyolLo7hbaexcnhoEuV4e0TNJ8kkpMjiEYY4VQ==" }, "node_modules/@helia/routers": { "version": "1.0.0", @@ -2536,25 +2471,17 @@ "uint8arrays": "^5.0.1" } }, - "node_modules/@helia/routers/node_modules/it-map": { - "version": "3.0.5", - "resolved": "https://registry.npmjs.org/it-map/-/it-map-3.0.5.tgz", - "integrity": "sha512-hB0TDXo/h4KSJJDSRLgAPmDroiXP6Fx1ck4Bzl3US9hHfZweTKsuiP0y4gXuTMcJlS6vj0bb+f70rhkD47ZA3w==", - "dependencies": { - "it-peekable": "^3.0.0" - } - }, "node_modules/@helia/routers/node_modules/multiformats": { "version": "13.0.1", "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-13.0.1.tgz", "integrity": "sha512-bt3R5iXe2O8xpp3wkmQhC73b/lC4S2ihU8Dndwcsysqbydqb8N+bpP116qMcClZ17g58iSIwtXUTcg2zT4sniA==" }, "node_modules/@helia/unixfs": { - "version": "3.0.0-3283a5c", - "resolved": "https://registry.npmjs.org/@helia/unixfs/-/unixfs-3.0.0-3283a5c.tgz", - "integrity": "sha512-H8JApQGovts04lBVIBsflZWUrQZlMJQMF8ZwsoDrUWvtjvXNvad9XPriKtTq0vZPVXDJP8tjdGu8kjBiGTa1bg==", + "version": "3.0.0-1ee6a4a", + "resolved": "https://registry.npmjs.org/@helia/unixfs/-/unixfs-3.0.0-1ee6a4a.tgz", + "integrity": "sha512-8dTdb2Texw4dOgazQ21A1to5rCk0keZTZvhkByFspwfAzvCGbn64aGwOLhD1INCRrh1r7/bIeMyUtiBSQxjlig==", "dependencies": { - "@helia/interface": "4.0.0-3283a5c", + "@helia/interface": "4.0.0-1ee6a4a", "@ipld/dag-pb": "^4.0.8", "@libp2p/interface": "^1.1.2", "@libp2p/logger": "^4.0.5", @@ -2575,9 +2502,9 @@ } }, "node_modules/@helia/unixfs/node_modules/@helia/interface": { - "version": "4.0.0-3283a5c", - "resolved": "https://registry.npmjs.org/@helia/interface/-/interface-4.0.0-3283a5c.tgz", - "integrity": "sha512-9WFcYfjAo+gL+XBLvGvejefQCuNewaiUf4Fo9mVEaCW2I8vB2xddBkws2oaQgHohqoEI9IkE7mafnAexzzoi1g==", + "version": "4.0.0-1ee6a4a", + "resolved": "https://registry.npmjs.org/@helia/interface/-/interface-4.0.0-1ee6a4a.tgz", + "integrity": "sha512-K8rlxQkun7FnsVCBa6UWvGdjyhN5C/NU8ZOvM2Z8tkJZUJ+iZ5moM5w9It+TyNf8bn+KNkaX2aKd9rGUQAtoEA==", "dependencies": { "@libp2p/interface": "^1.1.2", "interface-blockstore": "^5.2.9", @@ -2588,9 +2515,9 @@ } }, "node_modules/@helia/unixfs/node_modules/multiformats": { - "version": "13.0.1", - "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-13.0.1.tgz", - "integrity": "sha512-bt3R5iXe2O8xpp3wkmQhC73b/lC4S2ihU8Dndwcsysqbydqb8N+bpP116qMcClZ17g58iSIwtXUTcg2zT4sniA==" + "version": "13.1.0", + "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-13.1.0.tgz", + "integrity": "sha512-HzdtdBwxsIkzpeXzhQ5mAhhuxcHbjEHH+JQoxt7hG/2HGFjjwyolLo7hbaexcnhoEuV4e0TNJ8kkpMjiEYY4VQ==" }, "node_modules/@helia/utils": { "version": "0.0.1", @@ -2620,50 +2547,49 @@ "uint8arrays": "^5.0.1" } }, - "node_modules/@helia/utils/node_modules/it-filter": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/it-filter/-/it-filter-3.0.4.tgz", - "integrity": "sha512-e0sz+st4sudK/zH6GZ/gRTRP8A/ADuJFCYDmRgMbZvR79y5+v4ZXav850bBZk5wL9zXaYZFxS1v/6Qi+Vjwh5g==", - "dependencies": { - "it-peekable": "^3.0.0" - } - }, "node_modules/@helia/utils/node_modules/multiformats": { "version": "13.0.1", "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-13.0.1.tgz", "integrity": "sha512-bt3R5iXe2O8xpp3wkmQhC73b/lC4S2ihU8Dndwcsysqbydqb8N+bpP116qMcClZ17g58iSIwtXUTcg2zT4sniA==" }, "node_modules/@helia/verified-fetch": { - "version": "0.0.0-3283a5c", - "resolved": "https://registry.npmjs.org/@helia/verified-fetch/-/verified-fetch-0.0.0-3283a5c.tgz", - "integrity": "sha512-8cNw5sell8GGvzTg+KdJp+WFQNniyQLNI1JZJJfQ7kIgsR2YOgEthRQ1rwpQ3UeK09faKHlhDSkWcOhN+/NGMQ==", - "dependencies": { - "@helia/block-brokers": "2.0.1-3283a5c", - "@helia/dag-cbor": "3.0.0-3283a5c", - "@helia/dag-json": "3.0.0-3283a5c", - "@helia/http": "1.0.1-3283a5c", - "@helia/interface": "4.0.0-3283a5c", - "@helia/ipns": "6.0.0-3283a5c", - "@helia/json": "3.0.0-3283a5c", - "@helia/routers": "1.0.0-3283a5c", - "@helia/unixfs": "3.0.0-3283a5c", - "@ipld/dag-cbor": "^9.1.0", - "@ipld/dag-json": "^10.1.7", - "@ipld/dag-pb": "^4.0.8", + "version": "0.0.0-1ee6a4a", + "resolved": "https://registry.npmjs.org/@helia/verified-fetch/-/verified-fetch-0.0.0-1ee6a4a.tgz", + "integrity": "sha512-fYhJFP+1B5u1tpYURXSD6KXjMZeuxcgrlRi3EKxfH5+4oz96bfj1+qO/XgXgWWabAKFytvvPOweMDvDCETmVIQ==", + "dependencies": { + "@helia/block-brokers": "2.0.1-1ee6a4a", + "@helia/car": "3.0.0-1ee6a4a", + "@helia/http": "1.0.1-1ee6a4a", + "@helia/interface": "4.0.0-1ee6a4a", + "@helia/ipns": "6.0.0-1ee6a4a", + "@helia/routers": "1.0.0-1ee6a4a", + "@helia/unixfs": "3.0.0-1ee6a4a", + "@ipld/dag-cbor": "^9.2.0", + "@ipld/dag-json": "^10.2.0", + "@ipld/dag-pb": "^4.1.0", "@libp2p/interface": "^1.1.2", + "@libp2p/kad-dht": "^12.0.7", "@libp2p/peer-id": "^4.0.5", + "cborg": "^4.0.9", "hashlru": "^2.3.0", + "interface-blockstore": "^5.2.10", + "interface-datastore": "^8.2.11", "ipfs-unixfs-exporter": "^13.5.0", - "multiformats": "^13.0.1", - "progress-events": "^1.0.0" + "it-map": "^3.0.5", + "it-pipe": "^3.0.1", + "it-tar": "^6.0.4", + "it-to-browser-readablestream": "^2.0.6", + "multiformats": "^13.1.0", + "progress-events": "^1.0.0", + "uint8arrays": "^5.0.2" } }, "node_modules/@helia/verified-fetch/node_modules/@helia/block-brokers": { - "version": "2.0.1-3283a5c", - "resolved": "https://registry.npmjs.org/@helia/block-brokers/-/block-brokers-2.0.1-3283a5c.tgz", - "integrity": "sha512-L1CRxfuacXVpWZXcT9SepvG+DKnXZk+CjNICbY2ocRKU69gp65cPQ0qrZptUZrMrTh/oo+zETqdH73UWQlkBJA==", + "version": "2.0.1-1ee6a4a", + "resolved": "https://registry.npmjs.org/@helia/block-brokers/-/block-brokers-2.0.1-1ee6a4a.tgz", + "integrity": "sha512-UCQdHJv5UTWK6MHEYekXm1arJIcLWsJX4E94Pejgg10b3digLbdTvp9gXQrohI/EtNZNTrsaKhk+JfuEDRoWpg==", "dependencies": { - "@helia/interface": "4.0.0-3283a5c", + "@helia/interface": "4.0.0-1ee6a4a", "@libp2p/interface": "^1.1.2", "interface-blockstore": "^5.2.9", "ipfs-bitswap": "^20.0.2", @@ -2672,22 +2598,22 @@ } }, "node_modules/@helia/verified-fetch/node_modules/@helia/http": { - "version": "1.0.1-3283a5c", - "resolved": "https://registry.npmjs.org/@helia/http/-/http-1.0.1-3283a5c.tgz", - "integrity": "sha512-0SBpicCAIUyHiAQUvQcH6CaaML2JzvCLk3Tv0wJX84ZTx51zx0uc3rVKCDKm5W2L8hMHIA1J/YjnCAs6fDr5Sg==", - "dependencies": { - "@helia/block-brokers": "2.0.1-3283a5c", - "@helia/interface": "4.0.0-3283a5c", - "@helia/routers": "1.0.0-3283a5c", - "@helia/utils": "0.0.1-3283a5c", - "blockstore-core": "^4.3.10", + "version": "1.0.1-1ee6a4a", + "resolved": "https://registry.npmjs.org/@helia/http/-/http-1.0.1-1ee6a4a.tgz", + "integrity": "sha512-1dKjw3/mA+wDbun+z/cFjGaS04ca/fCdaWdNLO8By97Myz/zdVXO3n2Vvk1e2avvJE50RuQ4QQhxsouyDrLENg==", + "dependencies": { + "@helia/block-brokers": "2.0.1-1ee6a4a", + "@helia/interface": "4.0.0-1ee6a4a", + "@helia/routers": "1.0.0-1ee6a4a", + "@helia/utils": "0.0.1-1ee6a4a", + "blockstore-core": "^4.4.0", "datastore-core": "^9.2.7" } }, "node_modules/@helia/verified-fetch/node_modules/@helia/interface": { - "version": "4.0.0-3283a5c", - "resolved": "https://registry.npmjs.org/@helia/interface/-/interface-4.0.0-3283a5c.tgz", - "integrity": "sha512-9WFcYfjAo+gL+XBLvGvejefQCuNewaiUf4Fo9mVEaCW2I8vB2xddBkws2oaQgHohqoEI9IkE7mafnAexzzoi1g==", + "version": "4.0.0-1ee6a4a", + "resolved": "https://registry.npmjs.org/@helia/interface/-/interface-4.0.0-1ee6a4a.tgz", + "integrity": "sha512-K8rlxQkun7FnsVCBa6UWvGdjyhN5C/NU8ZOvM2Z8tkJZUJ+iZ5moM5w9It+TyNf8bn+KNkaX2aKd9rGUQAtoEA==", "dependencies": { "@libp2p/interface": "^1.1.2", "interface-blockstore": "^5.2.9", @@ -2698,12 +2624,12 @@ } }, "node_modules/@helia/verified-fetch/node_modules/@helia/routers": { - "version": "1.0.0-3283a5c", - "resolved": "https://registry.npmjs.org/@helia/routers/-/routers-1.0.0-3283a5c.tgz", - "integrity": "sha512-yxBgKHe8bdjUO1q10fpL6Z5ieJCYkZHm6EXpOKXaSshYjj/Hn3ePqMrqNP+vu/GQaEri3rRxpWakv2ORYFmjSA==", + "version": "1.0.0-1ee6a4a", + "resolved": "https://registry.npmjs.org/@helia/routers/-/routers-1.0.0-1ee6a4a.tgz", + "integrity": "sha512-5Z5Vf53Q28AYMbXwjigIXplDwg9lvyIfcSBFHsF5bG4UBhDuE3i+IDvlWBmtetTZ4joZ3yxLZCtGJE2HdjA6WQ==", "dependencies": { "@helia/delegated-routing-v1-http-api-client": "^3.0.0", - "@helia/interface": "4.0.0-3283a5c", + "@helia/interface": "4.0.0-1ee6a4a", "@libp2p/interface": "^1.1.2", "ipns": "^9.0.0", "it-first": "^3.0.4", @@ -2713,11 +2639,11 @@ } }, "node_modules/@helia/verified-fetch/node_modules/@helia/utils": { - "version": "0.0.1-3283a5c", - "resolved": "https://registry.npmjs.org/@helia/utils/-/utils-0.0.1-3283a5c.tgz", - "integrity": "sha512-u8IAzk1amGXoLXF92ZKfGrttZrkEuXIpOYnsD4KKwzQrk71t12FpDCvit921dTenHvQW0y8k4gaGFu3Uqjj12Q==", + "version": "0.0.1-1ee6a4a", + "resolved": "https://registry.npmjs.org/@helia/utils/-/utils-0.0.1-1ee6a4a.tgz", + "integrity": "sha512-cxqnN/gRjwSLVXbBTMPFx0ySRgb98CjHjimYvc3jBQsgLJAX9I+fdiTN2YLL9PPz3MioN5jYCdEfQ9RMiEWs0g==", "dependencies": { - "@helia/interface": "4.0.0-3283a5c", + "@helia/interface": "4.0.0-1ee6a4a", "@ipld/dag-cbor": "^9.1.0", "@ipld/dag-json": "^10.1.7", "@ipld/dag-pb": "^4.0.8", @@ -2726,6 +2652,7 @@ "@libp2p/peer-collections": "^5.1.5", "@libp2p/utils": "^5.2.3", "any-signal": "^4.1.1", + "blockstore-core": "^4.4.0", "cborg": "^4.0.8", "interface-blockstore": "^5.2.9", "interface-datastore": "^8.2.10", @@ -2740,26 +2667,10 @@ "uint8arrays": "^5.0.1" } }, - "node_modules/@helia/verified-fetch/node_modules/it-filter": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/it-filter/-/it-filter-3.0.4.tgz", - "integrity": "sha512-e0sz+st4sudK/zH6GZ/gRTRP8A/ADuJFCYDmRgMbZvR79y5+v4ZXav850bBZk5wL9zXaYZFxS1v/6Qi+Vjwh5g==", - "dependencies": { - "it-peekable": "^3.0.0" - } - }, - "node_modules/@helia/verified-fetch/node_modules/it-map": { - "version": "3.0.5", - "resolved": "https://registry.npmjs.org/it-map/-/it-map-3.0.5.tgz", - "integrity": "sha512-hB0TDXo/h4KSJJDSRLgAPmDroiXP6Fx1ck4Bzl3US9hHfZweTKsuiP0y4gXuTMcJlS6vj0bb+f70rhkD47ZA3w==", - "dependencies": { - "it-peekable": "^3.0.0" - } - }, "node_modules/@helia/verified-fetch/node_modules/multiformats": { - "version": "13.0.1", - "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-13.0.1.tgz", - "integrity": "sha512-bt3R5iXe2O8xpp3wkmQhC73b/lC4S2ihU8Dndwcsysqbydqb8N+bpP116qMcClZ17g58iSIwtXUTcg2zT4sniA==" + "version": "13.1.0", + "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-13.1.0.tgz", + "integrity": "sha512-HzdtdBwxsIkzpeXzhQ5mAhhuxcHbjEHH+JQoxt7hG/2HGFjjwyolLo7hbaexcnhoEuV4e0TNJ8kkpMjiEYY4VQ==" }, "node_modules/@humanwhocodes/config-array": { "version": "0.11.8", @@ -2811,13 +2722,33 @@ "dev": true, "license": "BSD-3-Clause" }, + "node_modules/@ipld/car": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/@ipld/car/-/car-5.3.0.tgz", + "integrity": "sha512-OB8LVvJeVAFFGluNIkZeDZ/aGeoekFKsuIvNT9I5sJIb5WekQuW5+lekjQ7Z7mZ7DBKuke/kI4jBT1j0/akU1w==", + "dependencies": { + "@ipld/dag-cbor": "^9.0.7", + "cborg": "^4.0.5", + "multiformats": "^13.0.0", + "varint": "^6.0.0" + }, + "engines": { + "node": ">=16.0.0", + "npm": ">=7.0.0" + } + }, + "node_modules/@ipld/car/node_modules/multiformats": { + "version": "13.1.0", + "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-13.1.0.tgz", + "integrity": "sha512-HzdtdBwxsIkzpeXzhQ5mAhhuxcHbjEHH+JQoxt7hG/2HGFjjwyolLo7hbaexcnhoEuV4e0TNJ8kkpMjiEYY4VQ==" + }, "node_modules/@ipld/dag-cbor": { - "version": "9.1.0", - "resolved": "https://registry.npmjs.org/@ipld/dag-cbor/-/dag-cbor-9.1.0.tgz", - "integrity": "sha512-7pMKjBaapEh+1Nk/1umPPhQGT6znb5E71lke2ekxlcuVZLLrPPdDSy0UAMwWgj3a28cjir/ZJ6CQH2DEs3DUOQ==", + "version": "9.2.0", + "resolved": "https://registry.npmjs.org/@ipld/dag-cbor/-/dag-cbor-9.2.0.tgz", + "integrity": "sha512-N14oMy0q4gM6OuZkIpisKe0JBSjf1Jb39VI+7jMLiWX9124u1Z3Fdj/Tag1NA0cVxxqWDh0CqsjcVfOKtelPDA==", "dependencies": { "cborg": "^4.0.0", - "multiformats": "^13.0.0" + "multiformats": "^13.1.0" }, "engines": { "node": ">=16.0.0", @@ -2825,15 +2756,17 @@ } }, "node_modules/@ipld/dag-cbor/node_modules/multiformats": { - "version": "13.0.1", - "license": "Apache-2.0 OR MIT" + "version": "13.1.0", + "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-13.1.0.tgz", + "integrity": "sha512-HzdtdBwxsIkzpeXzhQ5mAhhuxcHbjEHH+JQoxt7hG/2HGFjjwyolLo7hbaexcnhoEuV4e0TNJ8kkpMjiEYY4VQ==" }, "node_modules/@ipld/dag-json": { - "version": "10.1.7", - "license": "Apache-2.0 OR MIT", + "version": "10.2.0", + "resolved": "https://registry.npmjs.org/@ipld/dag-json/-/dag-json-10.2.0.tgz", + "integrity": "sha512-O9YLUrl3d3WbVz7v1WkajFkyfOLEe2Fep+wor4fgVe0ywxzrivrj437NiPcVyB+2EDdFn/Q7tCHFf8YVhDf8ZA==", "dependencies": { "cborg": "^4.0.0", - "multiformats": "^13.0.0" + "multiformats": "^13.1.0" }, "engines": { "node": ">=16.0.0", @@ -2841,14 +2774,16 @@ } }, "node_modules/@ipld/dag-json/node_modules/multiformats": { - "version": "13.0.1", - "license": "Apache-2.0 OR MIT" + "version": "13.1.0", + "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-13.1.0.tgz", + "integrity": "sha512-HzdtdBwxsIkzpeXzhQ5mAhhuxcHbjEHH+JQoxt7hG/2HGFjjwyolLo7hbaexcnhoEuV4e0TNJ8kkpMjiEYY4VQ==" }, "node_modules/@ipld/dag-pb": { - "version": "4.0.8", - "license": "Apache-2.0 OR MIT", + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/@ipld/dag-pb/-/dag-pb-4.1.0.tgz", + "integrity": "sha512-LJU451Drqs5zjFm7jI4Hs3kHlilOqkjcSfPiQgVsZnWaYb2C7YdfhnclrVn/X+ucKejlU9BL3+gXFCZUXkMuCg==", "dependencies": { - "multiformats": "^13.0.0" + "multiformats": "^13.1.0" }, "engines": { "node": ">=16.0.0", @@ -2856,8 +2791,9 @@ } }, "node_modules/@ipld/dag-pb/node_modules/multiformats": { - "version": "13.0.1", - "license": "Apache-2.0 OR MIT" + "version": "13.1.0", + "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-13.1.0.tgz", + "integrity": "sha512-HzdtdBwxsIkzpeXzhQ5mAhhuxcHbjEHH+JQoxt7hG/2HGFjjwyolLo7hbaexcnhoEuV4e0TNJ8kkpMjiEYY4VQ==" }, "node_modules/@isaacs/cliui": { "version": "8.0.2", @@ -3213,23 +3149,10 @@ "uint8arrays": "^5.0.1" } }, - "node_modules/@libp2p/kad-dht/node_modules/it-map": { - "version": "3.0.5", - "resolved": "https://registry.npmjs.org/it-map/-/it-map-3.0.5.tgz", - "integrity": "sha512-hB0TDXo/h4KSJJDSRLgAPmDroiXP6Fx1ck4Bzl3US9hHfZweTKsuiP0y4gXuTMcJlS6vj0bb+f70rhkD47ZA3w==", - "dependencies": { - "it-peekable": "^3.0.0" - } - }, - "node_modules/@libp2p/kad-dht/node_modules/it-take": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/it-take/-/it-take-3.0.4.tgz", - "integrity": "sha512-RG8HDjAZlvkzz5Nav4xq6gK5zNT+Ff1UTIf+CrSJW8nIl6N1FpBH5e7clUshiCn+MmmMoSdIEpw4UaTolszxhA==" - }, "node_modules/@libp2p/kad-dht/node_modules/multiformats": { - "version": "13.0.1", - "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-13.0.1.tgz", - "integrity": "sha512-bt3R5iXe2O8xpp3wkmQhC73b/lC4S2ihU8Dndwcsysqbydqb8N+bpP116qMcClZ17g58iSIwtXUTcg2zT4sniA==" + "version": "13.1.0", + "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-13.1.0.tgz", + "integrity": "sha512-HzdtdBwxsIkzpeXzhQ5mAhhuxcHbjEHH+JQoxt7hG/2HGFjjwyolLo7hbaexcnhoEuV4e0TNJ8kkpMjiEYY4VQ==" }, "node_modules/@libp2p/logger": { "version": "4.0.6", @@ -3348,9 +3271,9 @@ } }, "node_modules/@multiformats/murmur3/node_modules/multiformats": { - "version": "13.0.1", - "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-13.0.1.tgz", - "integrity": "sha512-bt3R5iXe2O8xpp3wkmQhC73b/lC4S2ihU8Dndwcsysqbydqb8N+bpP116qMcClZ17g58iSIwtXUTcg2zT4sniA==" + "version": "13.1.0", + "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-13.1.0.tgz", + "integrity": "sha512-HzdtdBwxsIkzpeXzhQ5mAhhuxcHbjEHH+JQoxt7hG/2HGFjjwyolLo7hbaexcnhoEuV4e0TNJ8kkpMjiEYY4VQ==" }, "node_modules/@noble/curves": { "version": "1.3.0", @@ -6736,26 +6659,19 @@ } }, "node_modules/blockstore-core": { - "version": "4.3.10", - "license": "Apache-2.0 OR MIT", + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/blockstore-core/-/blockstore-core-4.4.0.tgz", + "integrity": "sha512-tjOJAJMPWlqahqCjn5awLJz2eZeJnrGOBA0OInBFK69/FfPZbSID2t7s5jFcBRhGaglca56BzG4t5XOV3MPxOQ==", "dependencies": { - "@libp2p/logger": "^4.0.1", + "@libp2p/logger": "^4.0.6", "err-code": "^3.0.1", "interface-blockstore": "^5.0.0", "interface-store": "^5.0.0", - "it-drain": "^3.0.1", - "it-filter": "^3.0.0", - "it-merge": "^3.0.1", - "it-pushable": "^3.0.0", - "multiformats": "^13.0.0", - "uint8arrays": "^5.0.0" - } - }, - "node_modules/blockstore-core/node_modules/it-filter": { - "version": "3.0.4", - "license": "Apache-2.0 OR MIT", - "dependencies": { - "it-peekable": "^3.0.0" + "it-drain": "^3.0.5", + "it-filter": "^3.0.4", + "it-merge": "^3.0.3", + "it-pushable": "^3.2.3", + "multiformats": "^13.0.1" } }, "node_modules/blockstore-core/node_modules/multiformats": { @@ -7343,9 +7259,9 @@ } }, "node_modules/cborg": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/cborg/-/cborg-4.0.8.tgz", - "integrity": "sha512-/6QDK0Hw//cV4YNWZZjdIUMFNw0DZmb56jdVGJPwXP7874gSN0AMYqM07mVKpAm+6Nn7U8lvYFzPgBGatC+5xw==", + "version": "4.0.9", + "resolved": "https://registry.npmjs.org/cborg/-/cborg-4.0.9.tgz", + "integrity": "sha512-xAuZbCDUOZxCe/ZJuIrnlG1Bk1R0qhwCXdnPYxVmqBSqm9M3BeE3G6Qoj5Zq+8epas36bT3vjiInDTJ6BVH6Rg==", "bin": { "cborg": "lib/bin.js" } @@ -8529,24 +8445,6 @@ "uint8arrays": "^5.0.0" } }, - "node_modules/datastore-core/node_modules/it-all": { - "version": "3.0.4", - "license": "Apache-2.0 OR MIT" - }, - "node_modules/datastore-core/node_modules/it-filter": { - "version": "3.0.4", - "license": "Apache-2.0 OR MIT", - "dependencies": { - "it-peekable": "^3.0.0" - } - }, - "node_modules/datastore-core/node_modules/it-map": { - "version": "3.0.5", - "license": "Apache-2.0 OR MIT", - "dependencies": { - "it-peekable": "^3.0.0" - } - }, "node_modules/datastore-core/node_modules/it-sort": { "version": "3.0.4", "license": "Apache-2.0 OR MIT", @@ -8554,10 +8452,6 @@ "it-all": "^3.0.0" } }, - "node_modules/datastore-core/node_modules/it-take": { - "version": "3.0.4", - "license": "Apache-2.0 OR MIT" - }, "node_modules/datastore-idb": { "version": "2.1.8", "resolved": "https://registry.npmjs.org/datastore-idb/-/datastore-idb-2.1.8.tgz", @@ -8570,19 +8464,6 @@ "it-sort": "^3.0.4" } }, - "node_modules/datastore-idb/node_modules/it-all": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/it-all/-/it-all-3.0.4.tgz", - "integrity": "sha512-UMiy0i9DqCHBdWvMbzdYvVGa5/w4t1cc4nchpbnjdLhklglv8mQeEYnii0gvKESJuL1zV32Cqdb33R6/GPfxpQ==" - }, - "node_modules/datastore-idb/node_modules/it-filter": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/it-filter/-/it-filter-3.0.4.tgz", - "integrity": "sha512-e0sz+st4sudK/zH6GZ/gRTRP8A/ADuJFCYDmRgMbZvR79y5+v4ZXav850bBZk5wL9zXaYZFxS1v/6Qi+Vjwh5g==", - "dependencies": { - "it-peekable": "^3.0.0" - } - }, "node_modules/datastore-idb/node_modules/it-sort": { "version": "3.0.4", "resolved": "https://registry.npmjs.org/it-sort/-/it-sort-3.0.4.tgz", @@ -9792,15 +9673,6 @@ "node": ">= 0.8" } }, - "node_modules/encoding": { - "version": "0.1.13", - "license": "MIT", - "optional": true, - "peer": true, - "dependencies": { - "iconv-lite": "^0.6.2" - } - }, "node_modules/end-of-stream": { "version": "1.4.4", "dev": true, @@ -12693,18 +12565,6 @@ "node": ">=10.17.0" } }, - "node_modules/iconv-lite": { - "version": "0.6.3", - "license": "MIT", - "optional": true, - "peer": true, - "dependencies": { - "safer-buffer": ">= 2.1.2 < 3.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/icss-utils": { "version": "5.1.0", "resolved": "https://registry.npmjs.org/icss-utils/-/icss-utils-5.1.0.tgz", @@ -12857,11 +12717,12 @@ "license": "ISC" }, "node_modules/interface-blockstore": { - "version": "5.2.9", - "license": "Apache-2.0 OR MIT", + "version": "5.2.10", + "resolved": "https://registry.npmjs.org/interface-blockstore/-/interface-blockstore-5.2.10.tgz", + "integrity": "sha512-9K48hTvBCGsKVD3pF4ILgDcf+W2P/gq0oxLcsHGB6E6W6nDutYkzR+7k7bCs9REHrBEfKzcVDEKieiuNM9WRZg==", "dependencies": { "interface-store": "^5.0.0", - "multiformats": "^13.0.0" + "multiformats": "^13.0.1" } }, "node_modules/interface-blockstore/node_modules/multiformats": { @@ -12869,11 +12730,12 @@ "license": "Apache-2.0 OR MIT" }, "node_modules/interface-datastore": { - "version": "8.2.10", - "license": "Apache-2.0 OR MIT", + "version": "8.2.11", + "resolved": "https://registry.npmjs.org/interface-datastore/-/interface-datastore-8.2.11.tgz", + "integrity": "sha512-9E0iXehfp/j0UbZ2mvlYB4K9pP7uQBCppfuy8WHs1EHF6wLQrM9+zwyX+8Qt6HnH4GKZRyXX/CNXm6oD4+QYgA==", "dependencies": { "interface-store": "^5.0.0", - "uint8arrays": "^5.0.0" + "uint8arrays": "^5.0.2" } }, "node_modules/interface-store": { @@ -12966,19 +12828,6 @@ "varint-decoder": "^1.0.0" } }, - "node_modules/ipfs-bitswap/node_modules/it-map": { - "version": "3.0.5", - "resolved": "https://registry.npmjs.org/it-map/-/it-map-3.0.5.tgz", - "integrity": "sha512-hB0TDXo/h4KSJJDSRLgAPmDroiXP6Fx1ck4Bzl3US9hHfZweTKsuiP0y4gXuTMcJlS6vj0bb+f70rhkD47ZA3w==", - "dependencies": { - "it-peekable": "^3.0.0" - } - }, - "node_modules/ipfs-bitswap/node_modules/it-take": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/it-take/-/it-take-3.0.4.tgz", - "integrity": "sha512-RG8HDjAZlvkzz5Nav4xq6gK5zNT+Ff1UTIf+CrSJW8nIl6N1FpBH5e7clUshiCn+MmmMoSdIEpw4UaTolszxhA==" - }, "node_modules/ipfs-bitswap/node_modules/multiformats": { "version": "13.0.1", "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-13.0.1.tgz", @@ -13018,26 +12867,10 @@ "progress-events": "^1.0.0" } }, - "node_modules/ipfs-unixfs-exporter/node_modules/it-filter": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/it-filter/-/it-filter-3.0.4.tgz", - "integrity": "sha512-e0sz+st4sudK/zH6GZ/gRTRP8A/ADuJFCYDmRgMbZvR79y5+v4ZXav850bBZk5wL9zXaYZFxS1v/6Qi+Vjwh5g==", - "dependencies": { - "it-peekable": "^3.0.0" - } - }, - "node_modules/ipfs-unixfs-exporter/node_modules/it-map": { - "version": "3.0.5", - "resolved": "https://registry.npmjs.org/it-map/-/it-map-3.0.5.tgz", - "integrity": "sha512-hB0TDXo/h4KSJJDSRLgAPmDroiXP6Fx1ck4Bzl3US9hHfZweTKsuiP0y4gXuTMcJlS6vj0bb+f70rhkD47ZA3w==", - "dependencies": { - "it-peekable": "^3.0.0" - } - }, "node_modules/ipfs-unixfs-exporter/node_modules/multiformats": { - "version": "13.0.1", - "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-13.0.1.tgz", - "integrity": "sha512-bt3R5iXe2O8xpp3wkmQhC73b/lC4S2ihU8Dndwcsysqbydqb8N+bpP116qMcClZ17g58iSIwtXUTcg2zT4sniA==" + "version": "13.1.0", + "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-13.1.0.tgz", + "integrity": "sha512-HzdtdBwxsIkzpeXzhQ5mAhhuxcHbjEHH+JQoxt7hG/2HGFjjwyolLo7hbaexcnhoEuV4e0TNJ8kkpMjiEYY4VQ==" }, "node_modules/ipfs-unixfs-importer": { "version": "15.2.4", @@ -13062,15 +12895,10 @@ "uint8arrays": "^5.0.0" } }, - "node_modules/ipfs-unixfs-importer/node_modules/it-all": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/it-all/-/it-all-3.0.4.tgz", - "integrity": "sha512-UMiy0i9DqCHBdWvMbzdYvVGa5/w4t1cc4nchpbnjdLhklglv8mQeEYnii0gvKESJuL1zV32Cqdb33R6/GPfxpQ==" - }, "node_modules/ipfs-unixfs-importer/node_modules/multiformats": { - "version": "13.0.1", - "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-13.0.1.tgz", - "integrity": "sha512-bt3R5iXe2O8xpp3wkmQhC73b/lC4S2ihU8Dndwcsysqbydqb8N+bpP116qMcClZ17g58iSIwtXUTcg2zT4sniA==" + "version": "13.1.0", + "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-13.1.0.tgz", + "integrity": "sha512-HzdtdBwxsIkzpeXzhQ5mAhhuxcHbjEHH+JQoxt7hG/2HGFjjwyolLo7hbaexcnhoEuV4e0TNJ8kkpMjiEYY4VQ==" }, "node_modules/ipns": { "version": "9.0.0", @@ -13585,6 +13413,15 @@ "dev": true, "license": "ISC" }, + "node_modules/iso-constants": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/iso-constants/-/iso-constants-0.1.2.tgz", + "integrity": "sha512-OTCM5ZCQsHBCI4Wdu4tSxvDIkmDHd5EwJDps5mKqnQnWJSKlnwMs3EDZ4n3Fh1tmkWkDlyd2vCDbEYuPbyrUNQ==", + "hasInstallScript": true, + "engines": { + "node": ">=10" + } + }, "node_modules/isobject": { "version": "3.0.1", "dev": true, @@ -13795,6 +13632,11 @@ "node": ">=8" } }, + "node_modules/it-all": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/it-all/-/it-all-3.0.4.tgz", + "integrity": "sha512-UMiy0i9DqCHBdWvMbzdYvVGa5/w4t1cc4nchpbnjdLhklglv8mQeEYnii0gvKESJuL1zV32Cqdb33R6/GPfxpQ==" + }, "node_modules/it-batch": { "version": "3.0.4", "resolved": "https://registry.npmjs.org/it-batch/-/it-batch-3.0.4.tgz", @@ -13825,6 +13667,14 @@ "resolved": "https://registry.npmjs.org/it-drain/-/it-drain-3.0.5.tgz", "integrity": "sha512-qYFe4SWdvs9oJGUY5bSjvmiLUMLzFEODNOQUdYdCIkuIgQF+AUB2INhM4yQ09buJ2rhHKDFxvTD/+yUq6qg0XA==" }, + "node_modules/it-filter": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/it-filter/-/it-filter-3.0.4.tgz", + "integrity": "sha512-e0sz+st4sudK/zH6GZ/gRTRP8A/ADuJFCYDmRgMbZvR79y5+v4ZXav850bBZk5wL9zXaYZFxS1v/6Qi+Vjwh5g==", + "dependencies": { + "it-peekable": "^3.0.0" + } + }, "node_modules/it-first": { "version": "3.0.4", "resolved": "https://registry.npmjs.org/it-first/-/it-first-3.0.4.tgz", @@ -13901,6 +13751,14 @@ "npm": ">=7.0.0" } }, + "node_modules/it-map": { + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/it-map/-/it-map-3.0.5.tgz", + "integrity": "sha512-hB0TDXo/h4KSJJDSRLgAPmDroiXP6Fx1ck4Bzl3US9hHfZweTKsuiP0y4gXuTMcJlS6vj0bb+f70rhkD47ZA3w==", + "dependencies": { + "it-peekable": "^3.0.0" + } + }, "node_modules/it-merge": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/it-merge/-/it-merge-3.0.3.tgz", @@ -14005,6 +13863,51 @@ "npm": ">=7.0.0" } }, + "node_modules/it-take": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/it-take/-/it-take-3.0.4.tgz", + "integrity": "sha512-RG8HDjAZlvkzz5Nav4xq6gK5zNT+Ff1UTIf+CrSJW8nIl6N1FpBH5e7clUshiCn+MmmMoSdIEpw4UaTolszxhA==" + }, + "node_modules/it-tar": { + "version": "6.0.5", + "resolved": "https://registry.npmjs.org/it-tar/-/it-tar-6.0.5.tgz", + "integrity": "sha512-GxKBamsX2EZA6jrNh6xoeKmRpbOELgYhCk1ojhN0TFSBdxwkRBqBRc3sI43vTHRpI7i2o6ptrSxK3LLKWNvudg==", + "dependencies": { + "iso-constants": "^0.1.2", + "it-reader": "^6.0.1", + "it-stream-types": "^2.0.1", + "it-to-buffer": "^4.0.5", + "p-defer": "^4.0.0", + "uint8arraylist": "^2.3.2", + "uint8arrays": "^5.0.2" + }, + "engines": { + "node": ">=16.0.0", + "npm": ">=7.0.0" + } + }, + "node_modules/it-tar/node_modules/it-stream-types": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/it-stream-types/-/it-stream-types-2.0.1.tgz", + "integrity": "sha512-6DmOs5r7ERDbvS4q8yLKENcj6Yecr7QQTqWApbZdfAUTEC947d+PEha7PCqhm//9oxaLYL7TWRekwhoXl2s6fg==", + "engines": { + "node": ">=16.0.0", + "npm": ">=7.0.0" + } + }, + "node_modules/it-to-browser-readablestream": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/it-to-browser-readablestream/-/it-to-browser-readablestream-2.0.6.tgz", + "integrity": "sha512-VAOmkPv6S4x1m8WYR7QIBSh3qTgTd6syx146g5a4lPUjB7U7gZgqZFXRljk969UMvvROS3fJSzxnGxFmQaT2FA==" + }, + "node_modules/it-to-buffer": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/it-to-buffer/-/it-to-buffer-4.0.5.tgz", + "integrity": "sha512-DoQWOBhYmVHa0ooMauJLVbZ8V8K3AsFgqBs7I+kX7f3KbFMEy0MA9w7TJo9Utd4T4H+iUScyLFwo7REA4dWreA==", + "dependencies": { + "uint8arrays": "^5.0.0" + } + }, "node_modules/jackspeak": { "version": "2.3.6", "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-2.3.6.tgz", @@ -16386,8 +16289,9 @@ } }, "node_modules/node-fetch": { - "version": "2.6.9", - "license": "MIT", + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", + "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", "dependencies": { "whatwg-url": "^5.0.0" }, @@ -23180,7 +23084,7 @@ }, "node_modules/safer-buffer": { "version": "2.1.2", - "devOptional": true, + "dev": true, "license": "MIT" }, "node_modules/sass": { @@ -24997,7 +24901,8 @@ }, "node_modules/tr46": { "version": "0.0.3", - "license": "MIT" + "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", + "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" }, "node_modules/traverse": { "version": "0.6.7", @@ -25719,9 +25624,9 @@ } }, "node_modules/uint8arrays": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/uint8arrays/-/uint8arrays-5.0.1.tgz", - "integrity": "sha512-ND5RpJAnPgHmZT7hWD/2T4BwRp04j8NLKvMKC/7bhiEwEjUMkQ4kvBKiH6hOqbljd6qJ2xS8reL3vl1e33grOQ==", + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/uint8arrays/-/uint8arrays-5.0.2.tgz", + "integrity": "sha512-S0GaeR+orZt7LaqzTRs4ZP8QqzAauJ+0d4xvP2lJTA99jIkKsE2FgDs4tGF/K/z5O9I/2W5Yvrh7IuqNeYH+0Q==", "dependencies": { "multiformats": "^13.0.0" } @@ -26117,7 +26022,8 @@ }, "node_modules/webidl-conversions": { "version": "3.0.1", - "license": "BSD-2-Clause" + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", + "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==" }, "node_modules/webpack": { "version": "5.77.0", @@ -26395,7 +26301,8 @@ }, "node_modules/whatwg-url": { "version": "5.0.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", + "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", "dependencies": { "tr46": "~0.0.3", "webidl-conversions": "^3.0.0" diff --git a/package.json b/package.json index 57022382..d5506e86 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ "@helia/http": "^1.0.0", "@helia/interface": "^4.0.0", "@helia/routers": "^1.0.0", - "@helia/verified-fetch": "^0.0.0-3283a5c", + "@helia/verified-fetch": "^0.0.0-1ee6a4a", "@sgtpooki/file-type": "^1.0.1", "blockstore-idb": "^1.1.8", "datastore-idb": "^2.1.8", From c62bce42130c4eef7fa307ffc6ebffa4b126c021 Mon Sep 17 00:00:00 2001 From: Russell Dempsey <1173416+SgtPooki@users.noreply.github.com> Date: Mon, 26 Feb 2024 21:40:10 -0700 Subject: [PATCH 2/4] feat: add cloudflare eth resolver --- src/lib/heliaFetch.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/lib/heliaFetch.ts b/src/lib/heliaFetch.ts index 4f4e14f6..c6fd5218 100644 --- a/src/lib/heliaFetch.ts +++ b/src/lib/heliaFetch.ts @@ -1,5 +1,8 @@ +import { dnsJsonOverHttps } from '@helia/ipns/dns-resolvers' +import { delegatedHTTPRouting } from '@helia/routers' import { createVerifiedFetch, type ContentTypeParser } from '@helia/verified-fetch' import { fileTypeFromBuffer } from '@sgtpooki/file-type' +import { getConfig } from './config-db' import type { Helia } from '@helia/interface' export interface HeliaFetchOptions { @@ -126,7 +129,12 @@ function changeCssFontPath (path: string): string { * */ export async function heliaFetch ({ path, helia, signal, headers, id, protocol }: HeliaFetchOptions): Promise { - const verifiedFetch = await createVerifiedFetch(helia, { + const config = await getConfig() + const verifiedFetch = await createVerifiedFetch({ + gateways: ['https://trustless-gateway.link', ...config.gateways], + routers: ['https://delegated-ipfs.dev', ...config.routers], + dnsResolvers: ['https://resolver.cloudflare-eth.com/dns-query'].map(dnsJsonOverHttps) + }, { contentTypeParser }) From 7d18a08251a5e0e10abf5e3ffb19e346f82cd22c Mon Sep 17 00:00:00 2001 From: Russell Dempsey <1173416+SgtPooki@users.noreply.github.com> Date: Tue, 27 Feb 2024 12:10:35 -0700 Subject: [PATCH 3/4] tmp: use sgtpooki.com/dns-query until either cloudflare or delegated-ipfs.dev dns-query is working, this is working for ens resolution --- src/lib/heliaFetch.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/heliaFetch.ts b/src/lib/heliaFetch.ts index f4b0c5b0..457c9ed7 100644 --- a/src/lib/heliaFetch.ts +++ b/src/lib/heliaFetch.ts @@ -128,7 +128,7 @@ export async function heliaFetch ({ path, helia, signal, headers, id, protocol } const verifiedFetch = await createVerifiedFetch({ gateways: ['https://trustless-gateway.link', ...config.gateways], routers: ['https://delegated-ipfs.dev', ...config.routers], - dnsResolvers: ['https://resolver.cloudflare-eth.com/dns-query'].map(dnsJsonOverHttps) + dnsResolvers: ['https://sgtpooki.com/dns-query'].map(dnsJsonOverHttps) }, { contentTypeParser }) From e78676a43b035b2dd423a1a966a8e034c7f27943 Mon Sep 17 00:00:00 2001 From: Russell Dempsey <1173416+SgtPooki@users.noreply.github.com> Date: Tue, 27 Feb 2024 12:27:48 -0700 Subject: [PATCH 4/4] feat: use delegated-ipfs.dev/dns-query --- src/lib/heliaFetch.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/heliaFetch.ts b/src/lib/heliaFetch.ts index 457c9ed7..b9b113e4 100644 --- a/src/lib/heliaFetch.ts +++ b/src/lib/heliaFetch.ts @@ -128,7 +128,7 @@ export async function heliaFetch ({ path, helia, signal, headers, id, protocol } const verifiedFetch = await createVerifiedFetch({ gateways: ['https://trustless-gateway.link', ...config.gateways], routers: ['https://delegated-ipfs.dev', ...config.routers], - dnsResolvers: ['https://sgtpooki.com/dns-query'].map(dnsJsonOverHttps) + dnsResolvers: ['https://delegated-ipfs.dev/dns-query'].map(dnsJsonOverHttps) }, { contentTypeParser })