Browse Source

@uppy/aws-s3-multipart: pass `signal` as separate arg for backward compat (#4746)

Antoine du Hamel 1 năm trước cách đây
mục cha
commit
c72e41184a
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      packages/@uppy/aws-s3-multipart/src/index.js

+ 3 - 0
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)
   }