From bbd14bca0920077e562176eb2a74d722865d1aab Mon Sep 17 00:00:00 2001 From: Matheus Fernandes Date: Sat, 21 Jan 2017 16:07:08 -0200 Subject: [PATCH] =?UTF-8?q?Bump=20`node-pty`=20to=200.6.0=20=E2=80=93=20Cl?= =?UTF-8?q?oses=20#1186=20#1127?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/package.json | 2 +- app/session.js | 6 +++--- app/yarn.lock | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/app/package.json b/app/package.json index e10f4f51..0c5c665b 100644 --- a/app/package.json +++ b/app/package.json @@ -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", diff --git a/app/session.js b/app/session.js index a75c48cd..a6caa734 100644 --- a/app/session.js +++ b/app/session.js @@ -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); } diff --git a/app/yarn.lock b/app/yarn.lock index 5997b54e..ce5a2d58 100644 --- a/app/yarn.lock +++ b/app/yarn.lock @@ -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"