express-bunyan-logger
Advanced tools
Comparing version 0.2.2 to 1.0.0
{ | ||
"name": "express-bunyan-logger", | ||
"version": "0.2.2", | ||
"version": "1.0.0", | ||
"description": "a bunyan logger middleware for express", | ||
@@ -19,7 +19,7 @@ "main": "index.js", | ||
"dependencies": { | ||
"bunyan": "~0.23.0", | ||
"useragent": "~2.0.8" | ||
"bunyan": "^1.0.0", | ||
"useragent": "^2.0.9" | ||
}, | ||
"devDependencies": { | ||
"express": "3.x", | ||
"express": "4.x", | ||
"grunt": "~0.4.1", | ||
@@ -26,0 +26,0 @@ "grunt-contrib-clean": "~0.4.0", |
@@ -5,6 +5,2 @@ var express = require('express'), | ||
app.use(app.router); | ||
app.use(bunyanLogger()); | ||
app.use(bunyanLogger.errorLogger()); | ||
app.get('/', function(req, res) { | ||
@@ -14,3 +10,5 @@ throw new Error(); | ||
app.use(bunyanLogger()); | ||
app.use(bunyanLogger.errorLogger()); | ||
app.listen(5000); |
@@ -129,3 +129,6 @@ var express = require('express'); | ||
var output = st(); | ||
app.use(app.router); | ||
app.get('/', function(req, res) { | ||
throw new Error(); | ||
}); | ||
app.use(bunyanLogger.errorLogger({ | ||
@@ -135,6 +138,2 @@ stream: output | ||
app.get('/', function(req, res) { | ||
throw new Error(); | ||
}); | ||
request(app) | ||
@@ -157,3 +156,7 @@ .get('/') | ||
var app = express(); | ||
app.use(app.router); | ||
app.get('/', function(req, res) { | ||
throw new Error(); | ||
}); | ||
app.use(bunyanLogger.errorLogger()); | ||
@@ -165,5 +168,2 @@ app.use(function (err, req, res, next) { | ||
app.get('/', function(req, res) { | ||
throw new Error(); | ||
}); | ||
@@ -170,0 +170,0 @@ request(app) |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1
14324
10
305
+ Addedbunyan@1.8.15(transitive)
+ Addeddtrace-provider@0.8.8(transitive)
+ Addedlru-cache@4.1.5(transitive)
+ Addedmoment@2.30.1(transitive)
+ Addednan@2.22.0(transitive)
+ Addedos-tmpdir@1.0.2(transitive)
+ Addedpseudomap@1.0.2(transitive)
+ Addedsafe-json-stringify@1.2.0(transitive)
+ Addedtmp@0.0.33(transitive)
+ Addeduseragent@2.3.0(transitive)
+ Addedyallist@2.1.2(transitive)
- Removedbunyan@0.23.1(transitive)
- Removeddtrace-provider@0.2.8(transitive)
- Removedlru-cache@2.2.4(transitive)
- Removeduseragent@2.0.10(transitive)
Updatedbunyan@^1.0.0
Updateduseragent@^2.0.9