@compas/server
Advanced tools
Comparing version 0.0.195 to 0.0.196
{ | ||
"name": "@compas/server", | ||
"version": "0.0.195", | ||
"version": "0.0.196", | ||
"description": "Koa server and common middleware", | ||
@@ -18,3 +18,3 @@ "main": "./index.js", | ||
"dependencies": { | ||
"@compas/stdlib": "0.0.195", | ||
"@compas/stdlib": "0.0.196", | ||
"@types/formidable": "2.0.4", | ||
@@ -21,0 +21,0 @@ "@types/koa": "2.13.4", |
@@ -104,2 +104,3 @@ import { AppError } from "@compas/stdlib"; | ||
message: parsingError.message, | ||
// @ts-ignore | ||
@@ -162,3 +163,7 @@ rawBody: parsingError.body, | ||
form.on("error", (err) => { | ||
reject(AppError.serverError({ files }, err)); | ||
if (err.message?.includes("exceeded, received")) { | ||
reject(AppError.validationError("error.server.maxFieldSize")); | ||
} else { | ||
reject(AppError.serverError({ files }, err)); | ||
} | ||
}); | ||
@@ -165,0 +170,0 @@ form.on("end", () => { |
46846
1196
+ Added@compas/stdlib@0.0.196(transitive)
+ Added@types/node@17.0.25(transitive)
+ Addedpino@7.10.0(transitive)
- Removed@compas/stdlib@0.0.195(transitive)
- Removed@types/node@17.0.22(transitive)
- Removedpino@7.9.2(transitive)
Updated@compas/stdlib@0.0.196