@firebase/util 1.11.0-auth-redirect-credentials.b424e5897 → 1.11.0-canary.080a90dcc
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 +16 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm2017.js +16 -4
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.node.cjs.js +16 -3
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/node-esm/index.node.esm.js +16 -4
- package/dist/node-esm/index.node.esm.js.map +1 -1
- package/dist/node-esm/src/url.d.ts +9 -2
- package/dist/src/url.d.ts +9 -2
- package/dist/util-public.d.ts +10 -2
- package/dist/util.d.ts +10 -2
- package/package.json +1 -1
|
@@ -2122,10 +2122,22 @@ function getModularInstance(service) {
|
|
|
2122
2122
|
* limitations under the License.
|
|
2123
2123
|
*/
|
|
2124
2124
|
/**
|
|
2125
|
-
* Checks whether
|
|
2125
|
+
* Checks whether host is a cloud workstation or not.
|
|
2126
|
+
* @public
|
|
2127
|
+
*/
|
|
2128
|
+
function isCloudWorkstation(host) {
|
|
2129
|
+
return host.endsWith('.cloudworkstations.dev');
|
|
2130
|
+
}
|
|
2131
|
+
/**
|
|
2132
|
+
* Makes a fetch request to the given server.
|
|
2133
|
+
* Mostly used for forwarding cookies in Firebase Studio.
|
|
2134
|
+
* @public
|
|
2126
2135
|
*/
|
|
2127
|
-
function
|
|
2128
|
-
|
|
2136
|
+
async function pingServer(endpoint) {
|
|
2137
|
+
const result = await fetch(endpoint, {
|
|
2138
|
+
credentials: 'include'
|
|
2139
|
+
});
|
|
2140
|
+
return result.ok;
|
|
2129
2141
|
}
|
|
2130
2142
|
|
|
2131
2143
|
/**
|
|
@@ -2147,5 +2159,5 @@ function isCloudWorkstation(url) {
|
|
|
2147
2159
|
// Overriding the constant (we should be the only ones doing this)
|
|
2148
2160
|
CONSTANTS.NODE_CLIENT = true;
|
|
2149
2161
|
|
|
2150
|
-
export { CONSTANTS, DecodeBase64StringError, Deferred, ErrorFactory, FirebaseError, MAX_VALUE_MILLIS, RANDOM_FACTOR, Sha1, areCookiesEnabled, assert, assertionError, async, base64, base64Decode, base64Encode, base64urlEncodeWithoutPadding, calculateBackoffMillis, contains, createMockUserToken, createSubscribe, decode, deepCopy, deepEqual, deepExtend, errorPrefix, extractQuerystring, getDefaultAppConfig, getDefaultEmulatorHost, getDefaultEmulatorHostnameAndPort, getDefaults, getExperimentalSetting, getGlobal, getModularInstance, getUA, isAdmin, isBrowser, isBrowserExtension, isCloudWorkstation, isCloudflareWorker, isElectron, isEmpty, isIE, isIndexedDBAvailable, isMobileCordova, isNode, isNodeSdk, isReactNative, isSafari, isUWP, isValidFormat, isValidTimestamp, isWebWorker, issuedAtTime, jsonEval, map, ordinal, promiseWithTimeout, querystring, querystringDecode, safeGet, stringLength, stringToByteArray, stringify, validateArgCount, validateCallback, validateContextObject, validateIndexedDBOpenable, validateNamespace };
|
|
2162
|
+
export { CONSTANTS, DecodeBase64StringError, Deferred, ErrorFactory, FirebaseError, MAX_VALUE_MILLIS, RANDOM_FACTOR, Sha1, areCookiesEnabled, assert, assertionError, async, base64, base64Decode, base64Encode, base64urlEncodeWithoutPadding, calculateBackoffMillis, contains, createMockUserToken, createSubscribe, decode, deepCopy, deepEqual, deepExtend, errorPrefix, extractQuerystring, getDefaultAppConfig, getDefaultEmulatorHost, getDefaultEmulatorHostnameAndPort, getDefaults, getExperimentalSetting, getGlobal, getModularInstance, getUA, isAdmin, isBrowser, isBrowserExtension, isCloudWorkstation, isCloudflareWorker, isElectron, isEmpty, isIE, isIndexedDBAvailable, isMobileCordova, isNode, isNodeSdk, isReactNative, isSafari, isUWP, isValidFormat, isValidTimestamp, isWebWorker, issuedAtTime, jsonEval, map, ordinal, pingServer, promiseWithTimeout, querystring, querystringDecode, safeGet, stringLength, stringToByteArray, stringify, validateArgCount, validateCallback, validateContextObject, validateIndexedDBOpenable, validateNamespace };
|
|
2151
2163
|
//# sourceMappingURL=index.node.esm.js.map
|