@middy/http-response-serializer 5.5.1 → 6.0.0-alpha.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/index.js +4 -11
- package/package.json +7 -4
package/index.js
CHANGED
|
@@ -19,17 +19,10 @@ const httpResponseSerializerMiddleware = (opts = {}) => {
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
// find accept value(s)
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
types = [request.event.requiredContentType]
|
|
27
|
-
} else {
|
|
28
|
-
types = [
|
|
29
|
-
...(request.context.preferredMediaTypes ?? []), // from @middy/http-content-negotiation
|
|
30
|
-
defaultContentType
|
|
31
|
-
]
|
|
32
|
-
}
|
|
22
|
+
const types = [
|
|
23
|
+
...(request.context.preferredMediaTypes ?? []), // from @middy/http-content-negotiation
|
|
24
|
+
defaultContentType
|
|
25
|
+
]
|
|
33
26
|
|
|
34
27
|
for (const type of types) {
|
|
35
28
|
let breakTypes
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@middy/http-response-serializer",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.0-alpha.0",
|
|
4
4
|
"description": "The Http Serializer middleware lets you define serialization mechanisms based on the current content negotiation.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
7
|
-
"node": ">=
|
|
7
|
+
"node": ">=20"
|
|
8
8
|
},
|
|
9
9
|
"engineStrict": true,
|
|
10
10
|
"publishConfig": {
|
|
@@ -16,6 +16,9 @@
|
|
|
16
16
|
"import": {
|
|
17
17
|
"types": "./index.d.ts",
|
|
18
18
|
"default": "./index.js"
|
|
19
|
+
},
|
|
20
|
+
"require": {
|
|
21
|
+
"default": "./index.js"
|
|
19
22
|
}
|
|
20
23
|
}
|
|
21
24
|
},
|
|
@@ -63,10 +66,10 @@
|
|
|
63
66
|
"url": "https://github.com/sponsors/willfarrell"
|
|
64
67
|
},
|
|
65
68
|
"dependencies": {
|
|
66
|
-
"@middy/util": "
|
|
69
|
+
"@middy/util": "6.0.0-alpha.0"
|
|
67
70
|
},
|
|
68
71
|
"devDependencies": {
|
|
69
|
-
"@middy/core": "
|
|
72
|
+
"@middy/core": "6.0.0-alpha.0"
|
|
70
73
|
},
|
|
71
74
|
"gitHead": "7a6c0fbb8ab71d6a2171e678697de9f237568431"
|
|
72
75
|
}
|