uppy/packages/@uppy/utils/src
Antoine du Hamel a08ec4e0f7
@uppy/tus: pause all requests in response to server rate limiting (#3394)
* @uppy/tus: pause all requests in response to server rate limiting

When the remote server responds with HTTP 429, all requests are
paused for a while in the hope that it can resolve the rate limiting.
Failed requests are also now queued up after the retry delay. Before
that, they were simply scheduled which would sometimes end up
overflowing the `limit` option.

* Address review comments

* fix requests bypassing queue pause state

* Auto rate limiting

* fix `RateLimitedQueue`
2022-01-10 16:41:52 +01:00
..
getDroppedFiles Upgrade linting to 2.0.0-0 (#3280) 2021-11-09 11:19:05 +00:00
AbortController.js fix: AbortController is not defined on Node.js (Server Side Render) (#3169) 2021-09-13 14:55:10 +02:00
AbortController.test.js aws-s3-multipart: implement retries (#2312) 2020-07-13 15:10:23 +02:00
canvasToBlob.js @uppy/utils: simplify canvasToBlob (#3080) 2021-08-09 16:12:59 +02:00
dataURItoBlob.js @uppy/utils: improve support of data URI in dataURItoBlob (#3080) 2021-08-09 16:13:04 +02:00
dataURItoBlob.test.js Move utils files to @uppy/utils package. 2018-06-14 16:31:19 +02:00
dataURItoFile.js Move utils files to @uppy/utils package. 2018-06-14 16:31:19 +02:00
dataURItoFile.test.js Move utils files to @uppy/utils package. 2018-06-14 16:31:19 +02:00
delay.js @uppy/utils: simplify code using optional chaining (#3080) 2021-08-09 16:12:37 +02:00
delay.test.js Rewrite Companion providers to use streams to allow simultaneous upload/download without saving to disk (#3159) 2021-11-01 16:35:25 +07:00
emitSocketProgress.js @uppy/utils: resolve remaining linter errors (#3091) 2021-08-10 16:06:49 +02:00
EventTracker.js @uppy/utils: use private fields in EventTracker (#3080) 2021-08-09 16:12:54 +02:00
fetchWithNetworkError.js error on import lint failure + some misc lint fixes (#2813) 2021-03-20 11:02:49 +01:00
findAllDOMElements.js @uppy/utils: use Array.from insterad of custom utils (#3080) 2021-08-09 16:12:13 +02:00
findDOMElement.js @uppy/utils: resolve remaining linter errors (#3091) 2021-08-10 16:06:49 +02:00
findIndex.js @uppy/utils: remove ponyfill for Array#findIndex (#3080) 2021-08-09 16:12:51 +02:00
findIndex.test.js Update Linter (#2796) 2021-03-15 16:25:17 +00:00
FOCUSABLE_ELEMENTS.js Update Linter (#2796) 2021-03-15 16:25:17 +00:00
generateFileID.js @uppy/utils: resolve remaining linter errors (#3091) 2021-08-10 16:06:49 +02:00
generateFileID.test.js Upgrade linting to 2.0.0-0 (#3280) 2021-11-09 11:19:05 +00:00
getBytesRemaining.js Move utils files to @uppy/utils package. 2018-06-14 16:31:19 +02:00
getBytesRemaining.test.js Update Linter (#2796) 2021-03-15 16:25:17 +00:00
getETA.js @uppy/utils: resolve remaining linter errors (#3091) 2021-08-10 16:06:49 +02:00
getETA.test.js Update Linter (#2796) 2021-03-15 16:25:17 +00:00
getFileNameAndExtension.js Update Linter (#2796) 2021-03-15 16:25:17 +00:00
getFileNameAndExtension.test.js Update Linter (#2796) 2021-03-15 16:25:17 +00:00
getFileType.js @uppy/utils: simplify code using optional chaining (#3080) 2021-08-09 16:12:37 +02:00
getFileType.test.js Update Linter (#2796) 2021-03-15 16:25:17 +00:00
getFileTypeExtension.js @uppy/utils: simplify code using optional chaining (#3080) 2021-08-09 16:12:37 +02:00
getFileTypeExtension.test.js [FIX] Safari 14.0 on Mac records audio (using the Webcam Uppy component) with MIME-type ‘audio/mp4’. Update the file extensions checker to reflect this as otherwise audio cannot be recorded with Safari. (#2753) 2021-02-10 18:26:28 +00:00
getSocketHost.js Resolve all type TODO's (#2963) 2021-07-20 14:40:31 +02:00
getSocketHost.test.js Upgrade linting to 2.0.0-0 (#3280) 2021-11-09 11:19:05 +00:00
getSpeed.js @uppy/utils: simplify code using optional chaining (#3080) 2021-08-09 16:12:37 +02:00
getSpeed.test.js Update Linter (#2796) 2021-03-15 16:25:17 +00:00
getTextDirection.js @uppy/utils: simplify code using optional chaining (#3080) 2021-08-09 16:12:37 +02:00
getTimeStamp.js @uppy/utils: resolve remaining linter errors (#3091) 2021-08-10 16:06:49 +02:00
hasProperty.js Update eslint to v6 (#1777) 2019-08-13 21:45:30 +03:00
index.js Add @uppy/utils skeleton. 2018-06-14 16:31:19 +02:00
isDOMElement.js @uppy/utils: simplify code using optional chaining (#3080) 2021-08-09 16:12:37 +02:00
isDragDropSupported.js @uppy/utils: avoid creating throw-away <div> in isDragDropSupported (#3080) 2021-08-09 16:12:47 +02:00
isMobileDevice.js Update Linter (#2796) 2021-03-15 16:25:17 +00:00
isMobileDevice.test.js Update Linter (#2796) 2021-03-15 16:25:17 +00:00
isNetworkError.js Mark network errors as NetworkError (#2110) 2020-04-21 10:36:49 +02:00
isNetworkError.test.js Update Linter (#2796) 2021-03-15 16:25:17 +00:00
isObjectURL.js @uppy/utils: simplify code using optional chaining (#3080) 2021-08-09 16:12:37 +02:00
isObjectURL.test.js Move utils files to @uppy/utils package. 2018-06-14 16:31:19 +02:00
isPreviewSupported.js @uppy/utils: simplify code using optional chaining (#3080) 2021-08-09 16:12:37 +02:00
isPreviewSupported.test.js dash: Add support for AVIF images in thumbnails (#2406) 2020-07-29 18:46:46 +02:00
isTouchDevice.js Remove IE polyfills and special casing (#2947) 2021-06-28 11:34:51 +02:00
isTouchDevice.test.js Move utils files to @uppy/utils package. 2018-06-14 16:31:19 +02:00
microtip.scss build: add stylelint (#3124) 2021-08-24 01:37:57 +01:00
mimeTypes.js Update Linter (#2796) 2021-03-15 16:25:17 +00:00
NetworkError.js @uppy/aws-s3: refactor to use private fields (#3094) 2021-08-17 20:14:49 +02:00
prettyETA.js @uppy/utils: refactor prettyETA (#3080) 2021-08-09 16:12:23 +02:00
prettyETA.test.js @uppy/utils: refactor prettyETA (#3080) 2021-08-09 16:12:23 +02:00
ProgressTimeout.js examples: update angular-example to Angular v13 (#3325) 2021-11-22 19:12:56 +01:00
RateLimitedQueue.js @uppy/tus: pause all requests in response to server rate limiting (#3394) 2022-01-10 16:41:52 +01:00
RateLimitedQueue.test.js xhr: use symbol for internal options (#2934) 2021-06-30 12:06:10 +01:00
remoteFileObjToLocal.js error on import lint failure + some misc lint fixes (#2813) 2021-03-20 11:02:49 +01:00
sampleImageDataURI.js Move utils files to @uppy/utils package. 2018-06-14 16:31:19 +02:00
secondsToTime.js Move utils files to @uppy/utils package. 2018-06-14 16:31:19 +02:00
secondsToTime.test.js Update Linter (#2796) 2021-03-15 16:25:17 +00:00
settle.js Upgrade linting to 2.0.0-0 (#3280) 2021-11-09 11:19:05 +00:00
settle.test.js Upgrade linting to 2.0.0-0 (#3280) 2021-11-09 11:19:05 +00:00
toArray.js @uppy/utils: use Array.from insterad of custom utils (#3080) 2021-08-09 16:12:13 +02:00
toArray.test.js Update Linter (#2796) 2021-03-15 16:25:17 +00:00
Translator.js @uppy/utils: resolve remaining linter errors (#3091) 2021-08-10 16:06:49 +02:00
Translator.test.js Upgrade linting to 2.0.0-0 (#3280) 2021-11-09 11:19:05 +00:00
truncateString.js @uppy/utils: refactor truncateString (#3080) 2021-08-09 16:12:08 +02:00
truncateString.test.js @uppy/utils: refactor truncateString (#3080) 2021-08-09 16:12:08 +02:00