@osovitny/anatoly 3.21.28 → 3.21.29
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.
|
@@ -3,14 +3,14 @@ import { inject, Injectable, Inject, EventEmitter, Output, Pipe, NgModule, Input
|
|
|
3
3
|
import { BehaviorSubject, forkJoin, Subject, filter, takeUntil, map as map$1, catchError, of, merge, timer, fromEvent, firstValueFrom } from 'rxjs';
|
|
4
4
|
import { map, tap, mergeMap, finalize } from 'rxjs/operators';
|
|
5
5
|
import * as i1 from '@angular/common/http';
|
|
6
|
-
import { HttpClient, HttpBackend,
|
|
6
|
+
import { HttpClient, HttpBackend, provideHttpClient } from '@angular/common/http';
|
|
7
7
|
import { format, formatDistance, formatDistanceToNow } from 'date-fns';
|
|
8
8
|
import js_beautify from 'js-beautify';
|
|
9
9
|
import * as i1$1 from '@angular/router';
|
|
10
10
|
import { NavigationEnd, NavigationStart, NavigationCancel, NavigationError, RouterModule } from '@angular/router';
|
|
11
11
|
import { v4 } from 'uuid';
|
|
12
12
|
import * as i4 from '@azure/msal-angular';
|
|
13
|
-
import { MSAL_GUARD_CONFIG, MsalGuard, MsalService, MsalBroadcastService,
|
|
13
|
+
import { MSAL_GUARD_CONFIG, MsalGuard, MsalService, MsalBroadcastService, MSAL_INSTANCE, MsalModule } from '@azure/msal-angular';
|
|
14
14
|
import { BrowserUtils, EventType, InteractionStatus, InteractionType, InteractionRequiredAuthError, PromptValue, PublicClientApplication, LogLevel } from '@azure/msal-browser';
|
|
15
15
|
import * as i1$2 from '@angular/common';
|
|
16
16
|
import { DOCUMENT, CommonModule } from '@angular/common';
|
|
@@ -2568,7 +2568,7 @@ class AnatolyHttpInterceptor {
|
|
|
2568
2568
|
}
|
|
2569
2569
|
//2. Check is site External?
|
|
2570
2570
|
for (const i of this.externalSiteUrls) {
|
|
2571
|
-
if (url.indexOf(
|
|
2571
|
+
if (url.indexOf(i.toLowerCase()) >= 0) {
|
|
2572
2572
|
isExternalSite = true;
|
|
2573
2573
|
break;
|
|
2574
2574
|
}
|
|
@@ -2595,7 +2595,7 @@ class AnatolyHttpInterceptor {
|
|
|
2595
2595
|
//5. Check should we add CDN SAS tokens
|
|
2596
2596
|
if (isCDNEnabled) {
|
|
2597
2597
|
for (const i of this.autoCDNSASTokenUrls) {
|
|
2598
|
-
if (url.indexOf(
|
|
2598
|
+
if (url.indexOf(i.toLowerCase()) >= 0) {
|
|
2599
2599
|
newUrl = newUrl + cdnSasToken;
|
|
2600
2600
|
break;
|
|
2601
2601
|
}
|
|
@@ -9269,11 +9269,6 @@ function loggerCallback(logLevel, message, containsPii) {
|
|
|
9269
9269
|
const MSALProviders = [
|
|
9270
9270
|
MsalService,
|
|
9271
9271
|
MsalBroadcastService,
|
|
9272
|
-
{
|
|
9273
|
-
provide: HTTP_INTERCEPTORS,
|
|
9274
|
-
useClass: MsalInterceptor,
|
|
9275
|
-
multi: true
|
|
9276
|
-
},
|
|
9277
9272
|
{
|
|
9278
9273
|
provide: MSAL_INSTANCE,
|
|
9279
9274
|
useFactory: MSALInstanceFactory
|
|
@@ -9282,10 +9277,6 @@ const MSALProviders = [
|
|
|
9282
9277
|
provide: MSAL_GUARD_CONFIG,
|
|
9283
9278
|
useFactory: MSALGuardConfigFactory
|
|
9284
9279
|
},
|
|
9285
|
-
{
|
|
9286
|
-
provide: MSAL_INTERCEPTOR_CONFIG,
|
|
9287
|
-
useFactory: MSALInterceptorConfigFactory
|
|
9288
|
-
},
|
|
9289
9280
|
//App
|
|
9290
9281
|
AuthService,
|
|
9291
9282
|
AuthenticationGuard,
|