From 19d163d3ee2d00943152cfe76a929694ddcf4bc6 Mon Sep 17 00:00:00 2001 From: Chris Jordan Date: Sat, 6 May 2017 14:27:15 -0400 Subject: [PATCH] Support for yarn outdated multiline stdout --- lib/run.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/run.js b/lib/run.js index 07a9ffe..2ed2b4f 100644 --- a/lib/run.js +++ b/lib/run.js @@ -119,6 +119,9 @@ function run(config, done) { return; } + if (config.useYarn) { + stdout = stdout.split('\n')[0]; + } outdated = JSON.parse(stdout); if (config.useYarn) { if ("data" in outdated && outdated.data.body instanceof Array) {