@firebase/util
Advanced tools
Comparing version 1.9.7-canary.62661245f to 1.9.7-canary.629919ea7
@@ -37,3 +37,3 @@ /** | ||
/** | ||
* Detect Browser Environment | ||
* Detect Browser Environment. | ||
* Note: This will return true for certain test frameworks that are incompletely | ||
@@ -45,5 +45,9 @@ * mimicking a browser, and should not lead to assuming all browser APIs are | ||
/** | ||
* Detect Web Worker context | ||
* Detect Web Worker context. | ||
*/ | ||
export declare function isWebWorker(): boolean; | ||
/** | ||
* Detect Cloudflare Worker context. | ||
*/ | ||
export declare function isCloudflareWorker(): boolean; | ||
export declare function isBrowserExtension(): boolean; | ||
@@ -50,0 +54,0 @@ /** |
@@ -37,3 +37,3 @@ /** | ||
/** | ||
* Detect Browser Environment | ||
* Detect Browser Environment. | ||
* Note: This will return true for certain test frameworks that are incompletely | ||
@@ -45,5 +45,9 @@ * mimicking a browser, and should not lead to assuming all browser APIs are | ||
/** | ||
* Detect Web Worker context | ||
* Detect Web Worker context. | ||
*/ | ||
export declare function isWebWorker(): boolean; | ||
/** | ||
* Detect Cloudflare Worker context. | ||
*/ | ||
export declare function isCloudflareWorker(): boolean; | ||
export declare function isBrowserExtension(): boolean; | ||
@@ -50,0 +54,0 @@ /** |
@@ -578,3 +578,3 @@ | ||
/** | ||
* Detect Browser Environment | ||
* Detect Browser Environment. | ||
* Note: This will return true for certain test frameworks that are incompletely | ||
@@ -588,2 +588,7 @@ * mimicking a browser, and should not lead to assuming all browser APIs are | ||
/** | ||
* Detect Cloudflare Worker context. | ||
*/ | ||
export declare function isCloudflareWorker(): boolean; | ||
/** Detects Electron apps. */ | ||
@@ -668,3 +673,3 @@ export declare function isElectron(): boolean; | ||
/** | ||
* Detect Web Worker context | ||
* Detect Web Worker context. | ||
*/ | ||
@@ -671,0 +676,0 @@ export declare function isWebWorker(): boolean; |
@@ -578,3 +578,3 @@ | ||
/** | ||
* Detect Browser Environment | ||
* Detect Browser Environment. | ||
* Note: This will return true for certain test frameworks that are incompletely | ||
@@ -588,2 +588,7 @@ * mimicking a browser, and should not lead to assuming all browser APIs are | ||
/** | ||
* Detect Cloudflare Worker context. | ||
*/ | ||
export declare function isCloudflareWorker(): boolean; | ||
/** Detects Electron apps. */ | ||
@@ -668,3 +673,3 @@ export declare function isElectron(): boolean; | ||
/** | ||
* Detect Web Worker context | ||
* Detect Web Worker context. | ||
*/ | ||
@@ -671,0 +676,0 @@ export declare function isWebWorker(): boolean; |
{ | ||
"name": "@firebase/util", | ||
"version": "1.9.7-canary.62661245f", | ||
"version": "1.9.7-canary.629919ea7", | ||
"description": "", | ||
@@ -39,3 +39,3 @@ "author": "Firebase <firebase-support@google.com> (https://firebase.google.com/)", | ||
"test:all": "run-p --npm-path npm test:browser test:node", | ||
"test:browser": "karma start --single-run", | ||
"test:browser": "karma start", | ||
"test:node": "TS_NODE_CACHE=NO TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' nyc --reporter lcovonly -- mocha test/**/*.test.* --config ../../config/mocharc.node.js", | ||
@@ -42,0 +42,0 @@ "trusted-type-check": "tsec -p tsconfig.json --noEmit", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1149603
14838