Socket
Socket
Sign inDemoInstall

egg-core

Package Overview
Dependencies
18
Maintainers
13
Versions
137
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.16.2 to 4.17.0

6

History.md
4.17.0 / 2019-04-24
==================
**features**
* [[`515d50f`](http://github.com/eggjs/egg-core/commit/515d50f59a00e1987affc8a06002d353ee926ab2)] - feat: debug middleware enter log on every request (#210) (fengmk2 <<fengmk2@gmail.com>>)
4.16.2 / 2019-04-11

@@ -3,0 +9,0 @@ ==================

@@ -81,2 +81,6 @@ 'use strict';

if (mw) {
if (debug.enabled) {
// show mw debug log on every request
mw = debugWrapper(mw);
}
app.use(mw);

@@ -114,1 +118,10 @@ debug('Use middleware: %s with options: %j', name, options);

}
function debugWrapper(mw) {
const fn = (ctx, next) => {
debug('[%s %s] enter middleware: %s', ctx.method, ctx.url, mw._name);
return mw(ctx, next);
};
fn._name = mw._name + 'DebugWrapper';
return fn;
}

2

package.json
{
"name": "egg-core",
"version": "4.16.2",
"version": "4.17.0",
"description": "A core Pluggable framework based on koa",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc