@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.
@@ -14,7 +14,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
14
14
 
15
15
  var nodeFetch__default = /*#__PURE__*/_interopDefaultLegacy(nodeFetch);
16
16
 
17
- const version$1 = "3.12.1-canary.e642fc7cd";
17
+ const version$1 = "3.12.1-canary.fe7da7ec3";
18
18
 
19
19
  /**
20
20
  * @license
@@ -67,7 +67,7 @@ User.GOOGLE_CREDENTIALS = new User('google-credentials-uid');
67
67
  User.FIRST_PARTY = new User('first-party-uid');
68
68
  User.MOCK_USER = new User('mock-user');
69
69
 
70
- const version = "9.22.1-canary.e642fc7cd";
70
+ const version = "9.22.1-canary.fe7da7ec3";
71
71
 
72
72
  /**
73
73
  * @license
@@ -5720,11 +5720,12 @@ function connectFirestoreEmulator(firestore, host, port, options = {}) {
5720
5720
  var _a;
5721
5721
  firestore = cast(firestore, Firestore);
5722
5722
  const settings = firestore._getSettings();
5723
- if (settings.host !== DEFAULT_HOST && settings.host !== host) {
5724
- logWarn('Host has been set in both settings() and useEmulator(), emulator host ' +
5725
- 'will be used');
5723
+ const newHostSetting = `${host}:${port}`;
5724
+ if (settings.host !== DEFAULT_HOST && settings.host !== newHostSetting) {
5725
+ logWarn('Host has been set in both settings() and connectFirestoreEmulator(), emulator host ' +
5726
+ 'will be used.');
5726
5727
  }
5727
- firestore._setSettings(Object.assign(Object.assign({}, settings), { host: `${host}:${port}`, ssl: false }));
5728
+ firestore._setSettings(Object.assign(Object.assign({}, settings), { host: newHostSetting, ssl: false }));
5728
5729
  if (options.mockUserToken) {
5729
5730
  let token;
5730
5731
  let user;