
Research
/Security News
DuckDB npm Account Compromised in Continuing Supply Chain Attack
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
@astro-utils/express-endpoints
Advanced tools
Let you use an express-like framework in astro endpoints, with builtin:
zod-express-middleware
)@astro-utils/forms
)const router = new ExpressRoute();
router.validate({
body: z.object({
name: z.string()
})
});
export const POST = router.route(async (req, res) => {
await new Promise(res => setTimeout(res, 1000));
res.json({
name: req.body.name,
url: 'This is a POST request'
});
});
When using the validate
method it will be applied only to the next route.
Meaning that you can use the same router for multiple methods.
The default body-parser is auto
meaning that it will parse the body no matter the type of it
including multipart/form-data
.
You can configure the body parser by calling the body
method.
const router = new ExpressRoute();
router.body('multipart');
export const POST = router.route((req, res) => {
const myFile = req.filesOne.myFile;
res.json({
name: myFile?.name || 'No file',
});
});
Use the default astro cookie parser for that
FAQs
Express-like framework for Astro Endpoints
We found that @astro-utils/express-endpoints demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.
Product
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.