abler-api 0.1.21 → 0.1.22
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 +4 -8
- package/package.json +1 -1
package/dist/cjs/pp-util.js
CHANGED
|
@@ -1433,10 +1433,6 @@ function configNeeded() {
|
|
|
1433
1433
|
|
|
1434
1434
|
var ppUtilApi = apiUtil$1;
|
|
1435
1435
|
|
|
1436
|
-
function commonjsRequire(path) {
|
|
1437
|
-
throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
1438
|
-
}
|
|
1439
|
-
|
|
1440
1436
|
const fs = require$$0__default$1["default"];
|
|
1441
1437
|
const path = require$$1__default$1["default"];
|
|
1442
1438
|
const ppUtil$1 = require$$1__default["default"].ppUtil;
|
|
@@ -1520,8 +1516,8 @@ class preconditions$1 {
|
|
|
1520
1516
|
*/
|
|
1521
1517
|
|
|
1522
1518
|
|
|
1523
|
-
static async checkExEnvSetting() {
|
|
1524
|
-
return await checkExEnvSetting();
|
|
1519
|
+
static async checkExEnvSetting(loadjs) {
|
|
1520
|
+
return await checkExEnvSetting(loadjs);
|
|
1525
1521
|
}
|
|
1526
1522
|
/**
|
|
1527
1523
|
* redis 可用性检查
|
|
@@ -1555,7 +1551,7 @@ async function createEnvSettingFile(fileName) {
|
|
|
1555
1551
|
}
|
|
1556
1552
|
}
|
|
1557
1553
|
|
|
1558
|
-
async function checkExEnvSetting() {
|
|
1554
|
+
async function checkExEnvSetting(loadjs) {
|
|
1559
1555
|
if (!conf._envSetting.localSettingImported) {
|
|
1560
1556
|
let fileName = conf.getEnvSettingFileName();
|
|
1561
1557
|
|
|
@@ -1563,7 +1559,7 @@ async function checkExEnvSetting() {
|
|
|
1563
1559
|
return await createEnvSettingFile(fileName);
|
|
1564
1560
|
}
|
|
1565
1561
|
|
|
1566
|
-
let envSettingEx =
|
|
1562
|
+
let envSettingEx = loadjs(fileName);
|
|
1567
1563
|
|
|
1568
1564
|
if (envSettingEx.cfgVersion !== conf._envSettings.default.cfgVersion) {
|
|
1569
1565
|
if (envSettingEx.cfgVersion !== "0.0") {
|