@@ -72,7 +72,9 @@ export class Firestore implements FirestoreService {
7272
7373 private _settings = new FirestoreSettingsImpl ( { } ) ;
7474 private _settingsFrozen = false ;
75- private _emulatorOptions ? : { mockUserToken ?: EmulatorMockTokenOptions | string ; } ;
75+ private _emulatorOptions ?: {
76+ mockUserToken ?: EmulatorMockTokenOptions | string ;
77+ } ;
7678
7779 // A task that is assigned when the terminate() is invoked and resolved when
7880 // all components have shut down. Otherwise, Firestore is not terminated,
@@ -122,22 +124,18 @@ export class Firestore implements FirestoreService {
122124 }
123125 this . _settings = new FirestoreSettingsImpl ( settings ) ;
124126 this . _emulatorOptions = settings . emulatorOptions ;
125-
127+
126128 if ( settings . credentials !== undefined ) {
127129 this . _authCredentials = makeAuthCredentialsProvider ( settings . credentials ) ;
128130 }
129131 }
130132
131- _getSettings ( ) : FirestoreSettingsImpl {
132- return this . _settings ;
133- }
134-
135- _getPrivateSettings ( ) : PrivateSettings {
136- const privateSettings : PrivateSettings = {
133+ _getSettings ( ) : PrivateSettings {
134+ const privateSettings : PrivateSettings = {
137135 ...this . _settings ,
138136 emulatorOptions : this . _emulatorOptions
139137 } ;
140- if ( this . _settings . localCache !== undefined ) {
138+ if ( this . _settings . localCache !== undefined ) {
141139 privateSettings . localCache = this . _settings . localCache ;
142140 }
143141 return privateSettings ;
@@ -330,7 +328,7 @@ export function connectFirestoreEmulator(
330328 } = { }
331329) : void {
332330 firestore = cast ( firestore , Firestore ) ;
333- const settings = firestore . _getPrivateSettings ( ) ;
331+ const settings = firestore . _getSettings ( ) ;
334332 const newHostSetting = `${ host } :${ port } ` ;
335333
336334 if ( settings . host !== DEFAULT_HOST && settings . host !== newHostSetting ) {
@@ -348,11 +346,11 @@ export function connectFirestoreEmulator(
348346
349347 // No-op if the new configuration matches the current configuration. This supports SSR
350348 // enviornments which might call `connectFirestoreEmulator` multiple times as a standard practice.
351- if ( deepEqual ( newSettings , settings ) ) {
352- console . error ( " DEDB settings are the same!" ) ;
349+ if ( deepEqual ( newSettings , settings ) ) {
350+ console . error ( ' DEDB settings are the same!' ) ;
353351 return ;
354352 }
355- console . error ( " DEDB settings differ!" )
353+ console . error ( ' DEDB settings differ!' ) ;
356354
357355 firestore . _setSettings ( newSettings ) ;
358356
0 commit comments