@applitools/dom-snapshot 4.5.8 → 4.5.12
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 +19 -1
- package/dist/pollResult.js +2 -2
- package/dist/pollResultForIE.js +2 -2
- package/dist/processPage.js +3 -3
- package/dist/processPageAndSerialize.js +3 -3
- package/dist/processPageAndSerializeForIE.js +3 -3
- package/dist/processPageAndSerializePoll.js +3 -3
- package/dist/processPageAndSerializePollForIE.js +3 -3
- package/dist/processPageCjs.js +3 -3
- package/dist/processPageForIE.js +3 -3
- package/dist/processPagePoll.js +3 -3
- package/dist/processPagePollForIE.js +3 -3
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -4,7 +4,25 @@
|
|
|
4
4
|
## Unreleased
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
## 4.5.12 - 2022/1/6
|
|
8
|
+
|
|
9
|
+
- add fallback for the case when script has failed in sandbox
|
|
10
|
+
|
|
11
|
+
## 4.5.11 - 2021/11/17
|
|
12
|
+
|
|
13
|
+
- prevent useless deps of deps from bundling
|
|
14
|
+
|
|
15
|
+
## 4.5.10 - 2021/10/20
|
|
16
|
+
|
|
17
|
+
- fix url encoding/decoding
|
|
18
|
+
- updated to @applitools/dom-shared@1.0.8 (from 1.0.7)
|
|
19
|
+
|
|
20
|
+
## 4.5.9 - 2021/10/18
|
|
21
|
+
|
|
22
|
+
- try to fix `appendChild of null` exception in Cypress
|
|
23
|
+
- updated to @applitools/dom-shared@1.0.7 (from 1.0.6)
|
|
24
|
+
|
|
25
|
+
## 4.5.8 - 2021/9/22
|
|
8
26
|
|
|
9
27
|
- decode all urls for blob arrays
|
|
10
28
|
|
package/dist/pollResult.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/* @applitools/dom-snapshot@4.5.
|
|
1
|
+
/* @applitools/dom-snapshot@4.5.12 */
|
|
2
2
|
function __pollResult() {
|
|
3
|
-
var pollResult=function(){"use strict";return function(){const t=function(t){return function(){function t(t,n=0){const e=t.charCodeAt(n);return e>=55296&&e<56320?1024*(e-55296)+(t.charCodeAt(n+1)-56320)+65536:56320<=e&&e<=57343?-1:e}var n=function(n,e){const o=[];let r=0;for(let u=0;u<n.length;++u){const c=t(n,u);let a=0;c>0&&(a=c<128?1:c<2048?2:c<65536?3:c<2097152?4:c<67108864?5:6),r+a>e?(o.push(u),r=a):r+=a}return o};const e="SUCCESS",o="SUCCESS_CHUNKED",r="ERROR";var u=function(t,u,c={}){const a=function(t,{chunkByteLength:u=0}={}){if(t){if(t.value){if(u){if(!t.chunks){const e=JSON.stringify(t.value);t.chunks=n(e,u),t.chunks.length>0&&(t.from=0,t.value=e)}if(t.from>=0)return{status:o,value:t.value.substring(t.from,t.from=t.chunks.shift()),done:!t.from}}return{status:e,value:t.value}}return t.error?{status:r,error:t.error}:{status:"WIP"}}return{status:r,error:"unexpected poll request received - cannot find state of current operation"}}((t=t||{})[u],c);return(a.status===e||a.status===r||a.status===o&&a.done)&&(t[u]=null),a},c={chunkify:n,pollify:function(t,n,e){return o=>function(){return n[e]||(n[e]={},t.apply(null,arguments).then(t=>n[e].value=t).catch(t=>n[e].error=t.message)),u(n,e,o)}},poll:u,absolutizeUrl:function(t,n){
|
|
3
|
+
var pollResult=function(){"use strict";return function(){const t=function(t){return function(){function t(t,n=0){const e=t.charCodeAt(n);return e>=55296&&e<56320?1024*(e-55296)+(t.charCodeAt(n+1)-56320)+65536:56320<=e&&e<=57343?-1:e}var n=function(n,e){const o=[];let r=0;for(let u=0;u<n.length;++u){const c=t(n,u);let a=0;c>0&&(a=c<128?1:c<2048?2:c<65536?3:c<2097152?4:c<67108864?5:6),r+a>e?(o.push(u),r=a):r+=a}return o};const e="SUCCESS",o="SUCCESS_CHUNKED",r="ERROR";var u=function(t,u,c={}){const a=function(t,{chunkByteLength:u=0}={}){if(t){if(t.value){if(u){if(!t.chunks){const e=JSON.stringify(t.value);t.chunks=n(e,u),t.chunks.length>0&&(t.from=0,t.value=e)}if(t.from>=0)return{status:o,value:t.value.substring(t.from,t.from=t.chunks.shift()),done:!t.from}}return{status:e,value:t.value}}return t.error?{status:r,error:t.error}:{status:"WIP"}}return{status:r,error:"unexpected poll request received - cannot find state of current operation"}}((t=t||{})[u],c);return(a.status===e||a.status===r||a.status===o&&a.done)&&(t[u]=null),a},c={chunkify:n,pollify:function(t,n,e){return o=>function(){return n[e]||(n[e]={},t.apply(null,arguments).then(t=>n[e].value=t).catch(t=>n[e].error=t.message)),u(n,e,o)}},poll:u,absolutizeUrl:function(t,n){let e=!0;try{e=t!==decodeURI(t)}catch(t){e=!0}const o=new URL(t,n).href;return e?o:decodeURI(o)},isInlineFrame:function(t){return t.contentDocument&&t.contentDocument.location&&!/^https?:$/.test(t.contentDocument.location.protocol)},isAccessibleFrame:function(t){try{const n=t.contentDocument;return Boolean(n&&n.defaultView&&n.defaultView.frameElement)}catch(t){return!1}}};const{poll:a}=c,{EYES_NAMESPACE:s,DOM_SNAPSHOT_KEY:l}={EYES_NAMESPACE:"__EYES__APPLITOOLS__",DOM_SNAPSHOT_KEY:"domSnapshotResult"};return function(t){return JSON.stringify(a(window[s],l,t))}}()};let n=!0;try{let e=document.head.querySelector("[data-applitools-sandbox]");e||(e=document.createElement("iframe"),e.setAttribute("data-applitools-sandbox",""),e.setAttribute("data-applitools-skip",""),document.head.appendChild(e));const o=window.crypto.getRandomValues(new Uint32Array(1))[0],r=e.contentDocument.createElement("script");r.textContent=`window['ctor-${o}'] = ${t.toString()};`,e.contentDocument.head.appendChild(r);const u=e.contentWindow["ctor-"+o];return n=!1,u(document).apply(null,arguments)}catch(e){try{return t(document).apply(null,arguments)}catch(t){throw n?t:e}}}}();
|
|
4
4
|
|
|
5
5
|
return pollResult.apply(this, arguments);
|
|
6
6
|
}
|