@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 +10 -0
- package/dist/index.browser.cjs.js +7 -1
- package/dist/index.browser.cjs.js.map +1 -1
- package/dist/index.esm2017.js +8 -2
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm5.js +8 -2
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.node.cjs.js +7 -1
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/node-esm/index.node.esm.js +8 -2
- package/dist/node-esm/index.node.esm.js.map +1 -1
- package/package.json +5 -5
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getApp, _getProvider, _registerComponent, registerVersion, SDK_VERSION } from '@firebase/app';
|
|
2
|
-
import { FirebaseError, createMockUserToken, getModularInstance } from '@firebase/util';
|
|
2
|
+
import { FirebaseError, createMockUserToken, getModularInstance, getDefaultEmulatorHost } from '@firebase/util';
|
|
3
3
|
import { Transform, PassThrough } from 'stream';
|
|
4
4
|
import nodeFetch from 'node-fetch';
|
|
5
5
|
import { Component } from '@firebase/component';
|
|
@@ -3269,7 +3269,7 @@ class FirebaseStorageImpl {
|
|
|
3269
3269
|
}
|
|
3270
3270
|
|
|
3271
3271
|
const name = "@firebase/storage";
|
|
3272
|
-
const version = "0.9.
|
|
3272
|
+
const version = "0.9.10";
|
|
3273
3273
|
|
|
3274
3274
|
/**
|
|
3275
3275
|
* @license
|
|
@@ -3484,6 +3484,12 @@ function getStorage(app = getApp(), bucketUrl) {
|
|
|
3484
3484
|
const storageInstance = storageProvider.getImmediate({
|
|
3485
3485
|
identifier: bucketUrl
|
|
3486
3486
|
});
|
|
3487
|
+
const storageEmulatorHost = getDefaultEmulatorHost('storage');
|
|
3488
|
+
if (storageEmulatorHost) {
|
|
3489
|
+
const [host, port] = storageEmulatorHost.split(':');
|
|
3490
|
+
// eslint-disable-next-line no-restricted-globals
|
|
3491
|
+
connectStorageEmulator(storageInstance, host, parseInt(port, 10));
|
|
3492
|
+
}
|
|
3487
3493
|
return storageInstance;
|
|
3488
3494
|
}
|
|
3489
3495
|
/**
|