
Security News
pnpm 10.16 Adds New Setting for Delayed Dependency Updates
pnpm's new minimumReleaseAge setting delays package updates to prevent supply chain attacks, with other tools like Taze and NCU following suit.
@wisersolutions/koa-serve-client
Advanced tools
Plain Koa middleware for serving the client application
Plain Koa middleware for serving the client application
In your quadro project install dependency
npm install @wisersolutions/koa-serve-client
Add the middleware to Koa server:
const { serveClient } = require('@wisersolutions/koa-serve-client')
const koa = /* ... create or get your server instance ... */
koa.use(serveClient({
//rootDir: resolve('./'),
//staticDir: resolve(rootDir, './static'),
//distDir: resolve(rootDir, './dist'),
//indexFile: resolve(distDir, './index.html'),
//exclude: ::/^\/(?:static|api)\//.test,
//log: ::console.log
}))
By default it serves:
./static
under /static
./dist
at root/static/*
and /api/*
requestsInstall dependencies using:
npm install
After you modify sources, run the following (or set up your IDE to do it for you):
npm run format
npm run lint
npm test
and fix the errors, if there are any.
Publishing is done in two steps:
npm version <patch|minor|major>
git push --follow-tags
npm publish --access public
FAQs
Plain Koa middleware for serving the client application
We found that @wisersolutions/koa-serve-client demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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.
Security News
pnpm's new minimumReleaseAge setting delays package updates to prevent supply chain attacks, with other tools like Taze and NCU following suit.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.