@forklaunch/hyper-express 1.2.37 → 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,CA+DpB"}
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.37",
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": {
@@ -38,8 +38,8 @@
38
38
  "swagger-ui-express": "^5.0.1",
39
39
  "uWebSockets.js": "github:uNetworking/uWebSockets.js#v20.52.0",
40
40
  "@forklaunch/common": "^1.2.22",
41
+ "@forklaunch/core": "^1.5.11",
41
42
  "@forklaunch/validator": "^1.2.23",
42
- "@forklaunch/core": "^1.5.9",
43
43
  "@forklaunch/ws": "^1.2.37"
44
44
  },
45
45
  "devDependencies": {