@helia/http 3.0.14-b0033ca2 → 3.0.15
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { delegatedRoutingV1HttpApiClient } from '@helia/delegated-routing-v1-http-api-client';
|
|
2
2
|
import { keychain } from '@libp2p/keychain';
|
|
3
3
|
import { userAgent } from 'libp2p/user-agent';
|
|
4
4
|
export function libp2pDefaults(options = {}) {
|
|
@@ -17,7 +17,8 @@ export function libp2pDefaults(options = {}) {
|
|
|
17
17
|
streamMuxers: [],
|
|
18
18
|
peerDiscovery: [],
|
|
19
19
|
services: {
|
|
20
|
-
delegatedRouting: (
|
|
20
|
+
delegatedRouting: delegatedRoutingV1HttpApiClient({
|
|
21
|
+
url: 'https://delegated-ipfs.dev',
|
|
21
22
|
filterAddrs: ['https'],
|
|
22
23
|
filterProtocols: ['transport-ipfs-gateway-http']
|
|
23
24
|
}),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"libp2p-defaults.js","sourceRoot":"","sources":["../../../src/utils/libp2p-defaults.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"libp2p-defaults.js","sourceRoot":"","sources":["../../../src/utils/libp2p-defaults.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+BAA+B,EAAE,MAAM,6CAA6C,CAAA;AAC7F,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAU7C,MAAM,UAAU,cAAc,CAAE,UAAoC,EAAE;IACpE,MAAM,YAAY,GAAG,eAAe,SAAS,EAAE,EAAE,CAAA;IAEjD,OAAO;QACL,UAAU,EAAE,OAAO,CAAC,UAAU;QAC9B,GAAG,EAAE,OAAO,CAAC,GAAG;QAChB,QAAQ,EAAE;YACR,SAAS,EAAE,YAAY;SACxB;QACD,SAAS,EAAE;YACT,MAAM,EAAE,EAAE;SACX;QACD,UAAU,EAAE,EAAE;QACd,oBAAoB,EAAE,EAAE;QACxB,YAAY,EAAE,EAAE;QAChB,aAAa,EAAE,EAAE;QACjB,QAAQ,EAAE;YACR,gBAAgB,EAAE,+BAA+B,CAAC;gBAChD,GAAG,EAAE,4BAA4B;gBACjC,WAAW,EAAE,CAAC,OAAO,CAAC;gBACtB,eAAe,EAAE,CAAC,6BAA6B,CAAC;aACjD,CAAC;YACF,QAAQ,EAAE,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC;SACrC;KACF,CAAA;AACH,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"DefaultLibp2pHTTPServices": "https://ipfs.github.io/helia/interfaces/_helia_http.DefaultLibp2pHTTPServices.html",
|
|
3
|
+
"Libp2pHTTPDefaultOptions": "https://ipfs.github.io/helia/interfaces/_helia_http.Libp2pHTTPDefaultOptions.html",
|
|
4
|
+
"HeliaHTTPInit": "https://ipfs.github.io/helia/types/_helia_http.HeliaHTTPInit.html",
|
|
5
|
+
".:HeliaHTTPInit": "https://ipfs.github.io/helia/types/_helia_http.HeliaHTTPInit.html",
|
|
6
|
+
"createHeliaHTTP": "https://ipfs.github.io/helia/functions/_helia_http.createHeliaHTTP.html",
|
|
7
|
+
".:createHeliaHTTP": "https://ipfs.github.io/helia/functions/_helia_http.createHeliaHTTP.html",
|
|
8
|
+
"heliaDefaults": "https://ipfs.github.io/helia/functions/_helia_http.heliaDefaults.html",
|
|
9
|
+
".:heliaDefaults": "https://ipfs.github.io/helia/functions/_helia_http.heliaDefaults.html"
|
|
10
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@helia/http",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.15",
|
|
4
4
|
"description": "A lightweight implementation of IPFS over HTTP in JavaScript",
|
|
5
5
|
"license": "Apache-2.0 OR MIT",
|
|
6
6
|
"homepage": "https://github.com/ipfs/helia/tree/main/packages/http#readme",
|
|
@@ -47,11 +47,11 @@
|
|
|
47
47
|
"test:electron-main": "aegir test -t electron-main"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@helia/block-brokers": "5.0.
|
|
50
|
+
"@helia/block-brokers": "^5.0.14",
|
|
51
51
|
"@helia/delegated-routing-v1-http-api-client": "^5.1.2",
|
|
52
|
-
"@helia/interface": "6.0.2
|
|
53
|
-
"@helia/routers": "4.0.
|
|
54
|
-
"@helia/utils": "2.3.
|
|
52
|
+
"@helia/interface": "^6.0.2",
|
|
53
|
+
"@helia/routers": "^4.0.6",
|
|
54
|
+
"@helia/utils": "^2.3.4",
|
|
55
55
|
"@libp2p/config": "^1.1.20",
|
|
56
56
|
"@libp2p/interface": "^3.1.0",
|
|
57
57
|
"@libp2p/keychain": "^6.0.5",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { delegatedRoutingV1HttpApiClient } from '@helia/delegated-routing-v1-http-api-client'
|
|
2
2
|
import { keychain } from '@libp2p/keychain'
|
|
3
3
|
import { userAgent } from 'libp2p/user-agent'
|
|
4
4
|
import type { Libp2pHTTPDefaultOptions } from './libp2p.js'
|
|
@@ -27,11 +27,11 @@ export function libp2pDefaults (options: Libp2pHTTPDefaultOptions = {}): Libp2pO
|
|
|
27
27
|
streamMuxers: [],
|
|
28
28
|
peerDiscovery: [],
|
|
29
29
|
services: {
|
|
30
|
-
delegatedRouting: (
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
30
|
+
delegatedRouting: delegatedRoutingV1HttpApiClient({
|
|
31
|
+
url: 'https://delegated-ipfs.dev',
|
|
32
|
+
filterAddrs: ['https'],
|
|
33
|
+
filterProtocols: ['transport-ipfs-gateway-http']
|
|
34
|
+
}),
|
|
35
35
|
keychain: keychain(options.keychain)
|
|
36
36
|
}
|
|
37
37
|
}
|