@infrab4a/connect-angular 4.1.2-beta.11 → 4.1.2-beta.12

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.
@@ -8,7 +8,7 @@ import * as i1 from '@angular/fire/auth';
8
8
  import { Auth, provideAuth, getAuth, getIdToken, authState } from '@angular/fire/auth';
9
9
  import { isPlatformBrowser } from '@angular/common';
10
10
  import * as i1$1 from '@angular/fire/firestore';
11
- import { Firestore, provideFirestore, getFirestore, initializeFirestore, memoryLocalCache, docSnapshots, doc } from '@angular/fire/firestore';
11
+ import { Firestore, provideFirestore, getFirestore, initializeFirestore, enableIndexedDbPersistence, docSnapshots, doc } from '@angular/fire/firestore';
12
12
  import { combineLatest, from, of, throwError, Subject, iif, forkJoin } from 'rxjs';
13
13
  import { map, mergeMap, catchError, concatMap, tap } from 'rxjs/operators';
14
14
  import cookie from 'js-cookie';
@@ -389,11 +389,10 @@ AngularFirestoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0",
389
389
  ], imports: [AngularElasticSeachModule,
390
390
  provideFirestore((injector) => {
391
391
  if (!MobileOperationSystemCheckerHelper.isAppleDevice())
392
- return getFirestore(injector.get(FirebaseApp));
393
- return initializeFirestore(injector.get(FirebaseApp), {
394
- experimentalForceLongPolling: true,
395
- localCache: memoryLocalCache(),
396
- });
392
+ return getFirestore();
393
+ const firestore = initializeFirestore(injector.get(FirebaseApp), { experimentalForceLongPolling: true });
394
+ enableIndexedDbPersistence(firestore).catch(console.error);
395
+ return firestore;
397
396
  })] });
398
397
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirestoreModule, decorators: [{
399
398
  type: NgModule,
@@ -402,11 +401,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
402
401
  AngularElasticSeachModule,
403
402
  provideFirestore((injector) => {
404
403
  if (!MobileOperationSystemCheckerHelper.isAppleDevice())
405
- return getFirestore(injector.get(FirebaseApp));
406
- return initializeFirestore(injector.get(FirebaseApp), {
407
- experimentalForceLongPolling: true,
408
- localCache: memoryLocalCache(),
409
- });
404
+ return getFirestore();
405
+ const firestore = initializeFirestore(injector.get(FirebaseApp), { experimentalForceLongPolling: true });
406
+ enableIndexedDbPersistence(firestore).catch(console.error);
407
+ return firestore;
410
408
  }),
411
409
  ],
412
410
  providers: [