a-wait-forit
Advanced tools
Comparing version 0.1.5 to 0.1.6
@@ -19,3 +19,3 @@ "use strict"; | ||
return (typeof maybePromise === 'function' ? maybePromise() : maybePromise).then(_ => [undefined, _]).catch(onError); | ||
return (typeof maybePromise === 'function' ? maybePromise() : maybePromise).then(_ => [undefined, _]).catch(error => onError(error)); | ||
}; |
{ | ||
"name": "a-wait-forit", | ||
"version": "0.1.5", | ||
"version": "0.1.6", | ||
"description": "Async/await without try/catch", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
3873