@aws-sdk/lib-storage 3.576.0 → 3.578.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
@@ -69,7 +69,7 @@ async function* getChunkStream(data, partSize, getNextData) {
69
69
  for await (const datum of getNextData(data)) {
70
70
  currentBuffer.chunks.push(datum);
71
71
  currentBuffer.length += datum.byteLength;
72
- while (currentBuffer.length >= partSize) {
72
+ while (currentBuffer.length > partSize) {
73
73
  const dataChunk = currentBuffer.chunks.length > 1 ? import_buffer.Buffer.concat(currentBuffer.chunks) : currentBuffer.chunks[0];
74
74
  yield {
75
75
  partNumber,
@@ -5,7 +5,7 @@ export async function* getChunkStream(data, partSize, getNextData) {
5
5
  for await (const datum of getNextData(data)) {
6
6
  currentBuffer.chunks.push(datum);
7
7
  currentBuffer.length += datum.byteLength;
8
- while (currentBuffer.length >= partSize) {
8
+ while (currentBuffer.length > partSize) {
9
9
  const dataChunk = currentBuffer.chunks.length > 1 ? Buffer.concat(currentBuffer.chunks) : currentBuffer.chunks[0];
10
10
  yield {
11
11
  partNumber,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/lib-storage",
3
- "version": "3.576.0",
3
+ "version": "3.578.0",
4
4
  "description": "Storage higher order operation",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -35,10 +35,10 @@
35
35
  "tslib": "^2.6.2"
36
36
  },
37
37
  "peerDependencies": {
38
- "@aws-sdk/client-s3": "^3.576.0"
38
+ "@aws-sdk/client-s3": "^3.577.0"
39
39
  },
40
40
  "devDependencies": {
41
- "@aws-sdk/client-s3": "3.576.0",
41
+ "@aws-sdk/client-s3": "3.577.0",
42
42
  "@smithy/types": "^3.0.0",
43
43
  "@tsconfig/recommended": "1.0.1",
44
44
  "@types/node": "^16.18.96",