Comparing version 3.1.0 to 3.2.0
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; |
{ | ||
"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", |
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
80873
2142