Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
emittableevent
Advanced tools
EmittableEvent is an opinionated abstraction class for generating rich EventBridge events.
EmittableEvent
is an opinionated abstraction class for generating rich EventBridge events.
// Your own event class
class MyEvent extends EmittableEvent {
// Do something here if you want, else just leave it as is!
}
// Convenience utility to produce required static metadata
const getMetadataConfig = (version = 1): MetadataConfigInput => {
return {
version,
eventType: 'DomainEvent',
domain: 'MyDomain',
system: 'MySystem',
service: 'MyService',
team: 'MyTeam',
hostPlatform: 'aws',
owner: 'Sam Person',
jurisdiction: 'eu'
};
};
// Input for actually creating the event
const eventInput = {
eventName: 'Created',
eventBusName: 'MyEventBus',
data: {
something: 'some value here if you want'
},
metadataConfig: getMetadataConfig()
};
// Create the event
const event = new CreatedEvent(eventInput, requestContext);
// ...and here's the actual full body of the event
console.log(event.get());
FAQs
EmittableEvent is an opinionated abstraction class for generating rich EventBridge events.
The npm package emittableevent receives a total of 403 weekly downloads. As such, emittableevent popularity was classified as not popular.
We found that emittableevent 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.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.