diff --git a/package-lock.json b/package-lock.json index ae856058..ae2ab1af 100644 --- a/package-lock.json +++ b/package-lock.json @@ -15,7 +15,7 @@ "@helia/interface": "^4.0.0", "@helia/ipns": "^6.0.0", "@helia/routers": "^1.0.0", - "@helia/verified-fetch": "^0.0.0-6f8c15b", + "@helia/verified-fetch": "^1.1.0", "@libp2p/logger": "^4.0.6", "@sgtpooki/file-type": "^1.0.1", "blockstore-idb": "^1.1.8", @@ -2312,53 +2312,40 @@ } }, "node_modules/@helia/block-brokers": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/@helia/block-brokers/-/block-brokers-2.0.1.tgz", - "integrity": "sha512-KHqL4pcA2dHvRdVuqHKMA5K1ky/VPSzL8/s4NrId5Sxi+Qx7yPYMrDuexau+OZ+wrEnHaKtoEGAydL0imqbvcA==", + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/@helia/block-brokers/-/block-brokers-2.0.2.tgz", + "integrity": "sha512-HfdOMF8eNmJq9wdoRTdX7FidgrjKk6yvvpu3FlCfIyY+ZCmJgCWEKYmn3GKmY8l82DlHzYwo1GYMOV4rdqREeA==", "dependencies": { - "@helia/interface": "^4.0.0", - "@libp2p/interface": "^1.1.1", - "interface-blockstore": "^5.2.7", - "ipfs-bitswap": "^20.0.0", - "multiformats": "^13.0.0", + "@helia/interface": "^4.0.1", + "@libp2p/interface": "^1.1.4", + "interface-blockstore": "^5.2.10", + "ipfs-bitswap": "^20.0.2", + "multiformats": "^13.1.0", "progress-events": "^1.0.0" } }, "node_modules/@helia/block-brokers/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/car": { - "version": "3.0.0-6f8c15b", - "resolved": "https://registry.npmjs.org/@helia/car/-/car-3.0.0-6f8c15b.tgz", - "integrity": "sha512-hSnm3FPaGExiAPl6UcpsoNUXWAO7kX5leL7uFWnBIO3ZMVpdzQISGgi6eKuwyab7lCyi4AWVLKoO4IFbWb3q/w==", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@helia/car/-/car-3.1.0.tgz", + "integrity": "sha512-RMi2Ur00VtCfzBev4t6GoO045g3lKDz5gtIotXlj0WrKE6OeCe+G3s5wb5YJaTWXlOIJK5CgI3Vr7bfSDy1WSQ==", "dependencies": { - "@helia/interface": "4.0.0-6f8c15b", - "@ipld/car": "^5.2.6", + "@helia/interface": "^4.0.1", + "@ipld/car": "^5.3.0", "@libp2p/interfaces": "^3.3.2", - "interface-blockstore": "^5.2.9", + "interface-blockstore": "^5.2.10", "it-drain": "^3.0.5", "it-map": "^3.0.5", - "multiformats": "^13.0.1", + "multiformats": "^13.1.0", "p-defer": "^4.0.0", "p-queue": "^8.0.1", "progress-events": "^1.0.0" } }, - "node_modules/@helia/car/node_modules/@helia/interface": { - "version": "4.0.0-6f8c15b", - "resolved": "https://registry.npmjs.org/@helia/interface/-/interface-4.0.0-6f8c15b.tgz", - "integrity": "sha512-lqt5a1dULqYTWktnLuK6MapTBJ1sGwE2pUpqN/BlDRmNOQD5fctUQRAa8/icgEYeNLEVCx+dlpXIFBxi4WgT7g==", - "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/car/node_modules/multiformats": { "version": "13.1.0", "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-13.1.0.tgz", @@ -2391,55 +2378,55 @@ "integrity": "sha512-bt3R5iXe2O8xpp3wkmQhC73b/lC4S2ihU8Dndwcsysqbydqb8N+bpP116qMcClZ17g58iSIwtXUTcg2zT4sniA==" }, "node_modules/@helia/http": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@helia/http/-/http-1.0.1.tgz", - "integrity": "sha512-0Q6O0vPX/u1o7p0zK+cQc0U4ZiDl6+mc337YK36TfP2IMDFpZ3aINfvaDoY3CNAH/93XSuZlzGgamsqfTbn3wQ==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@helia/http/-/http-1.0.2.tgz", + "integrity": "sha512-P87EuvQcpk56KtrIPWDkTELI3CCwQaZxyS3l4biaIe0KJpV2YN4d2A3osF7ot4ZPFhfhGKD0bBjRekNEfwSueg==", "dependencies": { - "@helia/block-brokers": "^2.0.1", - "@helia/interface": "^4.0.0", - "@helia/routers": "^1.0.0", - "@helia/utils": "^0.0.1", - "blockstore-core": "^4.3.8", - "datastore-core": "^9.2.6" + "@helia/block-brokers": "^2.0.2", + "@helia/interface": "^4.0.1", + "@helia/routers": "^1.0.1", + "@helia/utils": "^0.0.2", + "blockstore-core": "^4.4.0", + "datastore-core": "^9.2.9" } }, "node_modules/@helia/interface": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@helia/interface/-/interface-4.0.0.tgz", - "integrity": "sha512-J8ZGuNac60x1pwMZ7i5rvB9oldnc3rIEhCcZE6vKl5vsDHmlCpG2NmVPM5x1VIfei1JEAygDtfCFUDvGpMxSfw==", + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/@helia/interface/-/interface-4.0.1.tgz", + "integrity": "sha512-tp9dLlog9x5C/+gE4FF452slemnTQtpS3RneGOatx51nDaE76/HHOmW1hIAASuFtjPHeg/R9BAM8UIX4DEffsg==", "dependencies": { - "@libp2p/interface": "^1.1.1", - "interface-blockstore": "^5.2.7", - "interface-datastore": "^8.2.9", - "interface-store": "^5.1.5", - "multiformats": "^13.0.0", + "@libp2p/interface": "^1.1.4", + "interface-blockstore": "^5.2.10", + "interface-datastore": "^8.2.11", + "interface-store": "^5.1.8", + "multiformats": "^13.1.0", "progress-events": "^1.0.0" } }, "node_modules/@helia/interface/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/@helia/ipns": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/@helia/ipns/-/ipns-6.0.0.tgz", - "integrity": "sha512-gCiwIkzgevEcXZI3yK9iXCSQCZnRMqnvi6HIzc95JKyh75KDI1JF3KmN0N1u4f3je5PjZNcejg/bADTYE7BjYw==", - "dependencies": { - "@helia/interface": "^4.0.0", - "@libp2p/interface": "^1.1.1", - "@libp2p/kad-dht": "^12.0.2", - "@libp2p/logger": "^4.0.4", - "@libp2p/peer-id": "^4.0.5", - "dns-over-http-resolver": "^3.0.0", - "dns-packet": "^5.6.0", + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/@helia/ipns/-/ipns-6.0.1.tgz", + "integrity": "sha512-buCuEdbn9A1i5zyhE1ioTjjbhufAmeAXBv6axHuWNqb2tJbteGFjXW/Ql3yPIQo8pPAKuy09t4uKUC/72n6oqw==", + "dependencies": { + "@helia/interface": "^4.0.1", + "@libp2p/interface": "^1.1.4", + "@libp2p/kad-dht": "^12.0.8", + "@libp2p/logger": "^4.0.7", + "@libp2p/peer-id": "^4.0.7", + "dns-over-http-resolver": "^3.0.2", + "dns-packet": "^5.6.1", "hashlru": "^2.3.0", - "interface-datastore": "^8.2.9", + "interface-datastore": "^8.2.11", "ipns": "^9.0.0", - "is-ipfs": "^8.0.1", - "multiformats": "^13.0.0", + "multiformats": "^13.1.0", "p-queue": "^8.0.1", "progress-events": "^1.0.0", - "uint8arrays": "^5.0.1" + "uint8arrays": "^5.0.2" } }, "node_modules/@helia/ipns/node_modules/multiformats": { @@ -2448,37 +2435,37 @@ "integrity": "sha512-HzdtdBwxsIkzpeXzhQ5mAhhuxcHbjEHH+JQoxt7hG/2HGFjjwyolLo7hbaexcnhoEuV4e0TNJ8kkpMjiEYY4VQ==" }, "node_modules/@helia/routers": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/@helia/routers/-/routers-1.0.0.tgz", - "integrity": "sha512-h6u3eizOLLLXXXaXGGcsz2gQ1+pwtRqjx0ZjL4nuGZuoie5BXjPCTV/gKYFMMWaKwVUpLwSBtH6oVpwsfWQ6cw==", + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@helia/routers/-/routers-1.0.1.tgz", + "integrity": "sha512-FHkliCcj6TfSJdTFNP61OW2Dtqxn8XBsZIsUUPxw1qsZLEFm33CcIXhF5NPalqyVrjC+y0fo/+OuNAwCNhE/sw==", "dependencies": { "@helia/delegated-routing-v1-http-api-client": "^3.0.0", - "@helia/interface": "^4.0.0", - "@libp2p/interface": "^1.1.1", + "@helia/interface": "^4.0.1", + "@libp2p/interface": "^1.1.4", "ipns": "^9.0.0", "it-first": "^3.0.4", "it-map": "^3.0.5", - "multiformats": "^13.0.0", - "uint8arrays": "^5.0.1" + "multiformats": "^13.1.0", + "uint8arrays": "^5.0.2" } }, "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==" + "version": "13.1.0", + "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-13.1.0.tgz", + "integrity": "sha512-HzdtdBwxsIkzpeXzhQ5mAhhuxcHbjEHH+JQoxt7hG/2HGFjjwyolLo7hbaexcnhoEuV4e0TNJ8kkpMjiEYY4VQ==" }, "node_modules/@helia/unixfs": { - "version": "3.0.0-6f8c15b", - "resolved": "https://registry.npmjs.org/@helia/unixfs/-/unixfs-3.0.0-6f8c15b.tgz", - "integrity": "sha512-Iq9hD6c0osPpxBu8Qb/mBUP5HEVTTbgwUQZ/N0nG2oz7quhfLWiFYEuNrqfZVfZ1R7qiSlzQF7WcVpHmpKQaUA==", - "dependencies": { - "@helia/interface": "4.0.0-6f8c15b", - "@ipld/dag-pb": "^4.0.8", - "@libp2p/interface": "^1.1.2", - "@libp2p/logger": "^4.0.5", + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/@helia/unixfs/-/unixfs-3.0.1.tgz", + "integrity": "sha512-NgT0gk3oswUK+8IEnJDl6IGv5catSQq6IQ1VrO68ZBpJPpo49CyFCqN5CO8IC3QL3wi4JyJ0sTLXemMVkUsTVA==", + "dependencies": { + "@helia/interface": "^4.0.1", + "@ipld/dag-pb": "^4.1.0", + "@libp2p/interface": "^1.1.4", + "@libp2p/logger": "^4.0.7", "@multiformats/murmur3": "^2.1.8", - "hamt-sharding": "^3.0.2", - "interface-blockstore": "^5.2.9", + "hamt-sharding": "^3.0.6", + "interface-blockstore": "^5.2.10", "ipfs-unixfs": "^11.1.3", "ipfs-unixfs-exporter": "^13.5.0", "ipfs-unixfs-importer": "^15.2.4", @@ -2487,23 +2474,10 @@ "it-last": "^3.0.4", "it-pipe": "^3.0.1", "merge-options": "^3.0.4", - "multiformats": "^13.0.1", + "multiformats": "^13.1.0", "progress-events": "^1.0.0", "sparse-array": "^1.3.2", - "uint8arrays": "^5.0.1" - } - }, - "node_modules/@helia/unixfs/node_modules/@helia/interface": { - "version": "4.0.0-6f8c15b", - "resolved": "https://registry.npmjs.org/@helia/interface/-/interface-4.0.0-6f8c15b.tgz", - "integrity": "sha512-lqt5a1dULqYTWktnLuK6MapTBJ1sGwE2pUpqN/BlDRmNOQD5fctUQRAa8/icgEYeNLEVCx+dlpXIFBxi4WgT7g==", - "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" + "uint8arrays": "^5.0.2" } }, "node_modules/@helia/unixfs/node_modules/multiformats": { @@ -2512,56 +2486,57 @@ "integrity": "sha512-HzdtdBwxsIkzpeXzhQ5mAhhuxcHbjEHH+JQoxt7hG/2HGFjjwyolLo7hbaexcnhoEuV4e0TNJ8kkpMjiEYY4VQ==" }, "node_modules/@helia/utils": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/@helia/utils/-/utils-0.0.1.tgz", - "integrity": "sha512-mYGYsAzRcXmS0CdtacAqd6nabZuz9sfKe+IbQYpA9KMfQQr1VCTOg1u9zTBGxblCNgE5FxBxzW4hdnsjNZ53ng==", + "version": "0.0.2", + "resolved": "https://registry.npmjs.org/@helia/utils/-/utils-0.0.2.tgz", + "integrity": "sha512-910HndS3HM2kv+aD8SfLrQkPAw4ZWhipEkaEq/RSGJ8sIqG291cBhIkVTka8+pIDqwKe7mX1djrHL+kV2kJ6cQ==", "dependencies": { - "@helia/interface": "^4.0.0", - "@ipld/dag-cbor": "^9.0.7", - "@ipld/dag-json": "^10.1.5", - "@ipld/dag-pb": "^4.0.6", - "@libp2p/interface": "^1.1.1", - "@libp2p/logger": "^4.0.4", - "@libp2p/peer-collections": "^5.1.4", - "@libp2p/utils": "^5.2.0", + "@helia/interface": "^4.0.1", + "@ipld/dag-cbor": "^9.2.0", + "@ipld/dag-json": "^10.2.0", + "@ipld/dag-pb": "^4.1.0", + "@libp2p/interface": "^1.1.4", + "@libp2p/logger": "^4.0.7", + "@libp2p/peer-collections": "^5.1.7", + "@libp2p/utils": "^5.2.6", "any-signal": "^4.1.1", - "cborg": "^4.0.3", - "interface-blockstore": "^5.2.7", - "interface-datastore": "^8.2.9", - "interface-store": "^5.1.5", + "blockstore-core": "^4.4.0", + "cborg": "^4.0.9", + "interface-blockstore": "^5.2.10", + "interface-datastore": "^8.2.11", + "interface-store": "^5.1.8", "it-drain": "^3.0.5", "it-filter": "^3.0.4", "it-foreach": "^2.0.6", "it-merge": "^3.0.3", - "mortice": "^3.0.1", - "multiformats": "^13.0.0", + "mortice": "^3.0.4", + "multiformats": "^13.1.0", "progress-events": "^1.0.0", - "uint8arrays": "^5.0.1" + "uint8arrays": "^5.0.2" } }, "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==" + "version": "13.1.0", + "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-13.1.0.tgz", + "integrity": "sha512-HzdtdBwxsIkzpeXzhQ5mAhhuxcHbjEHH+JQoxt7hG/2HGFjjwyolLo7hbaexcnhoEuV4e0TNJ8kkpMjiEYY4VQ==" }, "node_modules/@helia/verified-fetch": { - "version": "0.0.0-6f8c15b", - "resolved": "https://registry.npmjs.org/@helia/verified-fetch/-/verified-fetch-0.0.0-6f8c15b.tgz", - "integrity": "sha512-Ty575gq6uoYCyoLeo3rnTZXYSBzHvo98TVBhwCR1tDodERt1gOn2LZcz1Ae89LclD06hYIzSymsS7hNnNMVDzA==", - "dependencies": { - "@helia/block-brokers": "2.0.1-6f8c15b", - "@helia/car": "3.0.0-6f8c15b", - "@helia/http": "1.0.1-6f8c15b", - "@helia/interface": "4.0.0-6f8c15b", - "@helia/ipns": "6.0.0-6f8c15b", - "@helia/routers": "1.0.0-6f8c15b", - "@helia/unixfs": "3.0.0-6f8c15b", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@helia/verified-fetch/-/verified-fetch-1.1.0.tgz", + "integrity": "sha512-0ABWsHiGEcXRinLkJN6xYRpvIzhSe/eHJoYF0IMpkwGdc3AK3ETtL3Uc/TWOgLqHswDioNqI0YAxBliDXWRQ3g==", + "dependencies": { + "@helia/block-brokers": "^2.0.2", + "@helia/car": "^3.1.0", + "@helia/http": "^1.0.2", + "@helia/interface": "^4.0.1", + "@helia/ipns": "^6.0.1", + "@helia/routers": "^1.0.1", + "@helia/unixfs": "^3.0.1", "@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", + "@libp2p/interface": "^1.1.4", + "@libp2p/kad-dht": "^12.0.8", + "@libp2p/peer-id": "^4.0.7", "cborg": "^4.0.9", "hashlru": "^2.3.0", "interface-blockstore": "^5.2.10", @@ -2569,117 +2544,13 @@ "ipfs-unixfs-exporter": "^13.5.0", "it-map": "^3.0.5", "it-pipe": "^3.0.1", - "it-tar": "^6.0.4", + "it-tar": "^6.0.5", "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-6f8c15b", - "resolved": "https://registry.npmjs.org/@helia/block-brokers/-/block-brokers-2.0.1-6f8c15b.tgz", - "integrity": "sha512-ZvvHHbcZlqaxbzxX/D2UY2U4o/foXfgdmNyFm1W5mBiLktCAQX5j32KUOgJPd1REzYo5ah7hHTri+e9kZafSFA==", - "dependencies": { - "@helia/interface": "4.0.0-6f8c15b", - "@libp2p/interface": "^1.1.2", - "interface-blockstore": "^5.2.9", - "ipfs-bitswap": "^20.0.2", - "multiformats": "^13.0.1", - "progress-events": "^1.0.0" - } - }, - "node_modules/@helia/verified-fetch/node_modules/@helia/http": { - "version": "1.0.1-6f8c15b", - "resolved": "https://registry.npmjs.org/@helia/http/-/http-1.0.1-6f8c15b.tgz", - "integrity": "sha512-jL4UVEJsnEYwH5gmMYN0tLHDIRTjZPK5EEqyy5pRuDmF+oNIw40eAPmhZuiTB1LxCA8UTjAXCQSP8GRMyJ0WPw==", - "dependencies": { - "@helia/block-brokers": "2.0.1-6f8c15b", - "@helia/interface": "4.0.0-6f8c15b", - "@helia/routers": "1.0.0-6f8c15b", - "@helia/utils": "0.0.1-6f8c15b", - "blockstore-core": "^4.4.0", - "datastore-core": "^9.2.7" - } - }, - "node_modules/@helia/verified-fetch/node_modules/@helia/interface": { - "version": "4.0.0-6f8c15b", - "resolved": "https://registry.npmjs.org/@helia/interface/-/interface-4.0.0-6f8c15b.tgz", - "integrity": "sha512-lqt5a1dULqYTWktnLuK6MapTBJ1sGwE2pUpqN/BlDRmNOQD5fctUQRAa8/icgEYeNLEVCx+dlpXIFBxi4WgT7g==", - "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/verified-fetch/node_modules/@helia/ipns": { - "version": "6.0.0-6f8c15b", - "resolved": "https://registry.npmjs.org/@helia/ipns/-/ipns-6.0.0-6f8c15b.tgz", - "integrity": "sha512-aW8RpWzNtYllfvuA1EoTtJ9PJQy6qAsudx6OOPjd9Wj+4J9Bz4pEYQnFQElfqIRpek7dhc62xHb125j0ZLvhLg==", - "dependencies": { - "@helia/interface": "4.0.0-6f8c15b", - "@libp2p/interface": "^1.1.2", - "@libp2p/kad-dht": "^12.0.5", - "@libp2p/logger": "^4.0.5", - "@libp2p/peer-id": "^4.0.5", - "dns-over-http-resolver": "^3.0.2", - "dns-packet": "^5.6.1", - "hashlru": "^2.3.0", - "interface-datastore": "^8.2.10", - "ipns": "^9.0.0", - "multiformats": "^13.0.1", - "p-queue": "^8.0.1", - "progress-events": "^1.0.0", - "uint8arrays": "^5.0.1" - } - }, - "node_modules/@helia/verified-fetch/node_modules/@helia/routers": { - "version": "1.0.0-6f8c15b", - "resolved": "https://registry.npmjs.org/@helia/routers/-/routers-1.0.0-6f8c15b.tgz", - "integrity": "sha512-e1g3l7ytPHXg0s3bSZgoK5R0ZnfWihFq7Xnpz3sC3ubKj34iBqh3CAsHdmJVLAsCHf0BFsokAqvm+xQaUkG+mg==", - "dependencies": { - "@helia/delegated-routing-v1-http-api-client": "^3.0.0", - "@helia/interface": "4.0.0-6f8c15b", - "@libp2p/interface": "^1.1.2", - "ipns": "^9.0.0", - "it-first": "^3.0.4", - "it-map": "^3.0.5", - "multiformats": "^13.0.1", - "uint8arrays": "^5.0.1" - } - }, - "node_modules/@helia/verified-fetch/node_modules/@helia/utils": { - "version": "0.0.1-6f8c15b", - "resolved": "https://registry.npmjs.org/@helia/utils/-/utils-0.0.1-6f8c15b.tgz", - "integrity": "sha512-jmd3qjAFy0fS/F9tTQlORREuKDpwl2C3GEkAioizAW7+qadeTOMGAwPv7UbBViguEfBdqzIE2qZs2omAujNNJA==", - "dependencies": { - "@helia/interface": "4.0.0-6f8c15b", - "@ipld/dag-cbor": "^9.1.0", - "@ipld/dag-json": "^10.1.7", - "@ipld/dag-pb": "^4.0.8", - "@libp2p/interface": "^1.1.2", - "@libp2p/logger": "^4.0.5", - "@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", - "interface-store": "^5.1.7", - "it-drain": "^3.0.5", - "it-filter": "^3.0.4", - "it-foreach": "^2.0.6", - "it-merge": "^3.0.3", - "mortice": "^3.0.4", - "multiformats": "^13.0.1", - "progress-events": "^1.0.0", - "uint8arrays": "^5.0.1" - } - }, "node_modules/@helia/verified-fetch/node_modules/multiformats": { "version": "13.1.0", "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-13.1.0.tgz", @@ -3060,45 +2931,45 @@ "license": "MIT" }, "node_modules/@libp2p/crypto": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/@libp2p/crypto/-/crypto-4.0.2.tgz", - "integrity": "sha512-zdFnnP2dA3X/xqRyJus+5rgCrp7JHFh+C8hA+DckXqp+ayiRMyLnKKPXmSzTKJSsIABMW2pcUFU+yCeDSgiSQQ==", + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/@libp2p/crypto/-/crypto-4.0.3.tgz", + "integrity": "sha512-UT11dl5Bxi9gyXXSyoIfi+7USk2S+46mY9W3t435tS9Y83BeFcdSLAmuiHaKZB/gtnngKfTdjUqEsPSOc79d+w==", "dependencies": { - "@libp2p/interface": "^1.1.3", + "@libp2p/interface": "^1.1.4", "@noble/curves": "^1.3.0", "@noble/hashes": "^1.3.3", "asn1js": "^3.0.5", - "multiformats": "^13.0.1", + "multiformats": "^13.1.0", "protons-runtime": "^5.4.0", "uint8arraylist": "^2.4.8", - "uint8arrays": "^5.0.1" + "uint8arrays": "^5.0.2" } }, "node_modules/@libp2p/crypto/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/interface": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/@libp2p/interface/-/interface-1.1.3.tgz", - "integrity": "sha512-id22Ve5acg6CM0jjL8s9cyEaBYWn7z1R+1gy75RpHi0qgW15ifozwi0oFSTGLVA5XzRnNzioDLj+ZP6QwvhIVQ==", + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/@libp2p/interface/-/interface-1.1.4.tgz", + "integrity": "sha512-gJXQycTF50tI02X/IlReAav4XoGPs3Yr917vNXsTUsZQRzQaPjbvKfXqA5hkLFpZ1lnxQ8wto/EVw4ca4XaL1A==", "dependencies": { "@multiformats/multiaddr": "^12.1.14", "it-pushable": "^3.2.3", "it-stream-types": "^2.0.1", - "multiformats": "^13.0.1", + "multiformats": "^13.1.0", "progress-events": "^1.0.0", "uint8arraylist": "^2.4.8" } }, "node_modules/@libp2p/interface-internal": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/@libp2p/interface-internal/-/interface-internal-1.0.8.tgz", - "integrity": "sha512-NkUBnqzAAWDcg9n4uUtEpbtHg0gZjLhdBTwqJWkWuTujaCEz0xk5FfXBXgWqGEMIZAN73VX8/hLQCeigk3gUlg==", + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/@libp2p/interface-internal/-/interface-internal-1.0.9.tgz", + "integrity": "sha512-c5BzjXdRnuI+xjLiPjGMxh6QbU51wEIdz/OrgQqo2dKDjWz3Qu0due9H2wzzB8nvSNWTLHRr1ucVga3SrmbngQ==", "dependencies": { - "@libp2p/interface": "^1.1.3", - "@libp2p/peer-collections": "^5.1.6", + "@libp2p/interface": "^1.1.4", + "@libp2p/peer-collections": "^5.1.7", "@multiformats/multiaddr": "^12.1.14", "uint8arraylist": "^2.4.8" } @@ -3112,8 +2983,9 @@ } }, "node_modules/@libp2p/interface/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/@libp2p/interfaces": { "version": "3.3.2", @@ -3125,21 +2997,21 @@ } }, "node_modules/@libp2p/kad-dht": { - "version": "12.0.7", - "resolved": "https://registry.npmjs.org/@libp2p/kad-dht/-/kad-dht-12.0.7.tgz", - "integrity": "sha512-VmjTkUwLEsvev5Ld3LkHZCFoGhuPpyWjlkUomNj7eRAemsHM47fbr7O5fi7bObpEzlpwsbipA8cDLsdRe+9QDQ==", - "dependencies": { - "@libp2p/crypto": "^4.0.2", - "@libp2p/interface": "^1.1.3", - "@libp2p/interface-internal": "^1.0.8", - "@libp2p/peer-collections": "^5.1.6", - "@libp2p/peer-id": "^4.0.6", - "@libp2p/utils": "^5.2.5", + "version": "12.0.8", + "resolved": "https://registry.npmjs.org/@libp2p/kad-dht/-/kad-dht-12.0.8.tgz", + "integrity": "sha512-gre+NJ/CTTnhhjj1jgnJTbgduU4fiZ8tAwnIKdfATc0Hha1oakcW9jiVR5Od6NDuCBYwXJ5VX4bGoFUIJ2Vfrg==", + "dependencies": { + "@libp2p/crypto": "^4.0.3", + "@libp2p/interface": "^1.1.4", + "@libp2p/interface-internal": "^1.0.9", + "@libp2p/peer-collections": "^5.1.7", + "@libp2p/peer-id": "^4.0.7", + "@libp2p/utils": "^5.2.6", "@multiformats/multiaddr": "^12.1.14", "@types/sinon": "^17.0.3", "any-signal": "^4.1.1", "hashlru": "^2.3.0", - "interface-datastore": "^8.2.10", + "interface-datastore": "^8.2.11", "it-drain": "^3.0.5", "it-length": "^3.0.4", "it-length-prefixed": "^9.0.4", @@ -3150,7 +3022,7 @@ "it-protobuf-stream": "^1.1.2", "it-pushable": "^3.2.3", "it-take": "^3.0.4", - "multiformats": "^13.0.1", + "multiformats": "^13.1.0", "p-defer": "^4.0.0", "p-event": "^6.0.0", "p-queue": "^8.0.1", @@ -3159,7 +3031,7 @@ "race-signal": "^1.0.2", "uint8-varint": "^2.0.4", "uint8arraylist": "^2.4.8", - "uint8arrays": "^5.0.1" + "uint8arrays": "^5.0.2" } }, "node_modules/@libp2p/kad-dht/node_modules/multiformats": { @@ -3168,54 +3040,54 @@ "integrity": "sha512-HzdtdBwxsIkzpeXzhQ5mAhhuxcHbjEHH+JQoxt7hG/2HGFjjwyolLo7hbaexcnhoEuV4e0TNJ8kkpMjiEYY4VQ==" }, "node_modules/@libp2p/logger": { - "version": "4.0.6", - "resolved": "https://registry.npmjs.org/@libp2p/logger/-/logger-4.0.6.tgz", - "integrity": "sha512-ofTE3kDivBJnUSoX68nOeg1EuAnIE8oUjUnQnuKrxH+nh0JtjTcvwwIzjmm4nApwb4xj2dgPSDvU38Mjmu3TvA==", + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/@libp2p/logger/-/logger-4.0.7.tgz", + "integrity": "sha512-oyICns7G18S4eDhbFHUwZ7gLQnZTBVQtUMmMgEmrs8LnQu2GvXADxmQAPPkKtLNSCvRudg4hN3hP04Y+vNvlBQ==", "dependencies": { - "@libp2p/interface": "^1.1.3", + "@libp2p/interface": "^1.1.4", "@multiformats/multiaddr": "^12.1.14", "debug": "^4.3.4", - "interface-datastore": "^8.2.10", - "multiformats": "^13.0.1" + "interface-datastore": "^8.2.11", + "multiformats": "^13.1.0" } }, "node_modules/@libp2p/logger/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/peer-collections": { - "version": "5.1.6", - "resolved": "https://registry.npmjs.org/@libp2p/peer-collections/-/peer-collections-5.1.6.tgz", - "integrity": "sha512-n2Oav1GehdEToeALvSytuYw2wiwzMvbOUxyAFUfF6oqmZgNe9P8cOkyr0w2P0p0hXjdcIeIfDYeTvY4MeHZnjw==", + "version": "5.1.7", + "resolved": "https://registry.npmjs.org/@libp2p/peer-collections/-/peer-collections-5.1.7.tgz", + "integrity": "sha512-9XXWSJtC7XvbH32h2bK3fygyzd4B2/JeWzsjX8cUDtO69jKNiVJglB8UqajZBuwLZSOQG5aRNWK4RWXJDrsh/w==", "dependencies": { - "@libp2p/interface": "^1.1.3", - "@libp2p/peer-id": "^4.0.6" + "@libp2p/interface": "^1.1.4", + "@libp2p/peer-id": "^4.0.7" } }, "node_modules/@libp2p/peer-id": { - "version": "4.0.6", - "resolved": "https://registry.npmjs.org/@libp2p/peer-id/-/peer-id-4.0.6.tgz", - "integrity": "sha512-hAj2bdN+s/cCkiaLthuL412DqLeYZ83yRmbjZfHHJ8d3sV/M7NAxu2v8Zx+3KurFF8ICMoD7bb34IXHo7FH3kw==", + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/@libp2p/peer-id/-/peer-id-4.0.7.tgz", + "integrity": "sha512-kbslH0VBmcHO1Osr/qQlFljPOYuldUC6OdYM5c6Tdy+KFU/W4P9Ouv/4e7o3uX6LtlQ8QqIsZH+/bR6AJxC8Gw==", "dependencies": { - "@libp2p/interface": "^1.1.3", - "multiformats": "^13.0.1", - "uint8arrays": "^5.0.1" + "@libp2p/interface": "^1.1.4", + "multiformats": "^13.1.0", + "uint8arrays": "^5.0.2" } }, "node_modules/@libp2p/peer-id/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/utils": { - "version": "5.2.5", - "resolved": "https://registry.npmjs.org/@libp2p/utils/-/utils-5.2.5.tgz", - "integrity": "sha512-oMUrBvEFGD/74I3W3AhpV3pLx8CeEhxCpoJ9a0BTetoJ+TbU5DxxcWJGvhoq3RfQiUvZtg0IwJWNaiJ6lB2sdA==", + "version": "5.2.6", + "resolved": "https://registry.npmjs.org/@libp2p/utils/-/utils-5.2.6.tgz", + "integrity": "sha512-2Y2zi2TsyhOl+8TH27YZiEJWfdrKRogTzYRxQUKNTX03izXpUcwGsFLPjK7nR39LzYQrQ8si1Kx2ayA3zk7BKg==", "dependencies": { "@chainsafe/is-ip": "^2.0.2", - "@libp2p/interface": "^1.1.3", - "@libp2p/logger": "^4.0.6", + "@libp2p/interface": "^1.1.4", + "@libp2p/logger": "^4.0.7", "@multiformats/multiaddr": "^12.1.14", "@multiformats/multiaddr-matcher": "^1.1.2", "delay": "^6.0.0", @@ -3225,7 +3097,7 @@ "it-stream-types": "^2.0.1", "netmask": "^2.0.2", "p-defer": "^4.0.0", - "race-event": "^1.1.0", + "race-event": "^1.2.0", "race-signal": "^1.0.2", "uint8arraylist": "^2.4.8" } @@ -3239,14 +3111,6 @@ "npm": ">=7.0.0" } }, - "node_modules/@multiformats/mafmt": { - "version": "12.1.6", - "resolved": "https://registry.npmjs.org/@multiformats/mafmt/-/mafmt-12.1.6.tgz", - "integrity": "sha512-tlJRfL21X+AKn9b5i5VnaTD6bNttpSpcqwKVmDmSHLwxoz97fAHaepqFOk/l1fIu94nImIXneNbhsJx/RQNIww==", - "dependencies": { - "@multiformats/multiaddr": "^12.0.0" - } - }, "node_modules/@multiformats/multiaddr": { "version": "12.1.14", "resolved": "https://registry.npmjs.org/@multiformats/multiaddr/-/multiaddr-12.1.14.tgz", @@ -8448,22 +8312,22 @@ } }, "node_modules/datastore-core": { - "version": "9.2.7", - "license": "Apache-2.0 OR MIT", + "version": "9.2.9", + "resolved": "https://registry.npmjs.org/datastore-core/-/datastore-core-9.2.9.tgz", + "integrity": "sha512-wraWTPsbtdE7FFaVo3pwPuTB/zXsgwGGAm8BgBYwYAuzZCTS0MfXmd/HH1vR9s0/NFFjOVmBkGiWCvKxZ+QjVw==", "dependencies": { - "@libp2p/logger": "^4.0.1", + "@libp2p/logger": "^4.0.6", "err-code": "^3.0.1", + "interface-datastore": "^8.0.0", "interface-store": "^5.0.0", - "it-all": "^3.0.1", - "it-drain": "^3.0.1", - "it-filter": "^3.0.0", - "it-map": "^3.0.1", - "it-merge": "^3.0.1", - "it-pipe": "^3.0.0", - "it-pushable": "^3.0.0", - "it-sort": "^3.0.1", - "it-take": "^3.0.1", - "uint8arrays": "^5.0.0" + "it-drain": "^3.0.5", + "it-filter": "^3.0.4", + "it-map": "^3.0.5", + "it-merge": "^3.0.3", + "it-pipe": "^3.0.1", + "it-pushable": "^3.2.3", + "it-sort": "^3.0.4", + "it-take": "^3.0.4" } }, "node_modules/datastore-core/node_modules/it-sort": { @@ -12760,9 +12624,9 @@ } }, "node_modules/interface-store": { - "version": "5.1.7", - "resolved": "https://registry.npmjs.org/interface-store/-/interface-store-5.1.7.tgz", - "integrity": "sha512-DVMTgZ43NAdDtXL3QsEq8N0vuUYVBxiGbxN0uI0lrNasuX/CGSrU7bjOO2DaGTMNut4Pt3ae+VQYFvNtH4Oyeg==" + "version": "5.1.8", + "resolved": "https://registry.npmjs.org/interface-store/-/interface-store-5.1.8.tgz", + "integrity": "sha512-7na81Uxkl0vqk0CBPO5PvyTkdaJBaezwUJGsMOz7riPOq0rJt+7W31iaopaMICWea/iykUsvNlPx/Tc+MxC3/w==" }, "node_modules/internal-slot": { "version": "1.0.5", @@ -13167,27 +13031,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/is-ipfs": { - "version": "8.0.4", - "resolved": "https://registry.npmjs.org/is-ipfs/-/is-ipfs-8.0.4.tgz", - "integrity": "sha512-upkO6a8WgBSZMMmuPzmF2NQLWXtiJtHxdEfEiMWrOzCKoZ+XEiM0XlK4fFMfo/PyiRmPMJ4PsNrXyvJeqMrJXA==", - "dependencies": { - "@multiformats/mafmt": "^12.1.6", - "@multiformats/multiaddr": "^12.1.14", - "iso-url": "^1.1.3", - "multiformats": "^13.0.1", - "uint8arrays": "^5.0.1" - }, - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" - } - }, - "node_modules/is-ipfs/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/is-loopback-addr": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/is-loopback-addr/-/is-loopback-addr-2.0.2.tgz", @@ -13464,14 +13307,6 @@ "node": ">=10" } }, - "node_modules/iso-url": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/iso-url/-/iso-url-1.2.1.tgz", - "integrity": "sha512-9JPDgCN4B7QPkLtYAAOrEuAWvP9rWvR5offAr0/SeF046wIkglqH3VXgYYP6NcsKslH80UIVgmPqNe3j7tG2ng==", - "engines": { - "node": ">=12" - } - }, "node_modules/isobject": { "version": "3.0.1", "dev": true, @@ -20093,7 +19928,8 @@ }, "node_modules/observable-webworkers": { "version": "2.0.1", - "license": "Apache-2.0 OR MIT", + "resolved": "https://registry.npmjs.org/observable-webworkers/-/observable-webworkers-2.0.1.tgz", + "integrity": "sha512-JI1vB0u3pZjoQKOK1ROWzp0ygxSi7Yb0iR+7UNsw4/Zn4cQ0P3R7XL38zac/Dy2tEA7Lg88/wIJTjF8vYXZ0uw==", "engines": { "node": ">=16.0.0", "npm": ">=7.0.0" @@ -21890,8 +21726,9 @@ } }, "node_modules/race-event": { - "version": "1.1.0", - "license": "Apache-2.0 OR MIT" + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/race-event/-/race-event-1.2.0.tgz", + "integrity": "sha512-7EvAjTu9uuKa03Jky8yfSy6/SnnMTh6nouNmdeWv9b0dT8eDZC5ylx30cOR9YO9otQorVjjkIuSHQ5Ml/bKwMw==" }, "node_modules/race-signal": { "version": "1.0.2", diff --git a/package.json b/package.json index e9eb82c8..7155c4db 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,7 @@ "@helia/interface": "^4.0.0", "@helia/ipns": "^6.0.0", "@helia/routers": "^1.0.0", - "@helia/verified-fetch": "^0.0.0-6f8c15b", + "@helia/verified-fetch": "^1.1.0", "@libp2p/logger": "^4.0.6", "@sgtpooki/file-type": "^1.0.1", "blockstore-idb": "^1.1.8", diff --git a/src/lib/heliaFetch.ts b/src/lib/heliaFetch.ts index 133581d2..24135a61 100644 --- a/src/lib/heliaFetch.ts +++ b/src/lib/heliaFetch.ts @@ -137,9 +137,6 @@ export async function heliaFetch ({ path, helia, signal, headers, id, protocol } if (id != null && protocol != null) { verifiedFetchUrl = `${protocol}://${id}${path}` - - // eslint-disable-next-line no-console - console.log('subdomain fetch for ', verifiedFetchUrl) } else { const pathParts = path.split('/') @@ -157,9 +154,12 @@ export async function heliaFetch ({ path, helia, signal, headers, id, protocol } verifiedFetchUrl = `${namespaceString}://${pathRootString}/${changeCssFontPath(contentPath)}` } + // eslint-disable-next-line no-console + console.log('verifiedFetch for ', verifiedFetchUrl) return verifiedFetch(verifiedFetchUrl, { signal, headers, + // TODO redirect: 'manual', // enable when http urls are supported by verified-fetch: https://github.com/ipfs-shipyard/helia-service-worker-gateway/issues/62#issuecomment-1977661456 onProgress: (e) => { trace(`${e.type}: `, e.detail) }