do-try-tuple
Advanced tools
Comparing version 1.1.0 to 1.1.1
{ | ||
"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 [![Coverage Status](https://coveralls.io/repos/github/DScheglov/do-try-tuple/badge.svg?branch=main)](https://coveralls.io/github/DScheglov/do-try-tuple?branch=main) [![npm version](https://img.shields.io/npm/v/do-try-tuple.svg?style=flat-square)](https://www.npmjs.com/package/do-try-tuple) [![npm downloads](https://img.shields.io/npm/dm/do-try-tuple.svg?style=flat-square)](https://www.npmjs.com/package/do-try-tuple) [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](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
0