Skip to content

Commit 6bb3940

Browse files
committed
Merge branch 'develop', prepare 0.21.1
2 parents b95971d + 8e66b0e commit 6bb3940

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"chalk": "^2.1.0",
2020
"cli-table": "^0.3.1",
2121
"got": "^7.1.0",
22+
"highland": "^2.11.1",
2223
"ignore": "^3.3.3",
2324
"inquirer": "^3.2.2",
2425
"js-yaml": "^3.9.1",
@@ -32,7 +33,6 @@
3233
},
3334
"devDependencies": {
3435
"coveralls": "^2.13.1",
35-
"highland": "^2.11.1",
3636
"nock": "^9.0.14",
3737
"pkg": "^4.2.4",
3838
"proxyquire": "^1.8.0",

src/commands/deploy.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ const fs = require('fs');
88
const ora = require('ora');
99
const Table = require('cli-table');
1010
const opn = require('opn');
11+
const _ = require('highland');
1112

1213
// my modules
1314
const {userConfig, isLoggedIn, logout} = require('../config');
@@ -22,7 +23,9 @@ const streamToResponse = ({tarStream, remoteUrl, options, verbose}) =>
2223
let error;
2324
let result = {};
2425
// pipe stream to remote
25-
const stream = tarStream.pipe(got.stream.post(remoteUrl, options));
26+
const stream = _(tarStream.pipe(got.stream.post(remoteUrl, options)))
27+
.split()
28+
.filter(l => l && l.length);
2629
// store output
2730
stream.on('data', str => {
2831
const s = str.toString();

0 commit comments

Comments
 (0)