@firebase/util 1.11.0 → 1.11.1-20250505162014

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.
@@ -0,0 +1,27 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Google LLC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ /**
18
+ * Checks whether host is a cloud workstation or not.
19
+ * @public
20
+ */
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>;
@@ -0,0 +1,27 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Google LLC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ /**
18
+ * Checks whether host is a cloud workstation or not.
19
+ * @public
20
+ */
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>;
@@ -589,6 +589,28 @@ export declare function isBrowserExtension(): boolean;
589
589
  */
590
590
  export declare function isCloudflareWorker(): boolean;
591
591
 
592
+ /**
593
+ * @license
594
+ * Copyright 2025 Google LLC
595
+ *
596
+ * Licensed under the Apache License, Version 2.0 (the "License");
597
+ * you may not use this file except in compliance with the License.
598
+ * You may obtain a copy of the License at
599
+ *
600
+ * http://www.apache.org/licenses/LICENSE-2.0
601
+ *
602
+ * Unless required by applicable law or agreed to in writing, software
603
+ * distributed under the License is distributed on an "AS IS" BASIS,
604
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
605
+ * See the License for the specific language governing permissions and
606
+ * limitations under the License.
607
+ */
608
+ /**
609
+ * Checks whether host is a cloud workstation or not.
610
+ * @public
611
+ */
612
+ export declare function isCloudWorkstation(host: string): boolean;
613
+
592
614
  /** Detects Electron apps. */
593
615
  export declare function isElectron(): boolean;
594
616
 
@@ -762,6 +784,13 @@ export declare function ordinal(i: number): string;
762
784
 
763
785
  export declare type PartialObserver<T> = Partial<Observer<T>>;
764
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
+
765
794
  /* Excluded from this release type: promiseWithTimeout */
766
795
 
767
796
  /**
package/dist/util.d.ts CHANGED
@@ -589,6 +589,28 @@ export declare function isBrowserExtension(): boolean;
589
589
  */
590
590
  export declare function isCloudflareWorker(): boolean;
591
591
 
592
+ /**
593
+ * @license
594
+ * Copyright 2025 Google LLC
595
+ *
596
+ * Licensed under the Apache License, Version 2.0 (the "License");
597
+ * you may not use this file except in compliance with the License.
598
+ * You may obtain a copy of the License at
599
+ *
600
+ * http://www.apache.org/licenses/LICENSE-2.0
601
+ *
602
+ * Unless required by applicable law or agreed to in writing, software
603
+ * distributed under the License is distributed on an "AS IS" BASIS,
604
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
605
+ * See the License for the specific language governing permissions and
606
+ * limitations under the License.
607
+ */
608
+ /**
609
+ * Checks whether host is a cloud workstation or not.
610
+ * @public
611
+ */
612
+ export declare function isCloudWorkstation(host: string): boolean;
613
+
592
614
  /** Detects Electron apps. */
593
615
  export declare function isElectron(): boolean;
594
616
 
@@ -762,6 +784,13 @@ export declare function ordinal(i: number): string;
762
784
 
763
785
  export declare type PartialObserver<T> = Partial<Observer<T>>;
764
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
+
765
794
  /**
766
795
  * @license
767
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",
3
+ "version": "1.11.1-20250505162014",
4
4
  "description": "",
5
5
  "author": "Firebase <firebase-support@google.com> (https://firebase.google.com/)",
6
6
  "main": "dist/index.node.cjs.js",