@applitools/snippets
Advanced tools
Comparing version 2.1.11 to 2.1.12
@@ -7,2 +7,6 @@ | ||
## 2.1.12 - 2021/12/22 | ||
- round fractional values in `getViewportSize` | ||
## 2.1.11 - 2021/12/22 | ||
@@ -9,0 +13,0 @@ |
@@ -24,3 +24,3 @@ { | ||
"getUserAgent": "function(arg){var s=function(){\"use strict\";return function(){return window.navigator.userAgent}}();\nreturn s(arg)}", | ||
"getViewportSize": "function(arg){var s=function(){\"use strict\";return function(){var e=0,t=0;return window.innerHeight?t=window.innerHeight:document.documentElement&&document.documentElement.clientHeight?t=document.documentElement.clientHeight:document.body&&document.body.clientHeight&&(t=document.body.clientHeight),window.innerWidth?e=window.innerWidth:document.documentElement&&document.documentElement.clientWidth?e=document.documentElement.clientWidth:document.body&&document.body.clientWidth&&(e=document.body.clientWidth),window.visualViewport&&(e*=window.visualViewport.scale,t*=window.visualViewport.scale),{width:e,height:t}}}();\nreturn s(arg)}", | ||
"getViewportSize": "function(arg){var s=function(){\"use strict\";return function(){var e=0,t=0;return window.innerHeight?t=window.innerHeight:document.documentElement&&document.documentElement.clientHeight?t=document.documentElement.clientHeight:document.body&&document.body.clientHeight&&(t=document.body.clientHeight),window.innerWidth?e=window.innerWidth:document.documentElement&&document.documentElement.clientWidth?e=document.documentElement.clientWidth:document.body&&document.body.clientWidth&&(e=document.body.clientWidth),window.visualViewport&&(e=Math.round(e*window.visualViewport.scale),t=Math.round(t*window.visualViewport.scale)),{width:e,height:t}}}();\nreturn s(arg)}", | ||
"isElementScrollable": "function(arg){var s=function(){\"use strict\";return function(t){var i=(void 0===t?[]:t)[0];return i.scrollWidth>i.clientWidth||i.scrollHeight>i.clientHeight}}();\nreturn s(arg)}", | ||
@@ -27,0 +27,0 @@ "isEqualElements": "function(arg){var s=function(){\"use strict\";return function(r){var n=void 0===r?[]:r;return n[0]===n[1]}}();\nreturn s(arg)}", |
@@ -90,3 +90,3 @@ exports.addElementIds=function(arg){ | ||
exports.getViewportSize=function(arg){ | ||
var s=function(){"use strict";return function(){var e=0,t=0;return window.innerHeight?t=window.innerHeight:document.documentElement&&document.documentElement.clientHeight?t=document.documentElement.clientHeight:document.body&&document.body.clientHeight&&(t=document.body.clientHeight),window.innerWidth?e=window.innerWidth:document.documentElement&&document.documentElement.clientWidth?e=document.documentElement.clientWidth:document.body&&document.body.clientWidth&&(e=document.body.clientWidth),window.visualViewport&&(e*=window.visualViewport.scale,t*=window.visualViewport.scale),{width:e,height:t}}}(); | ||
var s=function(){"use strict";return function(){var e=0,t=0;return window.innerHeight?t=window.innerHeight:document.documentElement&&document.documentElement.clientHeight?t=document.documentElement.clientHeight:document.body&&document.body.clientHeight&&(t=document.body.clientHeight),window.innerWidth?e=window.innerWidth:document.documentElement&&document.documentElement.clientWidth?e=document.documentElement.clientWidth:document.body&&document.body.clientWidth&&(e=document.body.clientWidth),window.visualViewport&&(e=Math.round(e*window.visualViewport.scale),t=Math.round(t*window.visualViewport.scale)),{width:e,height:t}}}(); | ||
return s(arg) | ||
@@ -93,0 +93,0 @@ } |
{ | ||
"name": "@applitools/snippets", | ||
"version": "2.1.11", | ||
"version": "2.1.12", | ||
"license": "SEE LICENSE IN LICENSE", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
48810