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
196
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.122 to 0.0.123

8

package.json
{
"name": "@compas/server",
"version": "0.0.122",
"version": "0.0.123",
"description": "Koa server and common middleware",

@@ -18,4 +18,4 @@ "main": "./index.js",

"dependencies": {
"@compas/insight": "0.0.122",
"@compas/stdlib": "0.0.122",
"@compas/insight": "0.0.123",
"@compas/stdlib": "0.0.123",
"formidable": "2.0.0-canary.20200504.1",

@@ -48,3 +48,3 @@ "keygrip": "1.1.0",

},
"gitHead": "22f4e7c17a5d515aaab9b844cd7dc467aab21987"
"gitHead": "d69ba8193d772c412952369512c78de9a81051ef"
}

@@ -29,3 +29,3 @@ # @compas/server

My work involved doing many small projects. I had a hard time backporting
My work involved doing many small projects. I had a hard time back-porting
incremental fixes to existing projects. To facilitate my needs more and to stop

@@ -32,0 +32,0 @@ copying and pasting things around, this project was born.

@@ -18,3 +18,3 @@ import { AppError } from "@compas/stdlib";

// disable formidable
bodyOpts.mutipart = false;
bodyOpts.multipart = false;

@@ -28,4 +28,4 @@ return {

/**
* Wrapper around Formidable, making it compatible iwth KoaMiddaleware
* Implemantion is based on formidable.parse calback method, with some
* Wrapper around Formidable, making it compatible with KoaMiddleware
* Implementation is based on formidable.parse callback method, with some
* changes for 'boolean' and 'array' support. multiples enabled and required.

@@ -67,7 +67,7 @@ *

form.on("end", () => {
resolve({ files });
ctx.request.files = files;
resolve();
});
form.parse(ctx.req);
}).then(({ files }) => {
ctx.request.files = files;
}).then(() => {
return next();

@@ -74,0 +74,0 @@ });

@@ -8,3 +8,3 @@ import { Transform } from "stream";

*
* @param {GetAppOptions.logOptions} options
* @param {{ disableRootEvent?: boolean }} options
*/

@@ -11,0 +11,0 @@ export function logMiddleware(options) {

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