Comparing version 3.2.2 to 3.3.0
3.3.0 / 2017-04-15 | ||
================== | ||
* feat: always load extend/xx.unittest.js when run test (#75) | ||
3.2.2 / 2017-04-14 | ||
@@ -3,0 +8,0 @@ ================== |
@@ -80,10 +80,12 @@ 'use strict'; | ||
loadExtend(name, proto) { | ||
// 获取需要加载的文件 | ||
// All extend files | ||
const filepaths = this.getLoadUnits().map(unit => path.join(unit.path, 'app/extend', name)); | ||
// if use mm.env and serverEnv is not unittest | ||
const isAddUnittest = 'EGG_MOCK_SERVER_ENV' in process.env && this.serverEnv !== 'unittest'; | ||
for (let i = 0, l = filepaths.length; i < l; i++) { | ||
const filepath = filepaths[i]; | ||
filepaths.push(filepath + `.${this.serverEnv}`); | ||
if (isAddUnittest) filepaths.push(filepath + '.unittest'); | ||
} | ||
const mergeRecord = new Map(); | ||
@@ -90,0 +92,0 @@ for (const filepath of filepaths) { |
{ | ||
"name": "egg-core", | ||
"version": "3.2.2", | ||
"version": "3.3.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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
82379
2170
16