@infrab4a/connect-angular 4.1.2-beta.3 → 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.
- package/esm2020/angular-firebase-auth.module.mjs +17 -3
- package/esm2020/angular-firestore.module.mjs +18 -5
- package/fesm2015/infrab4a-connect-angular.mjs +34 -7
- package/fesm2015/infrab4a-connect-angular.mjs.map +1 -1
- package/fesm2020/infrab4a-connect-angular.mjs +34 -7
- package/fesm2020/infrab4a-connect-angular.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -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';
|
|
@@ -122,7 +121,14 @@ AngularFirebaseAuthModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0
|
|
|
122
121
|
return getApp(appName);
|
|
123
122
|
}
|
|
124
123
|
catch (error) {
|
|
125
|
-
|
|
124
|
+
try {
|
|
125
|
+
console.log('initializeApp', error instanceof Error && error.message);
|
|
126
|
+
return initializeApp(injector.get(FIREBASE_OPTIONS), appName);
|
|
127
|
+
}
|
|
128
|
+
catch (error) {
|
|
129
|
+
console.log('getApp', error instanceof Error && error.message);
|
|
130
|
+
return getApp(appName);
|
|
131
|
+
}
|
|
126
132
|
}
|
|
127
133
|
}),
|
|
128
134
|
provideAuth((injector) => getAuth(injector.get(FirebaseApp)))] });
|
|
@@ -136,7 +142,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
136
142
|
return getApp(appName);
|
|
137
143
|
}
|
|
138
144
|
catch (error) {
|
|
139
|
-
|
|
145
|
+
try {
|
|
146
|
+
console.log('initializeApp', error instanceof Error && error.message);
|
|
147
|
+
return initializeApp(injector.get(FIREBASE_OPTIONS), appName);
|
|
148
|
+
}
|
|
149
|
+
catch (error) {
|
|
150
|
+
console.log('getApp', error instanceof Error && error.message);
|
|
151
|
+
return getApp(appName);
|
|
152
|
+
}
|
|
140
153
|
}
|
|
141
154
|
}),
|
|
142
155
|
provideAuth((injector) => getAuth(injector.get(FirebaseApp))),
|
|
@@ -411,10 +424,17 @@ AngularFirestoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0",
|
|
|
411
424
|
provideFirebaseApp((injector) => {
|
|
412
425
|
const appName = injector.get(FIREBASE_APP_NAME) || '[DEFAULT]';
|
|
413
426
|
try {
|
|
414
|
-
return getApp
|
|
427
|
+
return getApp(appName);
|
|
415
428
|
}
|
|
416
429
|
catch (error) {
|
|
417
|
-
|
|
430
|
+
try {
|
|
431
|
+
console.log('initializeApp', error instanceof Error && error.message);
|
|
432
|
+
return initializeApp(injector.get(FIREBASE_OPTIONS), appName);
|
|
433
|
+
}
|
|
434
|
+
catch (error) {
|
|
435
|
+
console.log('getApp', error instanceof Error && error.message);
|
|
436
|
+
return getApp(appName);
|
|
437
|
+
}
|
|
418
438
|
}
|
|
419
439
|
}),
|
|
420
440
|
provideFirestore((injector) => {
|
|
@@ -433,10 +453,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
433
453
|
provideFirebaseApp((injector) => {
|
|
434
454
|
const appName = injector.get(FIREBASE_APP_NAME) || '[DEFAULT]';
|
|
435
455
|
try {
|
|
436
|
-
return getApp
|
|
456
|
+
return getApp(appName);
|
|
437
457
|
}
|
|
438
458
|
catch (error) {
|
|
439
|
-
|
|
459
|
+
try {
|
|
460
|
+
console.log('initializeApp', error instanceof Error && error.message);
|
|
461
|
+
return initializeApp(injector.get(FIREBASE_OPTIONS), appName);
|
|
462
|
+
}
|
|
463
|
+
catch (error) {
|
|
464
|
+
console.log('getApp', error instanceof Error && error.message);
|
|
465
|
+
return getApp(appName);
|
|
466
|
+
}
|
|
440
467
|
}
|
|
441
468
|
}),
|
|
442
469
|
provideFirestore((injector) => {
|