@forklaunch/hyper-express 1.2.36 → 1.2.38
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
CHANGED
|
@@ -265,6 +265,9 @@ function contentParse(options2) {
|
|
|
265
265
|
contractBody
|
|
266
266
|
);
|
|
267
267
|
if (discriminatedBody != null) {
|
|
268
|
+
if (discriminatedBody.parserType !== "multipart") {
|
|
269
|
+
req._rawBody = await req.buffer();
|
|
270
|
+
}
|
|
268
271
|
switch (discriminatedBody.parserType) {
|
|
269
272
|
case "file":
|
|
270
273
|
req.body = await req.buffer();
|
package/lib/index.mjs
CHANGED
|
@@ -260,6 +260,9 @@ function contentParse(options2) {
|
|
|
260
260
|
contractBody
|
|
261
261
|
);
|
|
262
262
|
if (discriminatedBody != null) {
|
|
263
|
+
if (discriminatedBody.parserType !== "multipart") {
|
|
264
|
+
req._rawBody = await req.buffer();
|
|
265
|
+
}
|
|
263
266
|
switch (discriminatedBody.parserType) {
|
|
264
267
|
case "file":
|
|
265
268
|
req.body = await req.buffer();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contentParse.middleware.d.ts","sourceRoot":"","sources":["../../../src/middleware/contentParse.middleware.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAW,MAAM,gCAAgC,CAAC;AAC5E,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAEtC;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,wBAAgB,YAAY,CAAC,EAAE,SAAS,kBAAkB,EAAE,OAAO,CAAC,EAAE;IACpE,MAAM,CAAC,EAAE,YAAY,CAAC;CACvB,GAAG,iBAAiB,
|
|
1
|
+
{"version":3,"file":"contentParse.middleware.d.ts","sourceRoot":"","sources":["../../../src/middleware/contentParse.middleware.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAW,MAAM,gCAAgC,CAAC;AAC5E,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAEtC;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,wBAAgB,YAAY,CAAC,EAAE,SAAS,kBAAkB,EAAE,OAAO,CAAC,EAAE;IACpE,MAAM,CAAC,EAAE,YAAY,CAAC;CACvB,GAAG,iBAAiB,CAwEpB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forklaunch/hyper-express",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.38",
|
|
4
4
|
"description": "Forklaunch framework for hyper-express.",
|
|
5
5
|
"homepage": "https://github.com/forklaunch/forklaunch-js#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -20,10 +20,7 @@
|
|
|
20
20
|
"default": "./lib/index.js"
|
|
21
21
|
},
|
|
22
22
|
"./*": {
|
|
23
|
-
"types": "./lib/*.d.ts"
|
|
24
|
-
"import": "./lib/*.mjs",
|
|
25
|
-
"require": "./lib/*.js",
|
|
26
|
-
"default": "./lib/*.js"
|
|
23
|
+
"types": "./lib/*.d.ts"
|
|
27
24
|
}
|
|
28
25
|
},
|
|
29
26
|
"types": "lib/index.d.ts",
|
|
@@ -40,10 +37,10 @@
|
|
|
40
37
|
"swagger-ui-dist": "^5.32.11",
|
|
41
38
|
"swagger-ui-express": "^5.0.1",
|
|
42
39
|
"uWebSockets.js": "github:uNetworking/uWebSockets.js#v20.52.0",
|
|
43
|
-
"@forklaunch/common": "^1.2.
|
|
44
|
-
"@forklaunch/core": "^1.5.
|
|
45
|
-
"@forklaunch/
|
|
46
|
-
"@forklaunch/
|
|
40
|
+
"@forklaunch/common": "^1.2.22",
|
|
41
|
+
"@forklaunch/core": "^1.5.11",
|
|
42
|
+
"@forklaunch/validator": "^1.2.23",
|
|
43
|
+
"@forklaunch/ws": "^1.2.37"
|
|
47
44
|
},
|
|
48
45
|
"devDependencies": {
|
|
49
46
|
"@eslint/js": "^10.0.1",
|