From 727b9a70026415df64beede67a23d082aef65eaf Mon Sep 17 00:00:00 2001 From: Kai Groner Date: Thu, 28 Apr 2016 23:25:38 -0400 Subject: [PATCH] Change undefined deps to null, so they can be output. --- bin/cmd.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bin/cmd.js b/bin/cmd.js index 75a3319..b93127d 100755 --- a/bin/cmd.js +++ b/bin/cmd.js @@ -22,6 +22,10 @@ process.stdin.pipe(concat(function (body) { console.log('['); rows.forEach(function (row, index) { if (index > 0) console.log(','); + Object.keys(row.deps).forEach(function (key) { + if (typeof row.deps[key] === 'undefined') + row.deps[key] = null; + }); console.log(JSON.stringify(row)); }); console.log(']');