@firebase/firestore 3.4.0 → 3.4.1-2021117224551

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.
@@ -11,7 +11,7 @@ import { fileURLToPath } from 'url';
11
11
  import { loadSync } from '@grpc/proto-loader';
12
12
 
13
13
  const name = "@firebase/firestore";
14
- const version$1 = "3.4.0";
14
+ const version$1 = "3.4.1-2021117224551";
15
15
 
16
16
  /**
17
17
  * @license
@@ -64,7 +64,7 @@ User.GOOGLE_CREDENTIALS = new User('google-credentials-uid');
64
64
  User.FIRST_PARTY = new User('first-party-uid');
65
65
  User.MOCK_USER = new User('mock-user');
66
66
 
67
- const version = "9.6.0";
67
+ const version = "9.6.1-2021117224551";
68
68
 
69
69
  /**
70
70
  * @license
@@ -14314,9 +14314,9 @@ function nodePromise(action) {
14314
14314
  */
14315
14315
  // This is a hack fix for Node ES modules to use `require`.
14316
14316
  // @ts-ignore To avoid using `--module es2020` flag.
14317
- const require = module.createRequire(import.meta.url);
14317
+ const requireInESM = module.createRequire(import.meta.url);
14318
14318
  // eslint-disable-next-line @typescript-eslint/no-require-imports
14319
- const { version: grpcVersion } = require('@grpc/grpc-js/package.json');
14319
+ const { version: grpcVersion } = requireInESM('@grpc/grpc-js/package.json');
14320
14320
  const LOG_TAG$9 = 'Connection';
14321
14321
  const X_GOOG_API_CLIENT_VALUE = `gl-node/${process.versions.node} fire/${SDK_VERSION} grpc/${grpcVersion}`;
14322
14322
  function createMetadata(databasePath, authToken, appCheckToken, appId) {
@@ -14483,8 +14483,8 @@ class GrpcConnection {
14483
14483
  */
14484
14484
  // __filename and __dirname globals are unavailable in ES modules
14485
14485
  // @ts-ignore To avoid using `--module es2020` flag.
14486
- const __filename = fileURLToPath(import.meta.url);
14487
- const __dirname = dirname(__filename);
14486
+ const __filenameInESM = fileURLToPath(import.meta.url);
14487
+ const __dirnameInESM = dirname(__filenameInESM);
14488
14488
  /** Used by tests so we can match @grpc/proto-loader behavior. */
14489
14489
  const protoLoaderOptions = {
14490
14490
  longs: String,
@@ -14498,7 +14498,7 @@ const protoLoaderOptions = {
14498
14498
  * @returns The GrpcObject representing our protos.
14499
14499
  */
14500
14500
  function loadProtos() {
14501
- const root = resolve(__dirname, "src/protos" );
14501
+ const root = resolve(__dirnameInESM, "src/protos" );
14502
14502
  const firestoreProtoFile = join(root, 'google/firestore/v1/firestore.proto');
14503
14503
  const packageDefinition = loadSync(firestoreProtoFile, Object.assign(Object.assign({}, protoLoaderOptions), { includeDirs: [root] }));
14504
14504
  return loadPackageDefinition(packageDefinition);
@@ -20911,7 +20911,7 @@ function registerFirestore(variant, useFetchStreams = true) {
20911
20911
  settings = Object.assign({ useFetchStreams }, settings);
20912
20912
  firestoreInstance._setSettings(settings);
20913
20913
  return firestoreInstance;
20914
- }, "PUBLIC" /* PUBLIC */));
20914
+ }, 'PUBLIC'));
20915
20915
  registerVersion(name, version$1, variant);
20916
20916
  // BUILD_TARGET will be replaced by values like esm5, esm2017, cjs5, etc during the compilation
20917
20917
  registerVersion(name, version$1, 'esm2017');