@@ -43,7 +43,7 @@ const SRC_DIRECTORY = process.env.SRC_DIRECTORY || ''
4343const DEPLOY_TIMEOUT = process . env . DEPLOY_TIMEOUT || 120000
4444const DOCKER_IMAGE = process . env . DOCKER_IMAGE || ''
4545const DEPLOY_ZIPFILE = process . env . DEPLOY_ZIPFILE || ''
46- const AWS_DLQ_TARGET_ARN = ( function ( ) {
46+ const AWS_DLQ_TARGET_ARN = ( ( ) => {
4747 // You can clear the setting by passing an empty string
4848 // when executing updateFunctionConfiguration
4949 if ( process . env . AWS_DLQ_TARGET_ARN !== undefined ) {
@@ -93,9 +93,7 @@ program
9393 . option ( '-T, --deployTimeout [' + DEPLOY_TIMEOUT + ']' , 'Deploy Timeout' , DEPLOY_TIMEOUT )
9494 . option ( '-z, --deployZipfile [' + DEPLOY_ZIPFILE + ']' , 'Deploy zipfile' , DEPLOY_ZIPFILE )
9595 . option ( '-y, --proxy [' + PROXY + ']' , 'Proxy server' , PROXY )
96- . action ( function ( prg ) {
97- lambda . deploy ( prg )
98- } )
96+ . action ( ( prg ) => lambda . deploy ( prg ) )
9997
10098program
10199 . command ( 'package' )
@@ -112,9 +110,7 @@ program
112110 . option ( '-f, --configFile [' + CONFIG_FILE + ']' ,
113111 'Path to file holding secret environment variables (e.g. "deploy.env")' , CONFIG_FILE )
114112 . option ( '-D, --prebuiltDirectory [' + PREBUILT_DIRECTORY + ']' , 'Prebuilt directory' , PREBUILT_DIRECTORY )
115- . action ( function ( prg ) {
116- lambda . package ( prg )
117- } )
113+ . action ( ( prg ) => lambda . package ( prg ) )
118114
119115program
120116 . command ( 'run' )
@@ -127,18 +123,14 @@ program
127123 . option ( '-f, --configFile [' + CONFIG_FILE + ']' ,
128124 'Path to file holding secret environment variables (e.g. "deploy.env")' , CONFIG_FILE )
129125 . option ( '-x, --contextFile [' + CONTEXT_FILE + ']' , 'Context JSON File' , CONTEXT_FILE )
130- . action ( function ( prg ) {
131- lambda . run ( prg )
132- } )
126+ . action ( ( prg ) => lambda . run ( prg ) )
133127
134128program
135129 . command ( 'setup' )
136130 . description ( 'Sets up the .env file.' )
137131 . option ( '-j, --eventFile [' + EVENT_FILE + ']' , 'Event JSON File' , EVENT_FILE )
138132 . option ( '-x, --contextFile [' + CONTEXT_FILE + ']' , 'Context JSON File' , CONTEXT_FILE )
139- . action ( function ( prg ) {
140- lambda . setup ( prg )
141- } )
133+ . action ( ( prg ) => lambda . setup ( prg ) )
142134
143135program . parse ( process . argv )
144136
0 commit comments