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 4.6.1 to 4.6.2

2

index.js

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

8

package.json
{
"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

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