diff --git a/libs/ngx-sherfire/src/lib/app/firebase-app.service.ts b/libs/ngx-sherfire/src/lib/app/firebase-app.service.ts index ea2c835..a717abd 100644 --- a/libs/ngx-sherfire/src/lib/app/firebase-app.service.ts +++ b/libs/ngx-sherfire/src/lib/app/firebase-app.service.ts @@ -1,5 +1,5 @@ import { inject, Injectable, NgZone } from '@angular/core'; -import firebase from 'firebase'; +import firebase from 'firebase/app'; import { FirebaseConfig } from '../firebase-config.service'; import { NgxSherfireModule } from '../ngx-sherfire.module'; diff --git a/libs/ngx-sherfire/src/lib/auth/create-firebase-user$.ts b/libs/ngx-sherfire/src/lib/auth/create-firebase-user$.ts index 016fb55..02c3972 100644 --- a/libs/ngx-sherfire/src/lib/auth/create-firebase-user$.ts +++ b/libs/ngx-sherfire/src/lib/auth/create-firebase-user$.ts @@ -1,7 +1,7 @@ import type { NgZone } from '@angular/core'; import { error, unresolved } from '@skunkteam/sherlock'; import { fromEventPattern, fromPromise } from '@skunkteam/sherlock-utils'; -import type firebase from 'firebase'; +import type firebase from 'firebase/app'; import type { FirebaseAuth } from './firebase-auth.service'; import type { FirebaseUser$ } from './firebase-user$.service'; diff --git a/libs/ngx-sherfire/src/lib/auth/firebase-auth.service.ts b/libs/ngx-sherfire/src/lib/auth/firebase-auth.service.ts index 2098122..e2119dc 100644 --- a/libs/ngx-sherfire/src/lib/auth/firebase-auth.service.ts +++ b/libs/ngx-sherfire/src/lib/auth/firebase-auth.service.ts @@ -1,5 +1,5 @@ import { inject, Injectable, NgZone } from '@angular/core'; -import firebase from 'firebase'; +import firebase from 'firebase/app'; import 'firebase/auth'; import { FirebaseApp } from '../app'; import { NgxSherfireModule } from '../ngx-sherfire.module'; diff --git a/libs/ngx-sherfire/src/lib/auth/firebase-user$.service.ts b/libs/ngx-sherfire/src/lib/auth/firebase-user$.service.ts index 87e49a2..05982b2 100644 --- a/libs/ngx-sherfire/src/lib/auth/firebase-user$.service.ts +++ b/libs/ngx-sherfire/src/lib/auth/firebase-user$.service.ts @@ -1,7 +1,6 @@ import { inject, Injectable, NgZone } from '@angular/core'; import type { Derivable } from '@skunkteam/sherlock'; -import type firebase from 'firebase'; -import 'firebase/auth'; +import type firebase from 'firebase/app'; import { NgxSherfireModule } from '../ngx-sherfire.module'; import { createFirebaseUser$ } from './create-firebase-user$'; import { FirebaseAuth } from './firebase-auth.service'; diff --git a/libs/ngx-sherfire/src/lib/firebase-config.service.ts b/libs/ngx-sherfire/src/lib/firebase-config.service.ts index 7511343..48654f9 100644 --- a/libs/ngx-sherfire/src/lib/firebase-config.service.ts +++ b/libs/ngx-sherfire/src/lib/firebase-config.service.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import type firebase from 'firebase'; +import type firebase from 'firebase/app'; @Injectable() export class FirebaseConfig { diff --git a/libs/ngx-sherfire/src/lib/firestore/augment-prototypes.ts b/libs/ngx-sherfire/src/lib/firestore/augment-prototypes.ts index a2c48b4..08eecab 100644 --- a/libs/ngx-sherfire/src/lib/firestore/augment-prototypes.ts +++ b/libs/ngx-sherfire/src/lib/firestore/augment-prototypes.ts @@ -1,7 +1,7 @@ import type { NgZone } from '@angular/core'; import { Derivable, lens, SettableDerivable } from '@skunkteam/sherlock'; import { derivableCache } from '@skunkteam/sherlock-utils'; -import firebase from 'firebase'; +import firebase from 'firebase/app'; import 'firebase/firestore'; import { snapshot$ } from './snapshot'; diff --git a/libs/ngx-sherfire/src/lib/firestore/firebase-firestore.service.test.ts b/libs/ngx-sherfire/src/lib/firestore/firebase-firestore.service.test.ts index 57d4486..b4dade3 100644 --- a/libs/ngx-sherfire/src/lib/firestore/firebase-firestore.service.test.ts +++ b/libs/ngx-sherfire/src/lib/firestore/firebase-firestore.service.test.ts @@ -1,5 +1,5 @@ import { TestBed } from '@angular/core/testing'; -import firebase from 'firebase'; +import firebase from 'firebase/app'; import { NgxSherfireModule } from '../ngx-sherfire.module'; import { FirebaseFirestore } from './firebase-firestore.service'; diff --git a/libs/ngx-sherfire/src/lib/firestore/firebase-firestore.service.ts b/libs/ngx-sherfire/src/lib/firestore/firebase-firestore.service.ts index b655850..1d25d3f 100644 --- a/libs/ngx-sherfire/src/lib/firestore/firebase-firestore.service.ts +++ b/libs/ngx-sherfire/src/lib/firestore/firebase-firestore.service.ts @@ -1,5 +1,5 @@ import { inject, Injectable, NgZone } from '@angular/core'; -import firebase from 'firebase'; +import firebase from 'firebase/app'; import 'firebase/firestore'; import { FirebaseApp } from '../app'; import { FirebaseConfig } from '../firebase-config.service'; diff --git a/libs/ngx-sherfire/src/lib/firestore/snapshot.ts b/libs/ngx-sherfire/src/lib/firestore/snapshot.ts index 6f5abfa..493628e 100644 --- a/libs/ngx-sherfire/src/lib/firestore/snapshot.ts +++ b/libs/ngx-sherfire/src/lib/firestore/snapshot.ts @@ -1,7 +1,7 @@ import type { NgZone } from '@angular/core'; import { Derivable, error } from '@skunkteam/sherlock'; import { fromEventPattern } from '@skunkteam/sherlock-utils'; -import type firebase from 'firebase'; +import type firebase from 'firebase/app'; export function snapshot$(ref: R & Snapshottable, zone: NgZone): Derivable> { return fromEventPattern>(value$ => diff --git a/libs/ngx-sherfire/src/lib/ngx-sherfire.module.test.ts b/libs/ngx-sherfire/src/lib/ngx-sherfire.module.test.ts index a1128a7..cebb911 100644 --- a/libs/ngx-sherfire/src/lib/ngx-sherfire.module.test.ts +++ b/libs/ngx-sherfire/src/lib/ngx-sherfire.module.test.ts @@ -1,6 +1,6 @@ import { TestBed } from '@angular/core/testing'; import { isDerivable, Unwrap } from '@skunkteam/sherlock'; -import firebase from 'firebase'; +import firebase from 'firebase/app'; import { FirebaseApp } from './app'; import { FirebaseAuth, FirebaseUser$ } from './auth'; import type { FirebaseConfig } from './firebase-config.service';