mm_machine 1.6.9 → 1.7.0

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.
@@ -1,5 +1,5 @@
1
-
2
1
  var i = 0;
2
+
3
3
  function test() {
4
4
  console.log("你好123", i++)
5
5
  }
@@ -11,10 +11,10 @@ function main() {
11
11
 
12
12
  exports.main = main;
13
13
 
14
- exports.main_before = function(){
14
+ exports.main_before = function() {
15
15
  console.log("请求前")
16
16
  }
17
17
 
18
- exports.main_after = function(ret){
18
+ exports.main_after = async function(ret) {
19
19
  console.log("请求后", ret)
20
20
  }
package/index.js CHANGED
@@ -314,7 +314,7 @@ Item.prototype.save = function() {
314
314
  * @param {Object} param1 参数一
315
315
  * @param {Object} param2 参数二
316
316
  */
317
- Item.prototype.main = function(param1, param2) {
317
+ Item.prototype.main = async function(...params) {
318
318
  return null;
319
319
  };
320
320
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mm_machine",
3
- "version": "1.6.9",
3
+ "version": "1.7.0",
4
4
  "description": "这是超级美眉框架机制构建辅助模块,用于快速构建一个机制",
5
5
  "main": "index.js",
6
6
  "scripts": {