@compas/server
Advanced tools
Comparing version 0.0.122 to 0.0.123
{ | ||
"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) { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
60033
+ Added@compas/insight@0.0.123(transitive)
+ Added@compas/stdlib@0.0.123(transitive)
- Removed@compas/insight@0.0.122(transitive)
- Removed@compas/stdlib@0.0.122(transitive)
Updated@compas/insight@0.0.123
Updated@compas/stdlib@0.0.123