Skip to content

Commit 9b46a8f

Browse files
committed
Place the call to registerVerion and registerInstallations at the same place
1 parent e2a1930 commit 9b46a8f

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

packages-exp/installations-exp/src/functions/config.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,11 @@
1515
* limitations under the License.
1616
*/
1717

18-
import { registerVersion, _registerComponent } from '@firebase/app-exp';
18+
import { _registerComponent } from '@firebase/app-exp';
1919
import { _FirebaseService } from '@firebase/app-types-exp';
2020
import { Component, ComponentType } from '@firebase/component';
2121
import { getInstallations, deleteInstallations } from '../api/index';
2222

23-
import { name, version } from '../../package.json';
24-
2523
export function registerInstallations(): void {
2624
const installationsName = 'installations-exp';
2725

@@ -44,5 +42,3 @@ export function registerInstallations(): void {
4442
)
4543
);
4644
}
47-
48-
registerVersion(name, version);

packages-exp/installations-exp/src/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@
1717

1818
// import firebase from '@firebase/app-exp';
1919
import { registerInstallations } from './functions/config';
20+
import { registerVersion } from '@firebase/app-exp';
21+
import { name, version } from '../package.json';
2022

2123
export * from './api';
2224

2325
registerInstallations();
26+
registerVersion(name, version);

0 commit comments

Comments
 (0)