Skip to content

Commit 4b9f25e

Browse files
committed
format
1 parent 74bed6a commit 4b9f25e

File tree

10 files changed

+492
-489
lines changed

10 files changed

+492
-489
lines changed

packages/app/rollup.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const es5Builds = [
3939
input: {
4040
index: 'index.ts',
4141
next: 'src/next/index.ts',
42-
"next/internal": 'src/next/internal.ts'
42+
'next/internal': 'src/next/internal.ts'
4343
},
4444
output: [
4545
{ dir: 'dist/cjs', format: 'cjs', sourcemap: true },
@@ -108,7 +108,7 @@ const es2017Builds = [
108108
input: {
109109
index: 'index.ts',
110110
next: 'src/next/index.ts',
111-
"next/internal": 'src/next/internal.ts'
111+
'next/internal': 'src/next/internal.ts'
112112
},
113113
output: {
114114
dir: 'dist/esm2017',

packages/app/src/compat/firebaseApp.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,7 @@ import { Component, ComponentType, Name } from '@firebase/component';
2525
import { DEFAULT_ENTRY_NAME } from '../constants';
2626
import { FirebaseAppInternalNext } from '../next/types';
2727
import { deleteApp } from '../next';
28-
import {
29-
addComponent,
30-
addOrOverwriteComponent
31-
} from '../next/internal';
28+
import { addComponent, addOrOverwriteComponent } from '../next/internal';
3229

3330
/**
3431
* Global context object for a collection of services using
@@ -105,7 +102,9 @@ export class FirebaseAppImpl implements FirebaseApp {
105102
instanceIdentifier: string = DEFAULT_ENTRY_NAME
106103
): void {
107104
// eslint-disable-next-line @typescript-eslint/no-explicit-any
108-
this.app.container.getProvider(name as any).clearInstance(instanceIdentifier);
105+
this.app.container
106+
.getProvider(name as any)
107+
.clearInstance(instanceIdentifier);
109108
}
110109

111110
/**

packages/app/src/compat/lite/firebaseAppLite.ts

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,14 @@
1515
* limitations under the License.
1616
*/
1717

18-
import {
19-
FirebaseApp,
20-
FirebaseOptions
21-
} from '@firebase/app-types';
18+
import { FirebaseApp, FirebaseOptions } from '@firebase/app-types';
2219
import {
2320
_FirebaseApp,
2421
_FirebaseNamespace,
2522
FirebaseService
2623
} from '@firebase/app-types/private';
2724
import { DEFAULT_ENTRY_NAME } from '../../constants';
28-
import {
29-
Component,
30-
ComponentType,
31-
Name
32-
} from '@firebase/component';
25+
import { Component, ComponentType, Name } from '@firebase/component';
3326
import { FirebaseAppInternalNext } from '../../next/types';
3427
import { addComponent } from '../../next/internal';
3528
import { deleteApp } from '../../next';
@@ -39,16 +32,12 @@ import { deleteApp } from '../../next';
3932
* a shared authentication state.
4033
*/
4134
export class FirebaseAppLiteImpl implements FirebaseApp {
42-
4335
constructor(
4436
private readonly app: FirebaseAppInternalNext,
4537
private readonly firebase: _FirebaseNamespace
4638
) {
4739
// add itself to container
48-
addComponent(
49-
app,
50-
new Component('app', () => this, ComponentType.PUBLIC)
51-
);
40+
addComponent(app, new Component('app', () => this, ComponentType.PUBLIC));
5241
}
5342

5443
get automaticDataCollectionEnabled(): boolean {

0 commit comments

Comments
 (0)