@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.
@@ -15,6 +15,13 @@
15
15
  * limitations under the License.
16
16
  */
17
17
  /**
18
- * Checks whether a host url is a cloud workstation.
18
+ * Checks whether host is a cloud workstation or not.
19
+ * @public
19
20
  */
20
- export declare function isCloudWorkstation(url: string): boolean;
21
+ export declare function isCloudWorkstation(host: string): boolean;
22
+ /**
23
+ * Makes a fetch request to the given server.
24
+ * Mostly used for forwarding cookies in Firebase Studio.
25
+ * @public
26
+ */
27
+ export declare function pingServer(endpoint: string): Promise<boolean>;
package/dist/src/url.d.ts CHANGED
@@ -15,6 +15,13 @@
15
15
  * limitations under the License.
16
16
  */
17
17
  /**
18
- * Checks whether a host url is a cloud workstation.
18
+ * Checks whether host is a cloud workstation or not.
19
+ * @public
19
20
  */
20
- export declare function isCloudWorkstation(url: string): boolean;
21
+ export declare function isCloudWorkstation(host: string): boolean;
22
+ /**
23
+ * Makes a fetch request to the given server.
24
+ * Mostly used for forwarding cookies in Firebase Studio.
25
+ * @public
26
+ */
27
+ export declare function pingServer(endpoint: string): Promise<boolean>;
@@ -606,9 +606,10 @@ export declare function isCloudflareWorker(): boolean;
606
606
  * limitations under the License.
607
607
  */
608
608
  /**
609
- * Checks whether a host url is a cloud workstation.
609
+ * Checks whether host is a cloud workstation or not.
610
+ * @public
610
611
  */
611
- export declare function isCloudWorkstation(url: string): boolean;
612
+ export declare function isCloudWorkstation(host: string): boolean;
612
613
 
613
614
  /** Detects Electron apps. */
614
615
  export declare function isElectron(): boolean;
@@ -783,6 +784,13 @@ export declare function ordinal(i: number): string;
783
784
 
784
785
  export declare type PartialObserver<T> = Partial<Observer<T>>;
785
786
 
787
+ /**
788
+ * Makes a fetch request to the given server.
789
+ * Mostly used for forwarding cookies in Firebase Studio.
790
+ * @public
791
+ */
792
+ export declare function pingServer(endpoint: string): Promise<boolean>;
793
+
786
794
  /* Excluded from this release type: promiseWithTimeout */
787
795
 
788
796
  /**
package/dist/util.d.ts CHANGED
@@ -606,9 +606,10 @@ export declare function isCloudflareWorker(): boolean;
606
606
  * limitations under the License.
607
607
  */
608
608
  /**
609
- * Checks whether a host url is a cloud workstation.
609
+ * Checks whether host is a cloud workstation or not.
610
+ * @public
610
611
  */
611
- export declare function isCloudWorkstation(url: string): boolean;
612
+ export declare function isCloudWorkstation(host: string): boolean;
612
613
 
613
614
  /** Detects Electron apps. */
614
615
  export declare function isElectron(): boolean;
@@ -783,6 +784,13 @@ export declare function ordinal(i: number): string;
783
784
 
784
785
  export declare type PartialObserver<T> = Partial<Observer<T>>;
785
786
 
787
+ /**
788
+ * Makes a fetch request to the given server.
789
+ * Mostly used for forwarding cookies in Firebase Studio.
790
+ * @public
791
+ */
792
+ export declare function pingServer(endpoint: string): Promise<boolean>;
793
+
786
794
  /**
787
795
  * @license
788
796
  * Copyright 2022 Google LLC
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@firebase/util",
3
- "version": "1.11.0-auth-redirect-credentials.b424e5897",
3
+ "version": "1.11.0-canary.080a90dcc",
4
4
  "description": "",
5
5
  "author": "Firebase <firebase-support@google.com> (https://firebase.google.com/)",
6
6
  "main": "dist/index.node.cjs.js",