sitemap-generator
Advanced tools
Comparing version 3.0.0 to 3.0.1
@@ -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:"); |
{ | ||
"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"); |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
199826
370
3
3