mm_machine 2.7.3 → 2.7.4

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/mod.js +3 -2
  2. package/package.json +4 -4
package/mod.js CHANGED
@@ -423,9 +423,10 @@ Mod.prototype.emitEvent = function (event, ...args) {
423
423
  * 触发事件 - 随机触发
424
424
  * @param {string} event 事件名
425
425
  * @param {...any} args 事件参数
426
+ * @returns {Promise<any>} 事件触发结果
426
427
  */
427
- Mod.prototype.emitEventRace = function (event, ...args) {
428
- this.getEventer()?.emitRace(event, ...args);
428
+ Mod.prototype.emitEventRace = async function (event, ...args) {
429
+ return await this.getEventer()?.emitRace(event, ...args);
429
430
  };
430
431
 
431
432
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mm_machine",
3
- "version": "2.7.3",
3
+ "version": "2.7.4",
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": {
@@ -34,9 +34,9 @@
34
34
  ],
35
35
  "dependencies": {
36
36
  "@prettier/sync": "^0.6.1",
37
- "mm_config": "^2.3.6",
38
- "mm_hot_reload": "^1.3.3",
39
- "mm_tpl": "^2.5.5"
37
+ "mm_config": "^2.3.7",
38
+ "mm_hot_reload": "^1.3.4",
39
+ "mm_tpl": "^2.5.6"
40
40
  },
41
41
  "devDependencies": {
42
42
  "eslint": "^10.3.0",