@firebase/database 0.14.0 → 0.14.1
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 +13 -0
- package/dist/index.esm2017.js +8 -6
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm5.js +8 -6
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.node.cjs.js +8 -6
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/index.standalone.js +2 -2
- package/dist/index.standalone.js.map +1 -1
- package/dist/node-esm/index.node.esm.js +8 -6
- package/dist/node-esm/index.node.esm.js.map +1 -1
- package/package.json +5 -5
|
@@ -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.
|
|
1253
|
+
const version = "0.14.1";
|
|
1254
1254
|
|
|
1255
1255
|
/**
|
|
1256
1256
|
* @license
|
|
@@ -1932,8 +1932,8 @@ class FirebaseIFrameScriptHolder {
|
|
|
1932
1932
|
if (this.myIFrame) {
|
|
1933
1933
|
//We have to actually remove all of the html inside this iframe before removing it from the
|
|
1934
1934
|
//window, or IE will continue loading and executing the script tags we've already added, which
|
|
1935
|
-
//can lead to some errors being thrown. Setting
|
|
1936
|
-
this.myIFrame.doc.body.
|
|
1935
|
+
//can lead to some errors being thrown. Setting textContent seems to be the safest way to do this.
|
|
1936
|
+
this.myIFrame.doc.body.textContent = '';
|
|
1937
1937
|
setTimeout(() => {
|
|
1938
1938
|
if (this.myIFrame !== null) {
|
|
1939
1939
|
document.body.removeChild(this.myIFrame);
|
|
@@ -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
|
}
|