Comparing version 6.4.0 to 6.5.0
@@ -25,3 +25,3 @@ 'use strict' | ||
const customProps = opts.customProps || opts.reqCustomProps || {} | ||
const customProps = opts.customProps || opts.reqCustomProps || undefined | ||
@@ -124,3 +124,5 @@ opts.wrapSerializers = 'wrapSerializers' in opts ? opts.wrapSerializers : true | ||
const customPropBindings = (typeof customProps === 'function') ? customProps(req, res) : customProps | ||
fullReqLogger = fullReqLogger.child(customPropBindings) | ||
if (customPropBindings) { | ||
fullReqLogger = fullReqLogger.child(customPropBindings) | ||
} | ||
@@ -127,0 +129,0 @@ res.log = fullReqLogger |
{ | ||
"name": "pino-http", | ||
"version": "6.4.0", | ||
"version": "6.5.0", | ||
"description": "High-speed HTTP logger for Node.js", | ||
@@ -14,3 +14,3 @@ "main": "logger.js", | ||
"devDependencies": { | ||
"@types/node": "^16.11.0", | ||
"@types/node": "^17.0.0", | ||
"autocannon": "^7.3.0", | ||
@@ -17,0 +17,0 @@ "coveralls": "^3.0.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
63223
1488