abler-api 0.1.19 → 0.1.20

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.
@@ -1055,14 +1055,9 @@ class apiUtil$1 {
1055
1055
 
1056
1056
  static getEnvHosts(params) {
1057
1057
  configNeeded();
1058
- let envType = ppUtil$2.getEnvType();
1059
- let x = conf$1.envHosts[envType] || {
1060
- hosts: ["localhost"]
1061
- };
1062
- let port = +params.port || 8443;
1063
1058
  return {
1064
- hosts: x.hosts,
1065
- port: x.port || port
1059
+ hosts: appSetting.serverHosts || ["localhost"],
1060
+ port: x.listenPort || +params.port || 8443
1066
1061
  };
1067
1062
  }
1068
1063
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "abler-api",
3
- "version": "0.1.19",
3
+ "version": "0.1.20",
4
4
  "description": "API服务相关工具",
5
5
  "main": "./dist/cjs/pp-util.js",
6
6
  "-module": "./dist/es/pp-util.js",