From 7a200f3369bc9a556a4e7a0d2e910b3ade567c26 Mon Sep 17 00:00:00 2001
From: Rhys Arkins <rhys@keylocation.sg>
Date: Mon, 9 Jan 2017 22:04:13 +0100
Subject: [PATCH] Pass full config to npm helper

---
 src/helpers/npm.js | 4 ++--
 src/index.js       | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/helpers/npm.js b/src/helpers/npm.js
index 2d1e55d455..1138fe3090 100644
--- a/src/helpers/npm.js
+++ b/src/helpers/npm.js
@@ -5,8 +5,8 @@ const stable = require('semver-stable');
 var config = {};
 
 module.exports = {
-  init: function(verbose = false) {
-    config.verbose = verbose;
+  init: function(setConfig) {
+    config = setConfig;
   },
   getDependencies: function(packageContents) {
     const allDependencies = [];
diff --git a/src/index.js b/src/index.js
index 1d97d01ea6..3c41a8c8a1 100644
--- a/src/index.js
+++ b/src/index.js
@@ -6,7 +6,7 @@ const github = require('./helpers/github');
 const npm = require('./helpers/npm');
 const packageJson = require('./helpers/packageJson');
 
-npm.init(config.verbose);
+npm.init(config);
 
 // Process arguments
 const repoName = process.argv[2];
-- 
GitLab