From c72e41184ab6bee216caac875893d05b19f51a38 Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Fri, 20 Oct 2023 14:18:57 +0200 Subject: [PATCH] @uppy/aws-s3-multipart: pass `signal` as separate arg for backward compat (#4746) --- packages/@uppy/aws-s3-multipart/src/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/@uppy/aws-s3-multipart/src/index.js b/packages/@uppy/aws-s3-multipart/src/index.js index d594064f0e..a543df679d 100644 --- a/packages/@uppy/aws-s3-multipart/src/index.js +++ b/packages/@uppy/aws-s3-multipart/src/index.js @@ -301,6 +301,7 @@ class HTTPCommunicationQueue { return await this.#sendCompletionRequest( this.#getFile(file), { key, uploadId, parts, signal }, + signal, ).abortOn(signal) } catch (err) { if (err?.cause !== pausingUploadReason && err?.name !== 'AbortError') { @@ -327,6 +328,7 @@ class HTTPCommunicationQueue { const alreadyUploadedParts = await this.#listParts( this.#getFile(file), { uploadId, key, signal }, + signal, ).abortOn(signal) throwIfAborted(signal) const parts = await Promise.all( @@ -346,6 +348,7 @@ class HTTPCommunicationQueue { return this.#sendCompletionRequest( this.#getFile(file), { key, uploadId, parts, signal }, + signal, ).abortOn(signal) }