mm_machine 1.9.6 → 1.9.8
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/demo/test1/index.js +1 -1
- package/index.js +3 -0
- package/item.js +9 -1
- package/package.json +6 -6
package/demo/test1/index.js
CHANGED
package/index.js
CHANGED
package/item.js
CHANGED
|
@@ -139,7 +139,15 @@ Item.prototype.remove_module = function(m) {
|
|
|
139
139
|
* @param {String} file 文件
|
|
140
140
|
*/
|
|
141
141
|
Item.prototype.unload_script = function(file) {
|
|
142
|
-
|
|
142
|
+
if (!file) {
|
|
143
|
+
var f = this.config.func_file;
|
|
144
|
+
if (f) {
|
|
145
|
+
file = f.fullname(this.dir)
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
if (file) {
|
|
149
|
+
this.remove_module(file);
|
|
150
|
+
}
|
|
143
151
|
this.complete = false;
|
|
144
152
|
}
|
|
145
153
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mm_machine",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.8",
|
|
4
4
|
"description": "这是超级美眉框架机制构建辅助模块,用于快速构建一个机制",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
},
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
12
|
-
"url": "git+https://
|
|
12
|
+
"url": "git+https://gitee.com/qiuwenwu91/mm_machine.git"
|
|
13
13
|
},
|
|
14
14
|
"keywords": [
|
|
15
15
|
"common",
|
|
@@ -26,11 +26,11 @@
|
|
|
26
26
|
"author": "邱文武",
|
|
27
27
|
"license": "ISC",
|
|
28
28
|
"bugs": {
|
|
29
|
-
"url": "https://
|
|
29
|
+
"url": "https://gitee.com/qiuwenwu91/mm_machine/issues"
|
|
30
30
|
},
|
|
31
|
-
"homepage": "https://
|
|
31
|
+
"homepage": "https://gitee.com/qiuwenwu91/mm_machine#readme",
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"mm_config": "^1.1.
|
|
34
|
-
"mm_hot_reload": "^1.0.
|
|
33
|
+
"mm_config": "^1.1.5",
|
|
34
|
+
"mm_hot_reload": "^1.0.7"
|
|
35
35
|
}
|
|
36
36
|
}
|