Skip to content

Commit

Permalink
deps: bump it-length-prefixed from 8.x to 9.x (#134)
Browse files Browse the repository at this point in the history
  • Loading branch information
achingbrain authored Apr 3, 2023
1 parent cafd733 commit ae3e688
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@
"@libp2p/peer-id": "^2.0.0",
"@libp2p/topology": "^4.0.0",
"abortable-iterator": "^4.0.2",
"it-length-prefixed": "^8.0.2",
"it-length-prefixed": "^9.0.0",
"it-pipe": "^3.0.0",
"it-pushable": "^3.0.0",
"multiformats": "^11.0.0",
Expand Down
4 changes: 2 additions & 2 deletions src/peer-streams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export class PeerStreams extends EventEmitter<PeerStreamEvents> {
this.inboundStream = abortableSource(
pipe(
this._rawInboundStream,
lp.decode()
(source) => lp.decode(source)
),
this._inboundAbortController.signal,
{ returnOnAbort: true }
Expand Down Expand Up @@ -134,7 +134,7 @@ export class PeerStreams extends EventEmitter<PeerStreamEvents> {

pipe(
this.outboundStream,
lp.encode(),
(source) => lp.encode(source),
this._rawOutboundStream
).catch((err: Error) => {
log.error(err)
Expand Down

0 comments on commit ae3e688

Please sign in to comment.