@infrab4a/connect-angular 4.4.0-beta.11 → 4.4.0-beta.13

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, isPlatformServer } 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, initializeFirestore, memoryLocalCache, docSnapshots, doc } from '@angular/fire/firestore';
12
12
  import * as i2 from '@angular/fire/storage';
13
13
  import { Storage, provideStorage, getStorage } from '@angular/fire/storage';
14
14
  import { combineLatest, from, of, throwError, Subject, iif, forkJoin } from 'rxjs';
@@ -414,12 +414,13 @@ AngularFirestoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0",
414
414
  ], imports: [AngularElasticSeachModule,
415
415
  provideFirestore((injector) => {
416
416
  const platformId = injector.get(PLATFORM_ID);
417
- if (isPlatformServer(platformId))
418
- return getFirestore(injector.get(FirebaseApp));
419
- if (!MobileOperationSystemCheckerHelper.isAppleDevice())
420
- return getFirestore(injector.get(FirebaseApp));
417
+ if (isPlatformServer(platformId) || !MobileOperationSystemCheckerHelper.isAppleDevice())
418
+ return initializeFirestore(injector.get(FirebaseApp), {
419
+ ignoreUndefinedProperties: true,
420
+ });
421
421
  const firestore = initializeFirestore(injector.get(FirebaseApp), {
422
422
  experimentalForceLongPolling: true,
423
+ ignoreUndefinedProperties: true,
423
424
  localCache: memoryLocalCache(),
424
425
  });
425
426
  return firestore;
@@ -432,12 +433,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
432
433
  AngularElasticSeachModule,
433
434
  provideFirestore((injector) => {
434
435
  const platformId = injector.get(PLATFORM_ID);
435
- if (isPlatformServer(platformId))
436
- return getFirestore(injector.get(FirebaseApp));
437
- if (!MobileOperationSystemCheckerHelper.isAppleDevice())
438
- return getFirestore(injector.get(FirebaseApp));
436
+ if (isPlatformServer(platformId) || !MobileOperationSystemCheckerHelper.isAppleDevice())
437
+ return initializeFirestore(injector.get(FirebaseApp), {
438
+ ignoreUndefinedProperties: true,
439
+ });
439
440
  const firestore = initializeFirestore(injector.get(FirebaseApp), {
440
441
  experimentalForceLongPolling: true,
442
+ ignoreUndefinedProperties: true,
441
443
  localCache: memoryLocalCache(),
442
444
  });
443
445
  return firestore;