Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

brakes

Package Overview
Dependencies
Maintainers
2
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

brakes - npm Package Compare versions

Comparing version 2.7.0 to 2.8.0

3

lib/Brakes.js

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc