@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.
@@ -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.
@@ -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.6",
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
  },