@middy/http-json-body-parser 4.2.4 → 4.2.6

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 (3) hide show
  1. package/index.cjs +1 -1
  2. package/index.js +1 -1
  3. package/package.json +8 -4
package/index.cjs CHANGED
@@ -24,7 +24,7 @@ const httpJsonBodyParserMiddleware = (opts = {})=>{
24
24
  if (options.disableContentTypeError) {
25
25
  return;
26
26
  }
27
- throw (0, _util.createError)(415, '@middy/http-json-body-parser Unsupported Media Type', {
27
+ throw (0, _util.createError)(415, 'Unsupported Media Type', {
28
28
  cause: contentType
29
29
  });
30
30
  }
package/index.js CHANGED
@@ -16,7 +16,7 @@ const httpJsonBodyParserMiddleware = (opts = {})=>{
16
16
  if (options.disableContentTypeError) {
17
17
  return;
18
18
  }
19
- throw createError(415, '@middy/http-json-body-parser Unsupported Media Type', {
19
+ throw createError(415, 'Unsupported Media Type', {
20
20
  cause: contentType
21
21
  });
22
22
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@middy/http-json-body-parser",
3
- "version": "4.2.4",
3
+ "version": "4.2.6",
4
4
  "description": "Http JSON body parser middleware for the middy framework",
5
5
  "type": "module",
6
6
  "engines": {
@@ -63,13 +63,17 @@
63
63
  "url": "https://github.com/middyjs/middy/issues"
64
64
  },
65
65
  "homepage": "https://middy.js.org",
66
+ "funding": {
67
+ "type": "github",
68
+ "url": "https://github.com/sponsors/willfarrell"
69
+ },
66
70
  "dependencies": {
67
- "@middy/util": "4.2.4"
71
+ "@middy/util": "4.2.6"
68
72
  },
69
73
  "devDependencies": {
70
- "@middy/core": "4.2.4",
74
+ "@middy/core": "4.2.6",
71
75
  "@types/aws-lambda": "^8.10.101",
72
76
  "type-fest": "^3.0.0"
73
77
  },
74
- "gitHead": "eae83afa502b03cae831c13094d4693885428bd9"
78
+ "gitHead": "8868ba216442cc42321a251712bc90b9147c0a44"
75
79
  }