Socket
Socket
Sign inDemoInstall

egg-core

Package Overview
Dependencies
Maintainers
15
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 4.22.1 to 4.23.0

6

History.md
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 @@ ==================

9

lib/loader/mixin/plugin.js

@@ -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",

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