Socket
Socket
Sign inDemoInstall

gulp-sitemap

Package Overview
Dependencies
Maintainers
1
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-sitemap - npm Package Compare versions

Comparing version 7.0.0 to 7.1.0

11

lib/sitemap.js
'use strict';
const path = require('path');
const fs = require('fs');

@@ -83,4 +82,10 @@ const defaults = require('lodash/defaults');

const reSourceMatch = /"((https?:\/\/)?[\w\.\/]+)"/ig;
const html = fs.readFileSync(entry.source, { encoding : 'utf8'});
const URLs = html.match(reImageMatch).map(image => {
const html = fs.readFileSync(entry.source, { encoding : 'utf8'})
const images = html.match(reImageMatch);
if (images === null) {
return [];
}
const URLs = images.map(image => {
let currentURL = image.match(reSourceMatch)[0].replace(/^\"|\"$/ig, '');

@@ -87,0 +92,0 @@

{
"name": "gulp-sitemap",
"version": "7.0.0",
"version": "7.1.0",
"description": "Generate a search engine friendly sitemap.xml using a Gulp stream",

@@ -5,0 +5,0 @@ "repository": "pgilad/gulp-sitemap",

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