@firebase/functions
Advanced tools
Comparing version
import { _isFirebaseServerApp, _registerComponent, registerVersion, _getProvider, getApp } from '@firebase/app'; | ||
import { FirebaseError, getModularInstance, getDefaultEmulatorHostnameAndPort } from '@firebase/util'; | ||
import { FirebaseError, isCloudWorkstation, pingServer, updateEmulatorBanner, getModularInstance, getDefaultEmulatorHostnameAndPort } from '@firebase/util'; | ||
import { Component } from '@firebase/component'; | ||
@@ -497,3 +497,9 @@ | ||
function connectFunctionsEmulator$1(functionsInstance, host, port) { | ||
functionsInstance.emulatorOrigin = `http://${host}:${port}`; | ||
const useSsl = isCloudWorkstation(host); | ||
functionsInstance.emulatorOrigin = `http${useSsl ? 's' : ''}://${host}:${port}`; | ||
// Workaround to get cookies in Firebase Studio | ||
if (useSsl) { | ||
void pingServer(functionsInstance.emulatorOrigin); | ||
updateEmulatorBanner('Functions', true); | ||
} | ||
} | ||
@@ -847,3 +853,3 @@ /** | ||
const name = "@firebase/functions"; | ||
const version = "0.12.3-eap-vertexai-hybridinference.e83974308"; | ||
const version = "0.12.3-firebase-studio-sdk-integration.0615f555a"; | ||
@@ -910,2 +916,3 @@ /** | ||
function getFunctions(app = getApp(), regionOrCustomDomain = DEFAULT_REGION) { | ||
updateEmulatorBanner('Functions', false); | ||
// Dependencies | ||
@@ -912,0 +919,0 @@ const functionsProvider = _getProvider(getModularInstance(app), FUNCTIONS_TYPE); |
@@ -501,3 +501,9 @@ 'use strict'; | ||
function connectFunctionsEmulator$1(functionsInstance, host, port) { | ||
functionsInstance.emulatorOrigin = `http://${host}:${port}`; | ||
const useSsl = util.isCloudWorkstation(host); | ||
functionsInstance.emulatorOrigin = `http${useSsl ? 's' : ''}://${host}:${port}`; | ||
// Workaround to get cookies in Firebase Studio | ||
if (useSsl) { | ||
void util.pingServer(functionsInstance.emulatorOrigin); | ||
util.updateEmulatorBanner('Functions', true); | ||
} | ||
} | ||
@@ -851,3 +857,3 @@ /** | ||
const name = "@firebase/functions"; | ||
const version = "0.12.3-eap-vertexai-hybridinference.e83974308"; | ||
const version = "0.12.3-firebase-studio-sdk-integration.0615f555a"; | ||
@@ -914,2 +920,3 @@ /** | ||
function getFunctions(app$1 = app.getApp(), regionOrCustomDomain = DEFAULT_REGION) { | ||
util.updateEmulatorBanner('Functions', false); | ||
// Dependencies | ||
@@ -916,0 +923,0 @@ const functionsProvider = app._getProvider(util.getModularInstance(app$1), FUNCTIONS_TYPE); |
{ | ||
"name": "@firebase/functions", | ||
"version": "0.12.3-eap-vertexai-hybridinference.e83974308", | ||
"version": "0.12.3-firebase-studio-sdk-integration.0615f555a", | ||
"description": "", | ||
@@ -49,6 +49,6 @@ "author": "Firebase <firebase-support@google.com> (https://firebase.google.com/)", | ||
"peerDependencies": { | ||
"@firebase/app": "0.11.4-eap-vertexai-hybridinference.e83974308" | ||
"@firebase/app": "0.11.5-firebase-studio-sdk-integration.0615f555a" | ||
}, | ||
"devDependencies": { | ||
"@firebase/app": "0.11.4-eap-vertexai-hybridinference.e83974308", | ||
"@firebase/app": "0.11.5-firebase-studio-sdk-integration.0615f555a", | ||
"rollup": "2.79.2", | ||
@@ -69,7 +69,7 @@ "@rollup/plugin-json": "6.1.0", | ||
"dependencies": { | ||
"@firebase/component": "0.6.13-eap-vertexai-hybridinference.e83974308", | ||
"@firebase/messaging-interop-types": "0.2.3-eap-vertexai-hybridinference.e83974308", | ||
"@firebase/auth-interop-types": "0.2.4-eap-vertexai-hybridinference.e83974308", | ||
"@firebase/app-check-interop-types": "0.3.3-eap-vertexai-hybridinference.e83974308", | ||
"@firebase/util": "1.11.0-eap-vertexai-hybridinference.e83974308", | ||
"@firebase/component": "0.6.13-firebase-studio-sdk-integration.0615f555a", | ||
"@firebase/messaging-interop-types": "0.2.3-firebase-studio-sdk-integration.0615f555a", | ||
"@firebase/auth-interop-types": "0.2.4-firebase-studio-sdk-integration.0615f555a", | ||
"@firebase/app-check-interop-types": "0.3.3-firebase-studio-sdk-integration.0615f555a", | ||
"@firebase/util": "1.11.0-firebase-studio-sdk-integration.0615f555a", | ||
"tslib": "^2.1.0" | ||
@@ -76,0 +76,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
253428
0.84%3235
0.43%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
Updated
Updated
Updated
Updated
Updated