@firebase/util 1.7.3 → 1.8.0-canary.20e5ef7fb
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/CHANGELOG.md +10 -0
- package/dist/index.esm2017.js +11 -3
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm5.js +20 -12
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.node.cjs.js +20 -12
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/node-esm/index.node.esm.js +11 -3
- package/dist/node-esm/index.node.esm.js.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @firebase/util
|
|
2
2
|
|
|
3
|
+
## 1.8.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`1625f7a95`](https://github.com/firebase/firebase-js-sdk/commit/1625f7a95cc3ffb666845db0a8044329be74b5be) [#6799](https://github.com/firebase/firebase-js-sdk/pull/6799) - Update TypeScript version to 4.7.4.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- [`c20633ed3`](https://github.com/firebase/firebase-js-sdk/commit/c20633ed35056cbadc9d65d9ceddf4e28d1ea666) [#6841](https://github.com/firebase/firebase-js-sdk/pull/6841) - Fix for third party window content that cannot access IndexedDB if the browser is set to never accept third party cookies on Firefox.
|
|
12
|
+
|
|
3
13
|
## 1.7.3
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
package/dist/index.esm2017.js
CHANGED
|
@@ -558,7 +558,12 @@ function isSafari() {
|
|
|
558
558
|
* @return true if indexedDB is supported by current browser/service worker context
|
|
559
559
|
*/
|
|
560
560
|
function isIndexedDBAvailable() {
|
|
561
|
-
|
|
561
|
+
try {
|
|
562
|
+
return typeof indexedDB === 'object';
|
|
563
|
+
}
|
|
564
|
+
catch (e) {
|
|
565
|
+
return false;
|
|
566
|
+
}
|
|
562
567
|
}
|
|
563
568
|
/**
|
|
564
569
|
* This method validates browser/sw context for indexedDB by opening a dummy indexedDB database and reject
|
|
@@ -641,8 +646,11 @@ function getGlobal() {
|
|
|
641
646
|
const getDefaultsFromGlobal = () => getGlobal().__FIREBASE_DEFAULTS__;
|
|
642
647
|
/**
|
|
643
648
|
* Attempt to read defaults from a JSON string provided to
|
|
644
|
-
* process.env.__FIREBASE_DEFAULTS__ or a JSON file whose path is in
|
|
645
|
-
* process.env.__FIREBASE_DEFAULTS_PATH__
|
|
649
|
+
* process(.)env(.)__FIREBASE_DEFAULTS__ or a JSON file whose path is in
|
|
650
|
+
* process(.)env(.)__FIREBASE_DEFAULTS_PATH__
|
|
651
|
+
* The dots are in parens because certain compilers (Vite?) cannot
|
|
652
|
+
* handle seeing that variable in comments.
|
|
653
|
+
* See https://github.com/firebase/firebase-js-sdk/issues/6838
|
|
646
654
|
*/
|
|
647
655
|
const getDefaultsFromEnvVariable = () => {
|
|
648
656
|
if (typeof process === 'undefined' || typeof process.env === 'undefined') {
|