abler-api 0.1.68 → 0.1.70

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.
@@ -1742,7 +1742,9 @@ async function createEnvSettingFile(fileName, lastEnvSettingEx) {
1742
1742
  }
1743
1743
 
1744
1744
  async function checkExEnvSetting(loadjs) {
1745
- if (!conf$2._envSetting.localSettingImported) {
1745
+ if (conf$2._envSetting.localSettingImported) return "";
1746
+
1747
+ try {
1746
1748
  let fileName = conf$2.getEnvSettingFileName();
1747
1749
 
1748
1750
  if (!fs.existsSync(fileName)) {
@@ -1771,6 +1773,8 @@ async function checkExEnvSetting(loadjs) {
1771
1773
  }
1772
1774
 
1773
1775
  ppUtil$3.importExEnvSetting(conf$2._envSetting, fileName, loadjs);
1776
+ } catch (e) {
1777
+ return `导入本机环境配置失败\n${e.stack}`;
1774
1778
  }
1775
1779
  } // async function checkDatabase() {
1776
1780
  // return dbCheck.check().then(info => info.updateMessage);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "abler-api",
3
- "version": "0.1.68",
3
+ "version": "0.1.70",
4
4
  "description": "API服务相关工具",
5
5
  "main": "./dist/cjs/pp-util.js",
6
6
  "-module": "./dist/es/pp-util.js",