@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.
@@ -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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ekhein/http-request",
3
- "version": "2.0.6",
3
+ "version": "2.0.7",
4
4
  "license": "MIT",
5
5
  "author": "ekhein",
6
6
  "main": "./dist/index.js",