Skip to content

Commit ae3e688

Browse files
authored
deps: bump it-length-prefixed from 8.x to 9.x (#134)
1 parent cafd733 commit ae3e688

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@
188188
"@libp2p/peer-id": "^2.0.0",
189189
"@libp2p/topology": "^4.0.0",
190190
"abortable-iterator": "^4.0.2",
191-
"it-length-prefixed": "^8.0.2",
191+
"it-length-prefixed": "^9.0.0",
192192
"it-pipe": "^3.0.0",
193193
"it-pushable": "^3.0.0",
194194
"multiformats": "^11.0.0",

src/peer-streams.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ export class PeerStreams extends EventEmitter<PeerStreamEvents> {
9494
this.inboundStream = abortableSource(
9595
pipe(
9696
this._rawInboundStream,
97-
lp.decode()
97+
(source) => lp.decode(source)
9898
),
9999
this._inboundAbortController.signal,
100100
{ returnOnAbort: true }
@@ -134,7 +134,7 @@ export class PeerStreams extends EventEmitter<PeerStreamEvents> {
134134

135135
pipe(
136136
this.outboundStream,
137-
lp.encode(),
137+
(source) => lp.encode(source),
138138
this._rawOutboundStream
139139
).catch((err: Error) => {
140140
log.error(err)

0 commit comments

Comments
 (0)