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

sitemap-generator

Package Overview
Dependencies
Maintainers
1
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sitemap-generator - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1

9

lib/SitemapGenerator.js

@@ -40,3 +40,10 @@ #!/usr/bin/env node

this.crawler.initialPath = "/";
this.crawler.initialPort = 80;
var port = 80;
if (process.env.NODE_ENV === "development") {
port = 8000;
}
this.crawler.initialPort = port;
if (!this.uri.protocol) {

@@ -43,0 +50,0 @@ this.uri.set("protocol", "http:");

4

package.json
{
"name": "sitemap-generator",
"version": "3.0.0",
"version": "3.0.1",
"description": "Create xml sitemaps from the command line.",

@@ -50,4 +50,4 @@ "homepage": "https://github.com/lgraubner/node-sitemap-generator",

"scripts": {
"test": "mocha test"
"test": "NODE_ENV=development mocha test"
}
}

@@ -168,3 +168,3 @@ var should = require("chai").should();

fs.readFile("./sitemap.xml", function(err, data) {
data.toString().should.contain("127.0.0.1/site/?foo=bar");
data.toString().should.contain("/site/?foo=bar");
done();

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

@@ -16,2 +16,2 @@ /**

}
}).listen(80, "127.0.0.1");
}).listen(8000, "127.0.0.1");
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