Comparing version 1.2.3 to 1.3.0
@@ -9,3 +9,4 @@ const ms = require('ms'); | ||
arity: 'auto', | ||
monitor: () => {} | ||
monitor: () => {}, | ||
trigger: (err) => true | ||
}; | ||
@@ -79,4 +80,6 @@ | ||
function catchError(err) { | ||
failures++; | ||
lastFailure = Date.now(); | ||
if (config.trigger(err)) { | ||
failures++; | ||
lastFailure = Date.now(); | ||
} | ||
originalCallback(err); | ||
@@ -83,0 +86,0 @@ } |
{ | ||
"name": "disyuntor", | ||
"description": "A circuit-breaker implementation with exponential backoff.", | ||
"version": "1.2.3", | ||
"version": "1.3.0", | ||
"author": "José F. Romaniello <jfromaniello@gmail.com> (http://joseoncode.com)", | ||
@@ -6,0 +6,0 @@ "repository": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
22160
527