coverage-collector
Advanced tools
Comparing version 0.0.0 to 0.0.1
@@ -5,4 +5,5 @@ var cluster = require('cluster'); | ||
var bodyParser = require('body-parser'); | ||
function start(){ | ||
function start(options){ | ||
options=options||{}; | ||
port=options.port||process.env['COLLECTOR_PORT']||3001; | ||
if (cluster.isMaster) { | ||
@@ -32,5 +33,6 @@ cluster.fork(); | ||
}); | ||
http.createServer(app).listen(3000); | ||
http.createServer(app).listen(port); | ||
console.log("Collector started on port %d", port); | ||
} | ||
} | ||
module.exports=start; |
{ | ||
"name": "coverage-collector", | ||
"version": "0.0.0", | ||
"version": "0.0.1", | ||
"description": "A simple server for collecting code coverage objects", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14469
67
1