@firebase/util 1.11.0-firebase-studio-sdk-integration.226be0bb1 → 1.11.0-firebase-studio-sdk-integration.bffdabd70

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.
@@ -44,4 +44,11 @@ export type EmulatorMockTokenOptions = ({
44
44
  sub: string;
45
45
  }) & Partial<FirebaseIdToken>;
46
46
  export declare function createMockUserToken(token: EmulatorMockTokenOptions, projectId?: string): string;
47
+ /**
48
+ * Updates Emulator Banner. Primarily used for Firebase Studio
49
+ * @param name
50
+ * @param isRunningEmulator
51
+ * @public
52
+ */
53
+ export declare function updateEmulatorBanner(name: string, isRunningEmulator: boolean): void;
47
54
  export {};
@@ -19,4 +19,9 @@
19
19
  * @public
20
20
  */
21
21
  export declare function isCloudWorkstation(host: string): boolean;
22
- export declare function testConnectionAlive(endpoint: string): Promise<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>;
@@ -44,4 +44,11 @@ export type EmulatorMockTokenOptions = ({
44
44
  sub: string;
45
45
  }) & Partial<FirebaseIdToken>;
46
46
  export declare function createMockUserToken(token: EmulatorMockTokenOptions, projectId?: string): string;
47
+ /**
48
+ * Updates Emulator Banner. Primarily used for Firebase Studio
49
+ * @param name
50
+ * @param isRunningEmulator
51
+ * @public
52
+ */
53
+ export declare function updateEmulatorBanner(name: string, isRunningEmulator: boolean): void;
47
54
  export {};
package/dist/src/url.d.ts CHANGED
@@ -19,4 +19,9 @@
19
19
  * @public
20
20
  */
21
21
  export declare function isCloudWorkstation(host: string): boolean;
22
- export declare function testConnectionAlive(endpoint: string): Promise<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>;
@@ -784,6 +784,13 @@ export declare function ordinal(i: number): string;
784
784
 
785
785
  export declare type PartialObserver<T> = Partial<Observer<T>>;
786
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
+
787
794
  /* Excluded from this release type: promiseWithTimeout */
788
795
 
789
796
  /**
@@ -947,10 +954,16 @@ export declare interface Subscribe<T> {
947
954
  (observer: PartialObserver<T>): Unsubscribe;
948
955
  }
949
956
 
950
- export declare function testConnectionAlive(endpoint: string): Promise<boolean>;
951
-
952
957
  export declare type Unsubscribe = () => void;
953
958
 
959
+ /**
960
+ * Updates Emulator Banner. Primarily used for Firebase Studio
961
+ * @param name
962
+ * @param isRunningEmulator
963
+ * @public
964
+ */
965
+ export declare function updateEmulatorBanner(name: string, isRunningEmulator: boolean): void;
966
+
954
967
  /**
955
968
  * Check to make sure the appropriate number of arguments are provided for a public function.
956
969
  * Throws an error if it fails.
package/dist/util.d.ts CHANGED
@@ -784,6 +784,13 @@ export declare function ordinal(i: number): string;
784
784
 
785
785
  export declare type PartialObserver<T> = Partial<Observer<T>>;
786
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
+
787
794
  /**
788
795
  * @license
789
796
  * Copyright 2022 Google LLC
@@ -967,10 +974,16 @@ export declare interface Subscribe<T> {
967
974
  (observer: PartialObserver<T>): Unsubscribe;
968
975
  }
969
976
 
970
- export declare function testConnectionAlive(endpoint: string): Promise<boolean>;
971
-
972
977
  export declare type Unsubscribe = () => void;
973
978
 
979
+ /**
980
+ * Updates Emulator Banner. Primarily used for Firebase Studio
981
+ * @param name
982
+ * @param isRunningEmulator
983
+ * @public
984
+ */
985
+ export declare function updateEmulatorBanner(name: string, isRunningEmulator: boolean): void;
986
+
974
987
  /**
975
988
  * Check to make sure the appropriate number of arguments are provided for a public function.
976
989
  * Throws an error if it fails.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@firebase/util",
3
- "version": "1.11.0-firebase-studio-sdk-integration.226be0bb1",
3
+ "version": "1.11.0-firebase-studio-sdk-integration.bffdabd70",
4
4
  "description": "",
5
5
  "author": "Firebase <firebase-support@google.com> (https://firebase.google.com/)",
6
6
  "main": "dist/index.node.cjs.js",