New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

emittableevent

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

emittableevent - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

1

lib/domain/events/EmittableEvent.js

@@ -47,2 +47,3 @@ "use strict";

eventName,
eventType: metadata.eventType,
timestamp: `${timeNow}`,

@@ -49,0 +50,0 @@ timestampHuman: new Date(timeNow).toISOString(),

8

lib/interfaces/Metadata.d.ts

@@ -10,3 +10,3 @@ export declare type MetadataConfigInput = StaticMetadata & {

team: string;
eventType: 'DomainEvent' | 'IntegrationEvent';
eventType: EventType;
hostPlatform: string;

@@ -37,4 +37,4 @@ owner: string;

};
declare type DataSensitivity = 'public' | 'sensitive' | 'proprietary' | 'secret';
declare type Jurisdiction = 'eu' | 'us' | 'cn' | 'apj';
export {};
export declare type EventType = 'DomainEvent' | 'IntegrationEvent';
export declare type DataSensitivity = 'public' | 'sensitive' | 'proprietary' | 'secret';
export declare type Jurisdiction = 'eu' | 'us' | 'cn' | 'apj';
{
"name": "emittableevent",
"description": "EmittableEvent is an opinionated abstraction class for generating rich EventBridge events.",
"version": "1.0.0",
"version": "1.0.1",
"author": "Mikael Vesavuori",

@@ -6,0 +6,0 @@ "license": "MIT",

@@ -45,6 +45,10 @@ # EmittableEvent

// Can of course be a static metadata JSON as well!
const getMetadataConfig = (version = 1) => {
const getMetadataConfig = (
version = 1,
eventType: any = 'DomainEvent',
jurisdiction: any = 'eu'
): MetadataConfigInput => {
return {
version,
eventType: 'DomainEvent' as any, // These have hard types internally
eventType,
domain: 'MyDomain',

@@ -56,3 +60,3 @@ system: 'MySystem',

owner: 'Sam Person',
jurisdiction: 'eu' as any // These have hard types internally
jurisdiction
};

@@ -72,3 +76,3 @@ };

// Create the event
const myEvent = new MyEvent(eventInput, requestContext);
const myEvent = new MyEvent(eventInput, awsRequestContext);
```

@@ -75,0 +79,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc