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.
This commit is contained in:
parent
fee9cd593d
commit
800e02aa40
2 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
|
@ -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"
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue