@middy/http-response-serializer 2.5.0 → 2.5.4

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.
Files changed (2) hide show
  1. package/README.md +2 -2
  2. package/package.json +4 -4
package/README.md CHANGED
@@ -98,10 +98,10 @@ import httpResponseSerializer from '@middy/http-response-serializer'
98
98
  const handler = middy((event, context) => {
99
99
  const body = 'Hello World'
100
100
 
101
- return cb(null, {
101
+ return {
102
102
  statusCode: 200,
103
103
  body
104
- })
104
+ }
105
105
  })
106
106
 
107
107
  handler
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@middy/http-response-serializer",
3
- "version": "2.5.0",
3
+ "version": "2.5.4",
4
4
  "description": "The Http Serializer middleware lets you define serialization mechanisms based on the current content negotiation.",
5
5
  "type": "commonjs",
6
6
  "engines": {
@@ -50,11 +50,11 @@
50
50
  "homepage": "https://github.com/middyjs/middy#readme",
51
51
  "dependencies": {
52
52
  "@hapi/accept": "5.0.2",
53
- "@middy/util": "^2.5.0"
53
+ "@middy/util": "^2.5.4"
54
54
  },
55
55
  "devDependencies": {
56
- "@middy/core": "^2.5.0",
56
+ "@middy/core": "^2.5.4",
57
57
  "http-errors": "^1.8.0"
58
58
  },
59
- "gitHead": "76d2bc02b48a4bbd054904538f5c4798ba3c4f7f"
59
+ "gitHead": "a4134a579c757a9fdfed3006877ba2c0ec8a2cfa"
60
60
  }