@firebase/util 1.9.7-canary.f58d48cd4 → 1.9.7-canary.f7c6dc4fe

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.
@@ -20,7 +20,7 @@ export declare class Deferred<R> {
20
20
  resolve: (value?: unknown) => void;
21
21
  constructor();
22
22
  /**
23
- * Our API internals are not promiseified and cannot because our callback APIs have subtle expectations around
23
+ * Our API internals are not promisified and cannot because our callback APIs have subtle expectations around
24
24
  * invoking promises inline, which Promises are forbidden to do. This method accepts an optional node-style callback
25
25
  * and returns a node-style callback which will resolve or reject the Deferred's promise.
26
26
  */
@@ -35,6 +35,9 @@ export declare function isMobileCordova(): boolean;
35
35
  export declare function isNode(): boolean;
36
36
  /**
37
37
  * Detect Browser Environment
38
+ * Note: This will return true for certain test frameworks that are incompletely
39
+ * mimicking a browser, and should not lead to assuming all browser APIs are
40
+ * available.
38
41
  */
39
42
  export declare function isBrowser(): boolean;
40
43
  /**
@@ -19,7 +19,7 @@
19
19
  *
20
20
  * Usage:
21
21
  *
22
- * // Typescript string literals for type-safe codes
22
+ * // TypeScript string literals for type-safe codes
23
23
  * type Err =
24
24
  * 'unknown' |
25
25
  * 'object-not-found'
@@ -23,7 +23,7 @@
23
23
  export declare function jsonEval(str: string): unknown;
24
24
  /**
25
25
  * Returns JSON representing a javascript object.
26
- * @param {*} data Javascript object to be stringified.
26
+ * @param {*} data JavaScript object to be stringified.
27
27
  * @return {string} The JSON contents of the object.
28
28
  */
29
29
  export declare function stringify(data: unknown): string;
@@ -20,7 +20,7 @@ export declare class Deferred<R> {
20
20
  resolve: (value?: unknown) => void;
21
21
  constructor();
22
22
  /**
23
- * Our API internals are not promiseified and cannot because our callback APIs have subtle expectations around
23
+ * Our API internals are not promisified and cannot because our callback APIs have subtle expectations around
24
24
  * invoking promises inline, which Promises are forbidden to do. This method accepts an optional node-style callback
25
25
  * and returns a node-style callback which will resolve or reject the Deferred's promise.
26
26
  */
@@ -35,6 +35,9 @@ export declare function isMobileCordova(): boolean;
35
35
  export declare function isNode(): boolean;
36
36
  /**
37
37
  * Detect Browser Environment
38
+ * Note: This will return true for certain test frameworks that are incompletely
39
+ * mimicking a browser, and should not lead to assuming all browser APIs are
40
+ * available.
38
41
  */
39
42
  export declare function isBrowser(): boolean;
40
43
  /**
@@ -19,7 +19,7 @@
19
19
  *
20
20
  * Usage:
21
21
  *
22
- * // Typescript string literals for type-safe codes
22
+ * // TypeScript string literals for type-safe codes
23
23
  * type Err =
24
24
  * 'unknown' |
25
25
  * 'object-not-found'
@@ -23,7 +23,7 @@
23
23
  export declare function jsonEval(str: string): unknown;
24
24
  /**
25
25
  * Returns JSON representing a javascript object.
26
- * @param {*} data Javascript object to be stringified.
26
+ * @param {*} data JavaScript object to be stringified.
27
27
  * @return {string} The JSON contents of the object.
28
28
  */
29
29
  export declare function stringify(data: unknown): string;
@@ -274,7 +274,7 @@ export declare class Deferred<R> {
274
274
  resolve: (value?: unknown) => void;
275
275
  constructor();
276
276
  /**
277
- * Our API internals are not promiseified and cannot because our callback APIs have subtle expectations around
277
+ * Our API internals are not promisified and cannot because our callback APIs have subtle expectations around
278
278
  * invoking promises inline, which Promises are forbidden to do. This method accepts an optional node-style callback
279
279
  * and returns a node-style callback which will resolve or reject the Deferred's promise.
280
280
  */
@@ -324,7 +324,7 @@ export declare type ErrorFn = (error: Error) => void;
324
324
  *
325
325
  * Usage:
326
326
  *
327
- * // Typescript string literals for type-safe codes
327
+ * // TypeScript string literals for type-safe codes
328
328
  * type Err =
329
329
  * 'unknown' |
330
330
  * 'object-not-found'
@@ -576,6 +576,9 @@ export declare const isAdmin: (token: string) => boolean;
576
576
 
577
577
  /**
578
578
  * Detect Browser Environment
579
+ * Note: This will return true for certain test frameworks that are incompletely
580
+ * mimicking a browser, and should not lead to assuming all browser APIs are
581
+ * available.
579
582
  */
580
583
  export declare function isBrowser(): boolean;
581
584
 
@@ -886,7 +889,7 @@ export declare class Sha1 {
886
889
 
887
890
  /**
888
891
  * Returns JSON representing a javascript object.
889
- * @param {*} data Javascript object to be stringified.
892
+ * @param {*} data JavaScript object to be stringified.
890
893
  * @return {string} The JSON contents of the object.
891
894
  */
892
895
  export declare function stringify(data: unknown): string;
package/dist/util.d.ts CHANGED
@@ -274,7 +274,7 @@ export declare class Deferred<R> {
274
274
  resolve: (value?: unknown) => void;
275
275
  constructor();
276
276
  /**
277
- * Our API internals are not promiseified and cannot because our callback APIs have subtle expectations around
277
+ * Our API internals are not promisified and cannot because our callback APIs have subtle expectations around
278
278
  * invoking promises inline, which Promises are forbidden to do. This method accepts an optional node-style callback
279
279
  * and returns a node-style callback which will resolve or reject the Deferred's promise.
280
280
  */
@@ -324,7 +324,7 @@ export declare type ErrorFn = (error: Error) => void;
324
324
  *
325
325
  * Usage:
326
326
  *
327
- * // Typescript string literals for type-safe codes
327
+ * // TypeScript string literals for type-safe codes
328
328
  * type Err =
329
329
  * 'unknown' |
330
330
  * 'object-not-found'
@@ -576,6 +576,9 @@ export declare const isAdmin: (token: string) => boolean;
576
576
 
577
577
  /**
578
578
  * Detect Browser Environment
579
+ * Note: This will return true for certain test frameworks that are incompletely
580
+ * mimicking a browser, and should not lead to assuming all browser APIs are
581
+ * available.
579
582
  */
580
583
  export declare function isBrowser(): boolean;
581
584
 
@@ -906,7 +909,7 @@ export declare class Sha1 {
906
909
 
907
910
  /**
908
911
  * Returns JSON representing a javascript object.
909
- * @param {*} data Javascript object to be stringified.
912
+ * @param {*} data JavaScript object to be stringified.
910
913
  * @return {string} The JSON contents of the object.
911
914
  */
912
915
  export declare function stringify(data: unknown): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@firebase/util",
3
- "version": "1.9.7-canary.f58d48cd4",
3
+ "version": "1.9.7-canary.f7c6dc4fe",
4
4
  "description": "",
5
5
  "author": "Firebase <firebase-support@google.com> (https://firebase.google.com/)",
6
6
  "main": "dist/index.node.cjs.js",