@infrab4a/connect-angular 4.0.0-beta.18 → 4.0.0-beta.19

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.
@@ -13,9 +13,9 @@ import { docSnapshots, doc, Firestore, provideFirestore } from '@angular/fire/fi
13
13
  import * as i1$2 from '@angular/common/http';
14
14
  import * as i1$3 from '@angular/fire/app';
15
15
  import { provideFirebaseApp, initializeApp } from '@angular/fire/app';
16
+ import { isPlatformBrowser } from '@angular/common';
16
17
  import { initializeApp as initializeApp$1 } from 'firebase/app';
17
18
  import { getFirestore } from 'firebase/firestore';
18
- import { isPlatformBrowser } from '@angular/common';
19
19
 
20
20
  class AuthService {
21
21
  constructor(angularFireAuth, userRepository) {
@@ -1013,14 +1013,16 @@ AngularFirestoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0",
1013
1013
  firestore,
1014
1014
  interceptors: {
1015
1015
  request: (request) => {
1016
- // if (isPlatformBrowser(platformId)) return request
1017
- // const interval = setInterval(() => {}, 100)
1018
- // request.interval = interval
1016
+ if (isPlatformBrowser(platformId))
1017
+ return request;
1018
+ const interval = setInterval(() => { }, 100);
1019
+ request.interval = interval;
1019
1020
  return request;
1020
1021
  },
1021
1022
  response: (response, request) => {
1022
- // if (isPlatformBrowser(platformId)) return response
1023
- // clearInterval(request.interval)
1023
+ if (isPlatformBrowser(platformId))
1024
+ return response;
1025
+ clearInterval(request.interval);
1024
1026
  return response;
1025
1027
  },
1026
1028
  },
@@ -1230,14 +1232,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
1230
1232
  firestore,
1231
1233
  interceptors: {
1232
1234
  request: (request) => {
1233
- // if (isPlatformBrowser(platformId)) return request
1234
- // const interval = setInterval(() => {}, 100)
1235
- // request.interval = interval
1235
+ if (isPlatformBrowser(platformId))
1236
+ return request;
1237
+ const interval = setInterval(() => { }, 100);
1238
+ request.interval = interval;
1236
1239
  return request;
1237
1240
  },
1238
1241
  response: (response, request) => {
1239
- // if (isPlatformBrowser(platformId)) return response
1240
- // clearInterval(request.interval)
1242
+ if (isPlatformBrowser(platformId))
1243
+ return response;
1244
+ clearInterval(request.interval);
1241
1245
  return response;
1242
1246
  },
1243
1247
  },