consul-pilot
Advanced tools
Comparing version 1.0.2 to 1.0.3
12
index.js
@@ -86,3 +86,3 @@ const debug = require('debug')('ConsulPilot'); | ||
return reject(service); | ||
return reject(Object.assign(service, { error: 'SERVICE_NOT_FOUND', serviceName })); | ||
}); | ||
@@ -92,3 +92,2 @@ }); | ||
_.update = (err, serviceName) => { | ||
@@ -102,9 +101,9 @@ debug('CALLING:', serviceName, 'CALLBACK'); | ||
_.signal = () => { | ||
debug('SIGHUP RECEIVED'); | ||
return _.refreshAllServices(); | ||
debug('SIGHUP RECEIVED'); | ||
return _.refreshAllServices().catch((err) => { | ||
console.log('error consul-pilot:', err); | ||
}); | ||
} | ||
// process intercetor | ||
@@ -114,3 +113,2 @@ process.on('SIGHUP', _.signal); | ||
// expose everything for the tests | ||
@@ -117,0 +115,0 @@ if (process.env.NODE_ENV === 'test') { |
{ | ||
"name": "consul-pilot", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
7753
152
0