File tree Expand file tree Collapse file tree 1 file changed +18
-18
lines changed
packages/installations/src Expand file tree Collapse file tree 1 file changed +18
-18
lines changed Original file line number Diff line number Diff line change 16
16
*/
17
17
18
18
import firebase from '@firebase/app' ;
19
- import {
20
- _FirebaseNamespace
21
- } from '@firebase/app-types/private' ;
19
+ import { _FirebaseNamespace } from '@firebase/app-types/private' ;
22
20
import { FirebaseInstallations } from '@firebase/installations-types' ;
23
21
24
22
import { deleteInstallation , getId , getToken } from './functions' ;
@@ -29,22 +27,24 @@ import { FirebaseApp } from '@firebase/app-types';
29
27
export function registerInstallations ( instance : _FirebaseNamespace ) : void {
30
28
const installationsName = 'installations' ;
31
29
32
- instance . INTERNAL . registerComponent ( new Component (
33
- installationsName ,
34
- container => {
35
- const app = container . getProvider < FirebaseApp > ( 'app' ) . getImmediate ( ) ! ;
36
- // Throws if app isn't configured properly.
37
- extractAppConfig ( app ) ;
30
+ instance . INTERNAL . registerComponent (
31
+ new Component (
32
+ installationsName ,
33
+ container => {
34
+ const app = container . getProvider < FirebaseApp > ( 'app' ) . getImmediate ( ) ! ;
35
+ // Throws if app isn't configured properly.
36
+ extractAppConfig ( app ) ;
38
37
39
- return {
40
- app,
41
- getId : ( ) => getId ( app ) ,
42
- getToken : ( ) => getToken ( app ) ,
43
- delete : ( ) => deleteInstallation ( app )
44
- } ;
45
- } ,
46
- ComponentType . PUBLIC
47
- ) ) ;
38
+ return {
39
+ app,
40
+ getId : ( ) => getId ( app ) ,
41
+ getToken : ( ) => getToken ( app ) ,
42
+ delete : ( ) => deleteInstallation ( app )
43
+ } ;
44
+ } ,
45
+ ComponentType . PUBLIC
46
+ )
47
+ ) ;
48
48
}
49
49
50
50
registerInstallations ( firebase as _FirebaseNamespace ) ;
You can’t perform that action at this time.
0 commit comments