@applitools/driver
Advanced tools
Comparing version 1.11.20 to 1.11.21
@@ -21,6 +21,15 @@ "use strict"; | ||
info.deviceName = ((_h = (_g = capabilities.desired) === null || _g === void 0 ? void 0 : _g.deviceName) !== null && _h !== void 0 ? _h : capabilities.deviceName) || undefined; | ||
info.isNative = info.isMobile && !info.browserName; | ||
info.orientation = (_k = ((_j = capabilities.deviceOrientation) !== null && _j !== void 0 ? _j : capabilities.orientation)) === null || _k === void 0 ? void 0 : _k.toLowerCase(); | ||
info.isIOS = isIOS(capabilities); | ||
info.isAndroid = isAndroid(capabilities); | ||
info.orientation = (_k = ((_j = capabilities.deviceOrientation) !== null && _j !== void 0 ? _j : capabilities.orientation)) === null || _k === void 0 ? void 0 : _k.toLowerCase(); | ||
if (!info.browserName) { | ||
info.isNative = true; | ||
} | ||
else if (info.isIOS && !/mobilesafari/i.test(capabilities.CFBundleIdentifier)) { | ||
info.browserName = undefined; | ||
info.isNative = true; | ||
} | ||
else { | ||
info.isNative = false; | ||
} | ||
} | ||
@@ -27,0 +36,0 @@ if (info.isNative) { |
{ | ||
"name": "@applitools/driver", | ||
"version": "1.11.20", | ||
"version": "1.11.21", | ||
"description": "Applitools universal framework wrapper", | ||
@@ -91,3 +91,3 @@ "keywords": [ | ||
"@applitools/logger": "1.1.36", | ||
"@applitools/snippets": "2.4.11", | ||
"@applitools/snippets": "2.4.12", | ||
"@applitools/utils": "1.3.22", | ||
@@ -94,0 +94,0 @@ "semver": "7.3.7" |
239278
3902
+ Added@applitools/snippets@2.4.12(transitive)
- Removed@applitools/snippets@2.4.11(transitive)
Updated@applitools/snippets@2.4.12