@firebase/util
Advanced tools
Comparing version 1.9.7 to 1.10.0-20240916151535
@@ -23,3 +23,3 @@ /** | ||
/** | ||
* Our API internals are not promiseified and cannot because our callback APIs have subtle expectations around | ||
* Our API internals are not promisified and cannot because our callback APIs have subtle expectations around | ||
* invoking promises inline, which Promises are forbidden to do. This method accepts an optional node-style callback | ||
@@ -26,0 +26,0 @@ * and returns a node-style callback which will resolve or reject the Deferred's promise. |
@@ -37,9 +37,16 @@ /** | ||
/** | ||
* Detect Browser Environment | ||
* Detect Browser Environment. | ||
* Note: This will return true for certain test frameworks that are incompletely | ||
* mimicking a browser, and should not lead to assuming all browser APIs are | ||
* available. | ||
*/ | ||
export declare function isBrowser(): boolean; | ||
/** | ||
* 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; | ||
@@ -46,0 +53,0 @@ /** |
@@ -22,3 +22,3 @@ /** | ||
* | ||
* // Typescript string literals for type-safe codes | ||
* // TypeScript string literals for type-safe codes | ||
* type Err = | ||
@@ -25,0 +25,0 @@ * 'unknown' | |
@@ -26,5 +26,5 @@ /** | ||
* Returns JSON representing a javascript object. | ||
* @param {*} data Javascript object to be stringified. | ||
* @param {*} data JavaScript object to be stringified. | ||
* @return {string} The JSON contents of the object. | ||
*/ | ||
export declare function stringify(data: unknown): string; |
@@ -23,3 +23,3 @@ /** | ||
/** | ||
* Our API internals are not promiseified and cannot because our callback APIs have subtle expectations around | ||
* Our API internals are not promisified and cannot because our callback APIs have subtle expectations around | ||
* invoking promises inline, which Promises are forbidden to do. This method accepts an optional node-style callback | ||
@@ -26,0 +26,0 @@ * and returns a node-style callback which will resolve or reject the Deferred's promise. |
@@ -37,9 +37,16 @@ /** | ||
/** | ||
* Detect Browser Environment | ||
* Detect Browser Environment. | ||
* Note: This will return true for certain test frameworks that are incompletely | ||
* mimicking a browser, and should not lead to assuming all browser APIs are | ||
* available. | ||
*/ | ||
export declare function isBrowser(): boolean; | ||
/** | ||
* 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; | ||
@@ -46,0 +53,0 @@ /** |
@@ -22,3 +22,3 @@ /** | ||
* | ||
* // Typescript string literals for type-safe codes | ||
* // TypeScript string literals for type-safe codes | ||
* type Err = | ||
@@ -25,0 +25,0 @@ * 'unknown' | |
@@ -26,5 +26,5 @@ /** | ||
* Returns JSON representing a javascript object. | ||
* @param {*} data Javascript object to be stringified. | ||
* @param {*} data JavaScript object to be stringified. | ||
* @return {string} The JSON contents of the object. | ||
*/ | ||
export declare function stringify(data: unknown): string; |
@@ -277,3 +277,3 @@ | ||
/** | ||
* Our API internals are not promiseified and cannot because our callback APIs have subtle expectations around | ||
* Our API internals are not promisified and cannot because our callback APIs have subtle expectations around | ||
* invoking promises inline, which Promises are forbidden to do. This method accepts an optional node-style callback | ||
@@ -328,3 +328,3 @@ * and returns a node-style callback which will resolve or reject the Deferred's promise. | ||
* | ||
* // Typescript string literals for type-safe codes | ||
* // TypeScript string literals for type-safe codes | ||
* type Err = | ||
@@ -580,3 +580,6 @@ * 'unknown' | | ||
/** | ||
* Detect Browser Environment | ||
* Detect Browser Environment. | ||
* Note: This will return true for certain test frameworks that are incompletely | ||
* mimicking a browser, and should not lead to assuming all browser APIs are | ||
* available. | ||
*/ | ||
@@ -587,2 +590,7 @@ export declare function isBrowser(): boolean; | ||
/** | ||
* Detect Cloudflare Worker context. | ||
*/ | ||
export declare function isCloudflareWorker(): boolean; | ||
/** Detects Electron apps. */ | ||
@@ -667,3 +675,3 @@ export declare function isElectron(): boolean; | ||
/** | ||
* Detect Web Worker context | ||
* Detect Web Worker context. | ||
*/ | ||
@@ -894,3 +902,3 @@ export declare function isWebWorker(): boolean; | ||
* Returns JSON representing a javascript object. | ||
* @param {*} data Javascript object to be stringified. | ||
* @param {*} data JavaScript object to be stringified. | ||
* @return {string} The JSON contents of the object. | ||
@@ -897,0 +905,0 @@ */ |
@@ -277,3 +277,3 @@ | ||
/** | ||
* Our API internals are not promiseified and cannot because our callback APIs have subtle expectations around | ||
* Our API internals are not promisified and cannot because our callback APIs have subtle expectations around | ||
* invoking promises inline, which Promises are forbidden to do. This method accepts an optional node-style callback | ||
@@ -328,3 +328,3 @@ * and returns a node-style callback which will resolve or reject the Deferred's promise. | ||
* | ||
* // Typescript string literals for type-safe codes | ||
* // TypeScript string literals for type-safe codes | ||
* type Err = | ||
@@ -580,3 +580,6 @@ * 'unknown' | | ||
/** | ||
* Detect Browser Environment | ||
* Detect Browser Environment. | ||
* Note: This will return true for certain test frameworks that are incompletely | ||
* mimicking a browser, and should not lead to assuming all browser APIs are | ||
* available. | ||
*/ | ||
@@ -587,2 +590,7 @@ export declare function isBrowser(): boolean; | ||
/** | ||
* Detect Cloudflare Worker context. | ||
*/ | ||
export declare function isCloudflareWorker(): boolean; | ||
/** Detects Electron apps. */ | ||
@@ -667,3 +675,3 @@ export declare function isElectron(): boolean; | ||
/** | ||
* Detect Web Worker context | ||
* Detect Web Worker context. | ||
*/ | ||
@@ -914,3 +922,3 @@ export declare function isWebWorker(): boolean; | ||
* Returns JSON representing a javascript object. | ||
* @param {*} data Javascript object to be stringified. | ||
* @param {*} data JavaScript object to be stringified. | ||
* @return {string} The JSON contents of the object. | ||
@@ -917,0 +925,0 @@ */ |
{ | ||
"name": "@firebase/util", | ||
"version": "1.9.7", | ||
"version": "1.10.0-20240916151535", | ||
"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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
1149602
14838
2