@firebase/util 1.11.0-firebase-studio-sdk-integration.1adc0ae1f → 1.11.0-firebase-studio-sdk-integration.9de25069c

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.
@@ -2132,8 +2132,15 @@ function getModularInstance(service) {
2132
2132
  function isCloudWorkstation(host) {
2133
2133
  return host.endsWith('.cloudworkstations.dev');
2134
2134
  }
2135
- async function testConnectionAlive(endpoint) {
2136
- const result = await fetch(endpoint);
2135
+ /**
2136
+ * Makes a fetch request to the given server.
2137
+ * Mostly used for forwarding cookies in Firebase Studio.
2138
+ * @public
2139
+ */
2140
+ async function pingServer(endpoint) {
2141
+ const result = await fetch(endpoint, {
2142
+ credentials: 'include'
2143
+ });
2137
2144
  return result.ok;
2138
2145
  }
2139
2146
 
@@ -2212,6 +2219,7 @@ exports.issuedAtTime = issuedAtTime;
2212
2219
  exports.jsonEval = jsonEval;
2213
2220
  exports.map = map;
2214
2221
  exports.ordinal = ordinal;
2222
+ exports.pingServer = pingServer;
2215
2223
  exports.promiseWithTimeout = promiseWithTimeout;
2216
2224
  exports.querystring = querystring;
2217
2225
  exports.querystringDecode = querystringDecode;
@@ -2219,7 +2227,6 @@ exports.safeGet = safeGet;
2219
2227
  exports.stringLength = stringLength;
2220
2228
  exports.stringToByteArray = stringToByteArray;
2221
2229
  exports.stringify = stringify;
2222
- exports.testConnectionAlive = testConnectionAlive;
2223
2230
  exports.validateArgCount = validateArgCount;
2224
2231
  exports.validateCallback = validateCallback;
2225
2232
  exports.validateContextObject = validateContextObject;