@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.
@@ -19,7 +19,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
19
19
  var module__default = /*#__PURE__*/_interopDefaultLegacy(module$1);
20
20
 
21
21
  const name = "@firebase/firestore";
22
- const version$1 = "3.4.0";
22
+ const version$1 = "3.4.1-2021117224551";
23
23
 
24
24
  /**
25
25
  * @license
@@ -72,7 +72,7 @@ User.GOOGLE_CREDENTIALS = new User('google-credentials-uid');
72
72
  User.FIRST_PARTY = new User('first-party-uid');
73
73
  User.MOCK_USER = new User('mock-user');
74
74
 
75
- const version = "9.6.0";
75
+ const version = "9.6.1-2021117224551";
76
76
 
77
77
  /**
78
78
  * @license
@@ -14322,9 +14322,9 @@ function nodePromise(action) {
14322
14322
  */
14323
14323
  // This is a hack fix for Node ES modules to use `require`.
14324
14324
  // @ts-ignore To avoid using `--module es2020` flag.
14325
- const require$1 = module__default["default"].createRequire(new (require('url').URL)('file:' + __filename).href);
14325
+ const requireInESM = module__default["default"].createRequire(new (require('url').URL)('file:' + __filename).href);
14326
14326
  // eslint-disable-next-line @typescript-eslint/no-require-imports
14327
- const { version: grpcVersion } = require$1('@grpc/grpc-js/package.json');
14327
+ const { version: grpcVersion } = requireInESM('@grpc/grpc-js/package.json');
14328
14328
  const LOG_TAG$9 = 'Connection';
14329
14329
  const X_GOOG_API_CLIENT_VALUE = `gl-node/${process.versions.node} fire/${SDK_VERSION} grpc/${grpcVersion}`;
14330
14330
  function createMetadata(databasePath, authToken, appCheckToken, appId) {
@@ -14491,8 +14491,8 @@ class GrpcConnection {
14491
14491
  */
14492
14492
  // __filename and __dirname globals are unavailable in ES modules
14493
14493
  // @ts-ignore To avoid using `--module es2020` flag.
14494
- const __filename$1 = url.fileURLToPath(new (require('url').URL)('file:' + __filename).href);
14495
- const __dirname$1 = path.dirname(__filename$1);
14494
+ const __filenameInESM = url.fileURLToPath(new (require('url').URL)('file:' + __filename).href);
14495
+ const __dirnameInESM = path.dirname(__filenameInESM);
14496
14496
  /** Used by tests so we can match @grpc/proto-loader behavior. */
14497
14497
  const protoLoaderOptions = {
14498
14498
  longs: String,
@@ -14506,7 +14506,7 @@ const protoLoaderOptions = {
14506
14506
  * @returns The GrpcObject representing our protos.
14507
14507
  */
14508
14508
  function loadProtos() {
14509
- const root = path.resolve(__dirname$1, "src/protos" );
14509
+ const root = path.resolve(__dirnameInESM, "src/protos" );
14510
14510
  const firestoreProtoFile = path.join(root, 'google/firestore/v1/firestore.proto');
14511
14511
  const packageDefinition = protoLoader.loadSync(firestoreProtoFile, Object.assign(Object.assign({}, protoLoaderOptions), { includeDirs: [root] }));
14512
14512
  return grpcJs.loadPackageDefinition(packageDefinition);
@@ -20919,7 +20919,7 @@ function registerFirestore(variant, useFetchStreams = true) {
20919
20919
  settings = Object.assign({ useFetchStreams }, settings);
20920
20920
  firestoreInstance._setSettings(settings);
20921
20921
  return firestoreInstance;
20922
- }, "PUBLIC" /* PUBLIC */));
20922
+ }, 'PUBLIC'));
20923
20923
  app.registerVersion(name, version$1, variant);
20924
20924
  // BUILD_TARGET will be replaced by values like esm5, esm2017, cjs5, etc during the compilation
20925
20925
  app.registerVersion(name, version$1, 'cjs2017');