From 9db2da19033527c2aed86c7eb728b0408d2fec83 Mon Sep 17 00:00:00 2001 From: Kashish Mittal Date: Tue, 20 Aug 2024 15:33:14 -0400 Subject: [PATCH] ran yarn prettier:fix Signed-off-by: Kashish Mittal --- beps/00010-event-auditor/README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/beps/00010-event-auditor/README.md b/beps/00010-event-auditor/README.md index 3bf7eb2e0d..44006599eb 100644 --- a/beps/00010-event-auditor/README.md +++ b/beps/00010-event-auditor/README.md @@ -115,12 +115,16 @@ export type AuditEventFailureStatus = { errors: E[]; }; -export type AuditEventStatus = AuditEventSuccessStatus | AuditEventFailureStatus | undefined; +export type AuditEventStatus = + | AuditEventSuccessStatus + | AuditEventFailureStatus + | undefined; ``` #### EventAuditor Interface This interface defines the functionalities of an `EventAuditor` class. This class provides methods for: + - Extracting the actor ID from an Express request (if available). - Creating detailed audit event information based on provided options. - Logging an audit event with a specific level (info, debug, warn, or error). @@ -139,7 +143,7 @@ export type AuditEventOptions = AuditEventStatus & { metadata?: JsonValue; response?: AuditResponse; request?: Request; -} & ({ actorId: string; } | { credentials: BackstageCredentials } | undefined); +} & ({ actorId: string } | { credentials: BackstageCredentials } | undefined); export type AuditEvent = { actor: ActorDetails;