Comparing version 1.1.1 to 1.1.2
{ | ||
"name": "resultify", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "Handle errors with async/await without try/catch.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -132,2 +132,17 @@ # resultify | ||
## Yet another module ??? | ||
> The source code is pretty small, do you really need a | ||
> module for a bit of wrapper try / catch code ??? | ||
Honestly, we don't need this module in any of our apps, we just | ||
need a few strategic `try / catch {}` statements to make the | ||
rest of the application use `{ err, data } = await x()` natively. | ||
However, it's pretty hard to document this pattern, this README | ||
seems like a fantastic place to document the IDEA itself. | ||
Feel free to use `{ err, data } = await x()` without importing | ||
this library, in fact please do ! | ||
## Documentation. | ||
@@ -134,0 +149,0 @@ |
16703
211