File tree Expand file tree Collapse file tree 3 files changed +10060
-4
lines changed Expand file tree Collapse file tree 3 files changed +10060
-4
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ class ServerlessStepFunctions {
3535 constructor ( serverless , options , v3Api ) {
3636 this . serverless = serverless ;
3737 this . options = options || { } ;
38- this . v3api = v3Api ;
38+ this . v3Api = v3Api ;
3939
4040 this . provider = this . serverless . getProvider ( 'aws' ) ;
4141 this . service = this . serverless . service . service ;
@@ -197,8 +197,15 @@ class ServerlessStepFunctions {
197197 let stateMachineMessages = '' ;
198198
199199 const endpointInfo = this . endpointInfo ;
200- message += `${ chalk . yellow . underline ( 'Serverless StepFunctions OutPuts' ) } \n` ;
201- message += `${ chalk . yellow ( 'endpoints:' ) } ` ;
200+
201+ if ( this . v3Api ) {
202+ const slsRed = chalk . hex ( '#fd5750' ) ;
203+ message += `\n${ slsRed ( '✔' ) } Serverless StepFunctions OutPuts\n` ;
204+ message += `${ chalk . grey ( 'endpoints:' ) } ` ;
205+ } else {
206+ message += `${ chalk . yellow . underline ( 'Serverless StepFunctions OutPuts' ) } \n` ;
207+ message += `${ chalk . yellow ( 'endpoints:' ) } ` ;
208+ }
202209
203210 if ( this . isStateMachines ( ) ) {
204211 _ . forEach ( this . getAllStateMachines ( ) , ( stateMachineName ) => {
Original file line number Diff line number Diff line change 4848 "@serverless/utils" : " ^5.20.1" ,
4949 "asl-validator" : " ^1.9.8" ,
5050 "bluebird" : " ^3.4.0" ,
51- "chalk" : " ^1 .1.1 " ,
51+ "chalk" : " ^4 .1.2 " ,
5252 "lodash" : " ^4.17.11"
5353 },
5454 "peerDependencies" : {
You can’t perform that action at this time.
0 commit comments