Skip to content

Commit 43d0bc6

Browse files
authored
fix: expose identify service properties (#1529)
To satisfy the types these need to be public
1 parent 1147550 commit 43d0bc6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/identify/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export class IdentifyService implements Startable {
7979
private readonly components: IdentifyServiceComponents
8080
private readonly identifyProtocolStr: string
8181
private readonly identifyPushProtocolStr: string
82-
private readonly host: {
82+
public readonly host: {
8383
protocolVersion: string
8484
agentVersion: string
8585
}

src/libp2p.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export class Libp2pNode extends EventEmitter<Libp2pEvents> implements Libp2p {
5656
public peerId: PeerId
5757
public dht: DualDHT
5858
public pubsub: PubSub
59-
public identifyService?: IdentifyService
59+
public identifyService: IdentifyService
6060
public fetchService: FetchService
6161
public pingService: PingService
6262
public components: Components

0 commit comments

Comments
 (0)