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.
@@ -1485,10 +1485,10 @@ class apiUtil$2 {
1485
1485
  static async getConfigValue(options) {
1486
1486
  configNeeded();
1487
1487
  const params = options.replacements;
1488
- let item = params.item;
1489
- delete params.item;
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(item);
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 item = params.item;
1507
- delete params.item; // if (await checkForwardsHost(options))
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(item);
1511
+ let c = apiUtil$2.parseCfgPath(cfgItem);
1512
1512
 
1513
1513
  if (typeof c.value === "object") {
1514
1514
  throw [err$2.ACCESS_REFUSED, `暂不支持修改复杂配置`];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "abler-api",
3
- "version": "0.1.65",
3
+ "version": "0.1.66",
4
4
  "description": "API服务相关工具",
5
5
  "main": "./dist/cjs/pp-util.js",
6
6
  "-module": "./dist/es/pp-util.js",