@firebase/util 1.9.7-canary.fa0ed08fb → 1.9.7-canary.ff0475c41
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 +10 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm2017.js +10 -3
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm5.js +10 -3
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.node.cjs.js +10 -2
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/node-esm/index.node.esm.js +10 -3
- package/dist/node-esm/index.node.esm.js.map +1 -1
- package/dist/node-esm/src/environment.d.ts +6 -2
- package/dist/src/environment.d.ts +6 -2
- package/dist/util-public.d.ts +7 -2
- package/dist/util.d.ts +7 -2
- package/package.json +2 -2
|
@@ -34,16 +34,20 @@ export declare function isMobileCordova(): boolean;
|
|
|
34
34
|
*/
|
|
35
35
|
export declare function isNode(): boolean;
|
|
36
36
|
/**
|
|
37
|
-
* Detect Browser Environment
|
|
37
|
+
* Detect Browser Environment.
|
|
38
38
|
* Note: This will return true for certain test frameworks that are incompletely
|
|
39
39
|
* mimicking a browser, and should not lead to assuming all browser APIs are
|
|
40
40
|
* available.
|
|
41
41
|
*/
|
|
42
42
|
export declare function isBrowser(): boolean;
|
|
43
43
|
/**
|
|
44
|
-
* Detect Web Worker context
|
|
44
|
+
* Detect Web Worker context.
|
|
45
45
|
*/
|
|
46
46
|
export declare function isWebWorker(): boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Detect Cloudflare Worker context.
|
|
49
|
+
*/
|
|
50
|
+
export declare function isCloudflareWorker(): boolean;
|
|
47
51
|
export declare function isBrowserExtension(): boolean;
|
|
48
52
|
/**
|
|
49
53
|
* Detect React Native.
|
|
@@ -34,16 +34,20 @@ export declare function isMobileCordova(): boolean;
|
|
|
34
34
|
*/
|
|
35
35
|
export declare function isNode(): boolean;
|
|
36
36
|
/**
|
|
37
|
-
* Detect Browser Environment
|
|
37
|
+
* Detect Browser Environment.
|
|
38
38
|
* Note: This will return true for certain test frameworks that are incompletely
|
|
39
39
|
* mimicking a browser, and should not lead to assuming all browser APIs are
|
|
40
40
|
* available.
|
|
41
41
|
*/
|
|
42
42
|
export declare function isBrowser(): boolean;
|
|
43
43
|
/**
|
|
44
|
-
* Detect Web Worker context
|
|
44
|
+
* Detect Web Worker context.
|
|
45
45
|
*/
|
|
46
46
|
export declare function isWebWorker(): boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Detect Cloudflare Worker context.
|
|
49
|
+
*/
|
|
50
|
+
export declare function isCloudflareWorker(): boolean;
|
|
47
51
|
export declare function isBrowserExtension(): boolean;
|
|
48
52
|
/**
|
|
49
53
|
* Detect React Native.
|
package/dist/util-public.d.ts
CHANGED
|
@@ -575,7 +575,7 @@ export declare function getUA(): string;
|
|
|
575
575
|
export declare const isAdmin: (token: string) => boolean;
|
|
576
576
|
|
|
577
577
|
/**
|
|
578
|
-
* Detect Browser Environment
|
|
578
|
+
* Detect Browser Environment.
|
|
579
579
|
* Note: This will return true for certain test frameworks that are incompletely
|
|
580
580
|
* mimicking a browser, and should not lead to assuming all browser APIs are
|
|
581
581
|
* available.
|
|
@@ -584,6 +584,11 @@ export declare function isBrowser(): boolean;
|
|
|
584
584
|
|
|
585
585
|
export declare function isBrowserExtension(): boolean;
|
|
586
586
|
|
|
587
|
+
/**
|
|
588
|
+
* Detect Cloudflare Worker context.
|
|
589
|
+
*/
|
|
590
|
+
export declare function isCloudflareWorker(): boolean;
|
|
591
|
+
|
|
587
592
|
/** Detects Electron apps. */
|
|
588
593
|
export declare function isElectron(): boolean;
|
|
589
594
|
|
|
@@ -663,7 +668,7 @@ export declare const isValidFormat: (token: string) => boolean;
|
|
|
663
668
|
export declare const isValidTimestamp: (token: string) => boolean;
|
|
664
669
|
|
|
665
670
|
/**
|
|
666
|
-
* Detect Web Worker context
|
|
671
|
+
* Detect Web Worker context.
|
|
667
672
|
*/
|
|
668
673
|
export declare function isWebWorker(): boolean;
|
|
669
674
|
|
package/dist/util.d.ts
CHANGED
|
@@ -575,7 +575,7 @@ export declare function getUA(): string;
|
|
|
575
575
|
export declare const isAdmin: (token: string) => boolean;
|
|
576
576
|
|
|
577
577
|
/**
|
|
578
|
-
* Detect Browser Environment
|
|
578
|
+
* Detect Browser Environment.
|
|
579
579
|
* Note: This will return true for certain test frameworks that are incompletely
|
|
580
580
|
* mimicking a browser, and should not lead to assuming all browser APIs are
|
|
581
581
|
* available.
|
|
@@ -584,6 +584,11 @@ export declare function isBrowser(): boolean;
|
|
|
584
584
|
|
|
585
585
|
export declare function isBrowserExtension(): boolean;
|
|
586
586
|
|
|
587
|
+
/**
|
|
588
|
+
* Detect Cloudflare Worker context.
|
|
589
|
+
*/
|
|
590
|
+
export declare function isCloudflareWorker(): boolean;
|
|
591
|
+
|
|
587
592
|
/** Detects Electron apps. */
|
|
588
593
|
export declare function isElectron(): boolean;
|
|
589
594
|
|
|
@@ -663,7 +668,7 @@ export declare const isValidFormat: (token: string) => boolean;
|
|
|
663
668
|
export declare const isValidTimestamp: (token: string) => boolean;
|
|
664
669
|
|
|
665
670
|
/**
|
|
666
|
-
* Detect Web Worker context
|
|
671
|
+
* Detect Web Worker context.
|
|
667
672
|
*/
|
|
668
673
|
export declare function isWebWorker(): boolean;
|
|
669
674
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@firebase/util",
|
|
3
|
-
"version": "1.9.7-canary.
|
|
3
|
+
"version": "1.9.7-canary.ff0475c41",
|
|
4
4
|
"description": "",
|
|
5
5
|
"author": "Firebase <firebase-support@google.com> (https://firebase.google.com/)",
|
|
6
6
|
"main": "dist/index.node.cjs.js",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"test": "run-p --npm-path npm lint test:all",
|
|
37
37
|
"test:ci": "node ../../scripts/run_tests_in_ci.js -s test:all",
|
|
38
38
|
"test:all": "run-p --npm-path npm test:browser test:node",
|
|
39
|
-
"test:browser": "karma start
|
|
39
|
+
"test:browser": "karma start",
|
|
40
40
|
"test:node": "TS_NODE_CACHE=NO TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' nyc --reporter lcovonly -- mocha test/**/*.test.* --config ../../config/mocharc.node.js",
|
|
41
41
|
"trusted-type-check": "tsec -p tsconfig.json --noEmit",
|
|
42
42
|
"api-report": "api-extractor run --local --verbose",
|