@applitools/dom-snapshot
Advanced tools
Comparing version 4.5.8 to 4.5.9
@@ -7,4 +7,9 @@ | ||
## 4.5.8 - 2021/9/22 | ||
## 4.5.9 - 2021/10/18 | ||
- try to fix `appendChild of null` exception in Cypress | ||
- updated to @applitools/dom-shared@1.0.7 (from 1.0.6) | ||
## 4.5.8 - 2021/9/22 | ||
- decode all urls for blob arrays | ||
@@ -11,0 +16,0 @@ |
@@ -1,6 +0,6 @@ | ||
/* @applitools/dom-snapshot@4.5.8 */ | ||
/* @applitools/dom-snapshot@4.5.9 */ | ||
function __pollResult() { | ||
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){return decodeURI(new URL(t,n).href)},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;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),n=e.contentWindow["ctor-"+o]}catch(t){}return n=n||t,n(document).apply(null,arguments)}}(); | ||
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 s=0;c>0&&(s=c<128?1:c<2048?2:c<65536?3:c<2097152?4:c<67108864?5:6),r+s>e?(o.push(u),r=s):r+=s}return o};const e="SUCCESS",o="SUCCESS_CHUNKED",r="ERROR";var u=function(t,u,c={}){const s=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(s.status===e||s.status===r||s.status===o&&s.done)&&(t[u]=null),s},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){const e=t!==decodeURI(t),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:s}=c,{EYES_NAMESPACE:a,DOM_SNAPSHOT_KEY:l}={EYES_NAMESPACE:"__EYES__APPLITOOLS__",DOM_SNAPSHOT_KEY:"domSnapshotResult"};return function(t){return JSON.stringify(s(window[a],l,t))}}()};let n;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),n=e.contentWindow["ctor-"+o]}catch(t){}return n=n||t,n(document).apply(null,arguments)}}(); | ||
return pollResult.apply(this, arguments); | ||
} |
{ | ||
"name": "@applitools/dom-snapshot", | ||
"version": "4.5.8", | ||
"version": "4.5.9", | ||
"main": "index.js", | ||
@@ -36,4 +36,4 @@ "license": "SEE LICENSE IN LICENSE", | ||
"@applitools/monitoring-commons": "^1.0.19", | ||
"@applitools/sdk-release-kit": "0.10.6", | ||
"@applitools/test-server": "^1.0.3", | ||
"@applitools/sdk-release-kit": "0.13.3", | ||
"@applitools/test-server": "^1.0.5", | ||
"@babel/core": "^7.11.0", | ||
@@ -73,3 +73,3 @@ "@babel/preset-env": "^7.8.3", | ||
"dependencies": { | ||
"@applitools/dom-shared": "1.0.6", | ||
"@applitools/dom-shared": "1.0.7", | ||
"@applitools/functional-commons": "1.6.0", | ||
@@ -76,0 +76,0 @@ "css-tree": "1.0.0-alpha.39", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
2760537
10562
+ Added@applitools/dom-shared@1.0.7(transitive)
- Removed@applitools/dom-shared@1.0.6(transitive)
Updated@applitools/dom-shared@1.0.7