@firebase/util 1.11.1-canary.51e7b489d → 1.11.1-canary.6be75f74d
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 +9 -0
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm2017.js +9 -1
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.node.cjs.js +9 -0
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/node-esm/index.node.esm.js +9 -1
- 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
|
@@ -850,6 +850,14 @@ function isSafari() {
|
|
|
850
850
|
navigator.userAgent.includes('Safari') &&
|
|
851
851
|
!navigator.userAgent.includes('Chrome'));
|
|
852
852
|
}
|
|
853
|
+
/** Returns true if we are running in Safari or WebKit */
|
|
854
|
+
function isSafariOrWebkit() {
|
|
855
|
+
return (!isNode() &&
|
|
856
|
+
!!navigator.userAgent &&
|
|
857
|
+
(navigator.userAgent.includes('Safari') ||
|
|
858
|
+
navigator.userAgent.includes('WebKit')) &&
|
|
859
|
+
!navigator.userAgent.includes('Chrome'));
|
|
860
|
+
}
|
|
853
861
|
/**
|
|
854
862
|
* This method checks if indexedDB is supported by current browser/service worker context
|
|
855
863
|
* @return true if indexedDB is supported by current browser/service worker context
|
|
@@ -2192,6 +2200,7 @@ exports.isNode = isNode;
|
|
|
2192
2200
|
exports.isNodeSdk = isNodeSdk;
|
|
2193
2201
|
exports.isReactNative = isReactNative;
|
|
2194
2202
|
exports.isSafari = isSafari;
|
|
2203
|
+
exports.isSafariOrWebkit = isSafariOrWebkit;
|
|
2195
2204
|
exports.isUWP = isUWP;
|
|
2196
2205
|
exports.isValidFormat = isValidFormat;
|
|
2197
2206
|
exports.isValidTimestamp = isValidTimestamp;
|