mm_machine 1.6.0 → 1.6.1
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 +8 -4
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -63,7 +63,11 @@ class Item {
|
|
|
63
63
|
/**
|
|
64
64
|
* 状态, 0表示未启用, 1表示启用
|
|
65
65
|
*/
|
|
66
|
-
"state": 1
|
|
66
|
+
"state": 1,
|
|
67
|
+
/**
|
|
68
|
+
* 显示, 0表示不显示, 1表示显示
|
|
69
|
+
*/
|
|
70
|
+
"show": 0
|
|
67
71
|
};
|
|
68
72
|
|
|
69
73
|
/**
|
|
@@ -101,10 +105,10 @@ Item.prototype.new_script = function(file) {
|
|
|
101
105
|
|
|
102
106
|
/**
|
|
103
107
|
* @description 移除模块
|
|
104
|
-
* @param {Object}
|
|
108
|
+
* @param {Object} m
|
|
105
109
|
*/
|
|
106
|
-
Item.prototype.remove_module = function(
|
|
107
|
-
var path = require.resolve(
|
|
110
|
+
Item.prototype.remove_module = function(m) {
|
|
111
|
+
var path = require.resolve(m);
|
|
108
112
|
delete require.cache[path];
|
|
109
113
|
// require.cache[path] = null;
|
|
110
114
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mm_machine",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.1",
|
|
4
4
|
"description": "这是超级美眉框架机制构建辅助模块,用于快速构建一个机制",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -30,6 +30,6 @@
|
|
|
30
30
|
},
|
|
31
31
|
"homepage": "https://github.com/qiuwenwu/mm_machine#readme",
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"mm_config": "^1.1.
|
|
33
|
+
"mm_config": "^1.1.1"
|
|
34
34
|
}
|
|
35
35
|
}
|