mm_machine 2.2.8 → 2.2.9

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/index.js +8 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -46,6 +46,14 @@ class Manager extends Mod {
46
46
  }
47
47
  }
48
48
 
49
+ /**
50
+ * 获取所有模块信息
51
+ * @returns {object[]} 模块信息数组
52
+ */
53
+ Manager.prototype.getInfos = function () {
54
+ return this.infos;
55
+ };
56
+
49
57
  /**
50
58
  * 创建模块状态模型
51
59
  * @param {string} name 模块名
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mm_machine",
3
- "version": "2.2.8",
3
+ "version": "2.2.9",
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": {