@firebase/util 1.7.0 → 1.7.1-20221010203322

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.
@@ -42,9 +42,17 @@ declare global {
42
42
  /**
43
43
  * Returns emulator host stored in the __FIREBASE_DEFAULTS__ object
44
44
  * for the given product.
45
+ * @returns a URL host formatted like `127.0.0.1:9999` or `[::1]:4000` if available
45
46
  * @public
46
47
  */
47
48
  export declare const getDefaultEmulatorHost: (productName: string) => string | undefined;
49
+ /**
50
+ * Returns emulator hostname and port stored in the __FIREBASE_DEFAULTS__ object
51
+ * for the given product.
52
+ * @returns a pair of hostname and port like `["::1", 4000]` if available
53
+ * @public
54
+ */
55
+ export declare const getDefaultEmulatorHostnameAndPort: (productName: string) => [hostname: string, port: number] | undefined;
48
56
  /**
49
57
  * Returns Firebase app config stored in the __FIREBASE_DEFAULTS__ object.
50
58
  * @public
@@ -0,0 +1 @@
1
+ export {};
@@ -42,9 +42,17 @@ declare global {
42
42
  /**
43
43
  * Returns emulator host stored in the __FIREBASE_DEFAULTS__ object
44
44
  * for the given product.
45
+ * @returns a URL host formatted like `127.0.0.1:9999` or `[::1]:4000` if available
45
46
  * @public
46
47
  */
47
48
  export declare const getDefaultEmulatorHost: (productName: string) => string | undefined;
49
+ /**
50
+ * Returns emulator hostname and port stored in the __FIREBASE_DEFAULTS__ object
51
+ * for the given product.
52
+ * @returns a pair of hostname and port like `["::1", 4000]` if available
53
+ * @public
54
+ */
55
+ export declare const getDefaultEmulatorHostnameAndPort: (productName: string) => [hostname: string, port: number] | undefined;
48
56
  /**
49
57
  * Returns Firebase app config stored in the __FIREBASE_DEFAULTS__ object.
50
58
  * @public
@@ -0,0 +1 @@
1
+ export {};
@@ -477,10 +477,19 @@ export declare const getDefaultAppConfig: () => Record<string, string> | undefin
477
477
  /**
478
478
  * Returns emulator host stored in the __FIREBASE_DEFAULTS__ object
479
479
  * for the given product.
480
+ * @returns a URL host formatted like `127.0.0.1:9999` or `[::1]:4000` if available
480
481
  * @public
481
482
  */
482
483
  export declare const getDefaultEmulatorHost: (productName: string) => string | undefined;
483
484
 
485
+ /**
486
+ * Returns emulator hostname and port stored in the __FIREBASE_DEFAULTS__ object
487
+ * for the given product.
488
+ * @returns a pair of hostname and port like `["::1", 4000]` if available
489
+ * @public
490
+ */
491
+ export declare const getDefaultEmulatorHostnameAndPort: (productName: string) => [hostname: string, port: number] | undefined;
492
+
484
493
  /**
485
494
  * Returns an experimental setting on the __FIREBASE_DEFAULTS__ object (properties
486
495
  * prefixed by "_")
package/dist/util.d.ts CHANGED
@@ -477,10 +477,19 @@ export declare const getDefaultAppConfig: () => Record<string, string> | undefin
477
477
  /**
478
478
  * Returns emulator host stored in the __FIREBASE_DEFAULTS__ object
479
479
  * for the given product.
480
+ * @returns a URL host formatted like `127.0.0.1:9999` or `[::1]:4000` if available
480
481
  * @public
481
482
  */
482
483
  export declare const getDefaultEmulatorHost: (productName: string) => string | undefined;
483
484
 
485
+ /**
486
+ * Returns emulator hostname and port stored in the __FIREBASE_DEFAULTS__ object
487
+ * for the given product.
488
+ * @returns a pair of hostname and port like `["::1", 4000]` if available
489
+ * @public
490
+ */
491
+ export declare const getDefaultEmulatorHostnameAndPort: (productName: string) => [hostname: string, port: number] | undefined;
492
+
484
493
  /**
485
494
  * Returns an experimental setting on the __FIREBASE_DEFAULTS__ object (properties
486
495
  * prefixed by "_")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@firebase/util",
3
- "version": "1.7.0",
3
+ "version": "1.7.1-20221010203322",
4
4
  "description": "",
5
5
  "author": "Firebase <firebase-support@google.com> (https://firebase.google.com/)",
6
6
  "main": "dist/index.node.cjs.js",