Comparing version 1.0.1 to 1.0.2
@@ -9,2 +9,5 @@ require("mm_expand"); | ||
module.exports = function(_config, _jsonFile){ | ||
if(!_jsonFile){ | ||
_jsonFile = this.filename; | ||
} | ||
return new Proxy(_config, { | ||
@@ -11,0 +14,0 @@ set: function(obj, prop, value) { |
{ | ||
"name": "mm_config", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "这是超级美眉配置同步器,用于更改配置同步保存为JSON文件", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
var conf = require('./index.js'); | ||
async function test(){ | ||
// var config = conf({ | ||
// name: "demo", | ||
// state: 1 | ||
// }, "./config.json"); | ||
this.filename = "./config.json"; | ||
var config = conf({ | ||
name: "demo", | ||
state: 1 | ||
}, "./config.json"); | ||
}); | ||
config.name = "test"; | ||
@@ -9,0 +15,0 @@ config.sort = 1; |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
1597
34
0