Socket
Socket
Sign inDemoInstall

@rpldy/abort

Package Overview
Dependencies
8
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @rpldy/abort

adds the capability to abort/cancel running & pending uploads


Version published
Weekly downloads
8.7K
increased by6.18%
Maintainers
1
Created
Weekly downloads
 

Changelog

Source

1.8.1 (2024-05-16)

Bug fixes

  • tus-sender - for parallel send partial upload-concat header on create. Fix for #685

Internal

  • all - upgrade several dev deps

Readme

Source
npm version circleci status codecov status bundlephobia badge rpldy storybook

Abort

Adds the capability to abort/cancel running & pending uploads

This is an internal package the uploader consumes.

Abort exposes an UploaderEnhancer that adds the abort methods to the Uploader Options.

The best place to get started is at our: React-Uploady Documentation Website

Installation

#Yarn:
  $ yarn add @rpldy/abort

#NPM:
  $ npm i @rpldy/abort

Normal vs. Fast Abort

When the number of pending/active uploads is less than the configured threshold (fastAbortThreshold param) or when the threshold is turned off (equals 0), normal abort flow will be used.

In case the threshold is configured and the item count is equal or larger, the fast abort flow will be used.

For All Abort, the threshold is compared against the total number of pending/active items For Batch Abort, the threshold is compared against the number of pending/active items in the batch.

In both cases, finished items are ignored in the comparison.

Normal

Normal flow means that every item whether its already uploading or still pending will be individually aborted and an "ITEM_ABORT" event will be fired. For abort all, "BATCH_ABORT" event will also be fired respectively.

Fast

Fast flow means that only active uploads are cancelled (typically very few as concurrent count is set to 1 by default).

Pending items are ignored and are simply removed from the queue by the uploader. For abort all, "BATCH_ABORT" events will not be fired and no "ITEM_ABORT" event will be fired for pending items.

FAQs

Last updated on 16 May 2024

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc