abler-api 0.1.67 → 0.1.69
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.
- package/dist/cjs/pp-util.js +25 -17
- package/package.json +1 -1
package/dist/cjs/pp-util.js
CHANGED
|
@@ -1643,25 +1643,29 @@ class preconditions$1 {
|
|
|
1643
1643
|
}
|
|
1644
1644
|
|
|
1645
1645
|
static async checkAll() {
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1646
|
+
try {
|
|
1647
|
+
// for (let i = 0; i < preconditions.checkFunctions.length; i++) {
|
|
1648
|
+
// const f = preconditions.checkFunctions[i];
|
|
1649
|
+
// // preconditions.addCheckPromise(f.check(f.args));
|
|
1650
|
+
// preconditions.pushMessage(await f.check(f.args));
|
|
1651
|
+
// }
|
|
1652
|
+
while (preconditions$1.checkFunctions.length > 0) {
|
|
1653
|
+
const f = preconditions$1.checkFunctions.shift();
|
|
1653
1654
|
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1655
|
+
if (preconditions$1.pushMessage(await f.check(f.args)) && f.blocked) {
|
|
1656
|
+
break;
|
|
1657
|
+
}
|
|
1658
|
+
} // for (let i = 0; i < preconditions.checkPromises.length; i++) {
|
|
1659
|
+
// preconditions.pushMessage(await preconditions.checkPromises[i]);
|
|
1660
|
+
// }
|
|
1660
1661
|
|
|
1661
1662
|
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1663
|
+
while (preconditions$1.checkPromises.length > 0) {
|
|
1664
|
+
const p = preconditions$1.checkPromises.shift();
|
|
1665
|
+
preconditions$1.pushMessage(await p);
|
|
1666
|
+
}
|
|
1667
|
+
} catch (e) {
|
|
1668
|
+
preconditions$1.pushMessage(e.message);
|
|
1665
1669
|
}
|
|
1666
1670
|
|
|
1667
1671
|
let text = "";
|
|
@@ -1738,7 +1742,9 @@ async function createEnvSettingFile(fileName, lastEnvSettingEx) {
|
|
|
1738
1742
|
}
|
|
1739
1743
|
|
|
1740
1744
|
async function checkExEnvSetting(loadjs) {
|
|
1741
|
-
if (
|
|
1745
|
+
if (conf$2._envSetting.localSettingImported) return "";
|
|
1746
|
+
|
|
1747
|
+
try {
|
|
1742
1748
|
let fileName = conf$2.getEnvSettingFileName();
|
|
1743
1749
|
|
|
1744
1750
|
if (!fs.existsSync(fileName)) {
|
|
@@ -1767,6 +1773,8 @@ async function checkExEnvSetting(loadjs) {
|
|
|
1767
1773
|
}
|
|
1768
1774
|
|
|
1769
1775
|
ppUtil$3.importExEnvSetting(conf$2._envSetting, fileName, loadjs);
|
|
1776
|
+
} catch (e) {
|
|
1777
|
+
return `导入本机环境配置失败\n${err$1.ERROR(e).message}`;
|
|
1770
1778
|
}
|
|
1771
1779
|
} // async function checkDatabase() {
|
|
1772
1780
|
// return dbCheck.check().then(info => info.updateMessage);
|