mm_machine 3.1.5 → 3.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/registry.js +3 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mm_machine",
3
- "version": "3.1.5",
3
+ "version": "3.1.6",
4
4
  "description": "A flexible Node.js plugin mechanism system for dynamic loading, management and execution of modules. Supports hot reload, lifecycle management, and modern JavaScript features.",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/registry.js CHANGED
@@ -168,9 +168,6 @@ Registry.prototype.checkConfig = function (config) {
168
168
  if (!title) {
169
169
  throw new TypeError('模块标题不能为空');
170
170
  }
171
- if (!description) {
172
- throw new TypeError('模块描述不能为空');
173
- }
174
171
  if (!config_file) {
175
172
  throw new TypeError('模块配置文件不能为空');
176
173
  }
@@ -178,6 +175,9 @@ Registry.prototype.checkConfig = function (config) {
178
175
  if (valid_auto.indexOf(auto_start) === -1 && ![true, false].includes(auto_start)) {
179
176
  throw new TypeError('模块自动启动配置错误,只能为true、false、auto');
180
177
  }
178
+ if (!description) {
179
+ description = '';
180
+ }
181
181
  if (!version) {
182
182
  cg.version = '1.0.0';
183
183
  }