@osovitny/anatoly 3.20.5 → 3.20.6

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.
@@ -2560,7 +2560,8 @@ class AnatolyHttpInterceptor {
2560
2560
  ];
2561
2561
  this.authorizationTokenExceptions = [
2562
2562
  'assets',
2563
- 'dist'
2563
+ 'dist',
2564
+ 'loadAppInitializerSettings'
2564
2565
  ];
2565
2566
  this.autoCDNSASTokenUrls = [
2566
2567
  'chunks',
@@ -2626,8 +2627,8 @@ class AnatolyHttpInterceptor {
2626
2627
  }
2627
2628
  }
2628
2629
  }
2629
- //4. appContext
2630
- if (url.indexOf('/appcontext/') > -1) {
2630
+ //4. getCurrentContext
2631
+ if (url.indexOf('getCurrentContext') > -1) {
2631
2632
  authorizationTokenRequired = this.authService.isUserAuthenticated();
2632
2633
  }
2633
2634
  // Change Url if need it -------------------------------------------->
@@ -2648,7 +2649,9 @@ class AnatolyHttpInterceptor {
2648
2649
  }
2649
2650
  //7. set ca
2650
2651
  let app = getCurrentApp();
2651
- newUrl = this.setQS(newUrl, 'ca=' + app.type);
2652
+ if (app) {
2653
+ newUrl = this.setQS(newUrl, 'ca=' + app.type);
2654
+ }
2652
2655
  //8. set new url
2653
2656
  req = req.clone({ url: newUrl });
2654
2657
  req = req.clone({ headers: req.headers.set('Accept', 'application/json') });
@@ -2730,7 +2733,7 @@ class StarterService extends ApiServiceBase {
2730
2733
  let stopwatch = new Stopwatch("@osovitny/anatoly. StarterService: getting AppContext from API");
2731
2734
  stopwatch.start();
2732
2735
  this.baseUrl = `${ApiUrl}/app`;
2733
- return this.get('applicationStarting').pipe(map(data => {
2736
+ return this.get('appStarting').pipe(map(data => {
2734
2737
  //Logging
2735
2738
  stopwatch.stop();
2736
2739
  stopwatch.printElapsedAsMilliseconds();