@dynamic-labs/utils
Advanced tools
Comparing version 0.19.0-alpha.11 to 0.19.0-alpha.12
{ | ||
"name": "@dynamic-labs/utils", | ||
"version": "0.19.0-alpha.11", | ||
"version": "0.19.0-alpha.12", | ||
"repository": { | ||
@@ -32,5 +32,5 @@ "type": "git", | ||
"dependencies": { | ||
"@dynamic-labs/logger": "0.19.0-alpha.11", | ||
"@dynamic-labs/types": "0.19.0-alpha.11" | ||
"@dynamic-labs/logger": "0.19.0-alpha.12", | ||
"@dynamic-labs/types": "0.19.0-alpha.12" | ||
} | ||
} |
@@ -21,3 +21,3 @@ export { parseChainId } from './parseChainId.js'; | ||
export { isFunction } from './isFunction/isFunction.js'; | ||
export { isAndroid, isIOS, isIPad, isIPhone, isIPhone8OrEarlier, isLegacySafari, isMobile, isSamsungBrowser, isWindows } from './isMobile.js'; | ||
export { getAndroidVersion, isAndroid, isIOS, isIPad, isIPhone, isIPhone8OrEarlier, isLegacySafari, isMobile, isSamsungBrowser, isWindows } from './isMobile.js'; | ||
export { getItemAsync, removeItemAsync, setItemAsync } from './localStorageAsync.js'; | ||
@@ -24,0 +24,0 @@ export { bufferToBase64 } from './bufferToBase64.js'; |
@@ -18,1 +18,2 @@ /** | ||
export declare const isWindows: () => boolean; | ||
export declare const getAndroidVersion: () => number | undefined; |
@@ -113,3 +113,11 @@ /** | ||
]; | ||
const getAndroidVersion = () => { | ||
const androidVersionMatch = navigator.userAgent.match(/Android (\d+(\.\d+)?)/); | ||
if (!androidVersionMatch) { | ||
return; | ||
} | ||
const androidVersion = parseFloat(androidVersionMatch[1]); | ||
return androidVersion; | ||
}; | ||
export { isAndroid, isIOS, isIPad, isIPhone, isIPhone8OrEarlier, isLegacySafari, isMobile, isSamsungBrowser, isWindows }; | ||
export { getAndroidVersion, isAndroid, isIOS, isIPad, isIPhone, isIPhone8OrEarlier, isLegacySafari, isMobile, isSamsungBrowser, isWindows }; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
230764
1566
+ Added@dynamic-labs/logger@0.19.0-alpha.12(transitive)
+ Added@dynamic-labs/types@0.19.0-alpha.12(transitive)
- Removed@dynamic-labs/logger@0.19.0-alpha.11(transitive)
- Removed@dynamic-labs/types@0.19.0-alpha.11(transitive)