New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

do-try-tuple

Package Overview
Dependencies
Maintainers
0
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

do-try-tuple - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

2

package.json
{
"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`

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc