From 8423c22db7cfd69b36ee6d19718e391c027f5fd5 Mon Sep 17 00:00:00 2001 From: nuintun Date: Sat, 28 Apr 2018 17:56:37 +0800 Subject: [PATCH] :art: Update npmignore --- .npmignore | 3 +++ lib/adodb/json.js | 8 ++++++-- lib/spawn.js | 1 + 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.npmignore b/.npmignore index c8b62fa..c6b14ca 100644 --- a/.npmignore +++ b/.npmignore @@ -84,3 +84,6 @@ package-lock.json # adodb src file /lib/adodb/ + +# rollup configuration +/rollup.js diff --git a/lib/adodb/json.js b/lib/adodb/json.js index 123102e..2c294c2 100644 --- a/lib/adodb/json.js +++ b/lib/adodb/json.js @@ -278,7 +278,9 @@ if (typeof JSON !== 'object') { v = partial.length === 0 ? '[]' - : gap ? '[\n' + gap + partial.join(',\n' + gap) + '\n' + mind + ']' : '[' + partial.join(',') + ']'; + : gap + ? '[\n' + gap + partial.join(',\n' + gap) + '\n' + mind + ']' + : '[' + partial.join(',') + ']'; gap = mind; return v; @@ -316,7 +318,9 @@ if (typeof JSON !== 'object') { v = partial.length === 0 ? '{}' - : gap ? '{\n' + gap + partial.join(',\n' + gap) + '\n' + mind + '}' : '{' + partial.join(',') + '}'; + : gap + ? '{\n' + gap + partial.join(',\n' + gap) + '\n' + mind + '}' + : '{' + partial.join(',') + '}'; gap = mind; return v; diff --git a/lib/spawn.js b/lib/spawn.js index 96ac0bb..3f5f3f2 100644 --- a/lib/spawn.js +++ b/lib/spawn.js @@ -125,4 +125,5 @@ const spawn = function(command, args, input, options) { }); }; +// Exports module.exports = spawn;