gatsby-image-sitemap
Advanced tools
Comparing version 1.1.1 to 1.2.1
@@ -59,3 +59,5 @@ const cheerio = require("cheerio"); | ||
const el = cheerio(this); | ||
const alt = el.find("img").attr("alt"); | ||
const img = el.find("picture").find("img"); | ||
const alt = img.attr("alt"); | ||
const src = img.attr("src"); | ||
@@ -65,13 +67,4 @@ if (options.ignoreImagesWithoutAlt && !alt) { | ||
} | ||
const srcSets = el | ||
.find("picture") | ||
.find("img") | ||
.attr("srcset") | ||
.split("\n"); | ||
srcSets.forEach(srcSet => { | ||
const path = srcSet.split(" ")[0]; | ||
pageImages[path] = alt; | ||
}); | ||
pageImages[src] = alt; | ||
}); | ||
@@ -78,0 +71,0 @@ |
{ | ||
"name": "gatsby-image-sitemap", | ||
"version": "1.1.1", | ||
"version": "1.2.1", | ||
"description": "Generate sitemap for Gatsby Apps with all image + all resolutions from the built pages.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
5728
110
1