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

koa-morgan

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

koa-morgan - npm Package Compare versions

Comparing version 0.0.2 to 0.1.0

LICENSE

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"
}
}
}
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