Security News
New Python Packaging Proposal Aims to Solve Phantom Dependency Problem with SBOMs
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
@everestate/serverless-router-event
Advanced tools
Serverless Router plugin to handle events at AWS λ
Serverless Router plugin to handle events at AWS λ
npm install @everestate/serverless-router @everestate/serverless-router-event --save
Each routing subject (event object) is expected to to include at least:
emitter
(string) - who published eventsubject
(string) - what's the domain of eventaction
(string) - what's happen in scope of the domainversion
(string) - event payload versionThe routing path looks like "emitter:subject:action:version"
.
It's fine to use mask to match any part: "emitter:subject:*:version"
.
const Router = require('@everestate/serverless-router');
const { Event } = require('@everestate/serverless-router-event');
function dispatch(event) {
const router = new Router([Event]);
router.event
.on('steam:listing:created:1', (ctx, event) => ({ ctx, event }))
.on('steam:listing:updated:1', (ctx, event) => ({ ctx, event }))
.on('steam:listing:*:1', (ctx, event) => ({ ctx, event }));
router.mismatch(() => Promise.reject(new Error('Boom!')));
return router.dispatch(event);
}
function myLambdaHandler(event, context, callback) {
return dispatch(event)
.then(result => callback(null, result))
.catch(error => callback(error));
}
FAQs
Serverless Router plugin to handle events at AWS λ
The npm package @everestate/serverless-router-event receives a total of 2 weekly downloads. As such, @everestate/serverless-router-event popularity was classified as not popular.
We found that @everestate/serverless-router-event 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
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
Security News
Socket CEO Feross Aboukhadijeh discusses open source security challenges, including zero-day attacks and supply chain risks, on the Cyber Security Council podcast.
Security News
Research
Socket researchers uncover how threat actors weaponize Out-of-Band Application Security Testing (OAST) techniques across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.