Socket
Socket
Sign inDemoInstall

airlock

Package Overview
Dependencies
0
Maintainers
3
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.2.0 to 2.3.0

4

index.js

@@ -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) {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc