@firebase/util
Advanced tools
Comparing version 1.9.7-canary.fd8bd4b02 to 1.9.7-dataconnect-preview.d986d4bf2
@@ -40,1 +40,2 @@ /** | ||
export * from './src/global'; | ||
export * from './src/fetch_provider'; |
@@ -40,1 +40,2 @@ /** | ||
export * from './src/global'; | ||
export * from './src/fetch_provider'; |
@@ -40,1 +40,2 @@ /** | ||
export * from './src/global'; | ||
export * from './src/fetch_provider'; |
@@ -40,1 +40,2 @@ /** | ||
export * from './src/global'; | ||
export * from './src/fetch_provider'; |
@@ -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. |
@@ -38,2 +38,5 @@ /** | ||
* 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. | ||
*/ | ||
@@ -40,0 +43,0 @@ export declare function isBrowser(): boolean; |
@@ -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. |
@@ -38,2 +38,5 @@ /** | ||
* 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. | ||
*/ | ||
@@ -40,0 +43,0 @@ export declare function isBrowser(): boolean; |
@@ -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 = | ||
@@ -407,2 +407,28 @@ * 'unknown' | | ||
/** | ||
* @license | ||
* Copyright 2023 Google LLC | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
export declare class FetchProvider { | ||
private static fetchImpl; | ||
private static headersImpl; | ||
private static responseImpl; | ||
static initialize(fetchImpl: typeof fetch, headersImpl?: typeof Headers, responseImpl?: typeof Response): void; | ||
static fetch(): typeof fetch; | ||
static headers(): typeof Headers; | ||
static response(): typeof Response; | ||
} | ||
/** | ||
* An object that can be injected into the environment as __FIREBASE_DEFAULTS__, | ||
@@ -582,2 +608,5 @@ * either as a property of globalThis, a shell environment variable, or a | ||
* 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. | ||
*/ | ||
@@ -893,3 +922,3 @@ export declare function isBrowser(): 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. | ||
@@ -896,0 +925,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 = | ||
@@ -407,2 +407,28 @@ * 'unknown' | | ||
/** | ||
* @license | ||
* Copyright 2023 Google LLC | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
export declare class FetchProvider { | ||
private static fetchImpl; | ||
private static headersImpl; | ||
private static responseImpl; | ||
static initialize(fetchImpl: typeof fetch, headersImpl?: typeof Headers, responseImpl?: typeof Response): void; | ||
static fetch(): typeof fetch; | ||
static headers(): typeof Headers; | ||
static response(): typeof Response; | ||
} | ||
/** | ||
* An object that can be injected into the environment as __FIREBASE_DEFAULTS__, | ||
@@ -582,2 +608,5 @@ * either as a property of globalThis, a shell environment variable, or a | ||
* 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. | ||
*/ | ||
@@ -913,3 +942,3 @@ export declare function isBrowser(): 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. | ||
@@ -916,0 +945,0 @@ */ |
{ | ||
"name": "@firebase/util", | ||
"version": "1.9.7-canary.fd8bd4b02", | ||
"version": "1.9.7-dataconnect-preview.d986d4bf2", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "author": "Firebase <firebase-support@google.com> (https://firebase.google.com/)", |
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
1177908
88
15167