egg-core
Advanced tools
Comparing version 4.22.1 to 4.23.0
4.23.0 / 2022-02-10 | ||
================== | ||
**features** | ||
* [[`f8169f1`](http://github.com/eggjs/egg-core/commit/f8169f1a6cfc451448364958e880f4db0cb33b63)] - feat: support plugin strict config (#240) (吖猩 <<whx89768@alibaba-inc.com>>) | ||
4.22.1 / 2022-01-28 | ||
@@ -3,0 +9,0 @@ ================== |
@@ -221,5 +221,6 @@ 'use strict'; | ||
// eggPlugin: { | ||
// "name": "", plugin name, must be same as name in config/plugin.js | ||
// "dep": [], dependent plugins | ||
// "env": "" env | ||
// "name": "", plugin name, must be same as name in config/plugin.js | ||
// "dep": [], dependent plugins | ||
// "env": "" env | ||
// "strict": true, whether check plugin name, default to true. | ||
// } | ||
@@ -245,3 +246,3 @@ // } | ||
if (config.name && config.name !== plugin.name) { | ||
if (config.name && config.strict !== false && config.name !== plugin.name) { | ||
// pluginName is configured in config/plugin.js | ||
@@ -248,0 +249,0 @@ // pluginConfigName is pkg.eggPlugin.name |
{ | ||
"name": "egg-core", | ||
"version": "4.22.1", | ||
"version": "4.23.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
133835
2975