@applitools/dom-snapshot 4.7.12 → 4.7.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -1
- package/dist/pollResult.js +2 -2
- package/dist/pollResultCjs.js +2 -2
- package/dist/pollResultForIE.js +2 -2
- package/dist/processPage.js +3 -3
- package/dist/processPageForIE.js +3 -3
- package/dist/processPagePoll.js +3 -3
- package/dist/processPagePollCjs.js +3 -3
- package/dist/processPagePollForIE.js +3 -3
- package/index.js +9 -9
- package/package.json +42 -56
- package/src/getScript.js +8 -8
- package/test/custom-page-result/.gitignore +0 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
1
|
# Changelog
|
|
3
2
|
|
|
4
3
|
## Unreleased
|
|
@@ -10,6 +9,22 @@
|
|
|
10
9
|
- fix style programmatic generated fallback
|
|
11
10
|
- performance boost
|
|
12
11
|
|
|
12
|
+
## [4.7.13](https://github.com/applitools/eyes.sdk.javascript1/compare/js/dom-snapshot-v4.7.12...js/dom-snapshot@4.7.13) (2023-11-07)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* (java/eyes-appium-java5): fix incorrect stitchMode mapping in checkSettings ([c70428e](https://github.com/applitools/eyes.sdk.javascript1/commit/c70428ec83e26b8b5e398ff11814f8376ca97d56))
|
|
18
|
+
* handled duplicated style properties in inline style tags ([#2014](https://github.com/applitools/eyes.sdk.javascript1/issues/2014)) ([2f8bada](https://github.com/applitools/eyes.sdk.javascript1/commit/2f8bada9cd44c65a69e54cbd08f57534632f12d2))
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### Dependencies
|
|
22
|
+
|
|
23
|
+
* @applitools/dom-shared bumped to 1.0.11
|
|
24
|
+
#### Bug Fixes
|
|
25
|
+
|
|
26
|
+
* (java/eyes-appium-java5): fix incorrect stitchMode mapping in checkSettings ([c70428e](https://github.com/applitools/eyes.sdk.javascript1/commit/c70428ec83e26b8b5e398ff11814f8376ca97d56))
|
|
27
|
+
|
|
13
28
|
## 4.6.2 - 2022/7/19
|
|
14
29
|
|
|
15
30
|
- Add (limited) support for 'slot' type elements in DOM
|
package/dist/pollResult.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/* @applitools/dom-snapshot@4.7.
|
|
1
|
+
/* @applitools/dom-snapshot@4.7.13 */
|
|
2
2
|
function __pollResult() {
|
|
3
|
-
var pollResult=function(){"use strict";return function(){const t=function(t){return function(){function t(t,
|
|
3
|
+
var pollResult=function(){"use strict";function t(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var e=function(){const t=function(t){return function(){function t(t,e=0){const n=t.charCodeAt(e);return n>=55296&&n<56320?1024*(n-55296)+(t.charCodeAt(e+1)-56320)+65536:56320<=n&&n<=57343?-1:n}var e=function(e,n){const r=[];let o=0;for(let u=0;u<e.length;++u){const c=t(e,u);let a=0;c>0&&(a=c<128?1:c<2048?2:c<65536?3:c<2097152?4:c<67108864?5:6),o+a>n?(r.push(u),o=a):o+=a}return r};const n=e,r="WIP",o="SUCCESS",u="SUCCESS_CHUNKED",c="ERROR";var a=function(t,e,a={}){const l=function(t,{chunkByteLength:e=0}={}){if(t){if(t.value){if(e){if(!t.chunks){const r=JSON.stringify(t.value);t.chunks=n(r,e),t.chunks.length>0&&(t.from=0,t.value=r)}if(t.from>=0)return{status:u,value:t.value.substring(t.from,t.from=t.chunks.shift()),done:!t.from}}return{status:o,value:t.value}}return t.error?{status:c,error:t.error}:{status:r}}return{status:c,error:"unexpected poll request received - cannot find state of current operation"}}((t=t||{})[e],a);return(l.status===o||l.status===c||l.status===u&&l.done)&&(t[e]=null),l};const l=a;var s={chunkify:e,pollify:function(t,e,n){return r=>function(){return e[n]||(e[n]={},t.apply(null,arguments).then((t=>e[n].value=t)).catch((t=>e[n].error=t.message))),l(e,n,r)}},poll:a,absolutizeUrl:function(t,e){if(function(t){try{return new URL(t),!0}catch(t){return!1}}(t))return t;let n=!0;try{n=t!==decodeURI(t)}catch(t){n=!0}try{const r=new URL(t,e).href;return n?r:decodeURI(r)}catch(e){return n?t:decodeURI(t)}},isInlineFrame:function(t){return t.contentDocument&&t.contentDocument.location&&!/^https?:$/.test(t.contentDocument.location.protocol)},isAccessibleFrame:function(t){try{const e=t.contentDocument;return Boolean(e&&e.defaultView&&e.defaultView.frameElement)}catch(t){return!1}}};const{poll:i}=s,{EYES_NAMESPACE:f,DOM_SNAPSHOT_KEY:d}={EYES_NAMESPACE:"__EYES__APPLITOOLS__",DOM_SNAPSHOT_KEY:"domSnapshotResult"};return function(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}((function(t){return JSON.stringify(i(window[f],d,t))}))}()};let e=!0;try{let n=document.head.querySelector("[data-applitools-sandbox]");n||(n=document.createElement("iframe"),n.setAttribute("data-applitools-sandbox",""),n.setAttribute("data-applitools-skip",""),document.head.appendChild(n));const r=window.crypto.getRandomValues(new Uint32Array(1))[0],o=n.contentDocument.createElement("script");o.textContent=`window['ctor-${r}'] = ${t.toString()};`,n.contentDocument.head.appendChild(o);const u=n.contentWindow[`ctor-${r}`];if("function"!=typeof u)throw new Error("Sandbox failed to extract function");return e=!1,u(document).apply(null,arguments)}catch(n){try{return t(document).apply(null,arguments)}catch(t){throw e?t:n}}};return t(e)}();
|
|
4
4
|
|
|
5
5
|
return pollResult.apply(this, arguments);
|
|
6
6
|
}
|
package/dist/pollResultCjs.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/* @applitools/dom-snapshot@4.7.
|
|
2
|
-
"use strict";var
|
|
1
|
+
/* @applitools/dom-snapshot@4.7.13 */
|
|
2
|
+
"use strict";function t(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var e=function(){const t=function(t){return function(){function t(t,e=0){const n=t.charCodeAt(e);return n>=55296&&n<56320?1024*(n-55296)+(t.charCodeAt(e+1)-56320)+65536:56320<=n&&n<=57343?-1:n}var e=function(e,n){const r=[];let o=0;for(let u=0;u<e.length;++u){const c=t(e,u);let a=0;c>0&&(a=c<128?1:c<2048?2:c<65536?3:c<2097152?4:c<67108864?5:6),o+a>n?(r.push(u),o=a):o+=a}return r};const n=e,r="WIP",o="SUCCESS",u="SUCCESS_CHUNKED",c="ERROR";var a=function(t,e,a={}){const l=function(t,{chunkByteLength:e=0}={}){if(t){if(t.value){if(e){if(!t.chunks){const r=JSON.stringify(t.value);t.chunks=n(r,e),t.chunks.length>0&&(t.from=0,t.value=r)}if(t.from>=0)return{status:u,value:t.value.substring(t.from,t.from=t.chunks.shift()),done:!t.from}}return{status:o,value:t.value}}return t.error?{status:c,error:t.error}:{status:r}}return{status:c,error:"unexpected poll request received - cannot find state of current operation"}}((t=t||{})[e],a);return(l.status===o||l.status===c||l.status===u&&l.done)&&(t[e]=null),l};const l=a;var s={chunkify:e,pollify:function(t,e,n){return r=>function(){return e[n]||(e[n]={},t.apply(null,arguments).then((t=>e[n].value=t)).catch((t=>e[n].error=t.message))),l(e,n,r)}},poll:a,absolutizeUrl:function(t,e){if(function(t){try{return new URL(t),!0}catch(t){return!1}}(t))return t;let n=!0;try{n=t!==decodeURI(t)}catch(t){n=!0}try{const r=new URL(t,e).href;return n?r:decodeURI(r)}catch(e){return n?t:decodeURI(t)}},isInlineFrame:function(t){return t.contentDocument&&t.contentDocument.location&&!/^https?:$/.test(t.contentDocument.location.protocol)},isAccessibleFrame:function(t){try{const e=t.contentDocument;return Boolean(e&&e.defaultView&&e.defaultView.frameElement)}catch(t){return!1}}};const{poll:i}=s,{EYES_NAMESPACE:f,DOM_SNAPSHOT_KEY:d}={EYES_NAMESPACE:"__EYES__APPLITOOLS__",DOM_SNAPSHOT_KEY:"domSnapshotResult"};return function(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}((function(t){return JSON.stringify(i(window[f],d,t))}))}()};let e=!0;try{let n=document.head.querySelector("[data-applitools-sandbox]");n||(n=document.createElement("iframe"),n.setAttribute("data-applitools-sandbox",""),n.setAttribute("data-applitools-skip",""),document.head.appendChild(n));const r=window.crypto.getRandomValues(new Uint32Array(1))[0],o=n.contentDocument.createElement("script");o.textContent=`window['ctor-${r}'] = ${t.toString()};`,n.contentDocument.head.appendChild(o);const u=n.contentWindow[`ctor-${r}`];if("function"!=typeof u)throw new Error("Sandbox failed to extract function");return e=!1,u(document).apply(null,arguments)}catch(n){try{return t(document).apply(null,arguments)}catch(t){throw e?t:n}}},n=t(e);module.exports=n;
|