Comparing version 2.7.0 to 2.8.0
@@ -26,3 +26,4 @@ 'use strict'; | ||
isFunction: false, | ||
isPromise: false | ||
isPromise: false, | ||
modifyError: true | ||
}; | ||
@@ -29,0 +30,0 @@ |
@@ -96,3 +96,3 @@ 'use strict'; | ||
if (err.message && this._brakes.name) { | ||
if (err.message && this._brakes.name && this._brakes._opts.modifyError) { | ||
err.message = `[Breaker: ${this._brakes.name}] ${err.message}`; | ||
@@ -99,0 +99,0 @@ } |
{ | ||
"name": "brakes", | ||
"version": "2.7.0", | ||
"version": "2.8.0", | ||
"description": "Node.js Circuit Breaker Pattern", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -264,2 +264,3 @@ [![Dependency Status](https://david-dm.org/awolden/brakes.svg)](https://david-dm.org/awolden/brakes) | ||
- **isFunction**: `boolean` to opt out of check for callback, always promisifying in function. This affects the passed in function, health check and fallback | ||
- **modifyError**: modifies the error message by adding circuit name. default is true. | ||
@@ -266,0 +267,0 @@ ## Stats |
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
40708
814
367
6898