diff --git a/package.json b/package.json index 17a9281..7d27ce7 100644 --- a/package.json +++ b/package.json @@ -140,13 +140,13 @@ "docs": "aegir docs" }, "dependencies": { - "@libp2p/interface-peer-discovery": "^1.0.1", + "@libp2p/interface-peer-discovery": "^2.0.0", "@libp2p/interface-peer-id": "^2.0.0", "@libp2p/interface-peer-info": "^1.0.2", "@libp2p/interface-pubsub": "^4.0.0", "@libp2p/interfaces": "^3.0.3", - "@libp2p/logger": "^2.0.1", - "@libp2p/peer-id": "^2.0.0", + "@libp2p/logger": "^3.0.2", + "@libp2p/peer-id": "^3.0.2", "@multiformats/multiaddr": "^12.0.0", "protons-runtime": "^5.0.0", "uint8arraylist": "^2.4.3" @@ -154,12 +154,12 @@ "devDependencies": { "@libp2p/interface-address-manager": "^3.0.0", "@libp2p/interface-peer-discovery-compliance-tests": "^2.0.0", - "@libp2p/peer-id-factory": "^2.0.0", + "@libp2p/peer-id-factory": "^3.0.4", "aegir": "^40.0.0", "p-defer": "^4.0.0", "p-wait-for": "^5.0.0", "protons": "^7.0.2", - "sinon": "^15.0.1", + "sinon": "^16.0.0", "ts-sinon": "^2.0.2" } } diff --git a/src/index.ts b/src/index.ts index e31d0e6..825a330 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,4 +1,4 @@ -import { symbol } from '@libp2p/interface-peer-discovery' +import { peerDiscovery } from '@libp2p/interface-peer-discovery' import { CustomEvent, EventEmitter } from '@libp2p/interfaces/events' import { logger } from '@libp2p/logger' import { peerIdFromKeys } from '@libp2p/peer-id' @@ -41,7 +41,7 @@ export interface PubSubPeerDiscoveryComponents { * A Peer Discovery Service that leverages libp2p Pubsub to find peers. */ export class PubSubPeerDiscovery extends EventEmitter implements PeerDiscovery, Startable { - public readonly [symbol] = true + public readonly [peerDiscovery] = true public readonly [Symbol.toStringTag] = '@libp2p/pubsub-peer-discovery' private readonly interval: number