mm_config 2.2.3 → 2.2.4

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 +0 -12
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -287,12 +287,6 @@ Config.prototype.destroy = function () {
287
287
  */
288
288
  function create(file, options = {}, config = {}) {
289
289
  let f = file.fullname();
290
- // 检查是否已存在配置
291
- if (dict[f]) {
292
- // 如果配置已存在,更新options并返回代理
293
- dict[f].setOptions(options);
294
- return dict[f].getProxy();
295
- }
296
290
  let cfg = new Config({ file: f, ...config }, options);
297
291
  cfg.saveSync(); // 确保文件存在
298
292
  // 注册配置字典
@@ -309,12 +303,6 @@ function create(file, options = {}, config = {}) {
309
303
  */
310
304
  async function createAsync(file, options = {}, config = {}) {
311
305
  let f = file.fullname();
312
- // 检查是否已存在配置
313
- if (dict[f]) {
314
- // 如果配置已存在,更新options并返回异步代理
315
- dict[f].setOptions(options);
316
- return dict[f].getAsyncProxy();
317
- }
318
306
  let cfg = new Config({ file: f, ...config }, options);
319
307
  await cfg.saveAsync(); // 确保文件存在
320
308
  // 注册配置字典
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mm_config",
3
- "version": "2.2.3",
3
+ "version": "2.2.4",
4
4
  "description": "Super Meimei Configuration Synchronizer - Automatically sync configuration changes to JSON files",
5
5
  "main": "index.js",
6
6
  "scripts": {