@applitools/dom-snapshot 4.12.1 → 4.13.1

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 CHANGED
@@ -9,6 +9,78 @@
9
9
  - fix style programmatic generated fallback
10
10
  - performance boost
11
11
 
12
+ ## [4.13.1](https://github.com/Applitools-Dev/sdk/compare/js/dom-snapshot@4.13.0...js/dom-snapshot@4.13.1) (2025-08-05)
13
+
14
+
15
+ ### Dependencies
16
+
17
+ * @applitools/utils bumped to 1.11.0
18
+ #### Features
19
+
20
+ * improve configuration handling ([#3130](https://github.com/Applitools-Dev/sdk/issues/3130)) ([def7be1](https://github.com/Applitools-Dev/sdk/commit/def7be1dd07460f49142cddfe55203baa884e6c3))
21
+ * make utils.general.guid crypto secured ([#3137](https://github.com/Applitools-Dev/sdk/issues/3137)) ([775df08](https://github.com/Applitools-Dev/sdk/commit/775df08307e41402a6603812205bc857bd3f936e))
22
+ * @applitools/test-server bumped to 1.3.0
23
+ #### Features
24
+
25
+ * release java ([7bc39e6](https://github.com/Applitools-Dev/sdk/commit/7bc39e679eab27a19322ca4b121177da7437c106))
26
+
27
+
28
+
29
+ * @applitools/logger bumped to 2.2.1
30
+
31
+ * @applitools/driver bumped to 1.23.1
32
+
33
+ * @applitools/spec-driver-puppeteer bumped to 1.6.1
34
+
35
+
36
+ ## [4.13.0](https://github.com/Applitools-Dev/sdk/compare/js/dom-snapshot@4.12.1...js/dom-snapshot@4.13.0) (2025-07-30)
37
+
38
+
39
+ ### Features
40
+
41
+ * release java ([7bc39e6](https://github.com/Applitools-Dev/sdk/commit/7bc39e679eab27a19322ca4b121177da7437c106))
42
+
43
+
44
+ ### Dependencies
45
+
46
+ * @applitools/utils bumped to 1.10.0
47
+ #### Features
48
+
49
+ * release java ([7bc39e6](https://github.com/Applitools-Dev/sdk/commit/7bc39e679eab27a19322ca4b121177da7437c106))
50
+ * @applitools/logger bumped to 2.2.0
51
+ #### Features
52
+
53
+ * release java ([7bc39e6](https://github.com/Applitools-Dev/sdk/commit/7bc39e679eab27a19322ca4b121177da7437c106))
54
+
55
+
56
+
57
+ * @applitools/css-tree bumped to 1.2.0
58
+ #### Features
59
+
60
+ * release java ([7bc39e6](https://github.com/Applitools-Dev/sdk/commit/7bc39e679eab27a19322ca4b121177da7437c106))
61
+ * @applitools/dom-shared bumped to 1.1.0
62
+ #### Features
63
+
64
+ * release java ([7bc39e6](https://github.com/Applitools-Dev/sdk/commit/7bc39e679eab27a19322ca4b121177da7437c106))
65
+ * @applitools/snippets bumped to 2.7.0
66
+ #### Features
67
+
68
+ * release java ([7bc39e6](https://github.com/Applitools-Dev/sdk/commit/7bc39e679eab27a19322ca4b121177da7437c106))
69
+ * @applitools/driver bumped to 1.23.0
70
+ #### Features
71
+
72
+ * release java ([7bc39e6](https://github.com/Applitools-Dev/sdk/commit/7bc39e679eab27a19322ca4b121177da7437c106))
73
+
74
+
75
+
76
+ * @applitools/spec-driver-puppeteer bumped to 1.6.0
77
+ #### Features
78
+
79
+ * release java ([7bc39e6](https://github.com/Applitools-Dev/sdk/commit/7bc39e679eab27a19322ca4b121177da7437c106))
80
+
81
+
82
+
83
+
12
84
  ## [4.12.1](https://github.com/Applitools-Dev/sdk/compare/js/dom-snapshot@4.12.0...js/dom-snapshot@4.12.1) (2025-07-15)
13
85
 
14
86
 
@@ -1,4 +1,4 @@
1
- /* @applitools/dom-snapshot@4.12.1 */
1
+ /* @applitools/dom-snapshot@4.13.1 */
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(){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 s=function(t,{chunkByteLength:e=0}={}){if(t){if(t.value){if(e){if(!t.chunks)try{const r=JSON.stringify(t.value);t.chunks=n(r,e),t.chunks.length>0&&(t.from=0,t.value=r)}catch(t){return{status:c,error:t.message}}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(s.status===o||s.status===c||s.status===u&&s.done)&&(t[e]=null),s};const s=a;var l={chunkify:e,pollify:function(t,e,n){return r=>function(){return e[n]||(e[n]={},Promise.resolve().then((()=>t.apply(null,arguments))).then((t=>e[n].value=t)).catch((t=>e[n].error=t.message+"\nStack:"+t.stack))),s(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}=l,{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){try{return JSON.stringify(i(window[f],d,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
 
@@ -1,2 +1,2 @@
1
- /* @applitools/dom-snapshot@4.12.1 */
1
+ /* @applitools/dom-snapshot@4.13.1 */
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(){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 s=function(t,{chunkByteLength:e=0}={}){if(t){if(t.value){if(e){if(!t.chunks)try{const r=JSON.stringify(t.value);t.chunks=n(r,e),t.chunks.length>0&&(t.from=0,t.value=r)}catch(t){return{status:c,error:t.message}}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(s.status===o||s.status===c||s.status===u&&s.done)&&(t[e]=null),s};const s=a;var l={chunkify:e,pollify:function(t,e,n){return r=>function(){return e[n]||(e[n]={},Promise.resolve().then((()=>t.apply(null,arguments))).then((t=>e[n].value=t)).catch((t=>e[n].error=t.message+"\nStack:"+t.stack))),s(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}=l,{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){try{return JSON.stringify(i(window[f],d,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;