File tree Expand file tree Collapse file tree 3 files changed +8
-10
lines changed
serverless-offline-s3/src
serverless-offline-sqs/src Expand file tree Collapse file tree 3 files changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -15,16 +15,16 @@ const defaultOptions = {
15
15
const omitUndefined = omitBy ( isUndefined ) ;
16
16
17
17
class ServerlessOfflineS3 {
18
- constructor ( serverless , cliOptions , { log } ) {
18
+ constructor ( serverless , cliOptions , { log} ) {
19
19
this . cliOptions = null ;
20
20
this . options = null ;
21
21
this . s3 = null ;
22
22
this . lambda = null ;
23
23
this . serverless = null ;
24
- this . log = log ;
25
24
26
25
this . cliOptions = cliOptions ;
27
26
this . serverless = serverless ;
27
+ this . log = log ;
28
28
29
29
this . hooks = {
30
30
'offline:start:init' : this . start . bind ( this ) ,
@@ -139,7 +139,7 @@ class ServerlessOfflineS3 {
139
139
omitUndefined ( this . cliOptions )
140
140
) ;
141
141
142
- this . log . debug ( 'options:' , this . options ) ;
142
+ this . log . debug ( 's3 options:' , this . options ) ;
143
143
}
144
144
145
145
_getEvents ( ) {
Original file line number Diff line number Diff line change @@ -30,16 +30,16 @@ const defaultOptions = {
30
30
const omitUndefined = omitBy ( isUndefined ) ;
31
31
32
32
class ServerlessOfflineSQS {
33
- constructor ( serverless , cliOptions , { log } ) {
33
+ constructor ( serverless , cliOptions , { log} ) {
34
34
this . cliOptions = null ;
35
35
this . options = null ;
36
36
this . sqs = null ;
37
37
this . lambda = null ;
38
38
this . serverless = null ;
39
- this . log = log ;
40
39
41
40
this . cliOptions = cliOptions ;
42
41
this . serverless = serverless ;
42
+ this . log = log ;
43
43
44
44
this . hooks = {
45
45
'offline:start:init' : this . start . bind ( this ) ,
@@ -66,9 +66,7 @@ class ServerlessOfflineSQS {
66
66
67
67
await Promise . all ( eventModules ) ;
68
68
69
- this . log . notice (
70
- `Starting Offline SQS at stage ${ this . options . stage } (${ this . options . region } )`
71
- ) ;
69
+ this . log . notice ( `Starting Offline SQS at stage ${ this . options . stage } (${ this . options . region } )` ) ;
72
70
}
73
71
74
72
ready ( ) {
@@ -154,7 +152,7 @@ class ServerlessOfflineSQS {
154
152
omitUndefined ( this . cliOptions )
155
153
) ;
156
154
157
- this . log . debug ( 'options:' , this . options ) ;
155
+ this . log . debug ( 'sqs options:' , this . options ) ;
158
156
}
159
157
160
158
_getEvents ( ) {
Original file line number Diff line number Diff line change @@ -25,11 +25,11 @@ class SQS {
25
25
this . lambda = null ;
26
26
this . resources = null ;
27
27
this . options = null ;
28
- this . log = log ;
29
28
30
29
this . lambda = lambda ;
31
30
this . resources = resources ;
32
31
this . options = options ;
32
+ this . log = log ;
33
33
34
34
this . client = new SQSClient ( this . options ) ;
35
35
You can’t perform that action at this time.
0 commit comments