@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.
@@ -5,7 +5,7 @@ import { stringify, jsonEval, contains, assert, isNodeSdk, stringToByteArray, Sh
5
5
  import { Logger, LogLevel } from '@firebase/logger';
6
6
 
7
7
  var name = "@firebase/database";
8
- var version = "0.14.0-canary.41549bb86";
8
+ var version = "0.14.0-canary.d8af08feb";
9
9
 
10
10
  /**
11
11
  * @license
@@ -14090,9 +14090,11 @@ function getDatabase(app, url) {
14090
14090
  var db = _getProvider(app, 'database').getImmediate({
14091
14091
  identifier: url
14092
14092
  });
14093
- var emulator = getDefaultEmulatorHostnameAndPort('database');
14094
- if (emulator) {
14095
- connectDatabaseEmulator.apply(void 0, __spreadArray([db], __read(emulator), false));
14093
+ if (!db._instanceStarted) {
14094
+ var emulator = getDefaultEmulatorHostnameAndPort('database');
14095
+ if (emulator) {
14096
+ connectDatabaseEmulator.apply(void 0, __spreadArray([db], __read(emulator), false));
14097
+ }
14096
14098
  }
14097
14099
  return db;
14098
14100
  }