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

git2consul

Package Overview
Dependencies
Maintainers
1
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

git2consul - npm Package Compare versions

Comparing version 0.8.0 to 0.8.1

integration/.npmignore

2

consul_data/raft/peers.json

@@ -1,1 +0,1 @@

["172.17.9.8:8300"]
["172.17.6.27:8300"]

@@ -1,2 +0,2 @@

var consul = require('consul')();
var consul = require('consul')({'host': global.endpoint});

@@ -20,3 +20,2 @@ var _ = require('underscore');

}
consul.kv.get(params, function(err, item) {

@@ -23,0 +22,0 @@ if (err) return cb(err);

@@ -6,3 +6,3 @@ var fs = require('fs');

var consul = require('consul')();
var consul = require('consul')({'host': global.endpoint});

@@ -9,0 +9,0 @@ var token = undefined;

@@ -82,3 +82,3 @@ var util = require('util');

app[verb](config.url, function(req, res){
logger.debug('Got pinged by %s hook, checking request', implementation.type);
logger.trace('Got pinged by %s hook, checking request', implementation.type);

@@ -85,0 +85,0 @@ /* istanbul ignore else */

@@ -17,3 +17,3 @@ var _ = require('underscore');

// Track all active GitManager objects so we can traverse them as needed for a graceful shutdown.
// Track all active Repo objects so we can traverse them as needed for a graceful shutdown.
Object.defineProperty(exports, 'repos', { value: {} });

@@ -20,0 +20,0 @@

var logging = require('./logging.js');
var config_reader = require('./config_reader.js');

@@ -8,2 +7,21 @@ var fs = require('fs');

/**
* First, check if there is a command line override for the consul endpoint
* If so, use it to grab the config
*/
global.endpoint = "127.0.0.1";
for (var i=2; i<process.argv.length; ++i) {
if(process.argv[i] === '-e' || process.argv[i] === '--endpoint') {
if(i+1 >= process.argv.length) {
logger.error("No endpoint provided with --endpoint option");
process.exit(3);
}
global.endpoint = process.argv[i+1];
}
}
var config_reader = require('./config_reader.js');
/**
* Read config from a specially named Consul resource. If the config was not seeded

@@ -10,0 +28,0 @@ * (and this should be done using utils/config_seeder.js), git2consul will not boot.

{
"name": "git2consul",
"description": "System for moving data from git to consul",
"version": "0.8.0",
"version": "0.8.1",
"contributors": [

@@ -6,0 +6,0 @@ {

@@ -63,3 +63,3 @@ #### git2consul

The above example illustrates a 2 repo git2consul setup: one repo lives in an on-premises Git solution and the other is hosted at github. The hooks array under each repository defines how git2consul will be notified of changes. git2consul supports [Atlassian Stash](https://confluence.atlassian.com/display/STASH/POST+service+webhook+for+Stash), [Atlassian Bitbucket](https://confluence.atlassian.com/display/BITBUCKET/POST+hook+management), [GitHub](https://developer.github.com/v3/repos/hooks/) webhooks as well as a basic polling model.
The above example illustrates a 2 repo git2consul setup: one repo lives in an on-premises Git solution and the other is hosted at github. The hooks array under each repository defines how git2consul will be notified of changes. git2consul supports [Atlassian Stash](https://confluence.atlassian.com/display/STASH/POST+service+webhook+for+Stash), [Atlassian Bitbucket](https://confluence.atlassian.com/display/BITBUCKET/POST+hook+management), [GitHub](https://developer.github.com/v3/repos/hooks/), and [Gitlab](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/web_hooks/web_hooks.md) webhooks as well as a basic polling model.

@@ -66,0 +66,0 @@ Note that multiple webhooks can share the same port. The only constraint is that webhooks for different repos do not share the same port and path.

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

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