Comparing version 2.5.0 to 2.5.1
@@ -73,6 +73,6 @@ 'use strict'; | ||
if (err instanceof TimeOutError) { | ||
this._brakes.emit('timeout', endTime); | ||
this._brakes.emit('timeout', endTime, err); | ||
} | ||
else if (this._opts.isFailure(err)) { | ||
this._brakes.emit('failure', endTime); | ||
this._brakes.emit('failure', endTime, err); | ||
} | ||
@@ -79,0 +79,0 @@ // if fallback exists, call it upon failure |
{ | ||
"name": "brakes", | ||
"version": "2.5.0", | ||
"version": "2.5.1", | ||
"description": "Node.js Circuit Breaker Pattern", | ||
@@ -47,5 +47,5 @@ "main": "index.js", | ||
"mocha": "^3.1.2", | ||
"nyc": "^9.0.1", | ||
"nyc": "^10.0.0", | ||
"sinon": "^1.17.6" | ||
} | ||
} |
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
36901