mm_machine 1.5.1 → 1.5.2

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/index.js +8 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -109,6 +109,14 @@ Item.prototype.remove_module = function(module) {
109
109
  // require.cache[path] = null;
110
110
  };
111
111
 
112
+ /**
113
+ * @description 卸载对象
114
+ * @param {String} file 文件
115
+ */
116
+ Item.prototype.unloadObj = function(file){
117
+ this.remove_module(file || this.filename);
118
+ }
119
+
112
120
  /**
113
121
  * @description 加载配置对象
114
122
  * @param {Object} obj 配置对象
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mm_machine",
3
- "version": "1.5.1",
3
+ "version": "1.5.2",
4
4
  "description": "这是超级美眉框架机制构建辅助模块,用于快速构建一个机制",
5
5
  "main": "index.js",
6
6
  "scripts": {