@firebase/util 1.11.2 → 1.11.3-canary.3d9291f47
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 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm2017.js +10 -2
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.node.cjs.js +10 -1
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/node-esm/index.node.esm.js +10 -2
- package/dist/node-esm/index.node.esm.js.map +1 -1
- package/dist/node-esm/src/environment.d.ts +2 -0
- package/dist/src/environment.d.ts +2 -0
- package/dist/util-public.d.ts +3 -0
- package/dist/util.d.ts +3 -0
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -810,7 +810,7 @@ function updateEmulatorBanner(name, isRunningEmulator) {
|
|
|
810
810
|
function setupBannerStyles(bannerEl) {
|
|
811
811
|
bannerEl.style.display = 'flex';
|
|
812
812
|
bannerEl.style.background = '#7faaf0';
|
|
813
|
-
bannerEl.style.position = '
|
|
813
|
+
bannerEl.style.position = 'fixed';
|
|
814
814
|
bannerEl.style.bottom = '5px';
|
|
815
815
|
bannerEl.style.left = '5px';
|
|
816
816
|
bannerEl.style.padding = '.5em';
|
|
@@ -1031,6 +1031,14 @@ function isSafari() {
|
|
|
1031
1031
|
navigator.userAgent.includes('Safari') &&
|
|
1032
1032
|
!navigator.userAgent.includes('Chrome'));
|
|
1033
1033
|
}
|
|
1034
|
+
/** Returns true if we are running in Safari or WebKit */
|
|
1035
|
+
function isSafariOrWebkit() {
|
|
1036
|
+
return (!isNode() &&
|
|
1037
|
+
!!navigator.userAgent &&
|
|
1038
|
+
(navigator.userAgent.includes('Safari') ||
|
|
1039
|
+
navigator.userAgent.includes('WebKit')) &&
|
|
1040
|
+
!navigator.userAgent.includes('Chrome'));
|
|
1041
|
+
}
|
|
1034
1042
|
/**
|
|
1035
1043
|
* This method checks if indexedDB is supported by current browser/service worker context
|
|
1036
1044
|
* @return true if indexedDB is supported by current browser/service worker context
|
|
@@ -2338,6 +2346,7 @@ exports.isNode = isNode;
|
|
|
2338
2346
|
exports.isNodeSdk = isNodeSdk;
|
|
2339
2347
|
exports.isReactNative = isReactNative;
|
|
2340
2348
|
exports.isSafari = isSafari;
|
|
2349
|
+
exports.isSafariOrWebkit = isSafariOrWebkit;
|
|
2341
2350
|
exports.isUWP = isUWP;
|
|
2342
2351
|
exports.isValidFormat = isValidFormat;
|
|
2343
2352
|
exports.isValidTimestamp = isValidTimestamp;
|