@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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  #Unreleased
2
2
 
3
+ ## 0.9.10
4
+
5
+ ### Patch Changes
6
+
7
+ - [`fdd4ab464`](https://github.com/firebase/firebase-js-sdk/commit/fdd4ab464b59a107bdcc195df3f01e32efd89ed4) [#6526](https://github.com/firebase/firebase-js-sdk/pull/6526) - Add functionality to auto-initialize project config and emulator settings from global defaults provided by framework tooling.
8
+
9
+ - Updated dependencies [[`fdd4ab464`](https://github.com/firebase/firebase-js-sdk/commit/fdd4ab464b59a107bdcc195df3f01e32efd89ed4)]:
10
+ - @firebase/util@1.7.0
11
+ - @firebase/component@0.5.18
12
+
3
13
  ## 0.9.9
4
14
 
5
15
  ### Patch Changes
@@ -3407,7 +3407,7 @@ var FirebaseStorageImpl = /** @class */ (function () {
3407
3407
  }());
3408
3408
 
3409
3409
  var name = "@firebase/storage";
3410
- var version = "0.9.9";
3410
+ var version = "0.9.10";
3411
3411
 
3412
3412
  /**
3413
3413
  * @license
@@ -3623,6 +3623,12 @@ function getStorage(app$1, bucketUrl) {
3623
3623
  var storageInstance = storageProvider.getImmediate({
3624
3624
  identifier: bucketUrl
3625
3625
  });
3626
+ var storageEmulatorHost = util.getDefaultEmulatorHost('storage');
3627
+ if (storageEmulatorHost) {
3628
+ var _a = storageEmulatorHost.split(':'), host = _a[0], port = _a[1];
3629
+ // eslint-disable-next-line no-restricted-globals
3630
+ connectStorageEmulator(storageInstance, host, parseInt(port, 10));
3631
+ }
3626
3632
  return storageInstance;
3627
3633
  }
3628
3634
  /**