Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@middy/http-error-handler

Package Overview
Dependencies
Maintainers
3
Versions
224
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@middy/http-error-handler - npm Package Compare versions

Comparing version 5.0.2 to 5.0.3

2

index.js

@@ -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 = {

8

package.json
{
"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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc