@middy/http-content-negotiation 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
@@ -101,10 +101,10 @@ const handler = middy((event, context) => {
101
101
  body = message
102
102
  }
103
103
 
104
- return cb(null, {
104
+ return {
105
105
  statusCode: 200,
106
106
  body
107
- })
107
+ }
108
108
  })
109
109
 
110
110
  handler
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@middy/http-content-negotiation",
3
- "version": "2.5.0",
3
+ "version": "2.5.4",
4
4
  "description": "Http content negotiation middleware for the middy framework",
5
5
  "type": "commonjs",
6
6
  "engines": {
@@ -46,12 +46,12 @@
46
46
  },
47
47
  "homepage": "https://github.com/middyjs/middy#readme",
48
48
  "dependencies": {
49
- "@middy/util": "^2.5.0",
49
+ "@middy/util": "^2.5.4",
50
50
  "negotiator": "0.6.2"
51
51
  },
52
52
  "devDependencies": {
53
- "@middy/core": "^2.5.0",
53
+ "@middy/core": "^2.5.4",
54
54
  "http-errors": "^1.8.0"
55
55
  },
56
- "gitHead": "76d2bc02b48a4bbd054904538f5c4798ba3c4f7f"
56
+ "gitHead": "a4134a579c757a9fdfed3006877ba2c0ec8a2cfa"
57
57
  }