abler-api 0.1.32 → 0.1.33

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.
@@ -1597,7 +1597,15 @@ async function checkExEnvSetting(loadjs) {
1597
1597
  }
1598
1598
  }
1599
1599
 
1600
- return await createEnvSettingFile(fileName, envSettingEx);
1600
+ let msg = await createEnvSettingFile(fileName, envSettingEx);
1601
+
1602
+ if (!msg) {
1603
+ delete require.cache[cfgFile];
1604
+ const envSettingEx = loadjs(fileName);
1605
+ pputil.importExEnvSetting(conf$2._envSetting, envSettingEx);
1606
+ }
1607
+
1608
+ return msg;
1601
1609
  }
1602
1610
  }
1603
1611
  } // async function checkDatabase() {
@@ -1584,7 +1584,15 @@ async function checkExEnvSetting(loadjs) {
1584
1584
  }
1585
1585
  }
1586
1586
 
1587
- return await createEnvSettingFile(fileName, envSettingEx);
1587
+ let msg = await createEnvSettingFile(fileName, envSettingEx);
1588
+
1589
+ if (!msg) {
1590
+ delete require.cache[cfgFile];
1591
+ const envSettingEx = loadjs(fileName);
1592
+ pputil.importExEnvSetting(conf$2._envSetting, envSettingEx);
1593
+ }
1594
+
1595
+ return msg;
1588
1596
  }
1589
1597
  }
1590
1598
  } // async function checkDatabase() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "abler-api",
3
- "version": "0.1.32",
3
+ "version": "0.1.33",
4
4
  "description": "API服务相关工具",
5
5
  "main": "./dist/cjs/pp-util.js",
6
6
  "module": "./dist/es/pp-util.js",