@middy/http-json-body-parser 4.0.0-alpha.4 → 4.0.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.
Files changed (3) hide show
  1. package/index.cjs +1 -1
  2. package/index.js +1 -1
  3. package/package.json +4 -4
package/index.cjs CHANGED
@@ -7,7 +7,7 @@ Object.defineProperty(module, "exports", {
7
7
  get: ()=>_default
8
8
  });
9
9
  const _util = require("@middy/util");
10
- const mimePattern = /^application\/(.+\+)?json(;.*)?$/;
10
+ const mimePattern = /^application\/(.+\+)?json($|;.+)/;
11
11
  const defaults = {
12
12
  reviver: undefined
13
13
  };
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { createError } from '@middy/util';
2
- const mimePattern = /^application\/(.+\+)?json(;.*)?$/;
2
+ const mimePattern = /^application\/(.+\+)?json($|;.+)/;
3
3
  const defaults = {
4
4
  reviver: undefined
5
5
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@middy/http-json-body-parser",
3
- "version": "4.0.0-alpha.4",
3
+ "version": "4.0.0",
4
4
  "description": "Http JSON body parser middleware for the middy framework",
5
5
  "type": "module",
6
6
  "engines": {
@@ -64,12 +64,12 @@
64
64
  },
65
65
  "homepage": "https://middy.js.org",
66
66
  "dependencies": {
67
- "@middy/util": "4.0.0-alpha.4"
67
+ "@middy/util": "4.0.0"
68
68
  },
69
69
  "devDependencies": {
70
- "@middy/core": "4.0.0-alpha.4",
70
+ "@middy/core": "4.0.0",
71
71
  "@types/aws-lambda": "^8.10.101",
72
72
  "type-fest": "^3.0.0"
73
73
  },
74
- "gitHead": "cbf2af8e31dab58ed28d26143cd77cca544657ae"
74
+ "gitHead": "582286144bcd79968a8c7c2f8867a23c80079a47"
75
75
  }