circuit-breaker-await-async
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -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
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
18439