minimalistic-server 0.0.23 → 0.0.24
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/index.mjs +17 -0
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -752,6 +752,14 @@ export class UploadedFile {
|
|
|
752
752
|
getFileName() {
|
|
753
753
|
return this.#fileName;
|
|
754
754
|
}
|
|
755
|
+
|
|
756
|
+
toJSON() {
|
|
757
|
+
return {
|
|
758
|
+
content: this.#content,
|
|
759
|
+
contentType: this.#contentType,
|
|
760
|
+
fileName: this.#fileName,
|
|
761
|
+
};
|
|
762
|
+
}
|
|
755
763
|
}
|
|
756
764
|
|
|
757
765
|
export class Request {
|
|
@@ -1083,6 +1091,15 @@ export class Request {
|
|
|
1083
1091
|
getCustomData() {
|
|
1084
1092
|
return this.#customData;
|
|
1085
1093
|
}
|
|
1094
|
+
|
|
1095
|
+
toJSON() {
|
|
1096
|
+
return {
|
|
1097
|
+
method: this.#method,
|
|
1098
|
+
headers: this.#headers,
|
|
1099
|
+
path: this.#path,
|
|
1100
|
+
queryParams: this.#queryParams,
|
|
1101
|
+
};
|
|
1102
|
+
}
|
|
1086
1103
|
}
|
|
1087
1104
|
|
|
1088
1105
|
export class Response {
|