Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export default function getUrlsFromSrcset(value) {
return parseSrcset(value).map((parsed) => parsed.url);
}
doc.querySelectorAll('img[srcset]').forEach((img) => {
parseSrcset(img.getAttribute('srcset')).forEach((parsed) => {
imgPaths.push(parsed.url);
});
});