@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
|
@@ -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
|
/**
|
|
@@ -3198,8 +3198,9 @@ function extractBucket(host, config) {
|
|
|
3198
3198
|
function connectStorageEmulator$1(storage, host, port, options = {}) {
|
|
3199
3199
|
storage.host = `${host}:${port}`;
|
|
3200
3200
|
const useSsl = isCloudWorkstation(host);
|
|
3201
|
+
// Workaround to get cookies in Firebase Studio
|
|
3201
3202
|
if (useSsl) {
|
|
3202
|
-
void
|
|
3203
|
+
void pingServer(`https://${storage.host}`);
|
|
3203
3204
|
}
|
|
3204
3205
|
storage._isUsingEmulator = true;
|
|
3205
3206
|
storage._protocol = useSsl ? 'https' : 'http';
|
|
@@ -3370,7 +3371,7 @@ class FirebaseStorageImpl {
|
|
|
3370
3371
|
}
|
|
3371
3372
|
|
|
3372
3373
|
const name = "@firebase/storage";
|
|
3373
|
-
const version = "0.13.7-firebase-studio-sdk-integration.
|
|
3374
|
+
const version = "0.13.7-firebase-studio-sdk-integration.bffdabd70";
|
|
3374
3375
|
|
|
3375
3376
|
/**
|
|
3376
3377
|
* @license
|