Comparing version 1.5.0 to 1.6.0
@@ -5,2 +5,12 @@ # Change Log | ||
<a name="1.6.0"></a> | ||
# [1.6.0](https://github.com/bucharest-gold/opossum/compare/v1.5.0...v1.6.0) (2018-05-24) | ||
### Features | ||
* pass error as parameter to fallback function ([#197](https://github.com/bucharest-gold/opossum/issues/197)) ([ae6c1cc](https://github.com/bucharest-gold/opossum/commit/ae6c1cc)) | ||
<a name="1.5.0"></a> | ||
@@ -7,0 +17,0 @@ # [1.5.0](https://github.com/bucharest-gold/opossum/compare/v1.3.1...v1.5.0) (2018-04-25) |
@@ -468,3 +468,3 @@ 'use strict'; | ||
const result = | ||
circuit[FALLBACK_FUNCTION].apply(circuit[FALLBACK_FUNCTION], args); | ||
circuit[FALLBACK_FUNCTION].apply(circuit[FALLBACK_FUNCTION], [...args, err]); | ||
/** | ||
@@ -471,0 +471,0 @@ * Emitted when the circuit breaker executes a fallback function |
{ | ||
"name": "opossum", | ||
"version": "1.5.0", | ||
"version": "1.6.0", | ||
"author": "Red Hat, Inc.", | ||
@@ -12,8 +12,7 @@ "license": "Apache-2.0", | ||
"pretest": "npm run lint && npm run build:browser", | ||
"test": "npm run test:console", | ||
"test:ci": "npm run test:headless && npm run test:coverage", | ||
"test:console": "tape test/*.js | tap-spec", | ||
"test": "npm run test:coverage", | ||
"test:ci": "npm run build && npm run test:headless && npm run test:coverage", | ||
"test:headless": "node test/browser/webpack-test.js", | ||
"test:browser": "opener http://localhost:9007/test/browser/index.html && http-server . -p 9007", | ||
"test:coverage": "istanbul cover tape test/*.js", | ||
"test:coverage": "nyc tape test/*.js | tap-spec", | ||
"prepare": "nsp check && npm run build:browser", | ||
@@ -44,7 +43,7 @@ "postpublish": "./publish-docs.sh", | ||
"ink-docstrap": "~1.3.0", | ||
"istanbul": "~0.4.5", | ||
"jsdoc": "3.5.5", | ||
"marked": "~0.3.9", | ||
"marked": "~0.4.0", | ||
"moment": "~2.22.0", | ||
"nsp": "~3.2.1", | ||
"nyc": "~11.8.0", | ||
"opener": "1.4.3", | ||
@@ -55,7 +54,8 @@ "semistandard": "~12.0.1", | ||
"tape": "~4.9.0", | ||
"webpack": "~4.6.0", | ||
"webpack-cli": "~2.0.15" | ||
"webpack": "~4.8.2", | ||
"webpack-cli": "~2.1.2" | ||
}, | ||
"description": "A fail-fast circuit breaker for promises and callbacks", | ||
"keywords": [ | ||
"circuit breaker", | ||
"circuit-breaker", | ||
@@ -62,0 +62,0 @@ "fail-fast", |
@@ -85,3 +85,3 @@ # opossum | ||
Here is an example using [hapi.js](hapijs.com). See the | ||
Here is an example using [hapi.js](https://hapijs.com). See the | ||
[examples](https://github.com/bucharest-gold/opossum/tree/master/examples/) | ||
@@ -88,0 +88,0 @@ folder for more detail. |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
1575920
15717
0