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 0.3.0 to 0.3.1

8

index.js

@@ -37,4 +37,4 @@ 'use strict';

return through.obj(function (file, enc, cb) {
//pass through empty file
if (file.isNull()) {
//pass through empty files but not html
if (file.isNull() && !/\.html?$/.test(path.extname(file.path))) {
this.push(file);

@@ -90,4 +90,4 @@ return cb();

cwd: firstFile.cwd,
base: firstFile.base,
path: path.join(firstFile.base, config.fileName),
base: firstFile.cwd,
path: path.join(firstFile.cwd, config.fileName),
contents: new Buffer(sitemap.prepareSitemap(entries, config))

@@ -94,0 +94,0 @@ }));

@@ -13,6 +13,4 @@ 'use strict';

//insert xml heaader
entries.unshift(xmlHeader);
//close off urlset
entries.push('</urlset>');
return entries.join(config.newLine);
entries = xmlHeader.concat(entries).concat(['</urlset>']);
return entries.join(config.newLine).toString();
};

@@ -19,0 +17,0 @@

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

@@ -5,0 +5,0 @@ "license": "MIT",

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