Comparing version 1.0.4 to 1.0.5
@@ -5,4 +5,4 @@ require("mm_expand"); | ||
* 重够配置,同步保存 | ||
* @param {Object} _config | ||
* @param {String} _jsonFile | ||
* @param {Object} _config 配置对象 | ||
* @param {String} _jsonFile 配置文件 | ||
*/ | ||
@@ -13,2 +13,5 @@ module.exports = function(_config, _jsonFile) { | ||
} | ||
if (!_config) { | ||
_config = _jsonFile.loadJson(); | ||
} | ||
return new Proxy(_config, { | ||
@@ -22,2 +25,2 @@ set: function(obj, prop, value) { | ||
}); | ||
} | ||
} |
{ | ||
"name": "mm_config", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "这是超级美眉配置同步器,用于更改配置同步保存为JSON文件", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13312
39