Skip to content

Commit

Permalink
use new it-pushable version
Browse files Browse the repository at this point in the history
  • Loading branch information
mpetrunic committed Aug 2, 2022
1 parent c1e6572 commit 34cf7a2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@
"release": "aegir release"
},
"dependencies": {
"it-pushable": "^3.0.0",
"it-pushable": "^3.1.0",
"it-reader": "^6.0.1",
"it-stream-types": "^1.0.4",
"p-defer": "^4.0.0",
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export interface Handshake<T extends Uint8Array|Uint8ArrayList> {

// Convert a duplex stream into a reader and writer and rest stream
export function handshake<T extends Uint8Array|Uint8ArrayList> (stream: Duplex<T>): Handshake<T> {
const writer = pushable<T>({ objectMode: true }) // Write bytes on demand to the sink
const writer = pushable<T>() // Write bytes on demand to the sink
const source = reader(stream.source) // Read bytes on demand from the source

// Waits for a source to be passed to the rest stream's sink
Expand Down

0 comments on commit 34cf7a2

Please sign in to comment.