Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@compas/server

Package Overview
Dependencies
Maintainers
1
Versions
198
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@compas/server - npm Package Compare versions

Comparing version 0.0.195 to 0.0.196

4

package.json
{
"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", () => {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc