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.
- package/dist/cjs/pp-util.js +2 -7
- package/package.json +1 -1
package/dist/cjs/pp-util.js
CHANGED
|
@@ -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:
|
|
1065
|
-
port: x.port ||
|
|
1059
|
+
hosts: appSetting.serverHosts || ["localhost"],
|
|
1060
|
+
port: x.listenPort || +params.port || 8443
|
|
1066
1061
|
};
|
|
1067
1062
|
}
|
|
1068
1063
|
/**
|