Comparing version 7.2.0 to 7.3.0
@@ -45,3 +45,3 @@ 'use strict'; | ||
this.push(() => new Utils.RequestLog(request, event)); | ||
this.push(() => new Utils.RequestLog(reqOptions, request, event)); | ||
}; | ||
@@ -56,3 +56,3 @@ | ||
this.push(() => new Utils.RequestError(request, error)); | ||
this.push(() => new Utils.RequestError(reqOptions, request, error)); | ||
}; | ||
@@ -219,3 +219,5 @@ | ||
reporter.write(value()); | ||
if (reporter.destroyed === false) { | ||
reporter.write(value()); | ||
} | ||
}); | ||
@@ -222,0 +224,0 @@ } |
@@ -32,3 +32,3 @@ 'use strict'; | ||
class RequestError { | ||
constructor(request, error) { | ||
constructor(reqOptions, request, error) { | ||
@@ -43,2 +43,6 @@ this.event = 'error'; | ||
this.config = internals.extractConfig(request); | ||
if (reqOptions.headers) { | ||
this.headers = Hoek.reach(request, 'raw.req.headers'); | ||
} | ||
} | ||
@@ -137,3 +141,3 @@ toJSON() { | ||
class RequestLog { | ||
constructor(request, event) { | ||
constructor(reqOptions, request, event) { | ||
@@ -149,2 +153,6 @@ this.event = 'request'; | ||
this.config = internals.extractConfig(request); | ||
if (reqOptions.headers) { | ||
this.headers = Hoek.reach(request, 'raw.req.headers'); | ||
} | ||
} | ||
@@ -151,0 +159,0 @@ } |
{ | ||
"name": "good", | ||
"description": "Server and process monitoring plugin", | ||
"version": "7.2.0", | ||
"version": "7.3.0", | ||
"repository": "git://github.com/hapijs/good", | ||
@@ -28,7 +28,7 @@ "main": "lib/index.js", | ||
"devDependencies": { | ||
"async": "2.1.x", | ||
"async": "2.5.x", | ||
"code": "4.x.x", | ||
"hapi": "16.x.x", | ||
"lab": "11.x.x", | ||
"wreck": "10.x.x" | ||
"lab": "14.x.x", | ||
"wreck": "12.x.x" | ||
}, | ||
@@ -35,0 +35,0 @@ "scripts": { |
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
20207
411