airlock
Advanced tools
Comparing version 2.2.0 to 2.3.0
@@ -45,4 +45,4 @@ var assert = require('assert'); | ||
this.isUnhealthyFunc = typeof options.isUnhealthyFunc === 'function' || | ||
defaults.isUnhealthyFunc; | ||
this.isUnhealthyFunc = typeof options.isUnhealthyFunc === 'function' && | ||
options.isUnhealthyFunc || defaults.isUnhealthyFunc; | ||
@@ -49,0 +49,0 @@ if (this.detectFailuresByEvent) { |
{ | ||
"name": "airlock", | ||
"version": "2.2.0", | ||
"version": "2.3.0", | ||
"description": "A prober to probe HTTP based backends for health", | ||
@@ -5,0 +5,0 @@ "keywords": [], |
@@ -266,6 +266,7 @@ var assert = require('assert'); | ||
test('should be healthy after tchannel request server success', function(end) { | ||
var prober = new Prober(); | ||
prober.threshold = 1; | ||
prober.window = 1; | ||
prober.isUnhealthyFunc = exampleTchannelIsUnhealthyFunc; | ||
var prober = new Prober({ | ||
threshold: 1, | ||
window: 1, | ||
isUnhealthyFunc: exampleTchannelIsUnhealthyFunc | ||
}); | ||
@@ -284,6 +285,7 @@ prober.probe(function(fn) { | ||
test('should be unhealthy after tchannel request server err', function(end) { | ||
var prober = new Prober(); | ||
prober.threshold = 1; | ||
prober.window = 1; | ||
prober.isUnhealthyFunc = exampleTchannelIsUnhealthyFunc; | ||
var prober = new Prober({ | ||
threshold: 1, | ||
window: 1, | ||
isUnhealthyFunc: exampleTchannelIsUnhealthyFunc | ||
}); | ||
@@ -299,6 +301,7 @@ prober.probe(function(fn) { | ||
test('should be unhealthy after tchannel request server err from resp', function(end) { | ||
var prober = new Prober(); | ||
prober.threshold = 1; | ||
prober.window = 1; | ||
prober.isUnhealthyFunc = exampleTchannelIsUnhealthyFunc; | ||
var prober = new Prober({ | ||
threshold: 1, | ||
window: 1, | ||
isUnhealthyFunc: exampleTchannelIsUnhealthyFunc | ||
}); | ||
@@ -305,0 +308,0 @@ prober.probe(function(fn) { |
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
24367
582
0