@stemy/ngx-utils 12.2.19 → 12.2.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/bundles/stemy-ngx-utils.umd.js +6 -7
- package/bundles/stemy-ngx-utils.umd.js.map +1 -1
- package/esm2015/ngx-utils/services/api.service.js +6 -2
- package/esm2015/ngx-utils/services/base-http.service.js +2 -6
- package/fesm2015/stemy-ngx-utils.js +6 -6
- package/fesm2015/stemy-ngx-utils.js.map +1 -1
- package/package.json +1 -1
|
@@ -3286,13 +3286,8 @@
|
|
|
3286
3286
|
};
|
|
3287
3287
|
BaseHttpService.prototype.absoluteUrl = function (url, options) {
|
|
3288
3288
|
return __awaiter(this, void 0, void 0, function () {
|
|
3289
|
-
var absoluteUrl;
|
|
3290
3289
|
return __generator(this, function (_c) {
|
|
3291
|
-
|
|
3292
|
-
if (url == "api-docs") {
|
|
3293
|
-
return [2 /*return*/, absoluteUrl.replace("/api", "")];
|
|
3294
|
-
}
|
|
3295
|
-
return [2 /*return*/, absoluteUrl];
|
|
3290
|
+
return [2 /*return*/, this.parseUrl(url)];
|
|
3296
3291
|
});
|
|
3297
3292
|
});
|
|
3298
3293
|
};
|
|
@@ -3331,7 +3326,11 @@
|
|
|
3331
3326
|
configurable: true
|
|
3332
3327
|
});
|
|
3333
3328
|
ApiService.prototype.url = function (url) {
|
|
3334
|
-
|
|
3329
|
+
var baseUrl = this.expressRequestUrl("/api/" + url);
|
|
3330
|
+
if (url == "api-docs" || url == "socket") {
|
|
3331
|
+
return baseUrl.replace("/api/", "/");
|
|
3332
|
+
}
|
|
3333
|
+
return baseUrl;
|
|
3335
3334
|
};
|
|
3336
3335
|
ApiService.prototype.get = function (url, options, body) {
|
|
3337
3336
|
return this.getPromise(url, options, body);
|