@middy/http-response-serializer
Advanced tools
Comparing version 4.6.5 to 4.6.6
@@ -25,3 +25,3 @@ import { normalizeHttpResponse } from '@middy/util'; | ||
} else { | ||
const acceptHeader = request.event.headers.Accept ?? request.event.headers.accept; | ||
const acceptHeader = request.event.headers?.Accept ?? request.event.headers?.accept; | ||
types = [ | ||
@@ -28,0 +28,0 @@ ...(acceptHeader && Accept.mediaTypes(acceptHeader)) ?? [], |
{ | ||
"name": "@middy/http-response-serializer", | ||
"version": "4.6.5", | ||
"version": "4.6.6", | ||
"description": "The Http Serializer middleware lets you define serialization mechanisms based on the current content negotiation.", | ||
@@ -72,9 +72,9 @@ "type": "module", | ||
"dependencies": { | ||
"@hapi/accept": "6.0.2", | ||
"@middy/util": "4.6.5" | ||
"@hapi/accept": "6.0.3", | ||
"@middy/util": "4.6.6" | ||
}, | ||
"devDependencies": { | ||
"@middy/core": "4.6.5" | ||
"@middy/core": "4.6.6" | ||
}, | ||
"gitHead": "573d7b0bb243d8c5a9bcb00cf29d031aa7a0c606" | ||
"gitHead": "9784bfe6b02db56b3893e2117de33804358a3932" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13775
+ Added@hapi/accept@6.0.3(transitive)
+ Added@middy/util@4.6.6(transitive)
- Removed@hapi/accept@6.0.2(transitive)
- Removed@middy/util@4.6.5(transitive)
Updated@hapi/accept@6.0.3
Updated@middy/util@4.6.6