@firebase/firestore 4.3.2 → 4.4.0-20231112213030

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.
@@ -3,10 +3,10 @@ import { Component } from '@firebase/component';
3
3
  import { Logger, LogLevel } from '@firebase/logger';
4
4
  import { inspect } from 'util';
5
5
  import { FirebaseError, getDefaultEmulatorHostnameAndPort, createMockUserToken, getModularInstance, deepEqual } from '@firebase/util';
6
- import nodeFetch from 'node-fetch';
6
+ import { fetch } from 'undici';
7
7
  import { randomBytes as randomBytes$1 } from 'crypto';
8
8
 
9
- const version$1 = "4.3.2";
9
+ const version$1 = "4.4.0-20231112213030";
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 = "10.5.2";
62
+ const version = "10.7.0-20231112213030";
63
63
 
64
64
  /**
65
65
  * @license
@@ -1600,10 +1600,10 @@ class FetchConnection extends RestConnection {
1600
1600
  */
1601
1601
  /** Initializes the HTTP connection for the REST API. */
1602
1602
  function newConnection(databaseInfo) {
1603
- // node-fetch is meant to be API compatible with `fetch`, but its type doesn't
1603
+ // undici is meant to be API compatible with `fetch`, but its type doesn't
1604
1604
  // match 100%.
1605
1605
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
1606
- return new FetchConnection(databaseInfo, nodeFetch);
1606
+ return new FetchConnection(databaseInfo, fetch);
1607
1607
  }
1608
1608
 
1609
1609
  /**