From 800e02aa402b454c8aad1b128612988a728c5d77 Mon Sep 17 00:00:00 2001 From: Misha Wolfson Date: Thu, 15 Dec 2016 17:48:24 -0500 Subject: [PATCH] Fix stream parsing bug In lodash 3.10, .forEach does not get called in a chain unless .value() is passed, but in lodash 4, it does. --- lib/logger.js | 1 + package.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/logger.js b/lib/logger.js index 9c7fcec..8bd3387 100644 --- a/lib/logger.js +++ b/lib/logger.js @@ -16,6 +16,7 @@ if (config.get('bunyan') || config.get(env + ':use_bunyan')) { // Stream can be specified either in settings.streams[ix] or globally in settings.stream _([settings.streams, settings]) .flatten() + .compact() .forEach(function (settingObj) { if (settingObj.stream === 'process.stdout') { settingObj.stream = process.stdout; diff --git a/package.json b/package.json index c4c6d70..0e02a63 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "homepage": "https://github.com/TheThing/spserver", "dependencies": { "bunyan": "^1.3.3", - "lodash": "^3.0.1", + "lodash": "^4.17.2", "nconf": "^0.8.4", "node-static": "^0.7.6" },