@helia/routers 3.0.1-313e2c1 → 3.0.1-bb2ab74
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -4,9 +4,9 @@ import { CID } from 'multiformats/cid';
|
|
|
4
4
|
import { identity } from 'multiformats/hashes/identity';
|
|
5
5
|
import { fromString as uint8ArrayFromString } from 'uint8arrays/from-string';
|
|
6
6
|
export const DEFAULT_TRUSTLESS_GATEWAYS = [
|
|
7
|
-
// 2023-10-03: IPNS, Origin, and Block/CAR support from https://ipfs
|
|
7
|
+
// 2023-10-03: IPNS, Origin, and Block/CAR support from https://ipfs.github.io/public-gateway-checker/
|
|
8
8
|
'https://trustless-gateway.link',
|
|
9
|
-
// 2023-10-03: IPNS, Origin, and Block/CAR support from https://ipfs
|
|
9
|
+
// 2023-10-03: IPNS, Origin, and Block/CAR support from https://ipfs.github.io/public-gateway-checker/
|
|
10
10
|
'https://4everland.io'
|
|
11
11
|
];
|
|
12
12
|
// this value is from https://github.com/multiformats/multicodec/blob/master/table.csv
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http-gateway-routing.js","sourceRoot":"","sources":["../../src/http-gateway-routing.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAC/D,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAA;AACvD,OAAO,EAAE,UAAU,IAAI,oBAAoB,EAAE,MAAM,yBAAyB,CAAA;AAK5E,MAAM,CAAC,MAAM,0BAA0B,GAAG;IACxC,
|
|
1
|
+
{"version":3,"file":"http-gateway-routing.js","sourceRoot":"","sources":["../../src/http-gateway-routing.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/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CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YAC5D,CAAC,CAAC,IAAI,CAAC,QAAQ,CAChB,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;YACb,GAAG,IAAI;YACP,SAAS,EAAE,CAAC,6BAA6B,CAAC;SAC3C,CAAC,CAAC,CAAA;IACL,CAAC;CACF;AAED;;GAEG;AACH,MAAM,UAAU,kBAAkB,CAAE,OAA8B,EAAE;IAClE,OAAO,IAAI,iBAAiB,CAAC,IAAI,CAAC,CAAA;AACpC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@helia/routers",
|
|
3
|
-
"version": "3.0.1-
|
|
3
|
+
"version": "3.0.1-bb2ab74",
|
|
4
4
|
"description": "Routers for Helia",
|
|
5
5
|
"license": "Apache-2.0 OR MIT",
|
|
6
6
|
"homepage": "https://github.com/ipfs/helia/tree/main/packages/routers#readme",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
57
|
"@helia/delegated-routing-v1-http-api-client": "^4.2.1",
|
|
58
|
-
"@helia/interface": "5.2.1-
|
|
58
|
+
"@helia/interface": "5.2.1-bb2ab74",
|
|
59
59
|
"@libp2p/interface": "^2.2.1",
|
|
60
60
|
"@libp2p/peer-id": "^5.0.8",
|
|
61
61
|
"@multiformats/uri-to-multiaddr": "^8.0.0",
|
|
@@ -8,10 +8,10 @@ import type { PeerInfo } from '@libp2p/interface'
|
|
|
8
8
|
import type { Version } from 'multiformats'
|
|
9
9
|
|
|
10
10
|
export const DEFAULT_TRUSTLESS_GATEWAYS = [
|
|
11
|
-
// 2023-10-03: IPNS, Origin, and Block/CAR support from https://ipfs
|
|
11
|
+
// 2023-10-03: IPNS, Origin, and Block/CAR support from https://ipfs.github.io/public-gateway-checker/
|
|
12
12
|
'https://trustless-gateway.link',
|
|
13
13
|
|
|
14
|
-
// 2023-10-03: IPNS, Origin, and Block/CAR support from https://ipfs
|
|
14
|
+
// 2023-10-03: IPNS, Origin, and Block/CAR support from https://ipfs.github.io/public-gateway-checker/
|
|
15
15
|
'https://4everland.io'
|
|
16
16
|
]
|
|
17
17
|
|