koa-morgan
Advanced tools
Comparing version 0.0.2 to 0.1.0
19
index.js
@@ -14,10 +14,17 @@ /*! | ||
*/ | ||
var originMorgan = require('morgan'); | ||
module.exports = originMorgan; | ||
var originalMorgan = require('morgan'); | ||
originMorgan.middleware = morgan; | ||
/** | ||
* Expose `morgan`. | ||
*/ | ||
function noop() {} | ||
module.exports = originalMorgan; | ||
originalMorgan.middleware = morgan; | ||
/** | ||
* morgan wrapper. | ||
*/ | ||
function morgan() { | ||
@@ -27,4 +34,6 @@ var args = arguments; | ||
yield* next; | ||
originMorgan.apply(null, args)(this.req, this.res, noop); | ||
originalMorgan.apply(null, args)(this.req, this.res, noop); | ||
} | ||
} | ||
function noop() {} |
{ | ||
"name": "koa-morgan", | ||
"version": "0.0.2", | ||
"version": "0.1.0", | ||
"description": "HTTP request logger middleware for koa", | ||
@@ -16,5 +16,10 @@ "main": "index.js", | ||
"license": "MIT", | ||
"files": [ | ||
"LICENSE", | ||
"README.md", | ||
"index.js" | ||
], | ||
"dependencies": { | ||
"morgan": "^1.5.1" | ||
} | ||
} | ||
} |
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 README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
3566
4
28
0
48