abler-api 0.1.65 → 0.1.66
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 +6 -6
- package/package.json +1 -1
package/dist/cjs/pp-util.js
CHANGED
|
@@ -1485,10 +1485,10 @@ class apiUtil$2 {
|
|
|
1485
1485
|
static async getConfigValue(options) {
|
|
1486
1486
|
configNeeded();
|
|
1487
1487
|
const params = options.replacements;
|
|
1488
|
-
let
|
|
1489
|
-
delete params.
|
|
1488
|
+
let cfgItem = params._cfgItem;
|
|
1489
|
+
delete params._cfgItem;
|
|
1490
1490
|
if (await apiUtil$2.checkForwardsHost(options)) return true;
|
|
1491
|
-
let c = apiUtil$2.parseCfgPath(
|
|
1491
|
+
let c = apiUtil$2.parseCfgPath(cfgItem);
|
|
1492
1492
|
delete c.parent;
|
|
1493
1493
|
c.host = ppUtil$4.getMyIp();
|
|
1494
1494
|
return c;
|
|
@@ -1503,12 +1503,12 @@ class apiUtil$2 {
|
|
|
1503
1503
|
static async setConfigValue(options) {
|
|
1504
1504
|
configNeeded();
|
|
1505
1505
|
const params = options.replacements;
|
|
1506
|
-
let
|
|
1507
|
-
delete params.
|
|
1506
|
+
let cfgItem = params._cfgItem;
|
|
1507
|
+
delete params._cfgItem; // if (await checkForwardsHost(options))
|
|
1508
1508
|
// return true;
|
|
1509
1509
|
|
|
1510
1510
|
await apiUtil$2.parametersOK(params, "value");
|
|
1511
|
-
let c = apiUtil$2.parseCfgPath(
|
|
1511
|
+
let c = apiUtil$2.parseCfgPath(cfgItem);
|
|
1512
1512
|
|
|
1513
1513
|
if (typeof c.value === "object") {
|
|
1514
1514
|
throw [err$2.ACCESS_REFUSED, `暂不支持修改复杂配置`];
|