@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.
- package/CHANGELOG.md +6 -0
- package/dist/firestore/compat/index.d.ts +1 -1
- package/dist/index.esm2017.js +3 -3
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm5.js +3 -3
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.node.cjs.js +8 -8
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/index.node.mjs +8 -8
- package/dist/index.node.mjs.map +1 -1
- package/dist/index.rn.js +3 -3
- package/dist/index.rn.js.map +1 -1
- package/dist/lite/firestore/compat/index.d.ts +1 -1
- package/dist/lite/index.browser.esm2017.js +3 -3
- package/dist/lite/index.browser.esm2017.js.map +1 -1
- package/dist/lite/index.browser.esm5.js +3 -3
- package/dist/lite/index.browser.esm5.js.map +1 -1
- package/dist/lite/index.node.cjs.js +3 -3
- package/dist/lite/index.node.cjs.js.map +1 -1
- package/dist/lite/index.node.mjs +3 -3
- package/dist/lite/index.node.mjs.map +1 -1
- package/dist/lite/index.rn.esm2017.js +3 -3
- package/dist/lite/index.rn.esm2017.js.map +1 -1
- package/dist/lite/packages/firestore/babel-register.d.ts +1 -0
- package/dist/lite/packages/firestore/compat/index.d.ts +1 -1
- package/dist/packages/firestore/babel-register.d.ts +1 -0
- package/dist/packages/firestore/compat/index.d.ts +1 -1
- package/package.json +3 -3
package/dist/index.node.cjs.js
CHANGED
|
@@ -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.
|
|
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.
|
|
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
|
|
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 } =
|
|
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
|
|
14495
|
-
const
|
|
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(
|
|
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
|
-
},
|
|
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');
|