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

Commit 9524fa4

Browse files
authored
deps: update @multiformats/multiaddr to 11.0.0 (#101)
1 parent fcf5da9 commit 9524fa4

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
- [Install](#install)
1414
- [Usage](#usage)
1515
- [License](#license)
16-
- [Contribution](#contribution)
16+
- [Contribute](#contribute)
1717

1818
## Install
1919

@@ -42,6 +42,6 @@ Licensed under either of
4242
- Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)
4343
- MIT ([LICENSE-MIT](LICENSE-MIT) / <http://opensource.org/licenses/MIT>)
4444

45-
## Contribution
45+
## Contribute
4646

4747
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@
187187
"@libp2p/peer-collections": "^2.0.0",
188188
"@libp2p/peer-id": "^1.1.0",
189189
"@libp2p/topology": "^3.0.0",
190-
"@multiformats/multiaddr": "^10.2.0",
190+
"@multiformats/multiaddr": "^11.0.0",
191191
"abortable-iterator": "^4.0.2",
192192
"err-code": "^3.0.1",
193193
"it-length-prefixed": "^8.0.2",

src/index.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export interface TopicValidator { (topic: string, message: Message): Promise<voi
2727
* PubSubBaseProtocol handles the peers and connections logic for pubsub routers
2828
* and specifies the API that pubsub routers should have.
2929
*/
30-
export abstract class PubSubBaseProtocol<Events = PubSubEvents> extends EventEmitter<Events> implements PubSub<Events>, Initializable {
30+
export abstract class PubSubBaseProtocol<Events extends { [s: string]: any } = PubSubEvents> extends EventEmitter<Events> implements PubSub<Events>, Initializable {
3131
public started: boolean
3232
/**
3333
* Map of topics to which peers are subscribed to
@@ -694,7 +694,6 @@ export abstract class PubSubBaseProtocol<Events = PubSubEvents> extends EventEmi
694694
throw new Error('Pubsub is not started')
695695
}
696696

697-
// @ts-expect-error topic should be a key of the event map
698697
super.removeEventListener(topic)
699698

700699
const wasSubscribed = this.subscriptions.has(topic)

0 commit comments

Comments
 (0)