@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.
- package/CHANGELOG.md +8 -0
- package/dist/index.esm2017.js +28 -19
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm5.js +28 -19
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.node.cjs.js +28 -18
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/node-esm/index.node.esm.js +28 -19
- package/dist/node-esm/index.node.esm.js.map +1 -1
- package/dist/node-esm/src/defaults.d.ts +8 -0
- package/dist/node-esm/test/defaults.test.d.ts +1 -0
- package/dist/src/defaults.d.ts +8 -0
- package/dist/test/defaults.test.d.ts +1 -0
- package/dist/util-public.d.ts +9 -0
- package/dist/util.d.ts +9 -0
- package/package.json +1 -1
|
@@ -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 {};
|
package/dist/src/defaults.d.ts
CHANGED
|
@@ -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 {};
|
package/dist/util-public.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/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 "_")
|