This repository was archived by the owner on Jun 27, 2023. It is now read-only.
File tree 3 files changed +583
-59
lines changed
3 files changed +583
-59
lines changed Original file line number Diff line number Diff line change 150
150
"@libp2p/interface-peer-id" : " ^1.0.2" ,
151
151
"@libp2p/interface-pubsub" : " ^2.0.0" ,
152
152
"@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 " ,
155
155
"uint8arraylist" : " ^2.1.1" ,
156
156
"uint8arrays" : " ^3.0.0"
157
157
},
158
158
"devDependencies" : {
159
159
"@libp2p/components" : " ^2.0.0" ,
160
- "@libp2p/interface-mocks" : " ^3 .0.1" ,
160
+ "@libp2p/interface-mocks" : " ^4 .0.1" ,
161
161
"@libp2p/interface-pubsub-compliance-tests" : " ^2.0.1" ,
162
162
"@libp2p/peer-collections" : " ^2.0.0" ,
163
163
"@libp2p/peer-id" : " ^1.1.10" ,
166
166
"aegir" : " ^37.2.0" ,
167
167
"multiformats" : " ^9.4.5" ,
168
168
"p-wait-for" : " ^5.0.0" ,
169
- "protons" : " ^4 .0.1 " ,
169
+ "protons" : " ^5 .0.0 " ,
170
170
"sinon" : " ^14.0.0" ,
171
171
"wherearewe" : " ^1.0.0"
172
172
}
Original file line number Diff line number Diff line change @@ -51,15 +51,15 @@ export class FloodSub extends PubSubBaseProtocol {
51
51
/**
52
52
* Encode an RPC object into a Uint8Array
53
53
*/
54
- encodeRpc ( rpc : PubSubRPC ) : Uint8ArrayList {
54
+ encodeRpc ( rpc : PubSubRPC ) : Uint8Array {
55
55
return RPC . encode ( rpc )
56
56
}
57
57
58
58
decodeMessage ( bytes : Uint8Array | Uint8ArrayList ) : PubSubRPCMessage {
59
59
return RPC . Message . decode ( bytes )
60
60
}
61
61
62
- encodeMessage ( rpc : PubSubRPCMessage ) : Uint8ArrayList {
62
+ encodeMessage ( rpc : PubSubRPCMessage ) : Uint8Array {
63
63
return RPC . Message . encode ( rpc )
64
64
}
65
65
You can’t perform that action at this time.
0 commit comments