@applitools/dom-snapshot
Advanced tools
Comparing version 4.7.12 to 4.7.13
@@ -1,2 +0,1 @@ | ||
# Changelog | ||
@@ -13,2 +12,18 @@ | ||
## [4.7.13](https://github.com/applitools/eyes.sdk.javascript1/compare/js/dom-snapshot-v4.7.12...js/dom-snapshot@4.7.13) (2023-11-07) | ||
### Bug Fixes | ||
* (java/eyes-appium-java5): fix incorrect stitchMode mapping in checkSettings ([c70428e](https://github.com/applitools/eyes.sdk.javascript1/commit/c70428ec83e26b8b5e398ff11814f8376ca97d56)) | ||
* handled duplicated style properties in inline style tags ([#2014](https://github.com/applitools/eyes.sdk.javascript1/issues/2014)) ([2f8bada](https://github.com/applitools/eyes.sdk.javascript1/commit/2f8bada9cd44c65a69e54cbd08f57534632f12d2)) | ||
### Dependencies | ||
* @applitools/dom-shared bumped to 1.0.11 | ||
#### Bug Fixes | ||
* (java/eyes-appium-java5): fix incorrect stitchMode mapping in checkSettings ([c70428e](https://github.com/applitools/eyes.sdk.javascript1/commit/c70428ec83e26b8b5e398ff11814f8376ca97d56)) | ||
## 4.6.2 - 2022/7/19 | ||
@@ -15,0 +30,0 @@ |
@@ -1,6 +0,6 @@ | ||
/* @applitools/dom-snapshot@4.7.12 */ | ||
/* @applitools/dom-snapshot@4.7.13 */ | ||
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 r=[];let o=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),o+a>e?(r.push(u),o=a):o+=a}return r};const e="SUCCESS",r="SUCCESS_CHUNKED",o="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:r,value:t.value.substring(t.from,t.from=t.chunks.shift()),done:!t.from}}return{status:e,value:t.value}}return t.error?{status:o,error:t.error}:{status:"WIP"}}return{status:o,error:"unexpected poll request received - cannot find state of current operation"}}((t=t||{})[u],c);return(a.status===e||a.status===o||a.status===r&&a.done)&&(t[u]=null),a},c={chunkify:n,pollify:function(t,n,e){return r=>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,r)}},poll:u,absolutizeUrl: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 r=new URL(t,n).href;return e?r:decodeURI(r)}catch(n){return e?t:decodeURI(t)}},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 r=window.crypto.getRandomValues(new Uint32Array(1))[0],o=e.contentDocument.createElement("script");o.textContent=`window['ctor-${r}'] = ${t.toString()};`,e.contentDocument.head.appendChild(o);const u=e.contentWindow["ctor-"+r];if("function"!=typeof u)throw new Error("Sandbox failed to extract function");return n=!1,u(document).apply(null,arguments)}catch(e){try{return t(document).apply(null,arguments)}catch(t){throw n?t:e}}}}(); | ||
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 l=function(t,{chunkByteLength:e=0}={}){if(t){if(t.value){if(e){if(!t.chunks){const r=JSON.stringify(t.value);t.chunks=n(r,e),t.chunks.length>0&&(t.from=0,t.value=r)}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(l.status===o||l.status===c||l.status===u&&l.done)&&(t[e]=null),l};const l=a;var s={chunkify:e,pollify:function(t,e,n){return r=>function(){return e[n]||(e[n]={},t.apply(null,arguments).then((t=>e[n].value=t)).catch((t=>e[n].error=t.message))),l(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}=s,{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){return JSON.stringify(i(window[f],d,t))}))}()};let e=!0;try{let n=document.head.querySelector("[data-applitools-sandbox]");n||(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)}catch(n){try{return t(document).apply(null,arguments)}catch(t){throw e?t:n}}};return t(e)}(); | ||
return pollResult.apply(this, arguments); | ||
} |
@@ -1,2 +0,2 @@ | ||
/* @applitools/dom-snapshot@4.7.12 */ | ||
"use strict";var t=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 r=[];let o=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),o+a>e?(r.push(u),o=a):o+=a}return r};const e="SUCCESS",r="SUCCESS_CHUNKED",o="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:r,value:t.value.substring(t.from,t.from=t.chunks.shift()),done:!t.from}}return{status:e,value:t.value}}return t.error?{status:o,error:t.error}:{status:"WIP"}}return{status:o,error:"unexpected poll request received - cannot find state of current operation"}}((t=t||{})[u],c);return(a.status===e||a.status===o||a.status===r&&a.done)&&(t[u]=null),a},c={chunkify:n,pollify:function(t,n,e){return r=>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,r)}},poll:u,absolutizeUrl: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 r=new URL(t,n).href;return e?r:decodeURI(r)}catch(n){return e?t:decodeURI(t)}},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:i}={EYES_NAMESPACE:"__EYES__APPLITOOLS__",DOM_SNAPSHOT_KEY:"domSnapshotResult"};return function(t){return JSON.stringify(a(window[s],i,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 r=window.crypto.getRandomValues(new Uint32Array(1))[0],o=e.contentDocument.createElement("script");o.textContent=`window['ctor-${r}'] = ${t.toString()};`,e.contentDocument.head.appendChild(o);const u=e.contentWindow["ctor-"+r];if("function"!=typeof u)throw new Error("Sandbox failed to extract function");return n=!1,u(document).apply(null,arguments)}catch(e){try{return t(document).apply(null,arguments)}catch(t){throw n?t:e}}};module.exports=t; | ||
/* @applitools/dom-snapshot@4.7.13 */ | ||
"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 l=function(t,{chunkByteLength:e=0}={}){if(t){if(t.value){if(e){if(!t.chunks){const r=JSON.stringify(t.value);t.chunks=n(r,e),t.chunks.length>0&&(t.from=0,t.value=r)}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(l.status===o||l.status===c||l.status===u&&l.done)&&(t[e]=null),l};const l=a;var s={chunkify:e,pollify:function(t,e,n){return r=>function(){return e[n]||(e[n]={},t.apply(null,arguments).then((t=>e[n].value=t)).catch((t=>e[n].error=t.message))),l(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}=s,{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){return JSON.stringify(i(window[f],d,t))}))}()};let e=!0;try{let n=document.head.querySelector("[data-applitools-sandbox]");n||(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)}catch(n){try{return t(document).apply(null,arguments)}catch(t){throw e?t:n}}},n=t(e);module.exports=n; |
18
index.js
@@ -1,10 +0,10 @@ | ||
'use strict'; | ||
'use strict' | ||
const makeGetScript = require('./src/getScript'); | ||
const getProcessPage = makeGetScript('processPage'); | ||
const getProcessPagePoll = makeGetScript('processPagePoll'); | ||
const getPollResult = makeGetScript('pollResult'); | ||
const getProcessPageForIE = makeGetScript('processPageForIE'); | ||
const getProcessPagePollForIE = makeGetScript('processPagePollForIE'); | ||
const getPollResultForIE = makeGetScript('pollResultForIE'); | ||
const makeGetScript = require('./src/getScript') | ||
const getProcessPage = makeGetScript('processPage') | ||
const getProcessPagePoll = makeGetScript('processPagePoll') | ||
const getPollResult = makeGetScript('pollResult') | ||
const getProcessPageForIE = makeGetScript('processPageForIE') | ||
const getProcessPagePollForIE = makeGetScript('processPagePollForIE') | ||
const getPollResultForIE = makeGetScript('pollResultForIE') | ||
@@ -26,2 +26,2 @@ module.exports = { | ||
pollResult: require('./dist/pollResultCjs'), | ||
}; | ||
} |
{ | ||
"name": "@applitools/dom-snapshot", | ||
"version": "4.7.12", | ||
"version": "4.7.13", | ||
"homepage": "https://applitools.com", | ||
"license": "SEE LICENSE IN LICENSE", | ||
"author": { | ||
"name": "Applitools Team", | ||
"email": "team@applitools.com" | ||
}, | ||
"main": "index.js", | ||
"license": "SEE LICENSE IN LICENSE", | ||
"files": [ | ||
"dist", | ||
"src/getScript.js" | ||
], | ||
"scripts": { | ||
"test:mocha": "mocha --no-timeouts test/**/*.test.js", | ||
"test:testcafe": "testcafe chrome:headless test/testcafe/*.testcafe.js", | ||
"test": "yarn test:mocha && yarn test:testcafe", | ||
"eslint:node": "eslint '**/*.js' --ignore-pattern 'src/browser'", | ||
"eslint:browser": "eslint -c 'src/browser/.eslintrc.json' 'src/browser/**/*.js'", | ||
"lint": "yarn eslint:node && yarn eslint:browser", | ||
"lint": "run --top-level eslint '**/*.js'", | ||
"build": "APPLITOOLS_BUILD_MODE=all rollup -c src/build/rollup.config.js", | ||
@@ -17,32 +21,27 @@ "build:short": "APPLITOOLS_BUILD_MODE=short rollup -c src/build/rollup.config.js", | ||
"build:watch": "yarn build:short --watch", | ||
"surge": "surge test/fixtures applitools-dom-snapshot.surge.sh", | ||
"preversion": "bongo preversion && yarn build && yarn test", | ||
"version": "yarn build && bongo version", | ||
"postversion": "bongo postversion --skip-release-notification" | ||
"test": "run test:mocha && run test:testcafe", | ||
"test:mocha": "run --top-level mocha './test/**/*.test.js'", | ||
"test:testcafe": "testcafe chrome:headless test/testcafe/*.testcafe.js", | ||
"surge": "surge test/fixtures applitools-dom-snapshot.surge.sh" | ||
}, | ||
"engines": { | ||
"node": ">=8.9.0" | ||
"dependencies": { | ||
"@applitools/dom-shared": "1.0.11", | ||
"@applitools/functional-commons": "1.6.0", | ||
"css-tree": "2.3.1", | ||
"pako": "1.0.11" | ||
}, | ||
"files": [ | ||
"dist", | ||
"src/getScript.js" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/applitools/eyes.sdk.javascript1.git" | ||
}, | ||
"devDependencies": { | ||
"@applitools/eslint-plugin-compat": "^0.7.0", | ||
"@applitools/monitoring-commons": "^1.0.19", | ||
"@applitools/sdk-release-kit": "1.2.1", | ||
"@applitools/test-server": "^1.1.28", | ||
"@babel/core": "^7.11.0", | ||
"@babel/preset-env": "^7.8.3", | ||
"@rollup/plugin-babel": "^5.2.2", | ||
"@rollup/plugin-commonjs": "^17.0.0", | ||
"@rollup/plugin-json": "^4.1.0", | ||
"@rollup/plugin-node-resolve": "^11.0.0", | ||
"@rollup/plugin-replace": "^2.3.4", | ||
"@applitools/test-server": "^1.2.2", | ||
"@applitools/test-utils": "^1.5.17", | ||
"@babel/core": "^7.23.2", | ||
"@babel/preset-env": "^7.23.2", | ||
"@rollup/plugin-babel": "^6.0.4", | ||
"@rollup/plugin-commonjs": "^25.0.7", | ||
"@rollup/plugin-json": "^6.0.1", | ||
"@rollup/plugin-node-resolve": "^15.2.3", | ||
"@rollup/plugin-replace": "^5.0.4", | ||
"@rollup/plugin-terser": "^0.4.4", | ||
"abort-controller": "^3.0.0", | ||
"canvas": "^2.6.1", | ||
"canvas": "^2.11.2", | ||
"chai": "^4.2.0", | ||
@@ -52,18 +51,10 @@ "core-js": "^3.6.4", | ||
"cssom": "^0.4.4", | ||
"eslint": "^6.8.0", | ||
"eslint-plugin-mocha-no-only": "1.0.0", | ||
"eslint-plugin-node": "^11.1.0", | ||
"eslint-plugin-prettier": "^3.1.4", | ||
"express": "^4.17.1", | ||
"husky": "^4.3.7", | ||
"jsdom": "^16.3.0", | ||
"mocha": "^8.1.0", | ||
"jsdom": "^22.1.0", | ||
"node-fetch": "^2.6.0", | ||
"prettier": "^1.19.1", | ||
"puppeteer": "20.9.0", | ||
"rollup": "^2.34.2", | ||
"rollup-plugin-filesize": "^9.1.0", | ||
"rollup-plugin-ignore": "^1.0.5", | ||
"rollup-plugin-polyfill": "^3.0.0", | ||
"rollup-plugin-terser": "^6.1.0", | ||
"rollup": "^4.1.4", | ||
"rollup-plugin-filesize": "^10.0.0", | ||
"rollup-plugin-ignore": "^1.0.10", | ||
"rollup-plugin-polyfill": "^4.2.0", | ||
"selenium-webdriver": "^4.0.0-alpha.5", | ||
@@ -73,13 +64,8 @@ "testcafe": "^1.18.1", | ||
}, | ||
"dependencies": { | ||
"@applitools/dom-shared": "1.0.10", | ||
"@applitools/functional-commons": "1.6.0", | ||
"css-tree": "2.3.1", | ||
"pako": "1.0.11" | ||
"engines": { | ||
"node": ">=12.13.0" | ||
}, | ||
"husky": { | ||
"hooks": { | ||
"pre-push": "yarn bongo lint" | ||
} | ||
"publishConfig": { | ||
"access": "public" | ||
} | ||
} | ||
} |
@@ -1,11 +0,11 @@ | ||
'use strict'; | ||
const fs = require('fs'); | ||
const {promisify: p} = require('util'); | ||
const {cacheFunctionAsync} = require('@applitools/functional-commons'); | ||
'use strict' | ||
const fs = require('fs') | ||
const {promisify: p} = require('util') | ||
const {cacheFunctionAsync} = require('@applitools/functional-commons') | ||
const makeGetScript = filename => | ||
cacheFunctionAsync(async function() { | ||
return await p(fs.readFile)(__dirname + `/../dist/${filename}.js`, 'utf-8'); | ||
}); | ||
cacheFunctionAsync(async function () { | ||
return await p(fs.readFile)(__dirname + `/../dist/${filename}.js`, 'utf-8') | ||
}) | ||
module.exports = makeGetScript; | ||
module.exports = makeGetScript |
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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
1893569
28
7205
1
0
14
2
+ Added@applitools/dom-shared@1.0.11(transitive)
- Removed@applitools/dom-shared@1.0.10(transitive)