File tree Expand file tree Collapse file tree 3 files changed +14
-3
lines changed
packages/database/src/api Expand file tree Collapse file tree 3 files changed +14
-3
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " @firebase/firestore " : patch
3
+ ---
4
+
5
+ Internal changes to support upcoming modular API.
Original file line number Diff line number Diff line change @@ -37,7 +37,10 @@ registerAuth(ClientPlatform.WORKER);
37
37
export function getAuth ( app = getApp ( ) ) : Auth {
38
38
// Unlike the other environments, we need to explicitly check if indexedDb is
39
39
// available. That means doing the whole rigamarole
40
- const auth = _getProvider ( app , _ComponentName . AUTH ) . getImmediate ( ) as AuthImpl ;
40
+ const auth = _getProvider (
41
+ app ,
42
+ _ComponentName . AUTH
43
+ ) . getImmediate ( ) as AuthImpl ;
41
44
42
45
// This promise is intended to float; auth initialization happens in the
43
46
// background, meanwhile the auth object may be used by the app.
Original file line number Diff line number Diff line change @@ -157,14 +157,17 @@ export class Database implements FirebaseService {
157
157
validateUrl ( apiName , 1 , parsedURL ) ;
158
158
159
159
const repoInfo = parsedURL . repoInfo ;
160
- if ( ! repoInfo . isCustomHost ( ) && repoInfo . host !== this . repo_ . repoInfo_ . host ) {
160
+ if (
161
+ ! repoInfo . isCustomHost ( ) &&
162
+ repoInfo . host !== this . repo_ . repoInfo_ . host
163
+ ) {
161
164
fatal (
162
165
apiName +
163
166
': Host name does not match the current database: ' +
164
167
'(found ' +
165
168
repoInfo . host +
166
169
' but expected ' +
167
- this . repo_ . repoInfo_ . host +
170
+ this . repo_ . repoInfo_ . host +
168
171
')'
169
172
) ;
170
173
}
You can’t perform that action at this time.
0 commit comments