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

Commit 057a01c

Browse files
authored
fix: update all deps (#174)
1 parent 7a71fff commit 057a01c

File tree

3 files changed

+583
-59
lines changed

3 files changed

+583
-59
lines changed

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,14 +150,14 @@
150150
"@libp2p/interface-peer-id": "^1.0.2",
151151
"@libp2p/interface-pubsub": "^2.0.0",
152152
"@libp2p/logger": "^2.0.0",
153-
"@libp2p/pubsub": "^3.0.1",
154-
"protons-runtime": "^2.0.2",
153+
"@libp2p/pubsub": "^3.1.1",
154+
"protons-runtime": "^3.0.1",
155155
"uint8arraylist": "^2.1.1",
156156
"uint8arrays": "^3.0.0"
157157
},
158158
"devDependencies": {
159159
"@libp2p/components": "^2.0.0",
160-
"@libp2p/interface-mocks": "^3.0.1",
160+
"@libp2p/interface-mocks": "^4.0.1",
161161
"@libp2p/interface-pubsub-compliance-tests": "^2.0.1",
162162
"@libp2p/peer-collections": "^2.0.0",
163163
"@libp2p/peer-id": "^1.1.10",
@@ -166,7 +166,7 @@
166166
"aegir": "^37.2.0",
167167
"multiformats": "^9.4.5",
168168
"p-wait-for": "^5.0.0",
169-
"protons": "^4.0.1",
169+
"protons": "^5.0.0",
170170
"sinon": "^14.0.0",
171171
"wherearewe": "^1.0.0"
172172
}

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,15 @@ export class FloodSub extends PubSubBaseProtocol {
5151
/**
5252
* Encode an RPC object into a Uint8Array
5353
*/
54-
encodeRpc (rpc: PubSubRPC): Uint8ArrayList {
54+
encodeRpc (rpc: PubSubRPC): Uint8Array {
5555
return RPC.encode(rpc)
5656
}
5757

5858
decodeMessage (bytes: Uint8Array | Uint8ArrayList): PubSubRPCMessage {
5959
return RPC.Message.decode(bytes)
6060
}
6161

62-
encodeMessage (rpc: PubSubRPCMessage): Uint8ArrayList {
62+
encodeMessage (rpc: PubSubRPCMessage): Uint8Array {
6363
return RPC.Message.encode(rpc)
6464
}
6565

0 commit comments

Comments
 (0)