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.
master
Misha Wolfson 2016-12-15 17:48:24 -05:00
parent fee9cd593d
commit 800e02aa40
2 changed files with 2 additions and 1 deletions

View File

@ -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;

View File

@ -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"
},