express-pino-logger
Advanced tools
Comparing version 2.0.0 to 3.0.0
@@ -13,2 +13,12 @@ 'use strict' | ||
app.get('/error', function (req, res, next) { | ||
next(new Error('kaboom')) | ||
}) | ||
app.use(function (err, req, res, next) { | ||
req.log.error(err) | ||
res.statusCode = 500 | ||
res.end('error') | ||
}) | ||
app.listen(3000) |
{ | ||
"name": "express-pino-logger", | ||
"version": "2.0.0", | ||
"version": "3.0.0", | ||
"description": "An express middleware to log with pino", | ||
@@ -21,3 +21,3 @@ "main": "logger.js", | ||
"dependencies": { | ||
"pino-http": "^2.0.0" | ||
"pino-http": "^3.0.0" | ||
}, | ||
@@ -29,7 +29,7 @@ "devDependencies": { | ||
"morgan": "^1.7.0", | ||
"pino": "^3.0.0", | ||
"pino": "^4.10.2", | ||
"pre-commit": "^1.1.2", | ||
"split2": "^2.0.1", | ||
"standard": "^8.0.0", | ||
"tap": "^8.0.0", | ||
"standard": "^10.0.3", | ||
"tap": "^11.0.0", | ||
"winston": "^2.2.0" | ||
@@ -36,0 +36,0 @@ }, |
@@ -194,2 +194,1 @@ 'use strict' | ||
}) | ||
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
13978
279
+ Addedpino-http@3.2.2(transitive)
+ Addedpino-std-serializers@1.2.0(transitive)
- Removedpino-http@2.6.2(transitive)
Updatedpino-http@^3.0.0