@stemy/ngx-utils 13.0.0 → 13.0.1
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.
|
@@ -2467,7 +2467,6 @@ class StaticAuthService {
|
|
|
2467
2467
|
}
|
|
2468
2468
|
}
|
|
2469
2469
|
|
|
2470
|
-
const JSON5 = require("json5");
|
|
2471
2470
|
class ConfigService {
|
|
2472
2471
|
constructor(http, universal, rootElement, baseConfig = null, scriptParams = null) {
|
|
2473
2472
|
this.http = http;
|
|
@@ -2533,7 +2532,7 @@ class ConfigService {
|
|
|
2533
2532
|
const configUrl = this.configUrl;
|
|
2534
2533
|
try {
|
|
2535
2534
|
const config5 = await this.http.get(isDevMode() ? `${configUrl}5` : configUrl, { responseType: "text" }).toPromise();
|
|
2536
|
-
return
|
|
2535
|
+
return require("json5").parse(config5);
|
|
2537
2536
|
}
|
|
2538
2537
|
catch (e) {
|
|
2539
2538
|
try {
|