hapi-bunyan
Advanced tools
Comparing version 0.4.2 to 0.5.0
@@ -7,3 +7,3 @@ 'use strict'; | ||
var hoek = require('hoek'); | ||
var lodash = require('lodash'); | ||
@@ -24,3 +24,3 @@ /** | ||
if (ctx.includeTags) { | ||
if (ctx.includeTags && Array.isArray(data.tags)) { | ||
obj.tags = ctx.joinTags ? data.tags.join(ctx.joinTags) : data.tags; | ||
@@ -36,3 +36,3 @@ } | ||
try { | ||
hoek.merge(obj, data.data); | ||
lodash.assign(obj, data.data); | ||
@@ -68,3 +68,3 @@ if (obj.id === obj.req_id) delete obj.id; | ||
options = hoek.applyToDefaults({ | ||
options = lodash.defaults(options, { | ||
includeTags: false, | ||
@@ -74,3 +74,3 @@ includeData: true, | ||
skipUndefined: true, | ||
}, options); | ||
}); | ||
@@ -77,0 +77,0 @@ var makeCtx = function(tags, defaultLevel) { |
{ | ||
"name": "hapi-bunyan", | ||
"version": "0.4.2", | ||
"version": "0.5.0", | ||
"main": "./lib", | ||
"description": "Simple Bunyan logging in Hapi", | ||
"dependencies": { | ||
"hoek": "^2.4.1" | ||
"lodash": "^3.0.0" | ||
}, | ||
@@ -9,0 +9,0 @@ "devDependencies": { |
6589
+ Addedlodash@^3.0.0
+ Addedlodash@3.10.1(transitive)
- Removedhoek@^2.4.1
- Removedhoek@2.16.3(transitive)