@applitools/dom-snapshot 4.13.5 → 4.13.7
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 +34 -0
- package/dist/pollResult.js +1 -1
- package/dist/pollResultCjs.js +1 -1
- package/dist/processPage.js +2 -2
- package/dist/processPagePoll.js +2 -2
- package/dist/processPagePollCjs.js +2 -2
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,40 @@
|
|
|
9
9
|
- fix style programmatic generated fallback
|
|
10
10
|
- performance boost
|
|
11
11
|
|
|
12
|
+
## [4.13.7](https://github.com/Applitools-Dev/sdk/compare/js/dom-snapshot@4.13.6...js/dom-snapshot@4.13.7) (2025-09-16)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Dependencies
|
|
16
|
+
|
|
17
|
+
* @applitools/logger bumped to 2.2.4
|
|
18
|
+
#### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* remove duplicate tests on different sessions for same batch ([#3184](https://github.com/Applitools-Dev/sdk/issues/3184)) ([ede0d1f](https://github.com/Applitools-Dev/sdk/commit/ede0d1fd8018e14c19811903d78c273bce048f84))
|
|
21
|
+
* @applitools/driver bumped to 1.23.5
|
|
22
|
+
|
|
23
|
+
* @applitools/spec-driver-puppeteer bumped to 1.6.5
|
|
24
|
+
|
|
25
|
+
* @applitools/test-server bumped to 1.3.3
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
## [4.13.6](https://github.com/Applitools-Dev/sdk/compare/js/dom-snapshot@4.13.5...js/dom-snapshot@4.13.6) (2025-09-09)
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
### Dependencies
|
|
32
|
+
|
|
33
|
+
* @applitools/utils bumped to 1.12.0
|
|
34
|
+
#### Features
|
|
35
|
+
|
|
36
|
+
* enable canvas with webgl for autonomous | FLD 3515 ([#3197](https://github.com/Applitools-Dev/sdk/issues/3197)) ([23f22e5](https://github.com/Applitools-Dev/sdk/commit/23f22e517d52dc70f24093dfb21e072b9aa9fb60))
|
|
37
|
+
* @applitools/logger bumped to 2.2.3
|
|
38
|
+
|
|
39
|
+
* @applitools/driver bumped to 1.23.4
|
|
40
|
+
|
|
41
|
+
* @applitools/spec-driver-puppeteer bumped to 1.6.4
|
|
42
|
+
|
|
43
|
+
* @applitools/test-server bumped to 1.3.2
|
|
44
|
+
|
|
45
|
+
|
|
12
46
|
## [4.13.5](https://github.com/Applitools-Dev/sdk/compare/js/dom-snapshot@4.13.4...js/dom-snapshot@4.13.5) (2025-09-04)
|
|
13
47
|
|
|
14
48
|
|
package/dist/pollResult.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* @applitools/dom-snapshot@4.13.
|
|
1
|
+
/* @applitools/dom-snapshot@4.13.7 */
|
|
2
2
|
function __pollResult() {
|
|
3
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(){var t={};function e(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 n=function(t,n){const r=[];let o=0;for(let u=0;u<t.length;++u){const c=e(t,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 r=function(t){return t&&t.__esModule?t:{default:t}}(n),o="WIP",u="SUCCESS",c="SUCCESS_CHUNKED",a="ERROR";var s=function(t,e,n={}){const s=function(t,{chunkByteLength:e=0}={}){if(t){if(t.value){if(e){if(!t.chunks)try{const n=JSON.stringify(t.value);t.chunks=(0,r.default)(n,e),t.chunks.length>0&&(t.from=0,t.value=n)}catch(t){return{status:a,error:t.message}}if(t.from>=0)return{status:c,value:t.value.substring(t.from,t.from=t.chunks.shift()),done:!t.from}}return{status:u,value:t.value}}return t.error?{status:a,error:t.error}:{status:o}}return{status:a,error:"unexpected poll request received - cannot find state of current operation"}}((t=t||{})[e],n);return(s.status===u||s.status===a||s.status===c&&s.done)&&delete t[e],s};const l=s;var i=function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(t,"__esModule",{value:!0}),t.isAccessibleFrame=t.isInlineFrame=t.absolutizeUrl=t.poll=t.pollify=t.chunkify=void 0;const f=i(n);t.chunkify=f.default;const d=i((function(t,e,n){return r=>function(...o){return e[n]||(e[n]={},Promise.resolve().then((()=>t(...o))).then((t=>e[n].value=t)).catch((t=>e[n].error=t.message+"\nStack:"+t.stack))),l(e,n,r)}}));t.pollify=d.default;const h=i(s);t.poll=h.default;const p=i((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)}}));t.absolutizeUrl=p.default;const m=i((function(t){return t.contentDocument&&t.contentDocument.location&&!/^https?:$/.test(t.contentDocument.location.protocol)}));t.isInlineFrame=m.default;const y=i((function(t){try{const e=t.contentDocument;return Boolean(e&&e.defaultView&&e.defaultView.frameElement)}catch(t){return!1}}));t.isAccessibleFrame=y.default;const{poll:S}=t,{EYES_NAMESPACE:_,DOM_SNAPSHOT_KEY:E}={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){try{return JSON.stringify(S(window[_],E,t))}catch(t){return JSON.stringify({status:"ERROR",error:t.message})}}))}()};let e=!0;try{let 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).finally((()=>{n.remove()}))}catch(n){try{return t(document).apply(null,arguments)}catch(t){throw e?t:n}}};return t(e)}();
|
|
4
4
|
|
package/dist/pollResultCjs.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/* @applitools/dom-snapshot@4.13.
|
|
1
|
+
/* @applitools/dom-snapshot@4.13.7 */
|
|
2
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(){var t={};function e(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 n=function(t,n){const r=[];let o=0;for(let u=0;u<t.length;++u){const c=e(t,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 r=function(t){return t&&t.__esModule?t:{default:t}}(n),o="WIP",u="SUCCESS",c="SUCCESS_CHUNKED",a="ERROR";var s=function(t,e,n={}){const s=function(t,{chunkByteLength:e=0}={}){if(t){if(t.value){if(e){if(!t.chunks)try{const n=JSON.stringify(t.value);t.chunks=(0,r.default)(n,e),t.chunks.length>0&&(t.from=0,t.value=n)}catch(t){return{status:a,error:t.message}}if(t.from>=0)return{status:c,value:t.value.substring(t.from,t.from=t.chunks.shift()),done:!t.from}}return{status:u,value:t.value}}return t.error?{status:a,error:t.error}:{status:o}}return{status:a,error:"unexpected poll request received - cannot find state of current operation"}}((t=t||{})[e],n);return(s.status===u||s.status===a||s.status===c&&s.done)&&delete t[e],s};const l=s;var i=function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(t,"__esModule",{value:!0}),t.isAccessibleFrame=t.isInlineFrame=t.absolutizeUrl=t.poll=t.pollify=t.chunkify=void 0;const f=i(n);t.chunkify=f.default;const d=i((function(t,e,n){return r=>function(...o){return e[n]||(e[n]={},Promise.resolve().then((()=>t(...o))).then((t=>e[n].value=t)).catch((t=>e[n].error=t.message+"\nStack:"+t.stack))),l(e,n,r)}}));t.pollify=d.default;const h=i(s);t.poll=h.default;const p=i((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)}}));t.absolutizeUrl=p.default;const m=i((function(t){return t.contentDocument&&t.contentDocument.location&&!/^https?:$/.test(t.contentDocument.location.protocol)}));t.isInlineFrame=m.default;const y=i((function(t){try{const e=t.contentDocument;return Boolean(e&&e.defaultView&&e.defaultView.frameElement)}catch(t){return!1}}));t.isAccessibleFrame=y.default;const{poll:S}=t,{EYES_NAMESPACE:_,DOM_SNAPSHOT_KEY:E}={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){try{return JSON.stringify(S(window[_],E,t))}catch(t){return JSON.stringify({status:"ERROR",error:t.message})}}))}()};let e=!0;try{let 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).finally((()=>{n.remove()}))}catch(n){try{return t(document).apply(null,arguments)}catch(t){throw e?t:n}}},n=t(e);module.exports=n;
|