@firebase/util 1.9.6 → 1.9.7-20240702143745
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 +10 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm2017.js +10 -2
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm5.js +10 -2
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.node.cjs.js +10 -1
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/node-esm/index.node.esm.js +10 -2
- package/dist/node-esm/index.node.esm.js.map +1 -1
- package/dist/node-esm/src/environment.d.ts +4 -0
- package/dist/src/environment.d.ts +4 -0
- package/dist/util-public.d.ts +5 -0
- package/dist/util.d.ts +5 -0
- package/package.json +2 -1
|
@@ -37,6 +37,10 @@ export declare function isNode(): boolean;
|
|
|
37
37
|
* Detect Browser Environment
|
|
38
38
|
*/
|
|
39
39
|
export declare function isBrowser(): boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Detect Web Worker context
|
|
42
|
+
*/
|
|
43
|
+
export declare function isWebWorker(): boolean;
|
|
40
44
|
export declare function isBrowserExtension(): boolean;
|
|
41
45
|
/**
|
|
42
46
|
* Detect React Native.
|
|
@@ -37,6 +37,10 @@ export declare function isNode(): boolean;
|
|
|
37
37
|
* Detect Browser Environment
|
|
38
38
|
*/
|
|
39
39
|
export declare function isBrowser(): boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Detect Web Worker context
|
|
42
|
+
*/
|
|
43
|
+
export declare function isWebWorker(): boolean;
|
|
40
44
|
export declare function isBrowserExtension(): boolean;
|
|
41
45
|
/**
|
|
42
46
|
* Detect React Native.
|
package/dist/util-public.d.ts
CHANGED
|
@@ -659,6 +659,11 @@ export declare const isValidFormat: (token: string) => boolean;
|
|
|
659
659
|
*/
|
|
660
660
|
export declare const isValidTimestamp: (token: string) => boolean;
|
|
661
661
|
|
|
662
|
+
/**
|
|
663
|
+
* Detect Web Worker context
|
|
664
|
+
*/
|
|
665
|
+
export declare function isWebWorker(): boolean;
|
|
666
|
+
|
|
662
667
|
/**
|
|
663
668
|
* @license
|
|
664
669
|
* Copyright 2017 Google LLC
|
package/dist/util.d.ts
CHANGED
|
@@ -659,6 +659,11 @@ export declare const isValidFormat: (token: string) => boolean;
|
|
|
659
659
|
*/
|
|
660
660
|
export declare const isValidTimestamp: (token: string) => boolean;
|
|
661
661
|
|
|
662
|
+
/**
|
|
663
|
+
* Detect Web Worker context
|
|
664
|
+
*/
|
|
665
|
+
export declare function isWebWorker(): boolean;
|
|
666
|
+
|
|
662
667
|
/**
|
|
663
668
|
* @license
|
|
664
669
|
* Copyright 2017 Google LLC
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@firebase/util",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.7-20240702143745",
|
|
4
4
|
"description": "",
|
|
5
5
|
"author": "Firebase <firebase-support@google.com> (https://firebase.google.com/)",
|
|
6
6
|
"main": "dist/index.node.cjs.js",
|
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
"test:all": "run-p --npm-path npm test:browser test:node",
|
|
39
39
|
"test:browser": "karma start --single-run",
|
|
40
40
|
"test:node": "TS_NODE_CACHE=NO TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' nyc --reporter lcovonly -- mocha test/**/*.test.* --config ../../config/mocharc.node.js",
|
|
41
|
+
"trusted-type-check": "tsec -p tsconfig.json --noEmit",
|
|
41
42
|
"api-report": "api-extractor run --local --verbose",
|
|
42
43
|
"typings:public": "node ../../scripts/build/use_typings.js ./dist/util-public.d.ts"
|
|
43
44
|
},
|