@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.
@@ -1,6 +1,6 @@
1
1
  import { getApp, _getProvider, _registerComponent, registerVersion, SDK_VERSION } from '@firebase/app';
2
2
  import { __extends, __spreadArray, __awaiter, __generator, __assign } from 'tslib';
3
- import { FirebaseError, createMockUserToken, getModularInstance } from '@firebase/util';
3
+ import { FirebaseError, createMockUserToken, getModularInstance, getDefaultEmulatorHost } from '@firebase/util';
4
4
  import { Component } from '@firebase/component';
5
5
 
6
6
  /**
@@ -3403,7 +3403,7 @@ var FirebaseStorageImpl = /** @class */ (function () {
3403
3403
  }());
3404
3404
 
3405
3405
  var name = "@firebase/storage";
3406
- var version = "0.9.9";
3406
+ var version = "0.9.10";
3407
3407
 
3408
3408
  /**
3409
3409
  * @license
@@ -3619,6 +3619,12 @@ function getStorage(app, bucketUrl) {
3619
3619
  var storageInstance = storageProvider.getImmediate({
3620
3620
  identifier: bucketUrl
3621
3621
  });
3622
+ var storageEmulatorHost = getDefaultEmulatorHost('storage');
3623
+ if (storageEmulatorHost) {
3624
+ var _a = storageEmulatorHost.split(':'), host = _a[0], port = _a[1];
3625
+ // eslint-disable-next-line no-restricted-globals
3626
+ connectStorageEmulator(storageInstance, host, parseInt(port, 10));
3627
+ }
3622
3628
  return storageInstance;
3623
3629
  }
3624
3630
  /**