helia 6.0.21 → 6.0.22
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 +4 -4
- package/dist/index.min.js.map +3 -3
- package/dist/src/index.d.ts +4 -4
- package/dist/src/index.js +2 -2
- package/dist/src/utils/helia-defaults.js +1 -1
- package/dist/src/utils/libp2p-defaults.browser.d.ts +1 -1
- package/dist/src/utils/libp2p-defaults.browser.js +2 -2
- package/dist/src/utils/libp2p-defaults.d.ts +1 -1
- package/dist/src/utils/libp2p-defaults.js +2 -2
- package/dist/src/utils/libp2p.js +1 -1
- package/dist/src/version.d.ts +1 -1
- package/dist/src/version.js +1 -1
- package/package.json +2 -2
- package/src/index.ts +4 -4
- package/src/utils/helia-defaults.ts +2 -2
- package/src/utils/libp2p-defaults.browser.ts +3 -3
- package/src/utils/libp2p-defaults.ts +3 -3
- package/src/utils/libp2p.ts +1 -1
- package/src/version.ts +1 -1
package/dist/src/index.d.ts
CHANGED
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
* fs.cat(CID.parse('bafyFoo'))
|
|
19
19
|
* ```
|
|
20
20
|
*/
|
|
21
|
-
import { heliaDefaults } from './utils/helia-defaults.
|
|
22
|
-
import { libp2pDefaults } from './utils/libp2p-defaults.
|
|
23
|
-
import type { DefaultLibp2pServices } from './utils/libp2p-defaults.
|
|
24
|
-
import type { Libp2pDefaultsOptions } from './utils/libp2p.
|
|
21
|
+
import { heliaDefaults } from './utils/helia-defaults.ts';
|
|
22
|
+
import { libp2pDefaults } from './utils/libp2p-defaults.ts';
|
|
23
|
+
import type { DefaultLibp2pServices } from './utils/libp2p-defaults.ts';
|
|
24
|
+
import type { Libp2pDefaultsOptions } from './utils/libp2p.ts';
|
|
25
25
|
import type { Helia } from '@helia/interface';
|
|
26
26
|
import type { HeliaInit } from '@helia/utils';
|
|
27
27
|
import type { Libp2p } from '@libp2p/interface';
|
package/dist/src/index.js
CHANGED
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
* ```
|
|
20
20
|
*/
|
|
21
21
|
import { Helia as HeliaClass } from '@helia/utils';
|
|
22
|
-
import { heliaDefaults } from
|
|
23
|
-
import { libp2pDefaults } from
|
|
22
|
+
import { heliaDefaults } from "./utils/helia-defaults.js";
|
|
23
|
+
import { libp2pDefaults } from "./utils/libp2p-defaults.js";
|
|
24
24
|
// re-export interface types so people don't have to depend on @helia/interface
|
|
25
25
|
// if they don't want to
|
|
26
26
|
export * from '@helia/interface';
|
|
@@ -23,7 +23,7 @@ import { httpGatewayRouting, libp2pRouting } from '@helia/routers';
|
|
|
23
23
|
import { MemoryBlockstore } from 'blockstore-core';
|
|
24
24
|
import { MemoryDatastore } from 'datastore-core';
|
|
25
25
|
import { isLibp2p } from 'libp2p';
|
|
26
|
-
import { createLibp2p } from
|
|
26
|
+
import { createLibp2p } from "../utils/libp2p.js";
|
|
27
27
|
/**
|
|
28
28
|
* Create and return the default options used to create a Helia node
|
|
29
29
|
*
|
|
@@ -17,8 +17,8 @@ import { webSockets } from '@libp2p/websockets';
|
|
|
17
17
|
import { ipnsSelector } from 'ipns/selector';
|
|
18
18
|
import { ipnsValidator } from 'ipns/validator';
|
|
19
19
|
import { userAgent } from 'libp2p/user-agent';
|
|
20
|
-
import { name, version } from
|
|
21
|
-
import { bootstrapConfig } from
|
|
20
|
+
import { name, version } from "../version.js";
|
|
21
|
+
import { bootstrapConfig } from "./bootstrappers.js";
|
|
22
22
|
export function libp2pDefaults(options = {}) {
|
|
23
23
|
const agentVersion = `${name}/${version} ${userAgent()}`;
|
|
24
24
|
return {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Libp2pDefaultsOptions } from './libp2p.
|
|
1
|
+
import type { Libp2pDefaultsOptions } from './libp2p.ts';
|
|
2
2
|
import type { AutoTLS } from '@ipshipyard/libp2p-auto-tls';
|
|
3
3
|
import type { CircuitRelayService } from '@libp2p/circuit-relay-v2';
|
|
4
4
|
import type { HTTP } from '@libp2p/http';
|
|
@@ -22,8 +22,8 @@ import { webSockets } from '@libp2p/websockets';
|
|
|
22
22
|
import { ipnsSelector } from 'ipns/selector';
|
|
23
23
|
import { ipnsValidator } from 'ipns/validator';
|
|
24
24
|
import { userAgent } from 'libp2p/user-agent';
|
|
25
|
-
import { name, version } from
|
|
26
|
-
import { bootstrapConfig } from
|
|
25
|
+
import { name, version } from "../version.js";
|
|
26
|
+
import { bootstrapConfig } from "./bootstrappers.js";
|
|
27
27
|
/**
|
|
28
28
|
* Returns the default libp2p config used by Helia which can then be modified or
|
|
29
29
|
* extended to suit individual applications.
|
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/dist/src/version.d.ts
CHANGED
package/dist/src/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "helia",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.22",
|
|
4
4
|
"description": "An implementation of IPFS in JavaScript",
|
|
5
5
|
"license": "Apache-2.0 OR MIT",
|
|
6
6
|
"homepage": "https://github.com/ipfs/helia/tree/main/packages/helia#readme",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@chainsafe/libp2p-noise": "^17.0.0",
|
|
52
52
|
"@chainsafe/libp2p-yamux": "^8.0.0",
|
|
53
|
-
"@helia/block-brokers": "^5.1.
|
|
53
|
+
"@helia/block-brokers": "^5.1.4",
|
|
54
54
|
"@helia/delegated-routing-v1-http-api-client": "^6.0.0",
|
|
55
55
|
"@helia/interface": "^6.1.1",
|
|
56
56
|
"@helia/routers": "^5.0.3",
|
package/src/index.ts
CHANGED
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
*/
|
|
21
21
|
|
|
22
22
|
import { Helia as HeliaClass } from '@helia/utils'
|
|
23
|
-
import { heliaDefaults } from './utils/helia-defaults.
|
|
24
|
-
import { libp2pDefaults } from './utils/libp2p-defaults.
|
|
25
|
-
import type { DefaultLibp2pServices } from './utils/libp2p-defaults.
|
|
26
|
-
import type { Libp2pDefaultsOptions } from './utils/libp2p.
|
|
23
|
+
import { heliaDefaults } from './utils/helia-defaults.ts'
|
|
24
|
+
import { libp2pDefaults } from './utils/libp2p-defaults.ts'
|
|
25
|
+
import type { DefaultLibp2pServices } from './utils/libp2p-defaults.ts'
|
|
26
|
+
import type { Libp2pDefaultsOptions } from './utils/libp2p.ts'
|
|
27
27
|
import type { Helia } from '@helia/interface'
|
|
28
28
|
import type { HeliaInit } from '@helia/utils'
|
|
29
29
|
import type { Libp2p } from '@libp2p/interface'
|
|
@@ -24,8 +24,8 @@ import { httpGatewayRouting, libp2pRouting } from '@helia/routers'
|
|
|
24
24
|
import { MemoryBlockstore } from 'blockstore-core'
|
|
25
25
|
import { MemoryDatastore } from 'datastore-core'
|
|
26
26
|
import { isLibp2p } from 'libp2p'
|
|
27
|
-
import { createLibp2p } from '../utils/libp2p.
|
|
28
|
-
import type { DefaultLibp2pServices } from '../utils/libp2p-defaults.
|
|
27
|
+
import { createLibp2p } from '../utils/libp2p.ts'
|
|
28
|
+
import type { DefaultLibp2pServices } from '../utils/libp2p-defaults.ts'
|
|
29
29
|
import type { HeliaInit } from '@helia/utils'
|
|
30
30
|
import type { Libp2p } from '@libp2p/interface'
|
|
31
31
|
|
|
@@ -17,9 +17,9 @@ import { webSockets } from '@libp2p/websockets'
|
|
|
17
17
|
import { ipnsSelector } from 'ipns/selector'
|
|
18
18
|
import { ipnsValidator } from 'ipns/validator'
|
|
19
19
|
import { userAgent } from 'libp2p/user-agent'
|
|
20
|
-
import { name, version } from '../version.
|
|
21
|
-
import { bootstrapConfig } from './bootstrappers.
|
|
22
|
-
import type { Libp2pDefaultsOptions } from './libp2p.
|
|
20
|
+
import { name, version } from '../version.ts'
|
|
21
|
+
import { bootstrapConfig } from './bootstrappers.ts'
|
|
22
|
+
import type { Libp2pDefaultsOptions } from './libp2p.ts'
|
|
23
23
|
import type { HTTP } from '@libp2p/http'
|
|
24
24
|
import type { Identify } from '@libp2p/identify'
|
|
25
25
|
import type { KadDHT } from '@libp2p/kad-dht'
|
|
@@ -22,9 +22,9 @@ import { webSockets } from '@libp2p/websockets'
|
|
|
22
22
|
import { ipnsSelector } from 'ipns/selector'
|
|
23
23
|
import { ipnsValidator } from 'ipns/validator'
|
|
24
24
|
import { userAgent } from 'libp2p/user-agent'
|
|
25
|
-
import { name, version } from '../version.
|
|
26
|
-
import { bootstrapConfig } from './bootstrappers.
|
|
27
|
-
import type { Libp2pDefaultsOptions } from './libp2p.
|
|
25
|
+
import { name, version } from '../version.ts'
|
|
26
|
+
import { bootstrapConfig } from './bootstrappers.ts'
|
|
27
|
+
import type { Libp2pDefaultsOptions } from './libp2p.ts'
|
|
28
28
|
import type { AutoTLS } from '@ipshipyard/libp2p-auto-tls'
|
|
29
29
|
import type { CircuitRelayService } from '@libp2p/circuit-relay-v2'
|
|
30
30
|
import type { HTTP } from '@libp2p/http'
|
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/src/version.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const version = '6.0.
|
|
1
|
+
export const version = '6.0.22'
|
|
2
2
|
export const name = 'helia'
|