UNPKG

@eventcatalog/notifier

Version:

CLI tool to detect EventCatalog changes and send notifications

14 lines (10 loc) 354 B
import { Event } from './notifications/Event'; import { Notification } from './types'; export const processEvents = async (events: Event[]) => { let notifications: Notification[] = []; for (const event of events) { const eventNotifications = await event.process(); notifications.push(...eventNotifications); } return notifications; };