@firebase/storage 0.9.9 → 0.9.10

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.
@@ -3277,7 +3277,7 @@ class FirebaseStorageImpl {
3277
3277
  }
3278
3278
 
3279
3279
  const name = "@firebase/storage";
3280
- const version = "0.9.9";
3280
+ const version = "0.9.10";
3281
3281
 
3282
3282
  /**
3283
3283
  * @license
@@ -3492,6 +3492,12 @@ function getStorage(app$1 = app.getApp(), bucketUrl) {
3492
3492
  const storageInstance = storageProvider.getImmediate({
3493
3493
  identifier: bucketUrl
3494
3494
  });
3495
+ const storageEmulatorHost = util.getDefaultEmulatorHost('storage');
3496
+ if (storageEmulatorHost) {
3497
+ const [host, port] = storageEmulatorHost.split(':');
3498
+ // eslint-disable-next-line no-restricted-globals
3499
+ connectStorageEmulator(storageInstance, host, parseInt(port, 10));
3500
+ }
3495
3501
  return storageInstance;
3496
3502
  }
3497
3503
  /**