Bump node-pty to 0.6.0 – Closes #1186 #1127

This commit is contained in:
Matheus Fernandes 2017-01-21 16:07:08 -02:00
parent 17bfdbd552
commit bbd14bca09
No known key found for this signature in database
GPG key ID: DD07CA4EA7B65C4F
3 changed files with 7 additions and 7 deletions

View file

@ -23,7 +23,7 @@
"mkdirp": "0.5.1",
"ms": "0.7.1",
"node-fetch": "1.6.3",
"node-pty": "0.4.1",
"node-pty": "0.6.0",
"semver": "5.3.0",
"shell-env": "0.2.0",
"uuid": "3.0.0",

View file

@ -49,7 +49,7 @@ module.exports = class Session extends EventEmitter {
}
}
this.pty.stdout.on('data', data => {
this.pty.on('data', data => {
if (this.ended) {
return;
}
@ -71,12 +71,12 @@ module.exports = class Session extends EventEmitter {
}
write(data) {
this.pty.stdin.write(data);
this.pty.write(data);
}
resize({cols, rows}) {
try {
this.pty.stdout.resize(cols, rows);
this.pty.resize(cols, rows);
} catch (err) {
console.error(err.stack);
}

View file

@ -267,9 +267,9 @@ node-fetch@1.6.3:
encoding "^0.1.11"
is-stream "^1.0.1"
node-pty@0.4.1:
version "0.4.1"
resolved "https://registry.yarnpkg.com/node-pty/-/node-pty-0.4.1.tgz#a80b35fe57b64f055ab19b2d7aa604d836155c04"
node-pty@0.6.0:
version "0.6.0"
resolved "https://registry.yarnpkg.com/node-pty/-/node-pty-0.6.0.tgz#6bb7e58e871b903773595e9ca393c07d077b1ca5"
dependencies:
extend "~1.2.1"
nan "2.2.1"