@helia/routers 5.0.2 → 5.0.3-080e4f91
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.
|
@@ -6,7 +6,7 @@ import map from 'it-map';
|
|
|
6
6
|
import { CID } from 'multiformats/cid';
|
|
7
7
|
import { equals as uint8ArrayEquals } from 'uint8arrays/equals';
|
|
8
8
|
import { fromString as uint8ArrayFromString } from 'uint8arrays/from-string';
|
|
9
|
-
import { delegatedHTTPRoutingDefaults } from
|
|
9
|
+
import { delegatedHTTPRoutingDefaults } from "./utils/delegated-http-routing-defaults.js";
|
|
10
10
|
const IPNS_PREFIX = uint8ArrayFromString('/ipns/');
|
|
11
11
|
function isIPNSKey(key) {
|
|
12
12
|
return uint8ArrayEquals(key.subarray(0, IPNS_PREFIX.byteLength), IPNS_PREFIX);
|
package/dist/src/index.d.ts
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Abstraction layer over different content and peer routing mechanisms.
|
|
5
5
|
*/
|
|
6
|
-
export { delegatedHTTPRouting } from './delegated-http-routing.
|
|
7
|
-
export { delegatedHTTPRoutingDefaults } from './utils/delegated-http-routing-defaults.
|
|
8
|
-
export { httpGatewayRouting } from './http-gateway-routing.
|
|
9
|
-
export type { HTTPGatewayRouterInit } from './http-gateway-routing.
|
|
10
|
-
export { libp2pRouting } from './libp2p-routing.
|
|
6
|
+
export { delegatedHTTPRouting } from './delegated-http-routing.ts';
|
|
7
|
+
export { delegatedHTTPRoutingDefaults } from './utils/delegated-http-routing-defaults.ts';
|
|
8
|
+
export { httpGatewayRouting } from './http-gateway-routing.ts';
|
|
9
|
+
export type { HTTPGatewayRouterInit } from './http-gateway-routing.ts';
|
|
10
|
+
export { libp2pRouting } from './libp2p-routing.ts';
|
|
11
11
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/src/index.js
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Abstraction layer over different content and peer routing mechanisms.
|
|
5
5
|
*/
|
|
6
|
-
export { delegatedHTTPRouting } from
|
|
7
|
-
export { delegatedHTTPRoutingDefaults } from
|
|
8
|
-
export { httpGatewayRouting } from
|
|
9
|
-
export { libp2pRouting } from
|
|
6
|
+
export { delegatedHTTPRouting } from "./delegated-http-routing.js";
|
|
7
|
+
export { delegatedHTTPRoutingDefaults } from "./utils/delegated-http-routing-defaults.js";
|
|
8
|
+
export { httpGatewayRouting } from "./http-gateway-routing.js";
|
|
9
|
+
export { libp2pRouting } from "./libp2p-routing.js";
|
|
10
10
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@helia/routers",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.3-080e4f91",
|
|
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": "^6.0.0",
|
|
51
|
-
"@helia/interface": "
|
|
51
|
+
"@helia/interface": "6.1.1-080e4f91",
|
|
52
52
|
"@libp2p/interface": "^3.1.0",
|
|
53
53
|
"@libp2p/peer-id": "^6.0.3",
|
|
54
54
|
"@multiformats/uri-to-multiaddr": "^10.0.0",
|
|
@@ -6,7 +6,7 @@ import map from 'it-map'
|
|
|
6
6
|
import { CID } from 'multiformats/cid'
|
|
7
7
|
import { equals as uint8ArrayEquals } from 'uint8arrays/equals'
|
|
8
8
|
import { fromString as uint8ArrayFromString } from 'uint8arrays/from-string'
|
|
9
|
-
import { delegatedHTTPRoutingDefaults } from './utils/delegated-http-routing-defaults.
|
|
9
|
+
import { delegatedHTTPRoutingDefaults } from './utils/delegated-http-routing-defaults.ts'
|
|
10
10
|
import type { DelegatedRoutingV1HttpApiClient, DelegatedRoutingV1HttpApiClientComponents, DelegatedRoutingV1HttpApiClientInit } from '@helia/delegated-routing-v1-http-api-client'
|
|
11
11
|
import type { Provider, Routing, RoutingOptions } from '@helia/interface'
|
|
12
12
|
import type { PeerId, PeerInfo } from '@libp2p/interface'
|
package/src/index.ts
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Abstraction layer over different content and peer routing mechanisms.
|
|
5
5
|
*/
|
|
6
|
-
export { delegatedHTTPRouting } from './delegated-http-routing.
|
|
7
|
-
export { delegatedHTTPRoutingDefaults } from './utils/delegated-http-routing-defaults.
|
|
8
|
-
export { httpGatewayRouting } from './http-gateway-routing.
|
|
9
|
-
export type { HTTPGatewayRouterInit } from './http-gateway-routing.
|
|
10
|
-
export { libp2pRouting } from './libp2p-routing.
|
|
6
|
+
export { delegatedHTTPRouting } from './delegated-http-routing.ts'
|
|
7
|
+
export { delegatedHTTPRoutingDefaults } from './utils/delegated-http-routing-defaults.ts'
|
|
8
|
+
export { httpGatewayRouting } from './http-gateway-routing.ts'
|
|
9
|
+
export type { HTTPGatewayRouterInit } from './http-gateway-routing.ts'
|
|
10
|
+
export { libp2pRouting } from './libp2p-routing.ts'
|
package/dist/typedoc-urls.json
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
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
|
-
}
|