@firebase/firestore 3.2.0-2021920175447 → 3.2.0-canary.2322b6023

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,11 +6,12 @@ import { createMockUserToken, getModularInstance, deepEqual, getUA, isIndexedDBA
6
6
  import { randomBytes as randomBytes$1 } from 'crypto';
7
7
  import module from 'module';
8
8
  import { credentials, loadPackageDefinition, Metadata } from '@grpc/grpc-js';
9
- import { resolve, join } from 'path';
9
+ import { dirname, resolve, join } from 'path';
10
+ import { fileURLToPath } from 'url';
10
11
  import { loadSync } from '@grpc/proto-loader';
11
12
 
12
13
  const name = "@firebase/firestore";
13
- const version$1 = "3.2.0-2021920175447";
14
+ const version$1 = "3.2.0-canary.2322b6023";
14
15
 
15
16
  /**
16
17
  * @license
@@ -63,7 +64,7 @@ User.GOOGLE_CREDENTIALS = new User('google-credentials-uid');
63
64
  User.FIRST_PARTY = new User('first-party-uid');
64
65
  User.MOCK_USER = new User('mock-user');
65
66
 
66
- const version = "9.1.4-2021920175447";
67
+ const version = "9.2.0-canary.2322b6023";
67
68
 
68
69
  /**
69
70
  * @license
@@ -14406,6 +14407,10 @@ class GrpcConnection {
14406
14407
  * See the License for the specific language governing permissions and
14407
14408
  * limitations under the License.
14408
14409
  */
14410
+ // __filename and __dirname globals are unavailable in ES modules
14411
+ // @ts-ignore To avoid using `--module es2020` flag.
14412
+ const __filename = fileURLToPath(import.meta.url);
14413
+ const __dirname = dirname(__filename);
14409
14414
  /** Used by tests so we can match @grpc/proto-loader behavior. */
14410
14415
  const protoLoaderOptions = {
14411
14416
  longs: String,
@@ -23337,6 +23342,7 @@ class Transaction extends Transaction$1 {
23337
23342
  * rejected promise with the corresponding failure error is returned.
23338
23343
  */
23339
23344
  function runTransaction(firestore, updateFunction) {
23345
+ firestore = cast(firestore, Firestore);
23340
23346
  const client = ensureFirestoreConfigured(firestore);
23341
23347
  return firestoreClientTransaction(client, internalTransaction => updateFunction(new Transaction(firestore, internalTransaction)));
23342
23348
  }