@middy/http-error-handler
Advanced tools
Comparing version 4.6.1 to 4.6.2
@@ -16,5 +16,7 @@ import { jsonSafeParse, normalizeHttpResponse } from '@middy/util'; | ||
} | ||
// Set default expose value, only passes in when there is an override | ||
if (request.error.statusCode && request.error.expose === undefined) { | ||
request.error.expose = request.error.statusCode < 500; | ||
} | ||
// Non-http error OR expose set to false | ||
if (options.fallbackMessage && (!request.error.statusCode || !request.error.expose)) { | ||
@@ -21,0 +23,0 @@ request.error = { |
{ | ||
"name": "@middy/http-error-handler", | ||
"version": "4.6.1", | ||
"version": "4.6.2", | ||
"description": "Http error handler middleware for the middy framework", | ||
@@ -70,10 +70,10 @@ "type": "module", | ||
"dependencies": { | ||
"@middy/util": "4.6.1" | ||
"@middy/util": "4.6.2" | ||
}, | ||
"devDependencies": { | ||
"@middy/core": "4.6.1", | ||
"@middy/core": "4.6.2", | ||
"@types/http-errors": "^2.0.0", | ||
"@types/node": "^20.0.0" | ||
}, | ||
"gitHead": "253ed0e4ca95623decbade03938a07d837a1eba2" | ||
"gitHead": "8b03a01abf5a9c08231ec5ced775e87f8be8f67d" | ||
} |
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
11543
168
+ Added@middy/util@4.6.2(transitive)
- Removed@middy/util@4.6.1(transitive)
Updated@middy/util@4.6.2