@ccci/micro-server 1.0.138 → 1.0.139
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -1
- package/dist/utils/uploader-s3.d.ts +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -281634,13 +281634,14 @@ class UploaderS3 {
|
|
|
281634
281634
|
}
|
|
281635
281635
|
try {
|
|
281636
281636
|
Logger.info("Completing multipart upload for key:", key);
|
|
281637
|
-
await UploaderS3.client.send(new client_s3.CompleteMultipartUploadCommand({
|
|
281637
|
+
const response4 = await UploaderS3.client.send(new client_s3.CompleteMultipartUploadCommand({
|
|
281638
281638
|
Bucket: bucketName,
|
|
281639
281639
|
Key: key,
|
|
281640
281640
|
UploadId: uploadId,
|
|
281641
281641
|
MultipartUpload: { Parts: parts }
|
|
281642
281642
|
}));
|
|
281643
281643
|
Logger.info("Multipart upload completed successfully.");
|
|
281644
|
+
return response4;
|
|
281644
281645
|
} catch (error) {
|
|
281645
281646
|
Logger.error(error);
|
|
281646
281647
|
throw error;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { ApplicationOptionType } from "@/types/ApplicationOptionType";
|
|
3
|
-
import { S3 } from "@aws-sdk/client-s3";
|
|
3
|
+
import { S3, CompleteMultipartUploadCommandOutput } from "@aws-sdk/client-s3";
|
|
4
4
|
export default class UploaderS3 {
|
|
5
5
|
static client: S3;
|
|
6
6
|
static uploadSessions: Record<string, string>;
|
|
@@ -41,7 +41,7 @@ export default class UploaderS3 {
|
|
|
41
41
|
static completeMultipartUpload(bucketName: string, key: string, uploadId: string, parts: {
|
|
42
42
|
PartNumber: number;
|
|
43
43
|
ETag: string;
|
|
44
|
-
}[]): Promise<
|
|
44
|
+
}[]): Promise<CompleteMultipartUploadCommandOutput>;
|
|
45
45
|
/**
|
|
46
46
|
* Aborts a multipart upload
|
|
47
47
|
* @param bucketName S3 bucket name
|