Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@applitools/snippets

Package Overview
Dependencies
Maintainers
36
Versions
66
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@applitools/snippets - npm Package Compare versions

Comparing version 2.4.17 to 2.4.18

12

dist/index.js

@@ -25,6 +25,2 @@ exports.addElementIds=function(arg){

}
exports.getBrowserInfo=function(arg){
var s=function(){"use strict";var r="__EYES__APPLITOOLS__";return window[r]=window[r]||{},function(){try{if(window[r].browserInfo){var o=window[r].browserInfo;return"WIP"!==o.status&&delete window[r].browserInfo,JSON.stringify(o)}var n={userAgent:window.navigator.userAgent,pixelRatio:window.devicePixelRatio,viewportScale:window.visualViewport&&window.visualViewport.scale};return window.navigator.userAgentData?(window[r].browserInfo={status:"WIP"},window.navigator.userAgentData.getHighEntropyValues(["brands","platform","platformVersion","model"]).then((function(o){n.userAgentData=o,window[r].browserInfo={status:"SUCCESS",value:n}})).catch((function(o){window[r].browserInfo={status:"ERROR",error:o.message}}))):window[r].browserInfo={status:"SUCCESS",value:n},JSON.stringify(window[r].browserInfo)}catch(o){return window[r].browserInfo={status:"ERROR",error:o.message},JSON.stringify(window[r].browserInfo)}}}();
return s(arg)
}
exports.getChildFramesInfo=function(arg){

@@ -94,6 +90,10 @@ var s=function(){"use strict";return function(){var r=document.querySelectorAll("frame, iframe");return Array.prototype.map.call(r,(function(r){return[r,!r.contentDocument,r.src]}))}}();

}
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),{width:e,height:t}}}();
exports.getUserAgent=function(arg){
var s=function(){"use strict";function t(){return t=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},t.apply(this,arguments)}var n="__EYES__APPLITOOLS__";return window[n]=window[n]||{},function(){try{if(window[n].userAgent){var e=window[n].userAgent;return"WIP"!==e.status&&delete window[n].userAgent,JSON.stringify(e)}return window.navigator.userAgentData?(window[n].userAgent={status:"WIP"},window.navigator.userAgentData.getHighEntropyValues(["brands","platform","platformVersion","model"]).then((function(e){window[n].userAgent={status:"SUCCESS",value:t({legacy:window.navigator.userAgent},e)}})).catch((function(t){window[n].userAgent={status:"ERROR",error:t.message}}))):window[n].userAgent={status:"SUCCESS",value:window.navigator.userAgent},JSON.stringify(window[n].userAgent)}catch(t){return window[n].userAgent={status:"ERROR",error:t.message},JSON.stringify(window[n].userAgent)}}}();
return s(arg)
}
exports.getViewport=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),{viewportSize:{width:e,height:t},pixelRatio:window.devicePixelRatio,viewportScale:window.visualViewport&&window.visualViewport.scale}}}();
return s(arg)
}
exports.isElementScrollable=function(arg){

@@ -100,0 +100,0 @@ var s=function(){"use strict";var t=function(t){var o=void 0===t?[]:t,r=o[0],e=o[1],i=void 0===e?[]:e,n=window.getComputedStyle(r);return n?i.map((function(t){return n.getPropertyValue(t)})):[]};return function(o){var r=(void 0===o?[]:o)[0],e=t([r,["overflow-x","overflow-y","overflow"]]);return("scroll"===e[0]||"auto"===e[0]||"hidden"===e[2])&&r.scrollWidth>r.clientWidth||("scroll"===e[1]||"auto"===e[1]||"hidden"===e[2])&&r.scrollHeight>r.clientHeight}}();

{
"name": "@applitools/snippets",
"version": "2.4.17",
"version": "2.4.18",
"repository": {

@@ -33,3 +33,3 @@ "type": "git",

"devDependencies": {
"@applitools/bongo": "^3.0.1",
"@applitools/bongo": "^3.0.3",
"@babel/core": "^7.11.6",

@@ -36,0 +36,0 @@ "@babel/preset-env": "^7.11.5",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc