@applitools/dom-snapshot
Advanced tools
Comparing version 1.1.10 to 1.2.1
@@ -1,2 +0,2 @@ | ||
// @applitools/dom-snapshot@1.1.10 | ||
// @applitools/dom-snapshot@1.2.1 | ||
function __processPage() { | ||
@@ -20,2 +20,6 @@ var processPage = (function () { | ||
const hrefUrls = [...doc.querySelectorAll('image')] | ||
.map(hrefEl => hrefEl.getAttribute('href') || hrefEl.getAttribute('xlink:href')) | ||
.filter(Boolean); | ||
const cssUrls = [...doc.querySelectorAll('link[rel="stylesheet"]')].map(link => | ||
@@ -29,3 +33,3 @@ link.getAttribute('href'), | ||
return [...srcsetUrls, ...srcUrls, ...cssUrls, ...videoPosterUrls]; | ||
return [...srcsetUrls, ...srcUrls, ...hrefUrls, ...cssUrls, ...videoPosterUrls]; | ||
} | ||
@@ -32,0 +36,0 @@ |
@@ -1,2 +0,2 @@ | ||
// @applitools/dom-snapshot@1.1.10 | ||
// @applitools/dom-snapshot@1.2.1 | ||
function __processPageAndPoll() { | ||
@@ -72,2 +72,6 @@ var processPageAndPoll = (function () { | ||
const hrefUrls = [...doc.querySelectorAll('image')] | ||
.map(hrefEl => hrefEl.getAttribute('href') || hrefEl.getAttribute('xlink:href')) | ||
.filter(Boolean); | ||
const cssUrls = [...doc.querySelectorAll('link[rel="stylesheet"]')].map(link => | ||
@@ -81,3 +85,3 @@ link.getAttribute('href'), | ||
return [...srcsetUrls, ...srcUrls, ...cssUrls, ...videoPosterUrls]; | ||
return [...srcsetUrls, ...srcUrls, ...hrefUrls, ...cssUrls, ...videoPosterUrls]; | ||
} | ||
@@ -84,0 +88,0 @@ |
@@ -1,2 +0,2 @@ | ||
// @applitools/dom-snapshot@1.1.10 | ||
// @applitools/dom-snapshot@1.2.1 | ||
function __processPageAndSerialize() { | ||
@@ -72,2 +72,6 @@ var processPageAndSerialize = (function () { | ||
const hrefUrls = [...doc.querySelectorAll('image')] | ||
.map(hrefEl => hrefEl.getAttribute('href') || hrefEl.getAttribute('xlink:href')) | ||
.filter(Boolean); | ||
const cssUrls = [...doc.querySelectorAll('link[rel="stylesheet"]')].map(link => | ||
@@ -81,3 +85,3 @@ link.getAttribute('href'), | ||
return [...srcsetUrls, ...srcUrls, ...cssUrls, ...videoPosterUrls]; | ||
return [...srcsetUrls, ...srcUrls, ...hrefUrls, ...cssUrls, ...videoPosterUrls]; | ||
} | ||
@@ -84,0 +88,0 @@ |
{ | ||
"name": "@applitools/dom-snapshot", | ||
"version": "1.1.10", | ||
"version": "1.2.1", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -17,2 +17,6 @@ 'use strict'; | ||
const hrefUrls = [...doc.querySelectorAll('image')] | ||
.map(hrefEl => hrefEl.getAttribute('href') || hrefEl.getAttribute('xlink:href')) | ||
.filter(Boolean); | ||
const cssUrls = [...doc.querySelectorAll('link[rel="stylesheet"]')].map(link => | ||
@@ -26,5 +30,5 @@ link.getAttribute('href'), | ||
return [...srcsetUrls, ...srcUrls, ...cssUrls, ...videoPosterUrls]; | ||
return [...srcsetUrls, ...srcUrls, ...hrefUrls, ...cssUrls, ...videoPosterUrls]; | ||
} | ||
module.exports = extractLinks; |
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
78055
1976