@@ -89,9 +89,11 @@ export const SENTRY_SAAS_URL = "https://sentry.io";
8989export function normalizeUserOptions ( userOptions : UserOptions ) : NormalizedOptions {
9090 const options = {
9191 org : userOptions . org ?? process . env [ "SENTRY_ORG" ] ,
92- project : userOptions . project ?? ( process . env [ "SENTRY_PROJECT" ] ?. includes ( ',' )
93- ? process . env [ "SENTRY_PROJECT" ] . split ( ',' ) . map ( p => p . trim ( ) )
94- : process . env [ "SENTRY_PROJECT" ] ) ,
92+ project :
93+ userOptions . project ??
94+ ( process . env [ "SENTRY_PROJECT" ] ?. includes ( "," )
95+ ? process . env [ "SENTRY_PROJECT" ] . split ( "," ) . map ( ( p ) => p . trim ( ) )
96+ : process . env [ "SENTRY_PROJECT" ] ) ,
9597 authToken : userOptions . authToken ?? process . env [ "SENTRY_AUTH_TOKEN" ] ,
9698 url : userOptions . url ?? process . env [ "SENTRY_URL" ] ?? SENTRY_SAAS_URL ,
9799 headers : userOptions . headers ,
@@ -221,7 +223,9 @@ export function validateOptions(options: NormalizedOptions, logger: Logger): boo
221223 return false ;
222224 }
223225 // Check each project is a non-empty string
224- const invalidProjects = options . project . filter ( p => typeof p !== 'string' || p . trim ( ) === '' ) ;
226+ const invalidProjects = options . project . filter (
227+ ( p ) => typeof p !== "string" || p . trim ( ) === ""
228+ ) ;
225229 if ( invalidProjects . length > 0 ) {
226230 logger . error (
227231 "The `project` option contains invalid project slugs." ,
0 commit comments