Comparing version 1.4.0 to 1.4.1
@@ -0,1 +1,7 @@ | ||
1.4.1 / 2014-10-22 | ||
================== | ||
* deps: on-finished@~2.1.1 | ||
- Fix handling of pipelined requests | ||
1.4.0 / 2014-10-16 | ||
@@ -2,0 +8,0 @@ ================== |
{ | ||
"name": "morgan", | ||
"description": "http request logger middleware for node.js", | ||
"version": "1.4.0", | ||
"version": "1.4.1", | ||
"author": "Jonathan Ong <me@jongleberry.com> (http://jongleberry.com)", | ||
@@ -15,8 +15,8 @@ "contributors": [ | ||
"depd": "~1.0.0", | ||
"on-finished": "2.1.0" | ||
"on-finished": "2.1.1" | ||
}, | ||
"devDependencies": { | ||
"istanbul": "0.3.2", | ||
"mocha": "~1.21.5", | ||
"should": "~4.0.4", | ||
"mocha": "~2.0.0", | ||
"should": "~4.1.0", | ||
"supertest": "~0.14.0" | ||
@@ -23,0 +23,0 @@ }, |
@@ -122,2 +122,4 @@ # morgan | ||
Calling `morgan.token()` using the same name as an existing token will overwrite that token definition. | ||
## Examples | ||
@@ -188,2 +190,25 @@ | ||
### use custom token formats | ||
Sample app that will use custom token formats like changing the ":date" | ||
```js | ||
var express = require('express') | ||
var morgan = require('morgan') | ||
// alter :date token format | ||
// ex. 2011-10-05T14:48:00.000Z | ||
morgan.token('date', function () { | ||
return new Date().toISOString() | ||
}) | ||
var app = express() | ||
app.use(morgan('combined')) | ||
app.get('/', function (req, res) { | ||
res.send('hello, world!') | ||
}) | ||
``` | ||
## License | ||
@@ -190,0 +215,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
16308
226
+ Addedee-first@1.1.0(transitive)
+ Addedon-finished@2.1.1(transitive)
- Removedee-first@1.0.5(transitive)
- Removedon-finished@2.1.0(transitive)
Updatedon-finished@2.1.1