@firebase/database 0.13.8-20221010190246 → 0.13.8-20221010211037

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.
@@ -1298,7 +1298,7 @@ var WebSocketConnection = /** @class */ (function () {
1298
1298
  }());
1299
1299
 
1300
1300
  var name = "@firebase/database";
1301
- var version = "0.13.8-20221010190246";
1301
+ var version = "0.13.8-20221010211037";
1302
1302
 
1303
1303
  /**
1304
1304
  * @license
@@ -14184,10 +14184,9 @@ function getDatabase(app$1, url) {
14184
14184
  var db = app._getProvider(app$1, 'database').getImmediate({
14185
14185
  identifier: url
14186
14186
  });
14187
- var databaseEmulatorHost = util.getDefaultEmulatorHost('database');
14188
- if (databaseEmulatorHost) {
14189
- var _a = tslib.__read(databaseEmulatorHost.split(':'), 2), host = _a[0], port = _a[1];
14190
- connectDatabaseEmulator(db, host, parseInt(port, 10));
14187
+ var emulator = util.getDefaultEmulatorHostnameAndPort('database');
14188
+ if (emulator) {
14189
+ connectDatabaseEmulator.apply(void 0, tslib.__spreadArray([db], tslib.__read(emulator)));
14191
14190
  }
14192
14191
  return db;
14193
14192
  }