Skip to content
This repository was archived by the owner on Oct 3, 2023. It is now read-only.

Commit 31de4e1

Browse files
authored
fix: update interfaces (#129)
1 parent 5ed7cfa commit 31de4e1

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@
133133
"release": "aegir release"
134134
},
135135
"dependencies": {
136-
"@libp2p/interfaces": "^1.3.31",
136+
"@libp2p/interfaces": "^1.3.32",
137137
"@libp2p/logger": "^1.1.3",
138138
"@libp2p/peer-id": "^1.1.9",
139139
"@multiformats/mafmt": "^11.0.2",

src/index.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { logger } from '@libp2p/logger'
55
import type { PeerDiscovery, PeerDiscoveryEvents } from '@libp2p/interfaces/peer-discovery'
66
import type { PeerInfo } from '@libp2p/interfaces/peer-info'
77
import { peerIdFromString } from '@libp2p/peer-id'
8+
import { symbol } from '@libp2p/interfaces/peer-discovery'
89

910
const log = logger('libp2p:bootstrap')
1011

@@ -63,6 +64,14 @@ export class Bootstrap extends EventEmitter<PeerDiscoveryEvents> implements Peer
6364
}
6465
}
6566

67+
get [symbol] (): true {
68+
return true
69+
}
70+
71+
get [Symbol.toStringTag] () {
72+
return '@libp2p/bootstrap'
73+
}
74+
6675
isStarted () {
6776
return Boolean(this.timer)
6877
}

0 commit comments

Comments
 (0)