@firebase/storage 0.13.7-firebase-studio-sdk-integration.226be0bb1 → 0.13.7-firebase-studio-sdk-integration.bffdabd70
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/dist/index.browser.cjs.js +3 -2
- package/dist/index.browser.cjs.js.map +1 -1
- package/dist/index.cjs.js +3 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm2017.js +4 -3
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.node.cjs.js +3 -2
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/node-esm/index.node.esm.js +4 -3
- package/dist/node-esm/index.node.esm.js.map +1 -1
- package/package.json +6 -6
package/dist/index.esm2017.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { _isFirebaseServerApp, _getProvider, getApp, _registerComponent, registerVersion, SDK_VERSION } from '@firebase/app';
|
|
2
|
-
import { FirebaseError, isCloudWorkstation,
|
|
2
|
+
import { FirebaseError, isCloudWorkstation, pingServer, createMockUserToken, getModularInstance, getDefaultEmulatorHostnameAndPort } from '@firebase/util';
|
|
3
3
|
import { Component } from '@firebase/component';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -3171,8 +3171,9 @@ function extractBucket(host, config) {
|
|
|
3171
3171
|
function connectStorageEmulator$1(storage, host, port, options = {}) {
|
|
3172
3172
|
storage.host = `${host}:${port}`;
|
|
3173
3173
|
const useSsl = isCloudWorkstation(host);
|
|
3174
|
+
// Workaround to get cookies in Firebase Studio
|
|
3174
3175
|
if (useSsl) {
|
|
3175
|
-
void
|
|
3176
|
+
void pingServer(`https://${storage.host}`);
|
|
3176
3177
|
}
|
|
3177
3178
|
storage._isUsingEmulator = true;
|
|
3178
3179
|
storage._protocol = useSsl ? 'https' : 'http';
|
|
@@ -3343,7 +3344,7 @@ class FirebaseStorageImpl {
|
|
|
3343
3344
|
}
|
|
3344
3345
|
|
|
3345
3346
|
const name = "@firebase/storage";
|
|
3346
|
-
const version = "0.13.7-firebase-studio-sdk-integration.
|
|
3347
|
+
const version = "0.13.7-firebase-studio-sdk-integration.bffdabd70";
|
|
3347
3348
|
|
|
3348
3349
|
/**
|
|
3349
3350
|
* @license
|