@firebase/firestore 3.2.0 → 3.2.1-2021102231614

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,6 +11,7 @@ var crypto = require('crypto');
11
11
  var module$1 = require('module');
12
12
  var grpcJs = require('@grpc/grpc-js');
13
13
  var path = require('path');
14
+ var url = require('url');
14
15
  var protoLoader = require('@grpc/proto-loader');
15
16
 
16
17
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
@@ -18,7 +19,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
18
19
  var module__default = /*#__PURE__*/_interopDefaultLegacy(module$1);
19
20
 
20
21
  const name = "@firebase/firestore";
21
- const version$1 = "3.2.0";
22
+ const version$1 = "3.2.1-2021102231614";
22
23
 
23
24
  /**
24
25
  * @license
@@ -71,7 +72,7 @@ User.GOOGLE_CREDENTIALS = new User('google-credentials-uid');
71
72
  User.FIRST_PARTY = new User('first-party-uid');
72
73
  User.MOCK_USER = new User('mock-user');
73
74
 
74
- const version = "9.2.0";
75
+ const version = "9.3.0-2021102231614";
75
76
 
76
77
  /**
77
78
  * @license
@@ -14414,6 +14415,10 @@ class GrpcConnection {
14414
14415
  * See the License for the specific language governing permissions and
14415
14416
  * limitations under the License.
14416
14417
  */
14418
+ // __filename and __dirname globals are unavailable in ES modules
14419
+ // @ts-ignore To avoid using `--module es2020` flag.
14420
+ const __filename$1 = url.fileURLToPath((typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('index.node.cjs.js', document.baseURI).href)));
14421
+ const __dirname$1 = path.dirname(__filename$1);
14417
14422
  /** Used by tests so we can match @grpc/proto-loader behavior. */
14418
14423
  const protoLoaderOptions = {
14419
14424
  longs: String,
@@ -14427,7 +14432,7 @@ const protoLoaderOptions = {
14427
14432
  * @returns The GrpcObject representing our protos.
14428
14433
  */
14429
14434
  function loadProtos() {
14430
- const root = path.resolve(__dirname, "src/protos" );
14435
+ const root = path.resolve(__dirname$1, "src/protos" );
14431
14436
  const firestoreProtoFile = path.join(root, 'google/firestore/v1/firestore.proto');
14432
14437
  const packageDefinition = protoLoader.loadSync(firestoreProtoFile, Object.assign(Object.assign({}, protoLoaderOptions), { includeDirs: [root] }));
14433
14438
  return grpcJs.loadPackageDefinition(packageDefinition);