@forklaunch/express 0.8.3 → 0.8.4
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/lib/index.js +2 -5
- package/lib/index.mjs +2 -5
- package/package.json +5 -5
package/lib/index.js
CHANGED
@@ -1956,9 +1956,6 @@ function contentParse(options2) {
|
|
1956
1956
|
if (err) {
|
1957
1957
|
return next(err);
|
1958
1958
|
}
|
1959
|
-
if (req.body instanceof Buffer) {
|
1960
|
-
req.body = req.body.toString("utf-8");
|
1961
|
-
}
|
1962
1959
|
next();
|
1963
1960
|
});
|
1964
1961
|
case "multipart": {
|
@@ -1973,8 +1970,8 @@ function contentParse(options2) {
|
|
1973
1970
|
chunks.push(chunk);
|
1974
1971
|
});
|
1975
1972
|
file.on("end", () => {
|
1976
|
-
const
|
1977
|
-
body[fieldname] =
|
1973
|
+
const fileBuffer = Buffer.concat(chunks);
|
1974
|
+
body[fieldname] = fileBuffer;
|
1978
1975
|
});
|
1979
1976
|
});
|
1980
1977
|
bb.on("field", (fieldname, value) => {
|
package/lib/index.mjs
CHANGED
@@ -1927,9 +1927,6 @@ function contentParse(options2) {
|
|
1927
1927
|
if (err) {
|
1928
1928
|
return next(err);
|
1929
1929
|
}
|
1930
|
-
if (req.body instanceof Buffer) {
|
1931
|
-
req.body = req.body.toString("utf-8");
|
1932
|
-
}
|
1933
1930
|
next();
|
1934
1931
|
});
|
1935
1932
|
case "multipart": {
|
@@ -1944,8 +1941,8 @@ function contentParse(options2) {
|
|
1944
1941
|
chunks.push(chunk);
|
1945
1942
|
});
|
1946
1943
|
file.on("end", () => {
|
1947
|
-
const
|
1948
|
-
body[fieldname] =
|
1944
|
+
const fileBuffer = Buffer.concat(chunks);
|
1945
|
+
body[fieldname] = fileBuffer;
|
1949
1946
|
});
|
1950
1947
|
});
|
1951
1948
|
bb.on("field", (fieldname, value) => {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@forklaunch/express",
|
3
|
-
"version": "0.8.
|
3
|
+
"version": "0.8.4",
|
4
4
|
"description": "Forklaunch framework for express.",
|
5
5
|
"homepage": "https://github.com/forklaunch/forklaunch-js#readme",
|
6
6
|
"bugs": {
|
@@ -37,9 +37,9 @@
|
|
37
37
|
"qs": "^6.14.0",
|
38
38
|
"range-parser": "^1.2.1",
|
39
39
|
"swagger-ui-express": "^5.0.1",
|
40
|
-
"@forklaunch/common": "0.5.
|
41
|
-
"@forklaunch/core": "0.13.
|
42
|
-
"@forklaunch/validator": "0.9.
|
40
|
+
"@forklaunch/common": "0.5.3",
|
41
|
+
"@forklaunch/core": "0.13.4",
|
42
|
+
"@forklaunch/validator": "0.9.4"
|
43
43
|
},
|
44
44
|
"devDependencies": {
|
45
45
|
"@eslint/js": "^9.34.0",
|
@@ -53,7 +53,7 @@
|
|
53
53
|
"@types/qs": "^6.14.0",
|
54
54
|
"@types/range-parser": "^1.2.7",
|
55
55
|
"@types/swagger-ui-express": "^4.1.8",
|
56
|
-
"@typescript/native-preview": "7.0.0-dev.
|
56
|
+
"@typescript/native-preview": "7.0.0-dev.20250824.1",
|
57
57
|
"jest": "^30.0.5",
|
58
58
|
"kill-port-process": "^3.2.1",
|
59
59
|
"prettier": "^3.6.2",
|