@aws-sdk/lib-storage 3.1040.0 → 3.1042.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
@@ -220,7 +220,7 @@ class Upload extends events.EventEmitter {
220
220
  this.bytesUploadedSoFar = 0;
221
221
  this.abortController = options.abortController ?? new AbortController();
222
222
  this.partSize =
223
- options.partSize || Math.max(Upload.MIN_PART_SIZE, Math.floor((this.totalBytes || 0) / this.MAX_PARTS));
223
+ options.partSize || Math.max(Upload.MIN_PART_SIZE, Math.ceil((this.totalBytes || 0) / this.MAX_PARTS));
224
224
  if (this.totalBytes !== undefined) {
225
225
  this.expectedPartsCount = Math.ceil(this.totalBytes / this.partSize);
226
226
  }
package/dist-es/Upload.js CHANGED
@@ -44,7 +44,7 @@ export class Upload extends EventEmitter {
44
44
  this.bytesUploadedSoFar = 0;
45
45
  this.abortController = options.abortController ?? new AbortController();
46
46
  this.partSize =
47
- options.partSize || Math.max(Upload.MIN_PART_SIZE, Math.floor((this.totalBytes || 0) / this.MAX_PARTS));
47
+ options.partSize || Math.max(Upload.MIN_PART_SIZE, Math.ceil((this.totalBytes || 0) / this.MAX_PARTS));
48
48
  if (this.totalBytes !== undefined) {
49
49
  this.expectedPartsCount = Math.ceil(this.totalBytes / this.partSize);
50
50
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/lib-storage",
3
- "version": "3.1040.0",
3
+ "version": "3.1042.0",
4
4
  "description": "Storage higher order operation",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -40,10 +40,10 @@
40
40
  "tslib": "^2.6.2"
41
41
  },
42
42
  "peerDependencies": {
43
- "@aws-sdk/client-s3": "^3.1040.0"
43
+ "@aws-sdk/client-s3": "^3.1042.0"
44
44
  },
45
45
  "devDependencies": {
46
- "@aws-sdk/client-s3": "3.1040.0",
46
+ "@aws-sdk/client-s3": "3.1042.0",
47
47
  "@tsconfig/recommended": "1.0.1",
48
48
  "@types/node": "^20.14.8",
49
49
  "concurrently": "7.0.0",