🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →

abortcontroller-chain

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

abortcontroller-chain - npm Package Compare versions

Comparing version

to
1.0.3

{
"name": "abortcontroller-chain",
"version": "1.0.2",
"version": "1.0.3",
"description": "Simple utility to chain an AbortController to one or more AbortSignals.",

@@ -5,0 +5,0 @@ "keywords": [

@@ -8,3 +8,3 @@ # Chain an `AbortController` to multiple `AbortSignals`

Chain multiple signals into one controller: if any of the signals aborts, the controller will be aborted.
Chain multiple signals into one controller: if any of the signals aborts, the controller will be aborted. This is particularly useful since most APIs only accept a _single_ AbortSignal input ([`fetch()`](https://developer.mozilla.org/en-US/docs/Web/API/fetch), [axios](https://github.com/axios/axios#cancellation), the [AWS SDK](https://aws.amazon.com/blogs/developer/abortcontroller-in-modular-aws-sdk-for-javascript/), etc).

@@ -11,0 +11,0 @@ Works with browsers, NodeJS (16+), and spec-compliant polyfills.