@firebase/firestore 3.12.1-canary.e642fc7cd → 3.12.1-canary.fe7da7ec3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,7 +6,7 @@ import { FirebaseError, getDefaultEmulatorHostnameAndPort, createMockUserToken,
6
6
  import nodeFetch from 'node-fetch';
7
7
  import { randomBytes as randomBytes$1 } from 'crypto';
8
8
 
9
- const version$1 = "3.12.1-canary.e642fc7cd";
9
+ const version$1 = "3.12.1-canary.fe7da7ec3";
10
10
 
11
11
  /**
12
12
  * @license
@@ -59,7 +59,7 @@ User.GOOGLE_CREDENTIALS = new User('google-credentials-uid');
59
59
  User.FIRST_PARTY = new User('first-party-uid');
60
60
  User.MOCK_USER = new User('mock-user');
61
61
 
62
- const version = "9.22.1-canary.e642fc7cd";
62
+ const version = "9.22.1-canary.fe7da7ec3";
63
63
 
64
64
  /**
65
65
  * @license
@@ -5712,11 +5712,12 @@ function connectFirestoreEmulator(firestore, host, port, options = {}) {
5712
5712
  var _a;
5713
5713
  firestore = cast(firestore, Firestore);
5714
5714
  const settings = firestore._getSettings();
5715
- if (settings.host !== DEFAULT_HOST && settings.host !== host) {
5716
- logWarn('Host has been set in both settings() and useEmulator(), emulator host ' +
5717
- 'will be used');
5715
+ const newHostSetting = `${host}:${port}`;
5716
+ if (settings.host !== DEFAULT_HOST && settings.host !== newHostSetting) {
5717
+ logWarn('Host has been set in both settings() and connectFirestoreEmulator(), emulator host ' +
5718
+ 'will be used.');
5718
5719
  }
5719
- firestore._setSettings(Object.assign(Object.assign({}, settings), { host: `${host}:${port}`, ssl: false }));
5720
+ firestore._setSettings(Object.assign(Object.assign({}, settings), { host: newHostSetting, ssl: false }));
5720
5721
  if (options.mockUserToken) {
5721
5722
  let token;
5722
5723
  let user;