@helia/http 3.0.21 → 3.0.22-44910cef
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 +3 -3
- package/dist/index.min.js.map +3 -3
- package/dist/src/index.d.ts +1 -1
- package/dist/src/utils/libp2p-defaults.d.ts +1 -1
- package/dist/src/utils/libp2p.js +1 -1
- package/package.json +5 -5
- package/src/index.ts +1 -1
- package/src/utils/libp2p-defaults.ts +1 -1
- package/src/utils/libp2p.ts +1 -1
- package/dist/typedoc-urls.json +0 -10
package/dist/src/index.d.ts
CHANGED
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
* ```
|
|
47
47
|
*/
|
|
48
48
|
import type { DefaultLibp2pHTTPServices } from './utils/libp2p-defaults.ts';
|
|
49
|
-
import type { Libp2pHTTPDefaultOptions } from './utils/libp2p.
|
|
49
|
+
import type { Libp2pHTTPDefaultOptions } from './utils/libp2p.ts';
|
|
50
50
|
import type { Helia } from '@helia/interface';
|
|
51
51
|
import type { HeliaInit } from '@helia/utils';
|
|
52
52
|
import type { Libp2p } from '@libp2p/interface';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Libp2pHTTPDefaultOptions } from './libp2p.
|
|
1
|
+
import type { Libp2pHTTPDefaultOptions } from './libp2p.ts';
|
|
2
2
|
import type { Keychain } from '@libp2p/keychain';
|
|
3
3
|
import type { Libp2pOptions } from 'libp2p';
|
|
4
4
|
export interface DefaultLibp2pHTTPServices extends Record<string, unknown> {
|
package/dist/src/utils/libp2p.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { loadOrCreateSelfKey } from '@libp2p/config';
|
|
2
2
|
import { createLibp2p as create } from 'libp2p';
|
|
3
|
-
import { libp2pDefaults } from
|
|
3
|
+
import { libp2pDefaults } from "./libp2p-defaults.js";
|
|
4
4
|
export async function createLibp2p(options) {
|
|
5
5
|
const libp2pOptions = options.libp2p ?? {};
|
|
6
6
|
// if no peer id was passed, try to load it from the keychain
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@helia/http",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.22-44910cef",
|
|
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": "
|
|
50
|
+
"@helia/block-brokers": "5.1.4-44910cef",
|
|
51
51
|
"@helia/delegated-routing-v1-http-api-client": "^6.0.0",
|
|
52
|
-
"@helia/interface": "
|
|
53
|
-
"@helia/routers": "
|
|
54
|
-
"@helia/utils": "
|
|
52
|
+
"@helia/interface": "6.1.1-44910cef",
|
|
53
|
+
"@helia/routers": "5.0.3-44910cef",
|
|
54
|
+
"@helia/utils": "2.4.2-44910cef",
|
|
55
55
|
"@libp2p/config": "^1.1.20",
|
|
56
56
|
"@libp2p/interface": "^3.1.0",
|
|
57
57
|
"@libp2p/keychain": "^6.0.5",
|
package/src/index.ts
CHANGED
|
@@ -54,7 +54,7 @@ import { MemoryDatastore } from 'datastore-core'
|
|
|
54
54
|
import { isLibp2p } from 'libp2p'
|
|
55
55
|
import { createLibp2p } from './utils/libp2p.ts'
|
|
56
56
|
import type { DefaultLibp2pHTTPServices } from './utils/libp2p-defaults.ts'
|
|
57
|
-
import type { Libp2pHTTPDefaultOptions } from './utils/libp2p.
|
|
57
|
+
import type { Libp2pHTTPDefaultOptions } from './utils/libp2p.ts'
|
|
58
58
|
import type { Helia } from '@helia/interface'
|
|
59
59
|
import type { HeliaInit } from '@helia/utils'
|
|
60
60
|
import type { Libp2p } from '@libp2p/interface'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
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
|
-
import type { Libp2pHTTPDefaultOptions } from './libp2p.
|
|
4
|
+
import type { Libp2pHTTPDefaultOptions } from './libp2p.ts'
|
|
5
5
|
import type { Keychain } from '@libp2p/keychain'
|
|
6
6
|
import type { Libp2pOptions } from 'libp2p'
|
|
7
7
|
|
package/src/utils/libp2p.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { loadOrCreateSelfKey } from '@libp2p/config'
|
|
2
2
|
import { createLibp2p as create } from 'libp2p'
|
|
3
|
-
import { libp2pDefaults } from './libp2p-defaults.
|
|
3
|
+
import { libp2pDefaults } from './libp2p-defaults.ts'
|
|
4
4
|
import type { ComponentLogger, Libp2p, PrivateKey } from '@libp2p/interface'
|
|
5
5
|
import type { KeychainInit } from '@libp2p/keychain'
|
|
6
6
|
import type { DNS } from '@multiformats/dns'
|
package/dist/typedoc-urls.json
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
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
|
-
}
|