Skip to content

Commit

Permalink
deps: update it-pushable dep
Browse files Browse the repository at this point in the history
Also updates streaming-iterables dev dep
  • Loading branch information
achingbrain committed Aug 6, 2022
1 parent 09c782f commit 31a9fd8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@
},
"dependencies": {
"it-merge": "^1.0.4",
"it-pushable": "^2.0.0",
"it-pushable": "^3.1.0",
"it-stream-types": "^1.0.3"
},
"devDependencies": {
Expand All @@ -157,6 +157,6 @@
"it-all": "^1.0.6",
"it-drain": "^1.0.5",
"p-defer": "^4.0.0",
"streaming-iterables": "^6.0.0"
"streaming-iterables": "^7.0.4"
}
}
4 changes: 3 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ const duplexPipelineFn = <TSource> (duplex: it.Duplex<TSource>) => {
const p = duplex.sink(source)

if (p.then != null) {
const stream = pushable<TSource>()
const stream = pushable<TSource>({
objectMode: true
})
p.then(() => {
stream.end()
}, (err: Error) => {
Expand Down

0 comments on commit 31a9fd8

Please sign in to comment.