@applitools/dom-snapshot 4.18.13 → 4.18.14

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,16 @@
9
9
  - fix style programmatic generated fallback
10
10
  - performance boost
11
11
 
12
+ ## [4.18.14](https://github.com/Applitools-Dev/sdk/compare/js/dom-snapshot@4.18.13...js/dom-snapshot@4.18.14) (2026-12-03)
13
+
14
+
15
+ ### Dependencies
16
+
17
+ * @applitools/spec-driver-webdriver bumped to 1.7.2
18
+ #### Bug Fixes
19
+
20
+ * skip the env proxy for WebDriver urls in NO_PROXY | FLD-4721 ([#4608](https://github.com/Applitools-Dev/sdk/issues/4608)) ([362ce91](https://github.com/Applitools-Dev/sdk/commit/362ce91dfcd79856049859f34de77624687982dd))
21
+
12
22
  ## [4.18.13](https://github.com/Applitools-Dev/sdk/compare/js/dom-snapshot@4.18.12...js/dom-snapshot@4.18.13) (2026-11-30)
13
23
 
14
24
 
@@ -1,4 +1,4 @@
1
- /* @applitools/dom-snapshot@4.18.13 */
1
+ /* @applitools/dom-snapshot@4.18.14 */
2
2
  function __pollResult() {
3
3
  var pollResult=function(){"use strict";return function(...t){const n=function(t,n,e){return function(){var t={};function o(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 r=function(t,n){const e=[];let r=0;for(let c=0;c<t.length;++c){const u=o(t,c);let i=0;u>0&&(i=u<128?1:u<2048?2:u<65536?3:u<2097152?4:u<67108864?5:6),r+i>n?(e.push(c),r=i):r+=i}return e};const c=function(t){return t&&t.__esModule?t:{default:t}}(r),u="WIP",i="SUCCESS",s="SUCCESS_CHUNKED",a="ERROR",l="STATE_LOST";var f=function(t,e,o={}){const r=function(t,{chunkByteLength:e=0}={}){var o;if(t){if(t.status===l)return{status:l};if(t.value){if(e){if(!t.chunks)try{const r=void 0!==n?null===(o=n.__EYES__APPLITOOLS__)||void 0===o?void 0:o._stringify:void 0,u=(null!=r?r:JSON.stringify)(t.value);t.chunks=(0,c.default)(u,e),t.chunks.length>0&&(t.from=0,t.value=u)}catch(t){return{status:a,error:t.message}}if(t.from>=0)return{status:s,value:t.value.substring(t.from,t.from=t.chunks.shift()),done:!t.from}}return{status:i,value:t.value}}return t.error?{status:a,error:t.error}:{status:u}}return{status:a,error:"unexpected poll request received - cannot find state of current operation"}}((t=t||{})[e],o);return(r.status===i||r.status===a||r.status===l||r.status===s&&r.done)&&delete t[e],r};const d=f;var _=function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(t,"__esModule",{value:!0}),t.isAccessibleFrame=t.isInlineFrame=t.absolutizeUrl=p=t.poll=t.pollify=t.chunkify=void 0;const h=_(r);t.chunkify=h.default;const y=_((function(t,n,e){return o=>function(...r){return n[e]||(n[e]={},Promise.resolve().then((()=>t(...r))).then((t=>n[e].value=t)).catch((t=>n[e].error=t.message+"\nStack:"+t.stack))),d(n,e,o)}}));t.pollify=y.default;const m=_(f);var p=t.poll=m.default;const w=_((function(t,n){if(function(t){try{return new URL(t),!0}catch(t){return!1}}(t))return t;let e=!0;try{e=t!==decodeURI(t)}catch(t){e=!0}try{const o=new URL(t,n).href;return e?o:decodeURI(o)}catch(n){return e?t:decodeURI(t)}}));t.absolutizeUrl=w.default;const S=_((function(t){return t.contentDocument&&t.contentDocument.location&&!/^https?:$/.test(t.contentDocument.location.protocol)}));t.isInlineFrame=S.default;const O=_((function(t){try{const n=t.contentDocument;return Boolean(n&&n.defaultView&&n.defaultView.frameElement)}catch(t){return!1}}));return t.isAccessibleFrame=O.default,function(t){var n;const o=e.__EYES__APPLITOOLS__,r=null!==(n=null==o?void 0:o._stringify)&&void 0!==n?n:JSON.stringify;try{return r(p(o,"domSnapshotResult",t))}catch(t){return r({status:"ERROR",error:t.message})}}}()};let e=!0;if("undefined"!=typeof chrome&&chrome.runtime&&chrome.runtime.id)return n(document,window,window)(...t);try{let o=window.__applitools_sandbox;if(o&&!o.contentDocument){const d=window.__EYES__APPLITOOLS__||{};for(const _ in d){const h=d[_];!h||"object"!=typeof h||"value"in h||"error"in h||(d[_]={status:"STATE_LOST"})}o=null}o||(o=document.createElement("iframe"),o.setAttribute("data-applitools-sandbox",""),o.setAttribute("data-applitools-skip",""),document.head.appendChild(o),window.__applitools_sandbox=o);const r=Math.floor(4294967296*Math.random()),c=o.contentDocument.createElement("script");c.textContent="window['ctor-"+r+"'] = "+n.toString()+";",o.contentDocument.head.appendChild(c);const u=o.contentWindow["ctor-"+r];if(delete o.contentWindow["ctor-"+r],"function"!=typeof u)throw new Error("Sandbox failed to extract function");e=!1;const i=o.contentWindow,s=i.__EYES__APPLITOOLS__=i.__EYES__APPLITOOLS__||{};s._stringify||(s._stringify=i.JSON.stringify.bind(i.JSON));const a=window.__EYES__APPLITOOLS__=window.__EYES__APPLITOOLS__||{};function l(t){if(i.Array.isArray(t)){const n=new i.Array(t.length);for(let e=0;e<t.length;e++)n[e]=l(t[e]);return n}if(t&&"object"==typeof t&&Object.getPrototypeOf(t)===Object.prototype){const n=new i.Object;for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=l(t[e]));return n}return t}a._stringify&&a._stringify!==JSON.stringify||(a._stringify=i.JSON.stringify.bind(i.JSON));const f=new i.Array(t.length);for(let y=0;y<t.length;y++)f[y]=l(t[y]);return u(document,window,i)(...f)}catch(m){try{return n(document,window,window)(...t)}catch(p){throw e?p:m}}}}();
4
4
  //# sourceMappingURL=pollResult.js.map
@@ -1,3 +1,3 @@
1
- /* @applitools/dom-snapshot@4.18.13 */
1
+ /* @applitools/dom-snapshot@4.18.14 */
2
2
  "use strict";module.exports=function(...t){const n=function(t,n,e){return function(){var t={};function o(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 r=function(t,n){const e=[];let r=0;for(let c=0;c<t.length;++c){const u=o(t,c);let i=0;u>0&&(i=u<128?1:u<2048?2:u<65536?3:u<2097152?4:u<67108864?5:6),r+i>n?(e.push(c),r=i):r+=i}return e};const c=function(t){return t&&t.__esModule?t:{default:t}}(r),u="WIP",i="SUCCESS",s="SUCCESS_CHUNKED",a="ERROR",l="STATE_LOST";var f=function(t,e,o={}){const r=function(t,{chunkByteLength:e=0}={}){var o;if(t){if(t.status===l)return{status:l};if(t.value){if(e){if(!t.chunks)try{const r=void 0!==n?null===(o=n.__EYES__APPLITOOLS__)||void 0===o?void 0:o._stringify:void 0,u=(null!=r?r:JSON.stringify)(t.value);t.chunks=(0,c.default)(u,e),t.chunks.length>0&&(t.from=0,t.value=u)}catch(t){return{status:a,error:t.message}}if(t.from>=0)return{status:s,value:t.value.substring(t.from,t.from=t.chunks.shift()),done:!t.from}}return{status:i,value:t.value}}return t.error?{status:a,error:t.error}:{status:u}}return{status:a,error:"unexpected poll request received - cannot find state of current operation"}}((t=t||{})[e],o);return(r.status===i||r.status===a||r.status===l||r.status===s&&r.done)&&delete t[e],r};const d=f;var _=function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(t,"__esModule",{value:!0}),t.isAccessibleFrame=t.isInlineFrame=t.absolutizeUrl=p=t.poll=t.pollify=t.chunkify=void 0;const h=_(r);t.chunkify=h.default;const m=_((function(t,n,e){return o=>function(...r){return n[e]||(n[e]={},Promise.resolve().then((()=>t(...r))).then((t=>n[e].value=t)).catch((t=>n[e].error=t.message+"\nStack:"+t.stack))),d(n,e,o)}}));t.pollify=m.default;const y=_(f);var p=t.poll=y.default;const w=_((function(t,n){if(function(t){try{return new URL(t),!0}catch(t){return!1}}(t))return t;let e=!0;try{e=t!==decodeURI(t)}catch(t){e=!0}try{const o=new URL(t,n).href;return e?o:decodeURI(o)}catch(n){return e?t:decodeURI(t)}}));t.absolutizeUrl=w.default;const S=_((function(t){return t.contentDocument&&t.contentDocument.location&&!/^https?:$/.test(t.contentDocument.location.protocol)}));t.isInlineFrame=S.default;const O=_((function(t){try{const n=t.contentDocument;return Boolean(n&&n.defaultView&&n.defaultView.frameElement)}catch(t){return!1}}));return t.isAccessibleFrame=O.default,function(t){var n;const o=e.__EYES__APPLITOOLS__,r=null!==(n=null==o?void 0:o._stringify)&&void 0!==n?n:JSON.stringify;try{return r(p(o,"domSnapshotResult",t))}catch(t){return r({status:"ERROR",error:t.message})}}}()};let e=!0;if("undefined"!=typeof chrome&&chrome.runtime&&chrome.runtime.id)return n(document,window,window)(...t);try{let o=window.__applitools_sandbox;if(o&&!o.contentDocument){const d=window.__EYES__APPLITOOLS__||{};for(const _ in d){const h=d[_];!h||"object"!=typeof h||"value"in h||"error"in h||(d[_]={status:"STATE_LOST"})}o=null}o||(o=document.createElement("iframe"),o.setAttribute("data-applitools-sandbox",""),o.setAttribute("data-applitools-skip",""),document.head.appendChild(o),window.__applitools_sandbox=o);const r=Math.floor(4294967296*Math.random()),c=o.contentDocument.createElement("script");c.textContent="window['ctor-"+r+"'] = "+n.toString()+";",o.contentDocument.head.appendChild(c);const u=o.contentWindow["ctor-"+r];if(delete o.contentWindow["ctor-"+r],"function"!=typeof u)throw new Error("Sandbox failed to extract function");e=!1;const i=o.contentWindow,s=i.__EYES__APPLITOOLS__=i.__EYES__APPLITOOLS__||{};s._stringify||(s._stringify=i.JSON.stringify.bind(i.JSON));const a=window.__EYES__APPLITOOLS__=window.__EYES__APPLITOOLS__||{};function l(t){if(i.Array.isArray(t)){const n=new i.Array(t.length);for(let e=0;e<t.length;e++)n[e]=l(t[e]);return n}if(t&&"object"==typeof t&&Object.getPrototypeOf(t)===Object.prototype){const n=new i.Object;for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=l(t[e]));return n}return t}a._stringify&&a._stringify!==JSON.stringify||(a._stringify=i.JSON.stringify.bind(i.JSON));const f=new i.Array(t.length);for(let m=0;m<t.length;m++)f[m]=l(t[m]);return u(document,window,i)(...f)}catch(y){try{return n(document,window,window)(...t)}catch(p){throw e?p:y}}};
3
3
  //# sourceMappingURL=pollResultCjs.js.map
@@ -1,3 +1,3 @@
1
- /* @applitools/dom-snapshot@4.18.13 */
1
+ /* @applitools/dom-snapshot@4.18.14 */
2
2
  function t(...t){const n=function(t,n,e){return function(){var t={};function o(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 r=function(t,n){const e=[];let r=0;for(let c=0;c<t.length;++c){const u=o(t,c);let i=0;u>0&&(i=u<128?1:u<2048?2:u<65536?3:u<2097152?4:u<67108864?5:6),r+i>n?(e.push(c),r=i):r+=i}return e};const c=function(t){return t&&t.__esModule?t:{default:t}}(r),u="WIP",i="SUCCESS",s="SUCCESS_CHUNKED",a="ERROR",l="STATE_LOST";var f=function(t,e,o={}){const r=function(t,{chunkByteLength:e=0}={}){var o;if(t){if(t.status===l)return{status:l};if(t.value){if(e){if(!t.chunks)try{const r=void 0!==n?null===(o=n.__EYES__APPLITOOLS__)||void 0===o?void 0:o._stringify:void 0,u=(null!=r?r:JSON.stringify)(t.value);t.chunks=(0,c.default)(u,e),t.chunks.length>0&&(t.from=0,t.value=u)}catch(t){return{status:a,error:t.message}}if(t.from>=0)return{status:s,value:t.value.substring(t.from,t.from=t.chunks.shift()),done:!t.from}}return{status:i,value:t.value}}return t.error?{status:a,error:t.error}:{status:u}}return{status:a,error:"unexpected poll request received - cannot find state of current operation"}}((t=t||{})[e],o);return(r.status===i||r.status===a||r.status===l||r.status===s&&r.done)&&delete t[e],r};const d=f;var _=function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(t,"__esModule",{value:!0}),t.isAccessibleFrame=t.isInlineFrame=t.absolutizeUrl=p=t.poll=t.pollify=t.chunkify=void 0;const h=_(r);t.chunkify=h.default;const y=_((function(t,n,e){return o=>function(...r){return n[e]||(n[e]={},Promise.resolve().then((()=>t(...r))).then((t=>n[e].value=t)).catch((t=>n[e].error=t.message+"\nStack:"+t.stack))),d(n,e,o)}}));t.pollify=y.default;const m=_(f);var p=t.poll=m.default;const w=_((function(t,n){if(function(t){try{return new URL(t),!0}catch(t){return!1}}(t))return t;let e=!0;try{e=t!==decodeURI(t)}catch(t){e=!0}try{const o=new URL(t,n).href;return e?o:decodeURI(o)}catch(n){return e?t:decodeURI(t)}}));t.absolutizeUrl=w.default;const S=_((function(t){return t.contentDocument&&t.contentDocument.location&&!/^https?:$/.test(t.contentDocument.location.protocol)}));t.isInlineFrame=S.default;const O=_((function(t){try{const n=t.contentDocument;return Boolean(n&&n.defaultView&&n.defaultView.frameElement)}catch(t){return!1}}));return t.isAccessibleFrame=O.default,function(t){var n;const o=e.__EYES__APPLITOOLS__,r=null!==(n=null==o?void 0:o._stringify)&&void 0!==n?n:JSON.stringify;try{return r(p(o,"domSnapshotResult",t))}catch(t){return r({status:"ERROR",error:t.message})}}}()};let e=!0;if("undefined"!=typeof chrome&&chrome.runtime&&chrome.runtime.id)return n(document,window,window)(...t);try{let o=window.__applitools_sandbox;if(o&&!o.contentDocument){const d=window.__EYES__APPLITOOLS__||{};for(const _ in d){const h=d[_];!h||"object"!=typeof h||"value"in h||"error"in h||(d[_]={status:"STATE_LOST"})}o=null}o||(o=document.createElement("iframe"),o.setAttribute("data-applitools-sandbox",""),o.setAttribute("data-applitools-skip",""),document.head.appendChild(o),window.__applitools_sandbox=o);const r=Math.floor(4294967296*Math.random()),c=o.contentDocument.createElement("script");c.textContent="window['ctor-"+r+"'] = "+n.toString()+";",o.contentDocument.head.appendChild(c);const u=o.contentWindow["ctor-"+r];if(delete o.contentWindow["ctor-"+r],"function"!=typeof u)throw new Error("Sandbox failed to extract function");e=!1;const i=o.contentWindow,s=i.__EYES__APPLITOOLS__=i.__EYES__APPLITOOLS__||{};s._stringify||(s._stringify=i.JSON.stringify.bind(i.JSON));const a=window.__EYES__APPLITOOLS__=window.__EYES__APPLITOOLS__||{};function l(t){if(i.Array.isArray(t)){const n=new i.Array(t.length);for(let e=0;e<t.length;e++)n[e]=l(t[e]);return n}if(t&&"object"==typeof t&&Object.getPrototypeOf(t)===Object.prototype){const n=new i.Object;for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=l(t[e]));return n}return t}a._stringify&&a._stringify!==JSON.stringify||(a._stringify=i.JSON.stringify.bind(i.JSON));const f=new i.Array(t.length);for(let y=0;y<t.length;y++)f[y]=l(t[y]);return u(document,window,i)(...f)}catch(m){try{return n(document,window,window)(...t)}catch(p){throw e?p:m}}}export{t as default};
3
3
  //# sourceMappingURL=pollResultEs.js.map