mm_config 2.2.2 → 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 -8
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -287,10 +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
- return dict[f].getProxy();
293
- }
294
290
  let cfg = new Config({ file: f, ...config }, options);
295
291
  cfg.saveSync(); // 确保文件存在
296
292
  // 注册配置字典
@@ -307,10 +303,6 @@ function create(file, options = {}, config = {}) {
307
303
  */
308
304
  async function createAsync(file, options = {}, config = {}) {
309
305
  let f = file.fullname();
310
- // 检查是否已存在配置
311
- if (dict[f]) {
312
- return dict[f].getAsyncProxy();
313
- }
314
306
  let cfg = new Config({ file: f, ...config }, options);
315
307
  await cfg.saveAsync(); // 确保文件存在
316
308
  // 注册配置字典
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mm_config",
3
- "version": "2.2.2",
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": {