@aws-sdk/middleware-sdk-s3 3.629.0 → 3.635.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
|
@@ -537,6 +537,10 @@ var throw200ExceptionsMiddleware = /* @__PURE__ */ __name((config) => (next, con
|
|
|
537
537
|
if (statusCode < 200 || statusCode >= 300) {
|
|
538
538
|
return result;
|
|
539
539
|
}
|
|
540
|
+
const isSplittableStream = typeof (sourceBody == null ? void 0 : sourceBody.stream) === "function" || typeof (sourceBody == null ? void 0 : sourceBody.pipe) === "function" || typeof (sourceBody == null ? void 0 : sourceBody.tee) === "function";
|
|
541
|
+
if (!isSplittableStream) {
|
|
542
|
+
return result;
|
|
543
|
+
}
|
|
540
544
|
let bodyCopy = sourceBody;
|
|
541
545
|
let body = sourceBody;
|
|
542
546
|
if (sourceBody && typeof sourceBody === "object" && !(sourceBody instanceof Uint8Array)) {
|
|
@@ -16,6 +16,12 @@ export const throw200ExceptionsMiddleware = (config) => (next, context) => async
|
|
|
16
16
|
if (statusCode < 200 || statusCode >= 300) {
|
|
17
17
|
return result;
|
|
18
18
|
}
|
|
19
|
+
const isSplittableStream = typeof sourceBody?.stream === "function" ||
|
|
20
|
+
typeof sourceBody?.pipe === "function" ||
|
|
21
|
+
typeof sourceBody?.tee === "function";
|
|
22
|
+
if (!isSplittableStream) {
|
|
23
|
+
return result;
|
|
24
|
+
}
|
|
19
25
|
let bodyCopy = sourceBody;
|
|
20
26
|
let body = sourceBody;
|
|
21
27
|
if (sourceBody && typeof sourceBody === "object" && !(sourceBody instanceof Uint8Array)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/middleware-sdk-s3",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.635.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
6
6
|
"build:cjs": "node ../../scripts/compilation/inline middleware-sdk-s3",
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
},
|
|
24
24
|
"license": "Apache-2.0",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@aws-sdk/core": "3.
|
|
26
|
+
"@aws-sdk/core": "3.635.0",
|
|
27
27
|
"@aws-sdk/types": "3.609.0",
|
|
28
28
|
"@aws-sdk/util-arn-parser": "3.568.0",
|
|
29
|
-
"@smithy/core": "^2.
|
|
29
|
+
"@smithy/core": "^2.4.0",
|
|
30
30
|
"@smithy/node-config-provider": "^3.1.4",
|
|
31
31
|
"@smithy/protocol-http": "^4.1.0",
|
|
32
32
|
"@smithy/signature-v4": "^4.1.0",
|
|
33
|
-
"@smithy/smithy-client": "^3.
|
|
33
|
+
"@smithy/smithy-client": "^3.2.0",
|
|
34
34
|
"@smithy/types": "^3.3.0",
|
|
35
35
|
"@smithy/util-config-provider": "^3.0.0",
|
|
36
36
|
"@smithy/util-middleware": "^3.0.3",
|