@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.
- package/dist/core/request.d.ts +0 -1
- package/dist/index.js +3 -2
- package/package.json +1 -1
- package/src/core/request.ts +2 -2
package/dist/core/request.d.ts
CHANGED
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
|
-
|
|
2986
|
+
else {
|
|
2987
|
+
this.#body = null;
|
|
2988
|
+
}
|
|
2988
2989
|
this.#bodyParsed = true;
|
|
2989
2990
|
}
|
|
2990
2991
|
get rawRequest() {
|
package/package.json
CHANGED
package/src/core/request.ts
CHANGED
|
@@ -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
|
|