@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.
@@ -7,14 +7,10 @@ var component = require('@firebase/component');
7
7
  var logger = require('@firebase/logger');
8
8
  var util$1 = require('util');
9
9
  var util = require('@firebase/util');
10
- var nodeFetch = require('node-fetch');
10
+ var undici = require('undici');
11
11
  var crypto = require('crypto');
12
12
 
13
- function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
14
-
15
- var nodeFetch__default = /*#__PURE__*/_interopDefaultLegacy(nodeFetch);
16
-
17
- const version$1 = "4.3.2";
13
+ const version$1 = "4.4.0-20231112213030";
18
14
 
19
15
  /**
20
16
  * @license
@@ -67,7 +63,7 @@ User.GOOGLE_CREDENTIALS = new User('google-credentials-uid');
67
63
  User.FIRST_PARTY = new User('first-party-uid');
68
64
  User.MOCK_USER = new User('mock-user');
69
65
 
70
- const version = "10.5.2";
66
+ const version = "10.7.0-20231112213030";
71
67
 
72
68
  /**
73
69
  * @license
@@ -1608,10 +1604,10 @@ class FetchConnection extends RestConnection {
1608
1604
  */
1609
1605
  /** Initializes the HTTP connection for the REST API. */
1610
1606
  function newConnection(databaseInfo) {
1611
- // node-fetch is meant to be API compatible with `fetch`, but its type doesn't
1607
+ // undici is meant to be API compatible with `fetch`, but its type doesn't
1612
1608
  // match 100%.
1613
1609
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
1614
- return new FetchConnection(databaseInfo, nodeFetch__default["default"]);
1610
+ return new FetchConnection(databaseInfo, undici.fetch);
1615
1611
  }
1616
1612
 
1617
1613
  /**