git2consul
Advanced tools
Comparing version 0.10.4 to 0.10.5
@@ -1,1 +0,1 @@ | ||
["172.17.6.75:8300"] | ||
["172.17.3.223:8300"] |
@@ -1,2 +0,2 @@ | ||
var consul = require('consul')({'host': global.endpoint}); | ||
var consul = require('consul')({'host': global.endpoint, 'port': global.port, 'secure':global.secure}); | ||
@@ -3,0 +3,0 @@ var _ = require('underscore'); |
@@ -7,3 +7,3 @@ var _ = require('underscore'); | ||
var consul = require('consul')({'host': global.endpoint}); | ||
var consul = require('consul')({'host': global.endpoint, 'port': global.port, 'secure': global.secure}); | ||
@@ -47,3 +47,3 @@ var token = undefined; | ||
// Finish with the file path | ||
if (branch.source_root && !ref) { | ||
if (branch.source_root && !ref) { | ||
file = file.substring(branch.source_root.length + 1); | ||
@@ -50,0 +50,0 @@ } |
@@ -12,4 +12,6 @@ var logging = require('./logging.js'); | ||
global.endpoint = "127.0.0.1"; | ||
global.port = 8500 | ||
global.secure = false | ||
for (var i=2; i<process.argv.length; ++i) { | ||
if(process.argv[i] === '-s' || process.argv[i] === '--secure') global.secure = true | ||
if(process.argv[i] === '-e' || process.argv[i] === '--endpoint') { | ||
@@ -22,2 +24,9 @@ if(i+1 >= process.argv.length) { | ||
} | ||
if(process.argv[i] === '-p' || process.argv[i] === '--port') { | ||
if(i+1 >= process.argv.length) { | ||
logger.error("No port provided with --port option"); | ||
process.exit(3); | ||
} | ||
global.port = process.argv[i+1]; | ||
} | ||
} | ||
@@ -24,0 +33,0 @@ |
{ | ||
"name": "git2consul", | ||
"description": "System for moving data from git to consul", | ||
"version": "0.10.4", | ||
"version": "0.10.5", | ||
"contributors": [ | ||
@@ -6,0 +6,0 @@ { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
AI-detected potential security risk
Supply chain riskAI has determined that this package may contain potential security issues or vulnerabilities.
Found 1 instance in 1 package
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 1 instance in 1 package
Potential vulnerability
Supply chain riskInitial human review suggests the presence of a vulnerability in this package. It is pending further analysis and confirmation.
Found 1 instance in 1 package
21022057
3095
26