@applitools/dom-snapshot
Advanced tools
Comparing version 2.2.2 to 2.2.3
@@ -1,2 +0,2 @@ | ||
/* @applitools/dom-snapshot@2.2.2 */ | ||
/* @applitools/dom-snapshot@2.2.3 */ | ||
@@ -442,2 +442,15 @@ function __processPage() { | ||
const srcsetUrls = Array.from(doc.querySelectorAll('img[srcset]')) | ||
.map(srcsetEl => | ||
srcsetEl | ||
.getAttribute('srcset') | ||
.split(', ') | ||
.map(str => str.trim().split(/\s+/)[0]), | ||
) | ||
.reduce((acc, urls) => acc.concat(urls), []); | ||
const srcUrls = Array.from(doc.querySelectorAll('img[src]')).map(srcEl => | ||
srcEl.getAttribute('src'), | ||
); | ||
const fromHref = Array.from(doc.querySelectorAll('image,use,link[rel="stylesheet"]')).map( | ||
@@ -452,3 +465,5 @@ e => e.getAttribute('href') || e.getAttribute('xlink:href'), | ||
return fromHref | ||
return srcsetUrls | ||
.concat(srcUrls) | ||
.concat(fromHref) | ||
.concat(fromObjects) | ||
@@ -455,0 +470,0 @@ .concat(fromStyleTags) |
@@ -1,2 +0,2 @@ | ||
/* @applitools/dom-snapshot@2.2.2 */ | ||
/* @applitools/dom-snapshot@2.2.3 */ | ||
@@ -473,2 +473,15 @@ function __processPageAndPoll() { | ||
const srcsetUrls = Array.from(doc.querySelectorAll('img[srcset]')) | ||
.map(srcsetEl => | ||
srcsetEl | ||
.getAttribute('srcset') | ||
.split(', ') | ||
.map(str => str.trim().split(/\s+/)[0]), | ||
) | ||
.reduce((acc, urls) => acc.concat(urls), []); | ||
const srcUrls = Array.from(doc.querySelectorAll('img[src]')).map(srcEl => | ||
srcEl.getAttribute('src'), | ||
); | ||
const fromHref = Array.from(doc.querySelectorAll('image,use,link[rel="stylesheet"]')).map( | ||
@@ -483,3 +496,5 @@ e => e.getAttribute('href') || e.getAttribute('xlink:href'), | ||
return fromHref | ||
return srcsetUrls | ||
.concat(srcUrls) | ||
.concat(fromHref) | ||
.concat(fromObjects) | ||
@@ -486,0 +501,0 @@ .concat(fromStyleTags) |
@@ -1,2 +0,2 @@ | ||
/* @applitools/dom-snapshot@2.2.2 */ | ||
/* @applitools/dom-snapshot@2.2.3 */ | ||
@@ -494,2 +494,15 @@ function __processPageAndSerialize() { | ||
const srcsetUrls = Array.from(doc.querySelectorAll('img[srcset]')) | ||
.map(srcsetEl => | ||
srcsetEl | ||
.getAttribute('srcset') | ||
.split(', ') | ||
.map(str => str.trim().split(/\s+/)[0]), | ||
) | ||
.reduce((acc, urls) => acc.concat(urls), []); | ||
const srcUrls = Array.from(doc.querySelectorAll('img[src]')).map(srcEl => | ||
srcEl.getAttribute('src'), | ||
); | ||
const fromHref = Array.from(doc.querySelectorAll('image,use,link[rel="stylesheet"]')).map( | ||
@@ -504,3 +517,5 @@ e => e.getAttribute('href') || e.getAttribute('xlink:href'), | ||
return fromHref | ||
return srcsetUrls | ||
.concat(srcUrls) | ||
.concat(fromHref) | ||
.concat(fromObjects) | ||
@@ -507,0 +522,0 @@ .concat(fromStyleTags) |
@@ -1,2 +0,2 @@ | ||
/* @applitools/dom-snapshot@2.2.2 */ | ||
/* @applitools/dom-snapshot@2.2.3 */ | ||
'use strict'; | ||
@@ -439,2 +439,15 @@ | ||
const srcsetUrls = Array.from(doc.querySelectorAll('img[srcset]')) | ||
.map(srcsetEl => | ||
srcsetEl | ||
.getAttribute('srcset') | ||
.split(', ') | ||
.map(str => str.trim().split(/\s+/)[0]), | ||
) | ||
.reduce((acc, urls) => acc.concat(urls), []); | ||
const srcUrls = Array.from(doc.querySelectorAll('img[src]')).map(srcEl => | ||
srcEl.getAttribute('src'), | ||
); | ||
const fromHref = Array.from(doc.querySelectorAll('image,use,link[rel="stylesheet"]')).map( | ||
@@ -449,3 +462,5 @@ e => e.getAttribute('href') || e.getAttribute('xlink:href'), | ||
return fromHref | ||
return srcsetUrls | ||
.concat(srcUrls) | ||
.concat(fromHref) | ||
.concat(fromObjects) | ||
@@ -452,0 +467,0 @@ .concat(fromStyleTags) |
@@ -1,2 +0,2 @@ | ||
/* @applitools/dom-snapshot@2.2.2 */ | ||
/* @applitools/dom-snapshot@2.2.3 */ | ||
@@ -525,2 +525,15 @@ function __processPageSerializePoll() { | ||
const srcsetUrls = Array.from(doc.querySelectorAll('img[srcset]')) | ||
.map(srcsetEl => | ||
srcsetEl | ||
.getAttribute('srcset') | ||
.split(', ') | ||
.map(str => str.trim().split(/\s+/)[0]), | ||
) | ||
.reduce((acc, urls) => acc.concat(urls), []); | ||
const srcUrls = Array.from(doc.querySelectorAll('img[src]')).map(srcEl => | ||
srcEl.getAttribute('src'), | ||
); | ||
const fromHref = Array.from(doc.querySelectorAll('image,use,link[rel="stylesheet"]')).map( | ||
@@ -535,3 +548,5 @@ e => e.getAttribute('href') || e.getAttribute('xlink:href'), | ||
return fromHref | ||
return srcsetUrls | ||
.concat(srcUrls) | ||
.concat(fromHref) | ||
.concat(fromObjects) | ||
@@ -538,0 +553,0 @@ .concat(fromStyleTags) |
{ | ||
"name": "@applitools/dom-snapshot", | ||
"version": "2.2.2", | ||
"version": "2.2.3", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -12,2 +12,15 @@ 'use strict'; | ||
const srcsetUrls = Array.from(doc.querySelectorAll('img[srcset]')) | ||
.map(srcsetEl => | ||
srcsetEl | ||
.getAttribute('srcset') | ||
.split(', ') | ||
.map(str => str.trim().split(/\s+/)[0]), | ||
) | ||
.reduce((acc, urls) => acc.concat(urls), []); | ||
const srcUrls = Array.from(doc.querySelectorAll('img[src]')).map(srcEl => | ||
srcEl.getAttribute('src'), | ||
); | ||
const fromHref = Array.from(doc.querySelectorAll('image,use,link[rel="stylesheet"]')).map( | ||
@@ -22,3 +35,5 @@ e => e.getAttribute('href') || e.getAttribute('xlink:href'), | ||
return fromHref | ||
return srcsetUrls | ||
.concat(srcUrls) | ||
.concat(fromHref) | ||
.concat(fromObjects) | ||
@@ -25,0 +40,0 @@ .concat(fromStyleTags) |
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
1103005
23204