@infrab4a/connect-angular 4.1.2-beta.15 → 4.1.2-beta.16

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, enableIndexedDbPersistence, docSnapshots, doc } from '@angular/fire/firestore';
11
+ import { Firestore, provideFirestore, getFirestore, initializeFirestore, memoryLocalCache, 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,13 +389,14 @@ AngularFirestoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0",
389
389
  ], imports: [AngularElasticSeachModule,
390
390
  provideFirestore((injector) => {
391
391
  const platformId = injector.get(PLATFORM_ID);
392
- console.log('platformId', platformId);
393
392
  if (isPlatformServer(platformId))
394
393
  return getFirestore(injector.get(FirebaseApp));
395
394
  if (!MobileOperationSystemCheckerHelper.isAppleDevice())
396
395
  return getFirestore(injector.get(FirebaseApp));
397
- const firestore = initializeFirestore(injector.get(FirebaseApp), { experimentalForceLongPolling: true });
398
- enableIndexedDbPersistence(firestore).catch(console.error);
396
+ const firestore = initializeFirestore(injector.get(FirebaseApp), {
397
+ experimentalForceLongPolling: true,
398
+ localCache: memoryLocalCache(),
399
+ });
399
400
  return firestore;
400
401
  })] });
401
402
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirestoreModule, decorators: [{
@@ -405,13 +406,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
405
406
  AngularElasticSeachModule,
406
407
  provideFirestore((injector) => {
407
408
  const platformId = injector.get(PLATFORM_ID);
408
- console.log('platformId', platformId);
409
409
  if (isPlatformServer(platformId))
410
410
  return getFirestore(injector.get(FirebaseApp));
411
411
  if (!MobileOperationSystemCheckerHelper.isAppleDevice())
412
412
  return getFirestore(injector.get(FirebaseApp));
413
- const firestore = initializeFirestore(injector.get(FirebaseApp), { experimentalForceLongPolling: true });
414
- enableIndexedDbPersistence(firestore).catch(console.error);
413
+ const firestore = initializeFirestore(injector.get(FirebaseApp), {
414
+ experimentalForceLongPolling: true,
415
+ localCache: memoryLocalCache(),
416
+ });
415
417
  return firestore;
416
418
  }),
417
419
  ],
@@ -2086,14 +2088,10 @@ AngularConnectModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", ve
2086
2088
  WishlistService,
2087
2089
  ], imports: [provideFirebaseApp((injector) => {
2088
2090
  const appName = injector.get(FIREBASE_APP_NAME) || '[DEFAULT]';
2089
- console.log('fire', appName);
2090
- console.log('options', FIREBASE_OPTIONS);
2091
- console.log('fire', getApp);
2092
2091
  try {
2093
2092
  return getApp(appName);
2094
2093
  }
2095
2094
  catch (error) {
2096
- console.log('initializeApp', error instanceof Error && error.message);
2097
2095
  return initializeApp(injector.get(FIREBASE_OPTIONS), appName);
2098
2096
  }
2099
2097
  }),
@@ -2107,14 +2105,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
2107
2105
  imports: [
2108
2106
  provideFirebaseApp((injector) => {
2109
2107
  const appName = injector.get(FIREBASE_APP_NAME) || '[DEFAULT]';
2110
- console.log('fire', appName);
2111
- console.log('options', FIREBASE_OPTIONS);
2112
- console.log('fire', getApp);
2113
2108
  try {
2114
2109
  return getApp(appName);
2115
2110
  }
2116
2111
  catch (error) {
2117
- console.log('initializeApp', error instanceof Error && error.message);
2118
2112
  return initializeApp(injector.get(FIREBASE_OPTIONS), appName);
2119
2113
  }
2120
2114
  }),