Comparing version 1.10.1 to 1.11.0
@@ -72,3 +72,3 @@ 'use strict'; | ||
const uncaught = internals.update('error'); | ||
const uncaught = internals.update('error', null, settings); | ||
uncaught.error = { | ||
@@ -91,3 +91,3 @@ message: err.message, | ||
const uncaught = internals.update('error'); | ||
const uncaught = internals.update('error', null, settings); | ||
uncaught.error = { | ||
@@ -109,3 +109,3 @@ message: err.message, | ||
const end = internals.update('server'); | ||
const end = internals.update('server', null, settings); | ||
end.tags = ['bananas', 'signal', signal]; | ||
@@ -132,3 +132,3 @@ updates.push(end); | ||
const end = internals.update('server'); | ||
const end = internals.update('server', null, settings); | ||
end.tags = ['bananas', 'stopped']; | ||
@@ -145,3 +145,3 @@ updates.push(end); | ||
const update = internals.update('server'); | ||
const update = internals.update('server', null, settings); | ||
update.tags = event.tags; | ||
@@ -157,7 +157,9 @@ update.data = internals.error(event.data); | ||
if (settings.exclude.indexOf(request.path) !== -1 || routeSettings.exclude) { | ||
if (settings.exclude.indexOf(request.path) !== -1 || | ||
routeSettings.exclude) { | ||
return; | ||
} | ||
const update = internals.update('response', request); | ||
const update = internals.update('response', request, settings); | ||
update.code = request.raw.res.statusCode; | ||
@@ -174,3 +176,3 @@ | ||
const update = internals.update('error', request); | ||
const update = internals.update('error', request, settings); | ||
update.error = internals.error(err); | ||
@@ -182,3 +184,3 @@ updates.push(update); | ||
const init = internals.update('server'); | ||
const init = internals.update('server', null, settings); | ||
init.tags = ['bananas', 'initialized']; | ||
@@ -196,3 +198,3 @@ init.env = process.env; | ||
internals.update = function (event, request) { | ||
internals.update = function (event, request, options) { | ||
@@ -219,2 +221,8 @@ const now = Date.now(); | ||
}; | ||
if (request.auth.credentials && | ||
options.credentials) { | ||
update.auth = options.credentials(request); | ||
} | ||
} | ||
@@ -221,0 +229,0 @@ |
{ | ||
"name": "bananas", | ||
"description": "Minimal Loggly hapi plugin", | ||
"version": "1.10.1", | ||
"version": "1.11.0", | ||
"author": "Eran Hammer <eran@hammer.io> (http://hueniverse.com)", | ||
@@ -18,8 +18,8 @@ "repository": "git://github.com/hueniverse/bananas", | ||
"hoek": "4.x.x", | ||
"wreck": "9.x.x", | ||
"wreck": "10.x.x", | ||
"fast-safe-stringify": "1.x.x" | ||
}, | ||
"devDependencies": { | ||
"code": "3.x.x", | ||
"hapi": "15.x.x", | ||
"code": "4.x.x", | ||
"hapi": "16.x.x", | ||
"lab": "11.x.x" | ||
@@ -26,0 +26,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8469
171
+ Addedboom@4.3.1(transitive)
+ Addedwreck@10.0.0(transitive)
- Removedboom@3.2.2(transitive)
- Removedwreck@9.0.0(transitive)
Updatedwreck@10.x.x