@helia/routers 2.0.0-efc47fa → 2.1.0-aecac3d
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 +14 -14
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +1 -0
- package/dist/src/index.js.map +1 -1
- package/dist/src/utils/delegated-http-routing-defaults.browser.js +1 -1
- package/dist/src/utils/delegated-http-routing-defaults.browser.js.map +1 -1
- package/dist/src/utils/delegated-http-routing-defaults.js +1 -1
- package/dist/src/utils/delegated-http-routing-defaults.js.map +1 -1
- package/package.json +3 -3
- package/src/index.ts +1 -0
- package/src/utils/delegated-http-routing-defaults.browser.ts +1 -1
- package/src/utils/delegated-http-routing-defaults.ts +1 -1
package/dist/src/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* Abstraction layer over different content and peer routing mechanisms.
|
|
5
5
|
*/
|
|
6
6
|
export { delegatedHTTPRouting } from './delegated-http-routing.js';
|
|
7
|
+
export { delegatedHTTPRoutingDefaults } from './utils/delegated-http-routing-defaults.js';
|
|
7
8
|
export { httpGatewayRouting } from './http-gateway-routing.js';
|
|
8
9
|
export type { HTTPGatwayRouterInit } from './http-gateway-routing.js';
|
|
9
10
|
export { libp2pRouting } from './libp2p-routing.js';
|
package/dist/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAA;AAClE,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;AAC9D,YAAY,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAA;AACrE,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAA;AAClE,OAAO,EAAE,4BAA4B,EAAE,MAAM,4CAA4C,CAAA;AACzF,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;AAC9D,YAAY,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAA;AACrE,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA"}
|
package/dist/src/index.js
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* Abstraction layer over different content and peer routing mechanisms.
|
|
5
5
|
*/
|
|
6
6
|
export { delegatedHTTPRouting } from './delegated-http-routing.js';
|
|
7
|
+
export { delegatedHTTPRoutingDefaults } from './utils/delegated-http-routing-defaults.js';
|
|
7
8
|
export { httpGatewayRouting } from './http-gateway-routing.js';
|
|
8
9
|
export { libp2pRouting } from './libp2p-routing.js';
|
|
9
10
|
//# sourceMappingURL=index.js.map
|
package/dist/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAA;AAClE,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;AAE9D,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAA;AAClE,OAAO,EAAE,4BAA4B,EAAE,MAAM,4CAA4C,CAAA;AACzF,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;AAE9D,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export function delegatedHTTPRoutingDefaults() {
|
|
2
2
|
return {
|
|
3
3
|
filterProtocols: ['unknown', 'transport-bitswap', 'transport-ipfs-gateway-http'],
|
|
4
|
-
filterAddrs: ['https', 'webtransport', 'webrtc', 'webrtc-direct', 'wss']
|
|
4
|
+
filterAddrs: ['https', 'webtransport', 'webrtc', 'webrtc-direct', 'wss', 'tls']
|
|
5
5
|
};
|
|
6
6
|
}
|
|
7
7
|
//# sourceMappingURL=delegated-http-routing-defaults.browser.js.map
|
|
@@ -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;IAC1C,OAAO;QACL,eAAe,EAAE,CAAC,SAAS,EAAE,mBAAmB,EAAE,6BAA6B,CAAC;QAChF,WAAW,EAAE,CAAC,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,eAAe,EAAE,KAAK,CAAC;
|
|
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;IAC1C,OAAO;QACL,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,7 +1,7 @@
|
|
|
1
1
|
export function delegatedHTTPRoutingDefaults() {
|
|
2
2
|
return {
|
|
3
3
|
filterProtocols: ['unknown', 'transport-bitswap', 'transport-ipfs-gateway-http'],
|
|
4
|
-
filterAddrs: ['https', 'tcp', 'webrtc', 'webrtc-direct', 'wss']
|
|
4
|
+
filterAddrs: ['https', 'tcp', 'webrtc', 'webrtc-direct', 'wss', 'tls']
|
|
5
5
|
};
|
|
6
6
|
}
|
|
7
7
|
//# 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;IAC1C,OAAO;QACL,eAAe,EAAE,CAAC,SAAS,EAAE,mBAAmB,EAAE,6BAA6B,CAAC;QAChF,WAAW,EAAE,CAAC,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,eAAe,EAAE,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"delegated-http-routing-defaults.js","sourceRoot":"","sources":["../../../src/utils/delegated-http-routing-defaults.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,4BAA4B;IAC1C,OAAO;QACL,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;KACvE,CAAA;AACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@helia/routers",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.0-aecac3d",
|
|
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.1.0",
|
|
58
|
-
"@helia/interface": "5.0.0-
|
|
58
|
+
"@helia/interface": "5.0.0-aecac3d",
|
|
59
59
|
"@libp2p/peer-id": "^5.0.0",
|
|
60
60
|
"@libp2p/interface": "^2.0.0",
|
|
61
61
|
"@multiformats/uri-to-multiaddr": "^8.0.0",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"@libp2p/crypto": "^5.0.0",
|
|
70
|
-
"aegir": "^
|
|
70
|
+
"aegir": "^45.0.1",
|
|
71
71
|
"it-all": "^3.0.4",
|
|
72
72
|
"it-drain": "^3.0.5",
|
|
73
73
|
"sinon-ts": "^2.0.0"
|
package/src/index.ts
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* Abstraction layer over different content and peer routing mechanisms.
|
|
5
5
|
*/
|
|
6
6
|
export { delegatedHTTPRouting } from './delegated-http-routing.js'
|
|
7
|
+
export { delegatedHTTPRoutingDefaults } from './utils/delegated-http-routing-defaults.js'
|
|
7
8
|
export { httpGatewayRouting } from './http-gateway-routing.js'
|
|
8
9
|
export type { HTTPGatwayRouterInit } from './http-gateway-routing.js'
|
|
9
10
|
export { libp2pRouting } from './libp2p-routing.js'
|
|
@@ -3,6 +3,6 @@ import type { DelegatedRoutingV1HttpApiClientInit } from '@helia/delegated-routi
|
|
|
3
3
|
export function delegatedHTTPRoutingDefaults (): DelegatedRoutingV1HttpApiClientInit {
|
|
4
4
|
return {
|
|
5
5
|
filterProtocols: ['unknown', 'transport-bitswap', 'transport-ipfs-gateway-http'],
|
|
6
|
-
filterAddrs: ['https', 'webtransport', 'webrtc', 'webrtc-direct', 'wss']
|
|
6
|
+
filterAddrs: ['https', 'webtransport', 'webrtc', 'webrtc-direct', 'wss', 'tls']
|
|
7
7
|
}
|
|
8
8
|
}
|
|
@@ -3,6 +3,6 @@ import type { DelegatedRoutingV1HttpApiClientInit } from '@helia/delegated-routi
|
|
|
3
3
|
export function delegatedHTTPRoutingDefaults (): DelegatedRoutingV1HttpApiClientInit {
|
|
4
4
|
return {
|
|
5
5
|
filterProtocols: ['unknown', 'transport-bitswap', 'transport-ipfs-gateway-http'],
|
|
6
|
-
filterAddrs: ['https', 'tcp', 'webrtc', 'webrtc-direct', 'wss']
|
|
6
|
+
filterAddrs: ['https', 'tcp', 'webrtc', 'webrtc-direct', 'wss', 'tls']
|
|
7
7
|
}
|
|
8
8
|
}
|