@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.
- package/dist/index.cjs.js +8 -5
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm2017.js +8 -5
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm5.js +7 -4
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.node.cjs.js +7 -4
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/node-esm/index.node.esm.js +8 -5
- package/dist/node-esm/index.node.esm.js.map +1 -1
- package/dist/node-esm/src/deferred.d.ts +1 -1
- package/dist/node-esm/src/environment.d.ts +3 -0
- package/dist/node-esm/src/errors.d.ts +1 -1
- package/dist/node-esm/src/json.d.ts +1 -1
- package/dist/src/deferred.d.ts +1 -1
- package/dist/src/environment.d.ts +3 -0
- package/dist/src/errors.d.ts +1 -1
- package/dist/src/json.d.ts +1 -1
- package/dist/util-public.d.ts +6 -3
- package/dist/util.d.ts +6 -3
- package/package.json +1 -1
|
@@ -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
|
|
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
|
/**
|
|
@@ -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
|
|
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;
|
package/dist/src/deferred.d.ts
CHANGED
|
@@ -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
|
|
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
|
/**
|
package/dist/src/errors.d.ts
CHANGED
package/dist/src/json.d.ts
CHANGED
|
@@ -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
|
|
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;
|
package/dist/util-public.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
|
|
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
|
-
* //
|
|
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
|
|
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
|
|
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
|
-
* //
|
|
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
|
|
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