@ruiapp/rapid-core 0.1.1 → 0.1.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.
@@ -11,7 +11,6 @@ export declare class RapidRequest {
11
11
  method: string;
12
12
  url: URL;
13
13
  headers: Headers;
14
- hasBody: boolean;
15
14
  constructor(req: Request);
16
15
  parseBody(): Promise<void>;
17
16
  get rawRequest(): Request;
package/dist/index.js CHANGED
@@ -2948,7 +2948,6 @@ class RapidRequest {
2948
2948
  method;
2949
2949
  url;
2950
2950
  headers;
2951
- hasBody;
2952
2951
  constructor(req) {
2953
2952
  this.#raw = req;
2954
2953
  this.method = req.method;
@@ -2984,7 +2983,9 @@ class RapidRequest {
2984
2983
  };
2985
2984
  }
2986
2985
  }
2987
- this.#body = null;
2986
+ else {
2987
+ this.#body = null;
2988
+ }
2988
2989
  this.#bodyParsed = true;
2989
2990
  }
2990
2991
  get rawRequest() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ruiapp/rapid-core",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "keywords": [],
@@ -14,7 +14,6 @@ export class RapidRequest {
14
14
  method: string;
15
15
  url: URL;
16
16
  headers: Headers;
17
- hasBody: boolean;
18
17
 
19
18
  constructor(req: Request) {
20
19
  this.#raw = req;
@@ -50,8 +49,9 @@ export class RapidRequest {
50
49
  value: await req.formData(),
51
50
  }
52
51
  }
52
+ } else {
53
+ this.#body = null;
53
54
  }
54
- this.#body = null;
55
55
  this.#bodyParsed = true;
56
56
  }
57
57