File tree 3 files changed +10060
-4
lines changed
3 files changed +10060
-4
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ class ServerlessStepFunctions {
35
35
constructor ( serverless , options , v3Api ) {
36
36
this . serverless = serverless ;
37
37
this . options = options || { } ;
38
- this . v3api = v3Api ;
38
+ this . v3Api = v3Api ;
39
39
40
40
this . provider = this . serverless . getProvider ( 'aws' ) ;
41
41
this . service = this . serverless . service . service ;
@@ -197,8 +197,15 @@ class ServerlessStepFunctions {
197
197
let stateMachineMessages = '' ;
198
198
199
199
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
+ }
202
209
203
210
if ( this . isStateMachines ( ) ) {
204
211
_ . forEach ( this . getAllStateMachines ( ) , ( stateMachineName ) => {
Original file line number Diff line number Diff line change 48
48
"@serverless/utils" : " ^5.20.1" ,
49
49
"asl-validator" : " ^1.9.8" ,
50
50
"bluebird" : " ^3.4.0" ,
51
- "chalk" : " ^1 .1.1 " ,
51
+ "chalk" : " ^4 .1.2 " ,
52
52
"lodash" : " ^4.17.11"
53
53
},
54
54
"peerDependencies" : {
You can’t perform that action at this time.
0 commit comments