@firebase/firestore 3.5.0-canary.ee871fc0b → 3.5.0-canary.fdd4ab464
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/dist/firestore/src/api/database.d.ts +9 -9
- package/dist/firestore/src/lite-api/database.d.ts +1 -1
- package/dist/index.d.ts +7 -7
- package/dist/index.esm2017.js +2830 -2823
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm5.js +2785 -2778
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.node.cjs.js +11 -3
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/index.node.mjs +12 -4
- package/dist/index.node.mjs.map +1 -1
- package/dist/index.rn.js +2845 -2838
- package/dist/index.rn.js.map +1 -1
- package/dist/internal.d.ts +10 -10
- package/dist/lite/firestore/src/api/database.d.ts +9 -9
- package/dist/lite/firestore/src/lite-api/database.d.ts +1 -1
- package/dist/lite/index.browser.esm2017.js +898 -891
- package/dist/lite/index.browser.esm2017.js.map +1 -1
- package/dist/lite/index.browser.esm5.js +854 -847
- package/dist/lite/index.browser.esm5.js.map +1 -1
- package/dist/lite/index.node.cjs.js +11 -3
- package/dist/lite/index.node.cjs.js.map +1 -1
- package/dist/lite/index.node.mjs +12 -4
- package/dist/lite/index.node.mjs.map +1 -1
- package/dist/lite/index.rn.esm2017.js +905 -898
- package/dist/lite/index.rn.esm2017.js.map +1 -1
- package/dist/lite/packages/firestore/dist/lite/index.browser.esm2017.d.ts +113 -113
- package/dist/lite/packages/firestore/src/api/database.d.ts +9 -9
- package/dist/lite/packages/firestore/src/lite-api/database.d.ts +1 -1
- package/dist/packages/firestore/dist/index.esm2017.d.ts +164 -164
- package/dist/packages/firestore/src/api/database.d.ts +9 -9
- package/dist/packages/firestore/src/lite-api/database.d.ts +1 -1
- package/dist/private.d.ts +8 -8
- package/package.json +9 -9
package/dist/index.node.cjs.js
CHANGED
|
@@ -33,7 +33,7 @@ var grpc__namespace = /*#__PURE__*/_interopNamespace(grpc);
|
|
|
33
33
|
var protoLoader__namespace = /*#__PURE__*/_interopNamespace(protoLoader);
|
|
34
34
|
|
|
35
35
|
const name = "@firebase/firestore";
|
|
36
|
-
const version$1 = "3.5.0-canary.
|
|
36
|
+
const version$1 = "3.5.0-canary.fdd4ab464";
|
|
37
37
|
|
|
38
38
|
/**
|
|
39
39
|
* @license
|
|
@@ -86,7 +86,7 @@ User.GOOGLE_CREDENTIALS = new User('google-credentials-uid');
|
|
|
86
86
|
User.FIRST_PARTY = new User('first-party-uid');
|
|
87
87
|
User.MOCK_USER = new User('mock-user');
|
|
88
88
|
|
|
89
|
-
const version = "9.10.0-canary.
|
|
89
|
+
const version = "9.10.0-canary.fdd4ab464";
|
|
90
90
|
|
|
91
91
|
/**
|
|
92
92
|
* @license
|
|
@@ -26608,9 +26608,17 @@ function getFirestore(appOrDatabaseId, optionalDatabaseId) {
|
|
|
26608
26608
|
const databaseId = typeof appOrDatabaseId === 'string'
|
|
26609
26609
|
? appOrDatabaseId
|
|
26610
26610
|
: optionalDatabaseId || DEFAULT_DATABASE_NAME;
|
|
26611
|
-
|
|
26611
|
+
const db = app._getProvider(app$1, 'firestore').getImmediate({
|
|
26612
26612
|
identifier: databaseId
|
|
26613
26613
|
});
|
|
26614
|
+
if (!db._initialized) {
|
|
26615
|
+
const firestoreEmulatorHost = util$1.getDefaultEmulatorHost('firestore');
|
|
26616
|
+
if (firestoreEmulatorHost) {
|
|
26617
|
+
const [host, port] = firestoreEmulatorHost.split(':');
|
|
26618
|
+
connectFirestoreEmulator(db, host, parseInt(port, 10));
|
|
26619
|
+
}
|
|
26620
|
+
}
|
|
26621
|
+
return db;
|
|
26614
26622
|
}
|
|
26615
26623
|
/**
|
|
26616
26624
|
* @internal
|