
Security News
Rust RFC Proposes a Security Tab on crates.io for RustSec Advisories
Rustâs crates.io team is advancing an RFC to add a Security tab that surfaces RustSec vulnerability and unsoundness advisories directly on crate pages.
mali-error-mapper
Advanced tools
Mali gRPC error mappers and middleware.
This middleware maps all non GrpcError errors to a GrpcError formatted accordingly.
Install the package via yarn:
⯠yarn add mali-error-mapper
or via npm:
⯠npm install mali-error-mapper --save
Using default mapping:
'use strict';
const errorMapperMiddleware = require('mali-error-mapper');
const app = new Mali();
app.use(errorMapperMiddleware());
Using custom mappers:
'use strict';
const errorMapperMiddleware = require('mali-error-mapper');
const app = new Mali();
const mapper = {
map: e => {
if (!(e instanceof MyError)) {
return;
}
return {
body: {
code: 'foo',
message: 'bar'
},
status: 999
};
};
};
app.use(errorMiddleware([mapper]));
MIT
FAQs
Error mapper for Mali applications
The npm package mali-error-mapper receives a total of 4,392 weekly downloads. As such, mali-error-mapper popularity was classified as popular.
We found that mali-error-mapper demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 9 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
Rustâs crates.io team is advancing an RFC to add a Security tab that surfaces RustSec vulnerability and unsoundness advisories directly on crate pages.

Security News
/Research
Socket found a Rust typosquat (finch-rust) that loads sha-rust to steal credentials, using impersonation and an unpinned dependency to auto-deliver updates.

Research
/Security Fundamentals
A pair of typosquatted Go packages posing as Googleâs UUID library quietly turn helper functions into encrypted exfiltration channels to a paste site, putting developer and CI data at risk.