@firebase/util 1.11.1-canary.f8334eade → 1.11.1-canary.f92069a21
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/dist/index.cjs.js +191 -35
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm2017.js +190 -36
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.node.cjs.js +191 -35
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/node-esm/index.node.esm.js +190 -36
- package/dist/node-esm/index.node.esm.js.map +1 -1
- package/dist/node-esm/src/emulator.d.ts +7 -0
- package/dist/node-esm/src/environment.d.ts +2 -0
- package/dist/src/emulator.d.ts +7 -0
- package/dist/src/environment.d.ts +2 -0
- package/dist/util-public.d.ts +11 -0
- package/dist/util.d.ts +11 -0
- package/package.json +1 -1
|
@@ -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 {};
|
|
@@ -69,6 +69,8 @@ export declare function isUWP(): boolean;
|
|
|
69
69
|
export declare function isNodeSdk(): boolean;
|
|
70
70
|
/** Returns true if we are running in Safari. */
|
|
71
71
|
export declare function isSafari(): boolean;
|
|
72
|
+
/** Returns true if we are running in Safari or WebKit */
|
|
73
|
+
export declare function isSafariOrWebkit(): boolean;
|
|
72
74
|
/**
|
|
73
75
|
* This method checks if indexedDB is supported by current browser/service worker context
|
|
74
76
|
* @return true if indexedDB is supported by current browser/service worker context
|
package/dist/src/emulator.d.ts
CHANGED
|
@@ -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 {};
|
|
@@ -69,6 +69,8 @@ export declare function isUWP(): boolean;
|
|
|
69
69
|
export declare function isNodeSdk(): boolean;
|
|
70
70
|
/** Returns true if we are running in Safari. */
|
|
71
71
|
export declare function isSafari(): boolean;
|
|
72
|
+
/** Returns true if we are running in Safari or WebKit */
|
|
73
|
+
export declare function isSafariOrWebkit(): boolean;
|
|
72
74
|
/**
|
|
73
75
|
* This method checks if indexedDB is supported by current browser/service worker context
|
|
74
76
|
* @return true if indexedDB is supported by current browser/service worker context
|
package/dist/util-public.d.ts
CHANGED
|
@@ -658,6 +658,9 @@ export declare function isReactNative(): boolean;
|
|
|
658
658
|
/** Returns true if we are running in Safari. */
|
|
659
659
|
export declare function isSafari(): boolean;
|
|
660
660
|
|
|
661
|
+
/** Returns true if we are running in Safari or WebKit */
|
|
662
|
+
export declare function isSafariOrWebkit(): boolean;
|
|
663
|
+
|
|
661
664
|
/**
|
|
662
665
|
* Decodes a Firebase auth. token and returns its issued at time if valid, null otherwise.
|
|
663
666
|
*
|
|
@@ -956,6 +959,14 @@ export declare interface Subscribe<T> {
|
|
|
956
959
|
|
|
957
960
|
export declare type Unsubscribe = () => void;
|
|
958
961
|
|
|
962
|
+
/**
|
|
963
|
+
* Updates Emulator Banner. Primarily used for Firebase Studio
|
|
964
|
+
* @param name
|
|
965
|
+
* @param isRunningEmulator
|
|
966
|
+
* @public
|
|
967
|
+
*/
|
|
968
|
+
export declare function updateEmulatorBanner(name: string, isRunningEmulator: boolean): void;
|
|
969
|
+
|
|
959
970
|
/**
|
|
960
971
|
* Check to make sure the appropriate number of arguments are provided for a public function.
|
|
961
972
|
* Throws an error if it fails.
|
package/dist/util.d.ts
CHANGED
|
@@ -658,6 +658,9 @@ export declare function isReactNative(): boolean;
|
|
|
658
658
|
/** Returns true if we are running in Safari. */
|
|
659
659
|
export declare function isSafari(): boolean;
|
|
660
660
|
|
|
661
|
+
/** Returns true if we are running in Safari or WebKit */
|
|
662
|
+
export declare function isSafariOrWebkit(): boolean;
|
|
663
|
+
|
|
661
664
|
/**
|
|
662
665
|
* Decodes a Firebase auth. token and returns its issued at time if valid, null otherwise.
|
|
663
666
|
*
|
|
@@ -976,6 +979,14 @@ export declare interface Subscribe<T> {
|
|
|
976
979
|
|
|
977
980
|
export declare type Unsubscribe = () => void;
|
|
978
981
|
|
|
982
|
+
/**
|
|
983
|
+
* Updates Emulator Banner. Primarily used for Firebase Studio
|
|
984
|
+
* @param name
|
|
985
|
+
* @param isRunningEmulator
|
|
986
|
+
* @public
|
|
987
|
+
*/
|
|
988
|
+
export declare function updateEmulatorBanner(name: string, isRunningEmulator: boolean): void;
|
|
989
|
+
|
|
979
990
|
/**
|
|
980
991
|
* Check to make sure the appropriate number of arguments are provided for a public function.
|
|
981
992
|
* Throws an error if it fails.
|
package/package.json
CHANGED