@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.
- package/CHANGELOG.md +4 -2
- package/dist/index.esm2017.js +716 -716
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm5.js +971 -971
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.node.cjs.js +9 -3
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/index.node.mjs +9 -3
- package/dist/index.node.mjs.map +1 -1
- package/dist/index.rn.js +4 -4
- package/dist/index.rn.js.map +1 -1
- package/dist/lite/index.browser.esm2017.js +1084 -1084
- package/dist/lite/index.browser.esm2017.js.map +1 -1
- package/dist/lite/index.browser.esm5.js +10 -10
- package/dist/lite/index.browser.esm5.js.map +1 -1
- package/dist/lite/index.node.cjs.js +2 -2
- package/dist/lite/index.node.mjs +2 -2
- package/dist/lite/index.node.mjs.map +1 -1
- package/dist/lite/index.rn.esm2017.js +69 -69
- package/dist/lite/index.rn.esm2017.js.map +1 -1
- package/dist/lite/packages/firestore/dist/lite/index.browser.esm2017.d.ts +109 -109
- package/dist/lite/packages/firestore/rollup.config.d.ts +6 -6
- package/dist/lite/packages/firestore/rollup.config.debug.d.ts +1 -1
- package/dist/lite/packages/firestore/rollup.config.lite.d.ts +6 -6
- package/dist/packages/firestore/dist/index.esm2017.d.ts +102 -102
- package/dist/packages/firestore/rollup.config.d.ts +6 -6
- package/dist/packages/firestore/rollup.config.debug.d.ts +1 -1
- package/dist/packages/firestore/rollup.config.lite.d.ts +6 -6
- package/package.json +13 -10
package/dist/index.node.mjs
CHANGED
|
@@ -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-
|
|
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.
|
|
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
|
}
|