@firebase/database 0.14.0-canary.41549bb86 → 0.14.0-canary.d8af08feb
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/index.esm2017.js +6 -4
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm5.js +6 -4
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.node.cjs.js +6 -4
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/index.standalone.js.map +1 -1
- package/dist/node-esm/index.node.esm.js +6 -4
- package/dist/node-esm/index.node.esm.js.map +1 -1
- package/package.json +6 -6
|
@@ -1250,7 +1250,7 @@ WebSocketConnection.responsesRequiredToBeHealthy = 2;
|
|
|
1250
1250
|
WebSocketConnection.healthyTimeout = 30000;
|
|
1251
1251
|
|
|
1252
1252
|
const name = "@firebase/database";
|
|
1253
|
-
const version = "0.14.0-canary.
|
|
1253
|
+
const version = "0.14.0-canary.d8af08feb";
|
|
1254
1254
|
|
|
1255
1255
|
/**
|
|
1256
1256
|
* @license
|
|
@@ -13621,9 +13621,11 @@ function getDatabase(app = getApp(), url) {
|
|
|
13621
13621
|
const db = _getProvider(app, 'database').getImmediate({
|
|
13622
13622
|
identifier: url
|
|
13623
13623
|
});
|
|
13624
|
-
|
|
13625
|
-
|
|
13626
|
-
|
|
13624
|
+
if (!db._instanceStarted) {
|
|
13625
|
+
const emulator = getDefaultEmulatorHostnameAndPort('database');
|
|
13626
|
+
if (emulator) {
|
|
13627
|
+
connectDatabaseEmulator(db, ...emulator);
|
|
13628
|
+
}
|
|
13627
13629
|
}
|
|
13628
13630
|
return db;
|
|
13629
13631
|
}
|