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

circuit-breaker-await-async

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

circuit-breaker-await-async - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

4

dist/main.js

@@ -72,7 +72,7 @@ 'use strict';

if (isHalfOpen) {
log('HalfOpen trail called has failed');
log(`HalfOpen trail called has failed: ${e.message}`);
this.emit('circuit-breaker.trip');
this.emit('circuit-breaker.call.failed', new Error(errors.CIRCUIT_IS_OPEN));
} else {
log(`Attempt ${this.currentAttempt} Failed`);
log(`Attempt ${this.currentAttempt} Failed: ${e.message}`);
// attempt again in callTimeoutMs

@@ -79,0 +79,0 @@ setTimeout(() => {

{
"name": "circuit-breaker-await-async",
"version": "1.1.1",
"version": "1.1.2",
"description": "ES6 circuit breaker built around await/async patterns",

@@ -27,3 +27,3 @@ "main": "dist/main.js",

"babel-eslint": "^8.2.2",
"babel-jest": "^22.4.1",
"babel-jest": "^23.0.0",
"babel-plugin-module-resolver": "^3.1.0",

@@ -35,3 +35,3 @@ "babel-plugin-transform-object-rest-spread": "^6.26.0",

"cz-conventional-changelog": "^2.0.0",
"eslint": "^4.2.0",
"eslint": "^5.0.0",
"eslint-config-standard": "^11.0.0",

@@ -44,5 +44,5 @@ "eslint-plugin-import": "^2.7.0",

"jest": "^22.4.2",
"regenerator-runtime": "^0.11.1",
"semantic-release": "^15.0.2",
"travis-deploy-once": "^4.4.1"
"regenerator-runtime": "^0.12.0",
"semantic-release": "^15.7.2",
"travis-deploy-once": "^5.0.1"
},

@@ -49,0 +49,0 @@ "repository": {

@@ -58,7 +58,7 @@ import debug from 'debug'

if (isHalfOpen) {
log('HalfOpen trail called has failed')
log(`HalfOpen trail called has failed: ${e.message}`)
this.emit('circuit-breaker.trip')
this.emit('circuit-breaker.call.failed', new Error(errors.CIRCUIT_IS_OPEN))
} else {
log(`Attempt ${this.currentAttempt} Failed`)
log(`Attempt ${this.currentAttempt} Failed: ${e.message}`)
// attempt again in callTimeoutMs

@@ -65,0 +65,0 @@ setTimeout(() => {

Sorry, the diff of this file is not supported yet

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