Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

morgan

Package Overview
Dependencies
Maintainers
6
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

morgan - npm Package Compare versions

Comparing version 1.4.0 to 1.4.1

6

HISTORY.md

@@ -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 @@ ==================

8

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc