@stemy/ngx-utils 11.2.4 → 11.2.5
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 +3 -4
- package/bundles/stemy-ngx-utils.umd.js.map +1 -1
- package/bundles/stemy-ngx-utils.umd.min.js +1 -1
- package/bundles/stemy-ngx-utils.umd.min.js.map +1 -1
- package/esm2015/ngx-utils/services/config.service.js +4 -5
- package/fesm2015/stemy-ngx-utils.js +3 -4
- package/fesm2015/stemy-ngx-utils.js.map +1 -1
- package/package.json +1 -1
|
@@ -3224,10 +3224,9 @@
|
|
|
3224
3224
|
};
|
|
3225
3225
|
ConfigService.prototype.prepareUrl = function (url, ending) {
|
|
3226
3226
|
var project = !this.loadedConfig ? "" : this.loadedConfig.project;
|
|
3227
|
-
url = url ?
|
|
3228
|
-
url = url.replace("[project]", project);
|
|
3229
|
-
|
|
3230
|
-
return url.startsWith("/") ? this.loadedConfig.baseDomain + url.substr(1) : url;
|
|
3227
|
+
url = (url === null || url === void 0 ? void 0 : url.startsWith("/")) ? this.loadedConfig.baseDomain + url.substr(1) : url || "";
|
|
3228
|
+
url = ("" + url.replace(/\/+$/, "") + ending).replace("[project]", project);
|
|
3229
|
+
return this.universal.isServer && url.startsWith("//") ? "http:" + url : url;
|
|
3231
3230
|
};
|
|
3232
3231
|
ConfigService.prototype.getConfigValue = function (key) {
|
|
3233
3232
|
return this.loadedConfig[key];
|