Comparing version 4.10.1 to 4.10.2
4.10.2 / 2018-09-21 | ||
================== | ||
**fixes** | ||
* [[`0b0c23f`](http://github.com/eggjs/egg-core/commit/0b0c23f502fc0c2641fa7c1740a9777236e8f4db)] - fix: app.js export can be non-function (#182) (Yiyu He <<dead_horse@qq.com>>) | ||
4.10.1 / 2018-09-21 | ||
@@ -3,0 +9,0 @@ ================== |
@@ -64,5 +64,8 @@ 'use strict'; | ||
this.lifecycle.addBootHook(bootHook); | ||
} else { | ||
} else if (is.function(bootHook)) { | ||
// if is boot function, wrap to class | ||
// for compatibility | ||
this.lifecycle.addFunctionAsBootHook(bootHook); | ||
} else { | ||
this.options.logger.warn('[egg-loader] %s must exports a boot class', bootFilePath); | ||
} | ||
@@ -69,0 +72,0 @@ } |
{ | ||
"name": "egg-core", | ||
"version": "4.10.1", | ||
"version": "4.10.2", | ||
"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
111130
2705