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

@applitools/snippets

Package Overview
Dependencies
Maintainers
21
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 1.0.3 to 1.1.0

src/browser/cleanupElementIds.js

2

.bongo/dry-run/package-lock.json

@@ -7,5 +7,5 @@ {

"version": "file:../dry-run.tgz",
"integrity": "sha512-Knrwe79cP432+MRygxgzQLf11iS4bLSKocVmMmgKCqk5Ud+VWAo5IkJQuPUFUt14OdfWcupU5a0Tef52SaSQFQ=="
"integrity": "sha512-xusahhAT2JLvBp83qCAMrh6+CFWWMVG+sTumcizpAmRWcc7Va/dKh30XbCbP31G6GbdQ82HglFwYVNW23gTE5g=="
}
}
}

@@ -7,2 +7,6 @@

## 1.1.0 - 2020/8/30
- add `markElements` and `cleanupElementIds`
## 1.0.3 - 2020/8/10

@@ -9,0 +13,0 @@

{
"blurElement": "function(arg){var s=function(){\"use strict\";return function(e){var t=(void 0===e?{}:e).element,n=void 0===t?document.activeElement:t;return n&&n.blur(),n}}();\nreturn s(arg)}",
"cleanupElementIds": "function(arg){var s=function(){\"use strict\";return function(e){e.elements.forEach((function(e){e.removeAttribute(\"data-eyes-selector\")}))}}();\nreturn s(arg)}",
"focusElement": "function(arg){var s=function(){\"use strict\";return function(n){var t=(void 0===n?{}:n).element;t&&t.focus()}}();\nreturn s(arg)}",

@@ -21,2 +22,3 @@ "getChildFramesInfo": "function(arg){var s=function(){\"use strict\";return function(){var r=document.querySelectorAll(\"frame, iframe\");return Array.prototype.map.call(r,(function(r){return{isCORS:!r.contentDocument,element:r,src:r.src}}))}}();\nreturn s(arg)}",

"isElementScrollable": "function(arg){var s=function(){\"use strict\";return function(t){var e=(void 0===t?{}:t).element;return e.scrollWidth>e.clientWidth||e.scrollHeight>e.clientHeight}}();\nreturn s(arg)}",
"markElements": "function(arg){var s=function(){\"use strict\";return function(t){var e=t.elements,n=t.ids;e.forEach((function(t,e){t.setAttribute(\"data-eyes-selector\",n[e])}))}}();\nreturn s(arg)}",
"scrollTo": "function(arg){var s=function(){\"use strict\";return function(o){var l=void 0===o?{}:o,e=l.element,r=void 0===e?document.documentElement:e,t=l.offset;return r.scrollTo?r.scrollTo(t.x,t.y):(r.scrollLeft=t.x,r.scrollTop=t.y),{x:r.scrollLeft,y:r.scrollTop}}}();\nreturn s(arg)}",

@@ -23,0 +25,0 @@ "setElementAttribute": "function(arg){var s=function(){\"use strict\";return function(t){var e=t.element,r=t.attr,n=t.value;e.setAttribute(r,n)}}();\nreturn s(arg)}",

@@ -5,2 +5,6 @@ exports.blurElement=function(arg){

}
exports.cleanupElementIds=function(arg){
var s=function(){"use strict";return function(e){e.elements.forEach((function(e){e.removeAttribute("data-eyes-selector")}))}}();
return s(arg)
}
exports.focusElement=function(arg){

@@ -78,2 +82,6 @@ var s=function(){"use strict";return function(n){var t=(void 0===n?{}:n).element;t&&t.focus()}}();

}
exports.markElements=function(arg){
var s=function(){"use strict";return function(t){var e=t.elements,n=t.ids;e.forEach((function(t,e){t.setAttribute("data-eyes-selector",n[e])}))}}();
return s(arg)
}
exports.scrollTo=function(arg){

@@ -80,0 +88,0 @@ var s=function(){"use strict";return function(o){var l=void 0===o?{}:o,e=l.element,r=void 0===e?document.documentElement:e,t=l.offset;return r.scrollTo?r.scrollTo(t.x,t.y):(r.scrollLeft=t.x,r.scrollTop=t.y),{x:r.scrollLeft,y:r.scrollTop}}}();

{
"name": "@applitools/snippets",
"version": "1.0.3",
"version": "1.1.0",
"main": "./dist/index.js",

@@ -5,0 +5,0 @@ "license": "SEE LICENSE IN LICENSE",

@@ -21,2 +21,3 @@ const {remote} = require('webdriverio')

},
connectionRetryCount: 0,
})

@@ -23,0 +24,0 @@ },

Sorry, the diff of this file is not supported yet

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