@middy/s3-object-response 3.0.0-alpha.5 → 3.0.0-alpha.6
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/index.js +1 -3
- package/package.json +4 -4
package/index.js
CHANGED
|
@@ -20,7 +20,7 @@ const s3ObjectResponseMiddleware = (opts = {}) => {
|
|
|
20
20
|
};
|
|
21
21
|
|
|
22
22
|
if (!['stream', 'promise'].includes(options.bodyType)) {
|
|
23
|
-
throw new Error('bodyType is invalid
|
|
23
|
+
throw new Error('[s3-object-response] bodyType is invalid');
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
if (options.httpsCapture) {
|
|
@@ -81,8 +81,6 @@ const fetchType = (type, fetchOptions) => {
|
|
|
81
81
|
} else if (type === 'promise') {
|
|
82
82
|
return fetchPromise(fetchOptions);
|
|
83
83
|
}
|
|
84
|
-
|
|
85
|
-
return null;
|
|
86
84
|
};
|
|
87
85
|
|
|
88
86
|
const fetchStream = fetchOptions => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@middy/s3-object-response",
|
|
3
|
-
"version": "3.0.0-alpha.
|
|
3
|
+
"version": "3.0.0-alpha.6",
|
|
4
4
|
"description": "S3 object response handling middleware for the middy framework",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -48,12 +48,12 @@
|
|
|
48
48
|
},
|
|
49
49
|
"homepage": "https://github.com/middyjs/middy#readme",
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@middy/util": "^3.0.0-alpha.
|
|
51
|
+
"@middy/util": "^3.0.0-alpha.6"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@middy/core": "^3.0.0-alpha.
|
|
54
|
+
"@middy/core": "^3.0.0-alpha.6",
|
|
55
55
|
"aws-sdk": "^2.939.0",
|
|
56
56
|
"aws-xray-sdk": "^3.3.3"
|
|
57
57
|
},
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "176660ed3e0716d6bfb635c77251b301e0e24720"
|
|
59
59
|
}
|