mm_machine 1.9.9 → 2.0.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.
Files changed (2) hide show
  1. package/item.js +1 -1
  2. package/package.json +1 -1
package/item.js CHANGED
@@ -97,7 +97,7 @@ class Item {
97
97
  * @param {Object} config 配置
98
98
  */
99
99
  Item.prototype.set_config = function(config) {
100
- if (config.func_file !== this.config.func_file) {
100
+ if (config && config.func_file !== this.config.func_file) {
101
101
  this.complete = false;
102
102
  }
103
103
  this.config = conf(Object.assign({}, this.config, config || {}), this.filename);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mm_machine",
3
- "version": "1.9.9",
3
+ "version": "2.0.0",
4
4
  "description": "这是超级美眉框架机制构建辅助模块,用于快速构建一个机制",
5
5
  "main": "index.js",
6
6
  "scripts": {