@infrab4a/connect-angular 4.1.2-beta.4 → 4.1.2-beta.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.
|
@@ -9,7 +9,6 @@ import { Auth, provideAuth, getAuth, getIdToken, authState } from '@angular/fire
|
|
|
9
9
|
import { isPlatformBrowser } from '@angular/common';
|
|
10
10
|
import * as i1$2 from '@angular/fire/firestore';
|
|
11
11
|
import { Firestore, provideFirestore, getFirestore, initializeFirestore, memoryLocalCache, docSnapshots, doc } from '@angular/fire/firestore';
|
|
12
|
-
import { getApp as getApp$1, initializeApp as initializeApp$1 } from 'firebase/app';
|
|
13
12
|
import { combineLatest, from, of, throwError, Subject, iif, forkJoin } from 'rxjs';
|
|
14
13
|
import { map, mergeMap, catchError, concatMap, tap } from 'rxjs/operators';
|
|
15
14
|
import cookie from 'js-cookie';
|
|
@@ -425,16 +424,16 @@ AngularFirestoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0",
|
|
|
425
424
|
provideFirebaseApp((injector) => {
|
|
426
425
|
const appName = injector.get(FIREBASE_APP_NAME) || '[DEFAULT]';
|
|
427
426
|
try {
|
|
428
|
-
return getApp
|
|
427
|
+
return getApp(appName);
|
|
429
428
|
}
|
|
430
429
|
catch (error) {
|
|
431
430
|
try {
|
|
432
431
|
console.log('initializeApp', error instanceof Error && error.message);
|
|
433
|
-
return initializeApp
|
|
432
|
+
return initializeApp(injector.get(FIREBASE_OPTIONS), appName);
|
|
434
433
|
}
|
|
435
434
|
catch (error) {
|
|
436
435
|
console.log('getApp', error instanceof Error && error.message);
|
|
437
|
-
return getApp
|
|
436
|
+
return getApp(appName);
|
|
438
437
|
}
|
|
439
438
|
}
|
|
440
439
|
}),
|
|
@@ -454,16 +453,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
454
453
|
provideFirebaseApp((injector) => {
|
|
455
454
|
const appName = injector.get(FIREBASE_APP_NAME) || '[DEFAULT]';
|
|
456
455
|
try {
|
|
457
|
-
return getApp
|
|
456
|
+
return getApp(appName);
|
|
458
457
|
}
|
|
459
458
|
catch (error) {
|
|
460
459
|
try {
|
|
461
460
|
console.log('initializeApp', error instanceof Error && error.message);
|
|
462
|
-
return initializeApp
|
|
461
|
+
return initializeApp(injector.get(FIREBASE_OPTIONS), appName);
|
|
463
462
|
}
|
|
464
463
|
catch (error) {
|
|
465
464
|
console.log('getApp', error instanceof Error && error.message);
|
|
466
|
-
return getApp
|
|
465
|
+
return getApp(appName);
|
|
467
466
|
}
|
|
468
467
|
}
|
|
469
468
|
}),
|