New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

gatsby-image-sitemap

Package Overview
Dependencies
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gatsby-image-sitemap - npm Package Compare versions

Comparing version 1.1.1 to 1.2.1

17

gatsby-node.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc