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.23%
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.303.0 (2023-03-30)

Features

  • client-athena: Make DefaultExecutorDpuSize and CoordinatorDpuSize fields optional in StartSession (1a4cd21)
  • client-auto-scaling: Amazon EC2 Auto Scaling now supports Elastic Load Balancing traffic sources with the AttachTrafficSources, DetachTrafficSources, and DescribeTrafficSources APIs. This release also introduces a new activity status, "WaitingForConnectionDraining", for VPC Lattice to the DescribeScalingActivities API. (3f4037e)
  • client-batch: This feature allows Batch on EKS to support configuration of Pod Labels through Metadata for Batch on EKS Jobs. (d26bec4)
  • client-compute-optimizer: This release adds support for HDD EBS volume types and io2 Block Express. We are also adding support for 61 new instance types and instances that have non consecutive runtime. (defd0ca)
  • client-drs: Adding a field to the replication configuration APIs to support the auto replicate new disks feature. We also deprecated RetryDataReplication. (6848391)
  • client-ec2: This release adds support for Tunnel Endpoint Lifecycle control, a new feature that provides Site-to-Site VPN customers with better visibility and control of their VPN tunnel maintenance updates. (daa7956)
  • client-emr: Updated DescribeCluster and ListClusters API responses to include ErrorDetail that specifies error code, programmatically accessible error data,and an error message. ErrorDetail provides the underlying reason for cluster failure and recommends actions to simplify troubleshooting of EMR clusters. (aa47baa)
  • client-glue: This release adds support for AWS Glue Data Quality, which helps you evaluate and monitor the quality of your data and includes the API for creating, deleting, or updating data quality rulesets, runs and evaluations. (811c814)
  • client-guardduty: Added EKS Runtime Monitoring feature support to existing detector, finding APIs and introducing new Coverage APIs (0f16674)
  • client-imagebuilder: Adds support for new image workflow details and image vulnerability detection. (a2d8908)
  • client-ivs: Amazon Interactive Video Service (IVS) now offers customers the ability to configure IVS channels to allow insecure RTMP ingest. (0001a10)
  • client-kendra: AWS Kendra now supports featured results for a query. (2271816)
  • client-network-firewall: AWS Network Firewall added TLS inspection configurations to allow TLS traffic inspection. (801cd21)
  • client-sagemaker-geospatial: Amazon SageMaker geospatial capabilities now supports server-side encryption with customer managed KMS key and SageMaker notebooks with a SageMaker geospatial image in a Amazon SageMaker Domain with VPC only mode. (04b37bf)
  • client-vpc-lattice: General Availability (GA) release of Amazon VPC Lattice (fc57f8f)
  • client-wellarchitected: AWS Well-Architected SDK now supports getting consolidated report metrics and generating a consolidated report PDF. (f0d07c4)
  • clients: update client endpoints as of 2023-03-30 (4682bc1)

Readme

Source

@aws-sdk/abort-controller

NPM version NPM downloads

FAQs

Last updated on 30 Mar 2023

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