Skip to content

Commit 72bf9b2

Browse files
Merge branch 'mrschmidt/documentref-compat' of github.com:firebase/firebase-js-sdk into mrschmidt/documentref-compat
2 parents 9fc4c37 + c060c28 commit 72bf9b2

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

.changeset/short-mangos-beg.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@firebase/firestore": patch
3+
---
4+
5+
Internal changes to support upcoming modular API.

packages-exp/auth-exp/index.webworker.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,10 @@ registerAuth(ClientPlatform.WORKER);
3737
export function getAuth(app = getApp()): Auth {
3838
// Unlike the other environments, we need to explicitly check if indexedDb is
3939
// 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;
4144

4245
// This promise is intended to float; auth initialization happens in the
4346
// background, meanwhile the auth object may be used by the app.

packages/database/src/api/Database.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,14 +157,17 @@ export class Database implements FirebaseService {
157157
validateUrl(apiName, 1, parsedURL);
158158

159159
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+
) {
161164
fatal(
162165
apiName +
163166
': Host name does not match the current database: ' +
164167
'(found ' +
165168
repoInfo.host +
166169
' but expected ' +
167-
this.repo_.repoInfo_.host+
170+
this.repo_.repoInfo_.host +
168171
')'
169172
);
170173
}

0 commit comments

Comments
 (0)