@forklaunch/hyper-express 0.11.4 → 0.11.6
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 +4 -3
- package/lib/index.mjs +4 -3
- package/package.json +12 -12
package/lib/index.js
CHANGED
|
@@ -274,11 +274,12 @@ function contentParse(options2) {
|
|
|
274
274
|
const body = {};
|
|
275
275
|
await req.multipart(options2?.busboy ?? {}, async (field) => {
|
|
276
276
|
if (field.file) {
|
|
277
|
-
|
|
277
|
+
const chunks = [];
|
|
278
278
|
for await (const chunk of field.file.stream) {
|
|
279
|
-
|
|
279
|
+
const buf = Buffer.isBuffer(chunk) ? chunk : Buffer.from(chunk);
|
|
280
|
+
chunks.push(new Uint8Array(buf.buffer, buf.byteOffset, buf.byteLength));
|
|
280
281
|
}
|
|
281
|
-
const fileBuffer = Buffer.
|
|
282
|
+
const fileBuffer = Buffer.concat(chunks);
|
|
282
283
|
body[field.name] = fileBuffer;
|
|
283
284
|
} else {
|
|
284
285
|
body[field.name] = field.value;
|
package/lib/index.mjs
CHANGED
|
@@ -269,11 +269,12 @@ function contentParse(options2) {
|
|
|
269
269
|
const body = {};
|
|
270
270
|
await req.multipart(options2?.busboy ?? {}, async (field) => {
|
|
271
271
|
if (field.file) {
|
|
272
|
-
|
|
272
|
+
const chunks = [];
|
|
273
273
|
for await (const chunk of field.file.stream) {
|
|
274
|
-
|
|
274
|
+
const buf = Buffer.isBuffer(chunk) ? chunk : Buffer.from(chunk);
|
|
275
|
+
chunks.push(new Uint8Array(buf.buffer, buf.byteOffset, buf.byteLength));
|
|
275
276
|
}
|
|
276
|
-
const fileBuffer = Buffer.
|
|
277
|
+
const fileBuffer = Buffer.concat(chunks);
|
|
277
278
|
body[field.name] = fileBuffer;
|
|
278
279
|
} else {
|
|
279
280
|
body[field.name] = field.value;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forklaunch/hyper-express",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.6",
|
|
4
4
|
"description": "Forklaunch framework for hyper-express.",
|
|
5
5
|
"homepage": "https://github.com/forklaunch/forklaunch-js#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -26,28 +26,28 @@
|
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@forklaunch/hyper-express-fork": "^6.17.35",
|
|
29
|
-
"@scalar/express-api-reference": "^0.8.
|
|
29
|
+
"@scalar/express-api-reference": "^0.8.44",
|
|
30
30
|
"cors": "^2.8.6",
|
|
31
31
|
"live-directory": "^3.0.3",
|
|
32
32
|
"openapi3-ts": "^4.5.0",
|
|
33
|
-
"qs": "^6.
|
|
34
|
-
"swagger-ui-dist": "^5.31.
|
|
33
|
+
"qs": "^6.15.0",
|
|
34
|
+
"swagger-ui-dist": "^5.31.2",
|
|
35
35
|
"swagger-ui-express": "^5.0.1",
|
|
36
36
|
"uWebSockets.js": "github:uNetworking/uWebSockets.js#v20.52.0",
|
|
37
|
-
"@forklaunch/common": "0.6.
|
|
38
|
-
"@forklaunch/
|
|
39
|
-
"@forklaunch/
|
|
40
|
-
"@forklaunch/
|
|
37
|
+
"@forklaunch/common": "0.6.29",
|
|
38
|
+
"@forklaunch/validator": "0.10.29",
|
|
39
|
+
"@forklaunch/ws": "0.2.0",
|
|
40
|
+
"@forklaunch/core": "0.18.2"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@eslint/js": "^
|
|
43
|
+
"@eslint/js": "^10.0.1",
|
|
44
44
|
"@types/busboy": "^1.5.4",
|
|
45
45
|
"@types/cors": "^2.8.19",
|
|
46
46
|
"@types/jest": "^30.0.0",
|
|
47
47
|
"@types/qs": "^6.14.0",
|
|
48
48
|
"@types/swagger-ui-dist": "^3.30.6",
|
|
49
49
|
"@types/swagger-ui-express": "^4.1.8",
|
|
50
|
-
"@typescript/native-preview": "7.0.0-dev.
|
|
50
|
+
"@typescript/native-preview": "7.0.0-dev.20260223.1",
|
|
51
51
|
"jest": "^30.2.0",
|
|
52
52
|
"kill-port-process": "^3.2.1",
|
|
53
53
|
"prettier": "^3.8.1",
|
|
@@ -55,9 +55,9 @@
|
|
|
55
55
|
"ts-node": "^10.9.2",
|
|
56
56
|
"tsup": "^8.5.1",
|
|
57
57
|
"tsx": "^4.21.0",
|
|
58
|
-
"typedoc": "^0.28.
|
|
58
|
+
"typedoc": "^0.28.17",
|
|
59
59
|
"typescript": "^5.9.3",
|
|
60
|
-
"typescript-eslint": "^8.
|
|
60
|
+
"typescript-eslint": "^8.56.1"
|
|
61
61
|
},
|
|
62
62
|
"scripts": {
|
|
63
63
|
"build": "tsgo --noEmit && tsup index.ts --format cjs,esm --no-splitting --dts --tsconfig tsconfig.json --out-dir lib --clean",
|