@middy/http-error-handler
Advanced tools
Comparing version 5.0.2 to 5.0.3
@@ -16,7 +16,5 @@ 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 (!request.error.expose || !request.error.statusCode) { | ||
@@ -23,0 +21,0 @@ request.error = { |
{ | ||
"name": "@middy/http-error-handler", | ||
"version": "5.0.2", | ||
"version": "5.0.3", | ||
"description": "Http error handler middleware for the middy framework", | ||
@@ -64,10 +64,10 @@ "type": "module", | ||
"dependencies": { | ||
"@middy/util": "5.0.2" | ||
"@middy/util": "5.0.3" | ||
}, | ||
"devDependencies": { | ||
"@middy/core": "5.0.2", | ||
"@middy/core": "5.0.3", | ||
"@types/http-errors": "^2.0.0", | ||
"@types/node": "^20.0.0" | ||
}, | ||
"gitHead": "6d17e155237022f2a0abd095ac7cd99ebfc7fc71" | ||
"gitHead": "87660575a7ac2b52e4153c407a4c63c9449dcd0d" | ||
} |
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
7619
55
+ Added@middy/util@5.0.3(transitive)
- Removed@middy/util@5.0.2(transitive)
Updated@middy/util@5.0.3