Socket
Socket
Sign inDemoInstall

egg-core

Package Overview
Dependencies
Maintainers
4
Versions
137
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

egg-core - npm Package Compare versions

Comparing version 3.1.0 to 3.2.0

8

History.md
3.2.0 / 2017-04-11
==================
* test: add testcase for appPlugins and customPlugins (#72)
* fix: find the true callee bebind proxy (#70)
* feat:expose appPlugins & customPlugins (#68)
* feat: expose BaseContextClass (#71)
3.1.0 / 2017-04-10

@@ -3,0 +11,0 @@ ==================

11

index.js
'use strict';
module.exports.EggCore = require('./lib/egg');
module.exports.EggLoader = require('./lib/loader/egg_loader');
const EggCore = require('./lib/egg');
const EggLoader = require('./lib/loader/egg_loader');
const BaseContextClass = require('./lib/utils/base_context_class');
module.exports = {
EggCore,
EggLoader,
BaseContextClass,
};

@@ -90,2 +90,5 @@ 'use strict';

this.allPlugins = {};
this.appPlugins = appPlugins;
this.customPlugins = customPlugins;
this._extendPlugins(this.allPlugins, eggPlugins);

@@ -92,0 +95,0 @@ this._extendPlugins(this.allPlugins, appPlugins);

@@ -67,3 +67,3 @@ 'use strict';

Error.prepareStackTrace = prepareObjectStackTrace;
Error.stackTraceLimit = 3;
Error.stackTraceLimit = 4;

@@ -73,3 +73,10 @@ // capture the stack

Error.captureStackTrace(obj);
const callSite = obj.stack[2];
let callSite = obj.stack[2];
/* istanbul ignore next */
if (callSite) {
// egg-mock will create a proxy
// https://github.com/eggjs/egg-mock/blob/master/lib/app.js#L167
const filename = callSite.getFileName() || '';
if (filename.endsWith('egg-mock/lib/app.js')) callSite = obj.stack[3];
}

@@ -76,0 +83,0 @@ Error.prepareStackTrace = prep;

2

package.json
{
"name": "egg-core",
"version": "3.1.0",
"version": "3.2.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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc