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.1.0 to 0.2.0

9

index.js

@@ -15,2 +15,3 @@ /*!

var thenify = require('thenify');
var originalMorgan = require('morgan');

@@ -31,9 +32,7 @@

function morgan() {
var args = arguments;
var middleware = thenify(originalMorgan.apply(null, arguments));
return function* morgan(next) {
yield* next;
originalMorgan.apply(null, args)(this.req, this.res, noop);
yield middleware(this.req, this.res);
}
}
function noop() {}
}
{
"name": "koa-morgan",
"version": "0.1.0",
"version": "0.2.0",
"description": "HTTP request logger middleware for koa",

@@ -22,4 +22,5 @@ "main": "index.js",

"dependencies": {
"morgan": "^1.5.1"
"morgan": "^1.5.2",
"thenify": "^3.1.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