Description
if (peek) returns {name, version, peekSuccess: false} but never sets ctx.body or calls next(). In Koa the return value is ignored, so the client receives no body (empty response or 404). The code was clearly intended to short-circuit with a response object.
Severity: high
File: server/middlewares/exportsSizes.middleware.js
Expected Behavior
The code should handle this case properly to avoid unexpected errors or degraded quality.
Description
if (peek) returns {name, version, peekSuccess: false} but never sets ctx.body or calls next(). In Koa the return value is ignored, so the client receives no body (empty response or 404). The code was clearly intended to short-circuit with a response object.
Severity:
highFile:
server/middlewares/exportsSizes.middleware.jsExpected Behavior
The code should handle this case properly to avoid unexpected errors or degraded quality.