@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.
package/dist/index.cjs.js CHANGED
@@ -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
 
@@ -2193,6 +2200,7 @@ exports.issuedAtTime = issuedAtTime;
2193
2200
  exports.jsonEval = jsonEval;
2194
2201
  exports.map = map;
2195
2202
  exports.ordinal = ordinal;
2203
+ exports.pingServer = pingServer;
2196
2204
  exports.promiseWithTimeout = promiseWithTimeout;
2197
2205
  exports.querystring = querystring;
2198
2206
  exports.querystringDecode = querystringDecode;
@@ -2200,7 +2208,6 @@ exports.safeGet = safeGet;
2200
2208
  exports.stringLength = stringLength;
2201
2209
  exports.stringToByteArray = stringToByteArray;
2202
2210
  exports.stringify = stringify;
2203
- exports.testConnectionAlive = testConnectionAlive;
2204
2211
  exports.validateArgCount = validateArgCount;
2205
2212
  exports.validateCallback = validateCallback;
2206
2213
  exports.validateContextObject = validateContextObject;