Skip to content

Commit 9a6b14b

Browse files
authored
Jh expose app (#400)
* exposes app * actually expose app * changelog
1 parent df27316 commit 9a6b14b

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

changelog.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
feature - Adds functions.app() api to access the app instance used by functions
12
fixed - improved types of the `Change` class to describe both `before` and `after` fields as non-optional

src/apps.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ import * as _ from 'lodash';
2424
import * as firebase from 'firebase-admin';
2525
import { firebaseConfig } from './config';
2626

27-
/** @internal */
2827
export function apps(): apps.Apps {
2928
if (typeof apps.singleton === 'undefined') {
3029
apps.init();

src/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
import * as analytics from './providers/analytics';
2525
import * as auth from './providers/auth';
2626

27+
import * as apps from './apps';
2728
import * as crashlytics from './providers/crashlytics';
2829
import * as database from './providers/database';
2930
import * as firestore from './providers/firestore';
@@ -32,9 +33,11 @@ import * as pubsub from './providers/pubsub';
3233
import * as remoteConfig from './providers/remoteConfig';
3334
import * as storage from './providers/storage';
3435
import { firebaseConfig } from './config';
36+
var app = apps.apps();
3537

3638
export {
3739
analytics,
40+
app,
3841
auth,
3942
crashlytics,
4043
database,

0 commit comments

Comments
 (0)