@wooksjs/http-body 0.2.8 → 0.2.10

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.
package/README.md CHANGED
@@ -61,4 +61,8 @@ app.post('test', async () => {
61
61
  // after `await parseBody()` the body was loaded and parsed
62
62
  // ...
63
63
  })
64
- ```
64
+ ```
65
+
66
+ ## Documentation
67
+
68
+ To check out docs, visit [wooksjs.org](https://wooksjs.org/).
package/dist/index.cjs CHANGED
@@ -107,7 +107,7 @@ function useBody() {
107
107
  return v;
108
108
  }
109
109
  function formDataParser(v) {
110
- const boundary = '--' + (/boundary=([^;]+)(?:;|$)/.exec(contentType || '') || [, ''])[1];
110
+ const boundary = '--' + ((/boundary=([^;]+)(?:;|$)/.exec(contentType || '') || [, ''])[1]);
111
111
  if (!boundary)
112
112
  throw new eventHttp.HttpError(eventHttp.EHttpStatusCode.BadRequest, 'form-data boundary not recognized');
113
113
  const parts = v.trim().split(boundary);
package/dist/index.mjs CHANGED
@@ -105,7 +105,7 @@ function useBody() {
105
105
  return v;
106
106
  }
107
107
  function formDataParser(v) {
108
- const boundary = '--' + (/boundary=([^;]+)(?:;|$)/.exec(contentType || '') || [, ''])[1];
108
+ const boundary = '--' + ((/boundary=([^;]+)(?:;|$)/.exec(contentType || '') || [, ''])[1]);
109
109
  if (!boundary)
110
110
  throw new HttpError(EHttpStatusCode.BadRequest, 'form-data boundary not recognized');
111
111
  const parts = v.trim().split(boundary);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wooksjs/http-body",
3
- "version": "0.2.8",
3
+ "version": "0.2.10",
4
4
  "description": "@wooksjs/http-body",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",
@@ -31,7 +31,7 @@
31
31
  "url": "https://github.com/wooksjs/wooksjs/issues"
32
32
  },
33
33
  "peerDependencies": {
34
- "@wooksjs/event-http": "0.2.8"
34
+ "@wooksjs/event-http": "0.2.10"
35
35
  },
36
36
  "homepage": "https://github.com/wooksjs/wooksjs/tree/main/packages/http-body#readme"
37
37
  }