@helia/routers 4.0.5-e27aa2de → 4.0.6
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.
- package/dist/index.min.js +13 -13
- package/dist/index.min.js.map +4 -4
- package/dist/src/utils/delegated-http-routing-defaults.browser.d.ts +3 -1
- package/dist/src/utils/delegated-http-routing-defaults.browser.d.ts.map +1 -1
- package/dist/src/utils/delegated-http-routing-defaults.browser.js +2 -1
- package/dist/src/utils/delegated-http-routing-defaults.browser.js.map +1 -1
- package/dist/src/utils/delegated-http-routing-defaults.d.ts +3 -1
- package/dist/src/utils/delegated-http-routing-defaults.d.ts.map +1 -1
- package/dist/src/utils/delegated-http-routing-defaults.js +4 -2
- package/dist/src/utils/delegated-http-routing-defaults.js.map +1 -1
- package/dist/typedoc-urls.json +7 -0
- package/package.json +2 -2
- package/src/utils/delegated-http-routing-defaults.browser.ts +2 -1
- package/src/utils/delegated-http-routing-defaults.ts +4 -2
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
import type { DelegatedRoutingV1HttpApiClientInit } from '@helia/delegated-routing-v1-http-api-client';
|
|
2
|
-
export declare function delegatedHTTPRoutingDefaults(): DelegatedRoutingV1HttpApiClientInit
|
|
2
|
+
export declare function delegatedHTTPRoutingDefaults(init?: DelegatedRoutingV1HttpApiClientInit): DelegatedRoutingV1HttpApiClientInit & {
|
|
3
|
+
url: string;
|
|
4
|
+
};
|
|
3
5
|
//# sourceMappingURL=delegated-http-routing-defaults.browser.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delegated-http-routing-defaults.browser.d.ts","sourceRoot":"","sources":["../../../src/utils/delegated-http-routing-defaults.browser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mCAAmC,EAAE,MAAM,6CAA6C,CAAA;AAEtG,wBAAgB,4BAA4B,
|
|
1
|
+
{"version":3,"file":"delegated-http-routing-defaults.browser.d.ts","sourceRoot":"","sources":["../../../src/utils/delegated-http-routing-defaults.browser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mCAAmC,EAAE,MAAM,6CAA6C,CAAA;AAEtG,wBAAgB,4BAA4B,CAAE,IAAI,CAAC,EAAE,mCAAmC,GAAG,mCAAmC,GAAG;IAAE,GAAG,EAAE,MAAM,CAAA;CAAE,CAM/I"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export function delegatedHTTPRoutingDefaults() {
|
|
1
|
+
export function delegatedHTTPRoutingDefaults(init) {
|
|
2
2
|
return {
|
|
3
|
+
url: 'https://delegated-ipfs.dev',
|
|
3
4
|
filterProtocols: ['unknown', 'transport-bitswap', 'transport-ipfs-gateway-http'],
|
|
4
5
|
filterAddrs: ['https', 'webtransport', 'webrtc', 'webrtc-direct', 'wss', 'tls']
|
|
5
6
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delegated-http-routing-defaults.browser.js","sourceRoot":"","sources":["../../../src/utils/delegated-http-routing-defaults.browser.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,4BAA4B;
|
|
1
|
+
{"version":3,"file":"delegated-http-routing-defaults.browser.js","sourceRoot":"","sources":["../../../src/utils/delegated-http-routing-defaults.browser.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,4BAA4B,CAAE,IAA0C;IACtF,OAAO;QACL,GAAG,EAAE,4BAA4B;QACjC,eAAe,EAAE,CAAC,SAAS,EAAE,mBAAmB,EAAE,6BAA6B,CAAC;QAChF,WAAW,EAAE,CAAC,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,eAAe,EAAE,KAAK,EAAE,KAAK,CAAC;KAChF,CAAA;AACH,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
import type { DelegatedRoutingV1HttpApiClientInit } from '@helia/delegated-routing-v1-http-api-client';
|
|
2
|
-
export declare function delegatedHTTPRoutingDefaults(): DelegatedRoutingV1HttpApiClientInit
|
|
2
|
+
export declare function delegatedHTTPRoutingDefaults(init?: DelegatedRoutingV1HttpApiClientInit): DelegatedRoutingV1HttpApiClientInit & {
|
|
3
|
+
url: string;
|
|
4
|
+
};
|
|
3
5
|
//# sourceMappingURL=delegated-http-routing-defaults.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delegated-http-routing-defaults.d.ts","sourceRoot":"","sources":["../../../src/utils/delegated-http-routing-defaults.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mCAAmC,EAAE,MAAM,6CAA6C,CAAA;AAEtG,wBAAgB,4BAA4B,
|
|
1
|
+
{"version":3,"file":"delegated-http-routing-defaults.d.ts","sourceRoot":"","sources":["../../../src/utils/delegated-http-routing-defaults.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mCAAmC,EAAE,MAAM,6CAA6C,CAAA;AAEtG,wBAAgB,4BAA4B,CAAE,IAAI,CAAC,EAAE,mCAAmC,GAAG,mCAAmC,GAAG;IAAE,GAAG,EAAE,MAAM,CAAA;CAAE,CAO/I"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
export function delegatedHTTPRoutingDefaults() {
|
|
1
|
+
export function delegatedHTTPRoutingDefaults(init) {
|
|
2
2
|
return {
|
|
3
|
+
url: 'https://delegated-ipfs.dev',
|
|
3
4
|
filterProtocols: ['unknown', 'transport-bitswap', 'transport-ipfs-gateway-http'],
|
|
4
|
-
filterAddrs: ['https', 'tcp', 'webrtc', 'webrtc-direct', 'wss', 'tls']
|
|
5
|
+
filterAddrs: ['https', 'tcp', 'webrtc', 'webrtc-direct', 'wss', 'tls'],
|
|
6
|
+
...(init ?? {})
|
|
5
7
|
};
|
|
6
8
|
}
|
|
7
9
|
//# sourceMappingURL=delegated-http-routing-defaults.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delegated-http-routing-defaults.js","sourceRoot":"","sources":["../../../src/utils/delegated-http-routing-defaults.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,4BAA4B;
|
|
1
|
+
{"version":3,"file":"delegated-http-routing-defaults.js","sourceRoot":"","sources":["../../../src/utils/delegated-http-routing-defaults.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,4BAA4B,CAAE,IAA0C;IACtF,OAAO;QACL,GAAG,EAAE,4BAA4B;QACjC,eAAe,EAAE,CAAC,SAAS,EAAE,mBAAmB,EAAE,6BAA6B,CAAC;QAChF,WAAW,EAAE,CAAC,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,eAAe,EAAE,KAAK,EAAE,KAAK,CAAC;QACtE,GAAG,CAAC,IAAI,IAAI,EAAE,CAAC;KAChB,CAAA;AACH,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"HTTPGatewayRouterInit": "https://ipfs.github.io/helia/interfaces/_helia_routers.HTTPGatewayRouterInit.html",
|
|
3
|
+
"delegatedHTTPRouting": "https://ipfs.github.io/helia/functions/_helia_routers.delegatedHTTPRouting.html",
|
|
4
|
+
"delegatedHTTPRoutingDefaults": "https://ipfs.github.io/helia/functions/_helia_routers.delegatedHTTPRoutingDefaults.html",
|
|
5
|
+
"httpGatewayRouting": "https://ipfs.github.io/helia/functions/_helia_routers.httpGatewayRouting.html",
|
|
6
|
+
"libp2pRouting": "https://ipfs.github.io/helia/functions/_helia_routers.libp2pRouting.html"
|
|
7
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@helia/routers",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.6",
|
|
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",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"@helia/delegated-routing-v1-http-api-client": "^5.1.2",
|
|
51
|
-
"@helia/interface": "6.0.2
|
|
51
|
+
"@helia/interface": "^6.0.2",
|
|
52
52
|
"@libp2p/interface": "^3.1.0",
|
|
53
53
|
"@libp2p/logger": "^6.2.0",
|
|
54
54
|
"@libp2p/peer-id": "^6.0.3",
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { DelegatedRoutingV1HttpApiClientInit } from '@helia/delegated-routing-v1-http-api-client'
|
|
2
2
|
|
|
3
|
-
export function delegatedHTTPRoutingDefaults (): DelegatedRoutingV1HttpApiClientInit {
|
|
3
|
+
export function delegatedHTTPRoutingDefaults (init?: DelegatedRoutingV1HttpApiClientInit): DelegatedRoutingV1HttpApiClientInit & { url: string } {
|
|
4
4
|
return {
|
|
5
|
+
url: 'https://delegated-ipfs.dev',
|
|
5
6
|
filterProtocols: ['unknown', 'transport-bitswap', 'transport-ipfs-gateway-http'],
|
|
6
7
|
filterAddrs: ['https', 'webtransport', 'webrtc', 'webrtc-direct', 'wss', 'tls']
|
|
7
8
|
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import type { DelegatedRoutingV1HttpApiClientInit } from '@helia/delegated-routing-v1-http-api-client'
|
|
2
2
|
|
|
3
|
-
export function delegatedHTTPRoutingDefaults (): DelegatedRoutingV1HttpApiClientInit {
|
|
3
|
+
export function delegatedHTTPRoutingDefaults (init?: DelegatedRoutingV1HttpApiClientInit): DelegatedRoutingV1HttpApiClientInit & { url: string } {
|
|
4
4
|
return {
|
|
5
|
+
url: 'https://delegated-ipfs.dev',
|
|
5
6
|
filterProtocols: ['unknown', 'transport-bitswap', 'transport-ipfs-gateway-http'],
|
|
6
|
-
filterAddrs: ['https', 'tcp', 'webrtc', 'webrtc-direct', 'wss', 'tls']
|
|
7
|
+
filterAddrs: ['https', 'tcp', 'webrtc', 'webrtc-direct', 'wss', 'tls'],
|
|
8
|
+
...(init ?? {})
|
|
7
9
|
}
|
|
8
10
|
}
|