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

Commit

Permalink
fix: update all deps (#174)
Browse files Browse the repository at this point in the history
  • Loading branch information
achingbrain committed Aug 10, 2022
1 parent 7a71fff commit 057a01c
Show file tree
Hide file tree
Showing 3 changed files with 583 additions and 59 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -150,14 +150,14 @@
"@libp2p/interface-peer-id": "^1.0.2",
"@libp2p/interface-pubsub": "^2.0.0",
"@libp2p/logger": "^2.0.0",
"@libp2p/pubsub": "^3.0.1",
"protons-runtime": "^2.0.2",
"@libp2p/pubsub": "^3.1.1",
"protons-runtime": "^3.0.1",
"uint8arraylist": "^2.1.1",
"uint8arrays": "^3.0.0"
},
"devDependencies": {
"@libp2p/components": "^2.0.0",
"@libp2p/interface-mocks": "^3.0.1",
"@libp2p/interface-mocks": "^4.0.1",
"@libp2p/interface-pubsub-compliance-tests": "^2.0.1",
"@libp2p/peer-collections": "^2.0.0",
"@libp2p/peer-id": "^1.1.10",
Expand All @@ -166,7 +166,7 @@
"aegir": "^37.2.0",
"multiformats": "^9.4.5",
"p-wait-for": "^5.0.0",
"protons": "^4.0.1",
"protons": "^5.0.0",
"sinon": "^14.0.0",
"wherearewe": "^1.0.0"
}
Expand Down
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,15 @@ export class FloodSub extends PubSubBaseProtocol {
/**
* Encode an RPC object into a Uint8Array
*/
encodeRpc (rpc: PubSubRPC): Uint8ArrayList {
encodeRpc (rpc: PubSubRPC): Uint8Array {
return RPC.encode(rpc)
}

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

encodeMessage (rpc: PubSubRPCMessage): Uint8ArrayList {
encodeMessage (rpc: PubSubRPCMessage): Uint8Array {
return RPC.Message.encode(rpc)
}

Expand Down
Loading

0 comments on commit 057a01c

Please sign in to comment.