Socket
Socket
Sign inDemoInstall

@aws-sdk/abort-controller

Package Overview
Dependencies
2
Maintainers
5
Versions
117
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @aws-sdk/abort-controller

A simple abort controller library


Version published
Weekly downloads
3.8M
increased by1.11%
Maintainers
5
Created
Weekly downloads
 

Package description

What is @aws-sdk/abort-controller?

The @aws-sdk/abort-controller npm package provides a mechanism to abort one or more Web requests before they have completed. It is primarily used to enhance the management of API requests, particularly in environments where network requests can hang or need to be manually terminated to manage resources effectively.

What are @aws-sdk/abort-controller's main functionalities?

Abort HTTP requests

This code sample demonstrates how to use the AbortController to abort an HTTP fetch request. The 'signal' is passed to the fetch request, and the request can be aborted by calling 'controller.abort()'.

const { AbortController } = require('@aws-sdk/abort-controller');
const controller = new AbortController();
const signal = controller.signal;

fetch('https://api.example.com/data', { signal })
  .then(response => response.json())
  .catch(err => {
    if (err.name === 'AbortError') {
      console.log('Fetch aborted');
    } else {
      console.error('Fetch error:', err);
    }
  });

// Abort the request
controller.abort();

Other packages similar to @aws-sdk/abort-controller

Changelog

Source

3.212.0 (2022-11-16)

Features

  • client-billingconductor: This release adds a new feature BillingEntity pricing rule. (6f15a0a)
  • client-cloudformation: Added UnsupportedTarget HandlerErrorCode for use with CFN Resource Hooks (6c5beed)
  • client-comprehendmedical: This release supports new set of entities and traits. It also adds new category (BEHAVIORAL_ENVIRONMENTAL_SOCIAL). (05089b4)
  • client-connect: This release adds a new MonitorContact API for initiating monitoring of ongoing Voice and Chat contacts. (2adc9d0)
  • client-eks: Adds support for customer-provided placement groups for Kubernetes control plane instances when creating local EKS clusters on Outposts (4c8f3dc)
  • client-elasticache: for Redis now supports AWS Identity and Access Management authentication access to Redis clusters starting with redis-engine version 7.0 (d1ac8d8)
  • client-iottwinmaker: This release adds the following: 1) ExecuteQuery API allows users to query their AWS IoT TwinMaker Knowledge Graph 2) Pricing plan APIs allow users to configure and manage their pricing mode 3) Support for property groups and tabular property values in existing AWS IoT TwinMaker APIs. (8d31224)
  • client-personalize-events: This release provides support for creation and use of metric attributions in AWS Personalize (f30761f)
  • client-proton: Add support for sorting and filtering in ListServiceInstances (68d0e23)
  • client-rds: This release adds support for container databases (CDBs) to Amazon RDS Custom for Oracle. A CDB contains one PDB at creation. You can add more PDBs using Oracle SQL. You can also customize your database installation by setting the Oracle base, Oracle home, and the OS user name and group. (6aa6b3a)
  • client-ssm-incidents: Add support for PagerDuty integrations on ResponsePlan, IncidentRecord, and RelatedItem APIs (7b5617c)
  • client-ssm: This release adds support for cross account access in CreateOpsItem, UpdateOpsItem and GetOpsItem. It introduces new APIs to setup resource policies for SSM resources: PutResourcePolicy, GetResourcePolicies and DeleteResourcePolicy. (1d04c01)
  • client-transfer: Allow additional operations to throw ThrottlingException (108f81d)
  • client-xray: This release adds new APIs - PutResourcePolicy, DeleteResourcePolicy, ListResourcePolicies for supporting resource based policies for AWS X-Ray. (1e16743)

Readme

Source

@aws-sdk/abort-controller

NPM version NPM downloads

FAQs

Last updated on 16 Nov 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc