@applitools/snippets
Advanced tools
Comparing version 1.0.3 to 1.1.0
@@ -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
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
112456
61
1828
1