@aws-sdk/lib-storage 3.1165.0 → 3.1167.0

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-cjs/index.js CHANGED
@@ -459,7 +459,17 @@ to input.params.ContentLength in bytes.
459
459
  Parts: this.uploadedParts,
460
460
  },
461
461
  };
462
- result = await this.client.send(new CompleteMultipartUploadCommand(uploadCompleteParams));
462
+ try {
463
+ result = await this.client.send(new CompleteMultipartUploadCommand(uploadCompleteParams));
464
+ }
465
+ catch (e) {
466
+ await this.markUploadAsAborted().catch((abortError) => {
467
+ if (e instanceof Error && e.cause === undefined) {
468
+ e.cause = abortError;
469
+ }
470
+ });
471
+ throw e;
472
+ }
463
473
  if (typeof result?.Location === "string" && result.Location.includes("%2F")) {
464
474
  result.Location = result.Location.replace(/%2F/g, "/");
465
475
  }
package/dist-es/Upload.js CHANGED
@@ -269,7 +269,17 @@ to input.params.ContentLength in bytes.
269
269
  Parts: this.uploadedParts,
270
270
  },
271
271
  };
272
- result = await this.client.send(new CompleteMultipartUploadCommand(uploadCompleteParams));
272
+ try {
273
+ result = await this.client.send(new CompleteMultipartUploadCommand(uploadCompleteParams));
274
+ }
275
+ catch (e) {
276
+ await this.markUploadAsAborted().catch((abortError) => {
277
+ if (e instanceof Error && e.cause === undefined) {
278
+ e.cause = abortError;
279
+ }
280
+ });
281
+ throw e;
282
+ }
273
283
  if (typeof result?.Location === "string" && result.Location.includes("%2F")) {
274
284
  result.Location = result.Location.replace(/%2F/g, "/");
275
285
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/lib-storage",
3
- "version": "3.1165.0",
3
+ "version": "3.1167.0",
4
4
  "description": "Storage higher order operation",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/lib/lib-storage",
6
6
  "license": "Apache-2.0",
@@ -51,7 +51,7 @@
51
51
  "test:e2e:watch": "yarn g:vitest watch -c vitest.config.e2e.mts"
52
52
  },
53
53
  "dependencies": {
54
- "@smithy/core": "^3.39.0",
54
+ "@smithy/core": "^3.40.0",
55
55
  "@smithy/types": "^4.20.0",
56
56
  "buffer": "5.6.0",
57
57
  "events": "3.3.0",
@@ -59,7 +59,7 @@
59
59
  "tslib": "^2.6.2"
60
60
  },
61
61
  "devDependencies": {
62
- "@aws-sdk/client-s3": "3.1165.0",
62
+ "@aws-sdk/client-s3": "3.1167.0",
63
63
  "@tsconfig/recommended": "1.0.1",
64
64
  "@types/node": "^20.14.8",
65
65
  "concurrently": "7.0.0",
@@ -69,7 +69,7 @@
69
69
  "web-streams-polyfill": "3.2.1"
70
70
  },
71
71
  "peerDependencies": {
72
- "@aws-sdk/client-s3": "^3.1165.0"
72
+ "@aws-sdk/client-s3": "^3.1167.0"
73
73
  },
74
74
  "engines": {
75
75
  "node": ">=20.0.0"