@ekhein/http-request 2.0.6 → 2.0.7
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/http-request.js +2 -1
- package/package.json +1 -1
package/dist/http-request.js
CHANGED
|
@@ -162,8 +162,9 @@ class HttpRequest {
|
|
|
162
162
|
}));
|
|
163
163
|
/* Transform */
|
|
164
164
|
this.instance.interceptors.request.use((request) => __awaiter(this, void 0, void 0, function* () {
|
|
165
|
+
var _a;
|
|
165
166
|
if (request.serviceType == 1) {
|
|
166
|
-
request.baseURL = String(process.env.CORE_URL);
|
|
167
|
+
request.baseURL = String((_a = request.baseURL) !== null && _a !== void 0 ? _a : process.env.CORE_URL);
|
|
167
168
|
}
|
|
168
169
|
if (request.serviceType == 2) {
|
|
169
170
|
const group = (0, path_to_regexp_1.compile)(request.path)(request.params).split("/").at(-2);
|