mm_machine 1.7.3 → 1.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.
- package/index.js +2 -2
- package/package.json +3 -3
- package/test.js +0 -2
package/index.js
CHANGED
|
@@ -756,7 +756,7 @@ Index.prototype.run = async function(name, method, ...params) {
|
|
|
756
756
|
if (name) {
|
|
757
757
|
var o = await this.get(name);
|
|
758
758
|
if (o) {
|
|
759
|
-
ret = o.run(method, params);
|
|
759
|
+
ret = o.run(method, ...params);
|
|
760
760
|
if (util.types.isPromise(ret)) {
|
|
761
761
|
ret = await ret;
|
|
762
762
|
}
|
|
@@ -768,7 +768,7 @@ Index.prototype.run = async function(name, method, ...params) {
|
|
|
768
768
|
var lt = this.list;
|
|
769
769
|
for (var i = 0; i < lt.length; i++) {
|
|
770
770
|
var o = lt[i];
|
|
771
|
-
ret = o.run(method, params);
|
|
771
|
+
ret = o.run(method, ...params);
|
|
772
772
|
if (util.types.isPromise(ret)) {
|
|
773
773
|
ret = await ret;
|
|
774
774
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mm_machine",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.4",
|
|
4
4
|
"description": "这是超级美眉框架机制构建辅助模块,用于快速构建一个机制",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
},
|
|
31
31
|
"homepage": "https://github.com/qiuwenwu/mm_machine#readme",
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"mm_config": "^1.1.
|
|
34
|
-
"mm_hot_reload": "^1.0.
|
|
33
|
+
"mm_config": "^1.1.3",
|
|
34
|
+
"mm_hot_reload": "^1.0.1"
|
|
35
35
|
}
|
|
36
36
|
}
|