Skip to content
This repository was archived by the owner on Mar 10, 2020. It is now read-only.

Commit 210dabb

Browse files
pgtedaviddias
authored andcommitted
chore: update dependency: pump version 2.0 (#668)
1 parent f56d7fc commit 210dabb

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"promisify-es6": "^1.0.3",
4545
"pull-defer": "^0.2.2",
4646
"pull-pushable": "^2.1.2",
47-
"pump": "^1.0.3",
47+
"pump": "^2.0.0",
4848
"qs": "^6.5.1",
4949
"readable-stream": "^2.3.3",
5050
"stream-http": "^2.7.2",

src/log/tail.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ module.exports = (send) => {
1212
if (err) {
1313
return callback(err)
1414
}
15-
const outputStream = pump(response, ndjson.parse())
15+
const outputStream = ndjson.parse()
16+
pump(response, outputStream)
1617
callback(null, outputStream)
1718
})
1819
})

src/utils/converter.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,10 @@ class ConverterStream extends TransformStream {
4444
}
4545

4646
function converter (inputStream, callback) {
47-
const outputStream = pump(
47+
const outputStream = new ConverterStream()
48+
pump(
4849
inputStream,
49-
new ConverterStream(),
50+
outputStream,
5051
(err) => {
5152
if (err) {
5253
callback(err)

src/utils/send-request.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ function onRes (buffer, cb) {
4646

4747
// Return a stream of JSON objects
4848
if (chunkedObjects && isJson) {
49-
const outputStream = pump(res, ndjson.parse())
49+
const outputStream = ndjson.parse()
50+
pump(res, outputStream)
5051
res.on('end', () => {
5152
let err = res.trailers['x-stream-error']
5253
if (err) {

0 commit comments

Comments
 (0)