Skip to content

Commit 6d5f88e

Browse files
jacobheundirkmc
authored andcommitted
chore: update it-length-prefixed (#476)
fix: decode.fromReader usage
1 parent ea1b37b commit 6d5f88e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@
5050
"fsm-event": "^2.1.0",
5151
"hashlru": "^2.3.0",
5252
"it-handshake": "^1.0.1",
53-
"it-length-prefixed": "jacobheun/pull-length-prefixed#feat/fromReader",
54-
"it-pipe": "^1.0.1",
53+
"it-length-prefixed": "^3.0.0",
54+
"it-pipe": "^1.1.0",
5555
"it-protocol-buffers": "^0.2.0",
5656
"latency-monitor": "~0.2.1",
57-
"libp2p-crypto": "^0.16.2",
57+
"libp2p-crypto": "^0.17.1",
5858
"libp2p-interfaces": "^0.1.3",
5959
"mafmt": "^7.0.0",
6060
"merge-options": "^1.0.1",

src/insecure/plaintext.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ async function encrypt (localId, conn, remoteId) {
3131
log('write pubkey exchange to peer %j', remoteId)
3232

3333
// Get the Exchange message
34-
const response = (await lp.decodeFromReader(shake.reader).next()).value
34+
const response = (await lp.decode.fromReader(shake.reader).next()).value
3535
const id = Exchange.decode(response.slice())
3636
log('read pubkey exchange from peer %j', remoteId)
3737

0 commit comments

Comments
 (0)