@middy/http-multipart-body-parser 4.5.0 → 4.5.2

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 +2 -2
  2. package/index.js +2 -2
  3. package/package.json +4 -4
package/index.cjs CHANGED
@@ -28,7 +28,7 @@ const httpMultipartBodyParserMiddleware = (opts = {})=>{
28
28
  ...opts
29
29
  };
30
30
  const httpMultipartBodyParserMiddlewareBefore = async (request)=>{
31
- const { headers } = request.event;
31
+ const { headers } = request.event;
32
32
  const contentType = headers['Content-Type'] ?? headers['content-type'];
33
33
  if (!mimePattern.test(contentType)) {
34
34
  if (options.disableContentTypeError) {
@@ -61,7 +61,7 @@ const parseMultipartData = (event, options)=>{
61
61
  });
62
62
  return new Promise((resolve, reject)=>{
63
63
  busboy.on('file', (fieldname, file, info)=>{
64
- const { filename , encoding , mimeType: mimetype } = info;
64
+ const { filename, encoding, mimeType: mimetype } = info;
65
65
  const attachment = {
66
66
  filename,
67
67
  mimetype,
package/index.js CHANGED
@@ -13,7 +13,7 @@ const httpMultipartBodyParserMiddleware = (opts = {})=>{
13
13
  ...opts
14
14
  };
15
15
  const httpMultipartBodyParserMiddlewareBefore = async (request)=>{
16
- const { headers } = request.event;
16
+ const { headers } = request.event;
17
17
  const contentType = headers['Content-Type'] ?? headers['content-type'];
18
18
  if (!mimePattern.test(contentType)) {
19
19
  if (options.disableContentTypeError) {
@@ -46,7 +46,7 @@ const parseMultipartData = (event, options)=>{
46
46
  });
47
47
  return new Promise((resolve, reject)=>{
48
48
  busboy.on('file', (fieldname, file, info)=>{
49
- const { filename , encoding , mimeType: mimetype } = info;
49
+ const { filename, encoding, mimeType: mimetype } = info;
50
50
  const attachment = {
51
51
  filename,
52
52
  mimetype,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@middy/http-multipart-body-parser",
3
- "version": "4.5.0",
3
+ "version": "4.5.2",
4
4
  "description": "Http event normalizer middleware for the middy framework",
5
5
  "type": "module",
6
6
  "engines": {
@@ -66,13 +66,13 @@
66
66
  "url": "https://github.com/sponsors/willfarrell"
67
67
  },
68
68
  "dependencies": {
69
- "@middy/util": "4.5.0",
69
+ "@middy/util": "4.5.2",
70
70
  "busboy": "1.6.0"
71
71
  },
72
72
  "devDependencies": {
73
- "@middy/core": "4.5.0",
73
+ "@middy/core": "4.5.2",
74
74
  "@types/aws-lambda": "^8.10.101",
75
75
  "type-fest": "^3.0.0"
76
76
  },
77
- "gitHead": "200d1cd90c6e0bd25bb96c525cdebd1a74d813a6"
77
+ "gitHead": "ab0fe0f6a6c27b8f2b7b0e6fbde5a7de3b3b00d6"
78
78
  }