@helia/interface 2.1.0-55a64c6 → 2.1.0-9efe50d
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/src/index.d.ts +5 -1
- package/dist/src/index.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/index.ts +6 -1
package/dist/src/index.d.ts
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import type { Blocks } from './blocks.js';
|
|
17
17
|
import type { Pins } from './pins.js';
|
|
18
|
-
import type { Libp2p, AbortOptions } from '@libp2p/interface';
|
|
18
|
+
import type { Libp2p, AbortOptions, ComponentLogger } from '@libp2p/interface';
|
|
19
19
|
import type { Datastore } from 'interface-datastore';
|
|
20
20
|
import type { CID } from 'multiformats/cid';
|
|
21
21
|
import type { ProgressEvent, ProgressOptions } from 'progress-events';
|
|
@@ -40,6 +40,10 @@ export interface Helia<T = Libp2p> {
|
|
|
40
40
|
* Pinning operations for blocks in the blockstore
|
|
41
41
|
*/
|
|
42
42
|
pins: Pins;
|
|
43
|
+
/**
|
|
44
|
+
* A logging component that can be reused by consumers
|
|
45
|
+
*/
|
|
46
|
+
logger: ComponentLogger;
|
|
43
47
|
/**
|
|
44
48
|
* Starts the Helia node
|
|
45
49
|
*/
|
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;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AACzC,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AACrC,OAAO,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;G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.0-
|
|
3
|
+
"version": "2.1.0-9efe50d",
|
|
4
4
|
"description": "The Helia API",
|
|
5
5
|
"license": "Apache-2.0 OR MIT",
|
|
6
6
|
"homepage": "https://github.com/ipfs/helia/tree/master/packages/interface#readme",
|
|
@@ -70,12 +70,12 @@
|
|
|
70
70
|
"build": "aegir build"
|
|
71
71
|
},
|
|
72
72
|
"dependencies": {
|
|
73
|
-
"@libp2p/interface": "^0.1
|
|
73
|
+
"@libp2p/interface": "^1.0.1",
|
|
74
74
|
"interface-blockstore": "^5.0.0",
|
|
75
75
|
"interface-datastore": "^8.0.0",
|
|
76
76
|
"interface-store": "^5.0.1",
|
|
77
|
-
"ipfs-bitswap": "^
|
|
78
|
-
"multiformats": "^
|
|
77
|
+
"ipfs-bitswap": "^20.0.0",
|
|
78
|
+
"multiformats": "^13.0.0",
|
|
79
79
|
"progress-events": "^1.0.0"
|
|
80
80
|
},
|
|
81
81
|
"devDependencies": {
|
package/src/index.ts
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
import type { Blocks } from './blocks.js'
|
|
18
18
|
import type { Pins } from './pins.js'
|
|
19
|
-
import type { Libp2p, AbortOptions } from '@libp2p/interface'
|
|
19
|
+
import type { Libp2p, AbortOptions, ComponentLogger } from '@libp2p/interface'
|
|
20
20
|
import type { Datastore } from 'interface-datastore'
|
|
21
21
|
import type { CID } from 'multiformats/cid'
|
|
22
22
|
import type { ProgressEvent, ProgressOptions } from 'progress-events'
|
|
@@ -47,6 +47,11 @@ export interface Helia<T = Libp2p> {
|
|
|
47
47
|
*/
|
|
48
48
|
pins: Pins
|
|
49
49
|
|
|
50
|
+
/**
|
|
51
|
+
* A logging component that can be reused by consumers
|
|
52
|
+
*/
|
|
53
|
+
logger: ComponentLogger
|
|
54
|
+
|
|
50
55
|
/**
|
|
51
56
|
* Starts the Helia node
|
|
52
57
|
*/
|