@middy/http-response-serializer 4.4.2 → 4.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -19,8 +19,9 @@
19
19
  <a href="https://snyk.io/test/github/middyjs/middy">
20
20
  <img src="https://snyk.io/test/github/middyjs/middy/badge.svg" alt="Known Vulnerabilities" data-canonical-src="https://snyk.io/test/github/middyjs/middy" style="max-width:100%;">
21
21
  </a>
22
- <a href="https://lgtm.com/projects/g/middyjs/middy/context:javascript">
23
- <img src="https://img.shields.io/lgtm/grade/javascript/g/middyjs/middy.svg?logo=lgtm&logoWidth=18" alt="Language grade: JavaScript" style="max-width:100%;">
22
+ <a href="https://github.com/middyjs/middy/actions/workflows/sast.yml">
23
+ <img src="https://github.com/middyjs/middy/actions/workflows/sast.yml/badge.svg
24
+ ?branch=main&event=push" alt="CodeQL" style="max-width:100%;">
24
25
  </a>
25
26
  <a href="https://bestpractices.coreinfrastructure.org/projects/5280">
26
27
  <img src="https://bestpractices.coreinfrastructure.org/projects/5280/badge" alt="Core Infrastructure Initiative (CII) Best Practices" style="max-width:100%;">
package/index.cjs CHANGED
@@ -63,7 +63,7 @@ const httpResponseSerializerMiddleware = (opts = {})=>{
63
63
  };
64
64
  const httpResponseSerializerMiddlewareOnError = async (request)=>{
65
65
  if (request.response === undefined) return;
66
- return httpResponseSerializerMiddlewareAfter(request);
66
+ httpResponseSerializerMiddlewareAfter(request);
67
67
  };
68
68
  return {
69
69
  after: httpResponseSerializerMiddlewareAfter,
package/index.js CHANGED
@@ -48,7 +48,7 @@ const httpResponseSerializerMiddleware = (opts = {})=>{
48
48
  };
49
49
  const httpResponseSerializerMiddlewareOnError = async (request)=>{
50
50
  if (request.response === undefined) return;
51
- return httpResponseSerializerMiddlewareAfter(request);
51
+ httpResponseSerializerMiddlewareAfter(request);
52
52
  };
53
53
  return {
54
54
  after: httpResponseSerializerMiddlewareAfter,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@middy/http-response-serializer",
3
- "version": "4.4.2",
3
+ "version": "4.5.0",
4
4
  "description": "The Http Serializer middleware lets you define serialization mechanisms based on the current content negotiation.",
5
5
  "type": "module",
6
6
  "engines": {
@@ -70,10 +70,10 @@
70
70
  },
71
71
  "dependencies": {
72
72
  "@hapi/accept": "6.0.1",
73
- "@middy/util": "4.4.2"
73
+ "@middy/util": "4.5.0"
74
74
  },
75
75
  "devDependencies": {
76
- "@middy/core": "4.4.2"
76
+ "@middy/core": "4.5.0"
77
77
  },
78
- "gitHead": "8984cc31d8b14abbe36387d98388d5481c78cadd"
78
+ "gitHead": "200d1cd90c6e0bd25bb96c525cdebd1a74d813a6"
79
79
  }