do-try-tuple
Advanced tools
Comparing version
{ | ||
"name": "do-try-tuple", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Catches errors and rejected promises, returns tuple", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -109,3 +109,3 @@ # do-try-tuple [](https://coveralls.io/github/DScheglov/do-try-tuple?branch=main) [](https://www.npmjs.com/package/do-try-tuple) [](https://www.npmjs.com/package/do-try-tuple) [](https://github.com/DScheglov/do-try-tuple/blob/master/LICENSE) | ||
These functions allows to create `ErrValueTuple` instances: | ||
These functions allow to create `ErrValueTuple` instances: | ||
@@ -155,7 +155,7 @@ ```typescript | ||
| Constant | Description | Cause | | ||
| ---------------------------- | ---------------------------------------------------- | ------------ | | ||
| `ERR_NOT_A_FUNCTION` | `fn` argument is not a function | `fn` | | ||
| `ERR_NULLISH_VALUE_REJECTED` | promise is rejected with `null` or `undefined` value | caught value | | ||
| `ERR_NULLISH_VALUE_THROWN` | `fn` throws `null` or `undefined` value | caught value | | ||
| Code / Instance Of | Description | Cause | | ||
| ------------------------------------------------------------------------------------ | --------------------------------------------------------------------- | ------------ | | ||
| code: `'ERR_NOT_A_FUNCTION'`<br />class: `DoTryError.NotAFunction` | `fn` argument is not a function | `fn` | | ||
| code: `'ERR_NULLISH_VALUE_REJECTED'`<br />class: `DoTryError.NullishValueRejected` | promise returned by `fn` is rejected with `null` or `undefined` value | caught value | | ||
| code: `'ERR_NULLISH_VALUE_THROWN'`<br />class: `DoTryError.NullishValueThrown` | `fn` throws `null` or `undefined` value | caught value | | ||
@@ -162,0 +162,0 @@ ## Important! Discriminating `ErrValueTuple` |
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
23637
1.52%0
-100%