mm_config 2.1.2 → 2.1.3

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 (3) hide show
  1. package/base.js +1 -1
  2. package/index.js +3 -3
  3. package/package.json +1 -1
package/base.js CHANGED
@@ -21,7 +21,7 @@ module.exports = function(_config, _jsonFile) {
21
21
  try {
22
22
  _jsonFile.saveJson(obj); // 使用saveJson原型函数,参数为对象和缩进空格数
23
23
  } catch (error) {
24
- console.error('保存配置失败:', error);
24
+ console.error('[Config] 保存配置失败:', error);
25
25
  }
26
26
  }
27
27
  return true
package/index.js CHANGED
@@ -30,7 +30,7 @@ class ConfigManager {
30
30
  try {
31
31
  this.config = _jsonFile.loadJson();
32
32
  } catch(error) {
33
- $.log.error(`Error loading config from ${_jsonFile}:`, error.message);
33
+ $.log.error(`[Config] Error loading config from ${_jsonFile}:`, error.message);
34
34
  this.config = {};
35
35
  }
36
36
  }
@@ -45,7 +45,7 @@ class ConfigManager {
45
45
  this.filePath.saveJson(this.config);
46
46
  return true;
47
47
  } catch(error) {
48
- $.log.error(`Error saving config to ${this.filePath}:`, error.message);
48
+ $.log.error(`[Config] Error saving config to ${this.filePath}:`, error.message);
49
49
  return false;
50
50
  }
51
51
  }
@@ -66,7 +66,7 @@ class ConfigManager {
66
66
  return true;
67
67
  })
68
68
  .catch(error => {
69
- $.log.error(`Error saving config to ${this.filePath}:`, error.message);
69
+ $.log.error(`[Config] Error saving config to ${this.filePath}:`, error.message);
70
70
  return false;
71
71
  });
72
72
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mm_config",
3
- "version": "2.1.2",
3
+ "version": "2.1.3",
4
4
  "description": "这是超级美眉配置同步器,用于更改配置同步保存为JSON文件",
5
5
  "main": "index.js",
6
6
  "scripts": {