Comparing version 4.2.6 to 4.2.7
@@ -32,4 +32,4 @@ 'use strict'; | ||
return this.then( | ||
value => { h(); return value; }, | ||
error => { h(); throw error; } | ||
value => Promish.resolve(h()).then(() => value), | ||
error => Promish.resolve(h()).then(() => Promish.reject(error)) | ||
); | ||
@@ -36,0 +36,0 @@ } |
{ | ||
"name": "promish", | ||
"version": "4.2.6", | ||
"version": "4.2.7", | ||
"description": "ES6 Promise Shim", | ||
@@ -5,0 +5,0 @@ "private": false, |
@@ -177,4 +177,9 @@ # Promish | ||
A finally handler will be called no matter what state the promise chain gets into. | ||
There are no arguments provided to the finally handler and the downstream promise state will depend on the handler code. | ||
Typically this will be resolved with the return value (e.g. undefined). | ||
There are no arguments provided to the finally handler and the downstream promise state will typically reflect | ||
the state of the promise before the finally handler is called. | ||
If the finally handler returns a promise, finally will wait for the promise to resolve before propagating the | ||
incoming promise value. | ||
If the finally handler's promise is rejected, the new rejected state will override the incoming promise state | ||
and the new state will take on the new rejection state of the finally handler's promise. | ||
This will also be the case if the finally handler throws an exception. | ||
@@ -181,0 +186,0 @@ ```javascript |
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
20847
453