File tree 5 files changed +27
-25
lines changed
5 files changed +27
-25
lines changed Original file line number Diff line number Diff line change @@ -15,16 +15,16 @@ jobs:
15
15
runs-on : ${{ matrix.os }}
16
16
strategy :
17
17
matrix :
18
- node-version : [ 14.x, 16.x, 18.x ]
18
+ node-version : [ 14.x, 16.x, 18.x, 20.x ]
19
19
os : [ windows-latest, ubuntu-latest, macOS-latest ]
20
20
21
21
# Go
22
22
steps :
23
23
- name : Check out repo
24
- uses : actions/checkout@v3
24
+ uses : actions/checkout@v4
25
25
26
26
- name : Set up Node.js
27
- uses : actions/setup-node@v3
27
+ uses : actions/setup-node@v4
28
28
with :
29
29
node-version : ${{ matrix.node-version }}
30
30
41
41
run : npm install
42
42
43
43
- name : Test
44
+ if : matrix.node-version > '16.x'
44
45
run : npm test
45
46
env :
46
47
CI : true
@@ -57,10 +58,10 @@ jobs:
57
58
# Go
58
59
steps :
59
60
- name : Check out repo
60
- uses : actions/checkout@v3
61
+ uses : actions/checkout@v4
61
62
62
63
- name : Set up Node.js
63
- uses : actions/setup-node@v3
64
+ uses : actions/setup-node@v4
64
65
with :
65
66
node-version : lts/*
66
67
registry-url : https://registry.npmjs.org/
Original file line number Diff line number Diff line change
1
+ const arc = require ( '@architect/eslint-config' )
2
+
3
+ module . exports = [
4
+ ...arc ,
5
+ ]
Original file line number Diff line number Diff line change 24
24
},
25
25
"homepage" : " https://github.com/architect/plugin-lambda-invoker#readme" ,
26
26
"dependencies" : {
27
- "@architect/utils" : " ^3.1.2 " ,
28
- "@aws-sdk/util-dynamodb" : " ^3.296 .0" ,
29
- "ansi-colors" : " ^4.1.1 " ,
30
- "enquirer" : " ^2.3.6 "
27
+ "@architect/utils" : " ^4.0.6 " ,
28
+ "@aws-sdk/util-dynamodb" : " ^3.572 .0" ,
29
+ "ansi-colors" : " ^4.1.3 " ,
30
+ "enquirer" : " ^2.4.1 "
31
31
},
32
32
"devDependencies" : {
33
- "@architect/eslint-config" : " ^2.1.1" ,
34
- "eslint" : " ^8.33.0"
35
- },
36
- "eslintConfig" : {
37
- "extends" : " @architect/eslint-config"
33
+ "@architect/eslint-config" : " ^3.0.0" ,
34
+ "eslint" : " ^9.2.0"
38
35
},
39
36
"keywords" : [
40
37
" arc" ,
Original file line number Diff line number Diff line change @@ -33,9 +33,9 @@ function scheduled () {
33
33
time : new Date ( ) . toISOString ( ) ,
34
34
region : 'Sandbox' ,
35
35
resources : [
36
- 'arn:architect-sandbox'
36
+ 'arn:architect-sandbox' ,
37
37
] ,
38
- detail : { }
38
+ detail : { } ,
39
39
}
40
40
}
41
41
@@ -54,10 +54,10 @@ function tablesStreams (eventName, dynamoData) {
54
54
NewImage : dynamoData ?. NewImage ?? { NOT_MOCKED : true } ,
55
55
SequenceNumber : 0 ,
56
56
SizeBytes : 0 ,
57
- StreamViewType : 'NEW_AND_OLD_IMAGES'
57
+ StreamViewType : 'NEW_AND_OLD_IMAGES' ,
58
58
} ,
59
- eventSourceARN : 'arn:architect-sandbox'
60
- }
61
- ]
59
+ eventSourceARN : 'arn:architect-sandbox' ,
60
+ } ,
61
+ ] ,
62
62
}
63
63
}
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ let sandbox = {
55
55
em : colors . cyan , // Clear underlines
56
56
danger : colors . red ,
57
57
strong : colors . white ,
58
- }
58
+ } ,
59
59
}
60
60
if ( input === 'i' ) {
61
61
if ( Object . keys ( events ) . length === 1 ) {
@@ -110,7 +110,7 @@ let sandbox = {
110
110
userPayload = mocks [ pragma ] [ name ] [ mockName ] || { }
111
111
}
112
112
}
113
- catch ( err ) {
113
+ catch {
114
114
update . status ( 'Canceled invoke' )
115
115
return start ( )
116
116
}
@@ -140,7 +140,7 @@ let sandbox = {
140
140
type : 'select' ,
141
141
name : 'eventName' ,
142
142
message : 'Which kind of Dynamo Stream event do you want to invoke?' ,
143
- choices : [ 'INSERT' , 'MODIFY' , 'REMOVE' ]
143
+ choices : [ 'INSERT' , 'MODIFY' , 'REMOVE' ] ,
144
144
} )
145
145
payload = mock . tablesStreams ( eventName , marshallJson ( mocks ?. [ pragma ] ?. [ name ] ?. [ eventName ] ) )
146
146
}
@@ -169,7 +169,7 @@ let sandbox = {
169
169
} )
170
170
plugin . invoke = deactivatedInvoke
171
171
end ( )
172
- }
172
+ } ,
173
173
}
174
174
175
175
let plugin = {
@@ -209,7 +209,6 @@ async function getMod (filepath) {
209
209
delete require . cache [ require . resolve ( filepath ) ]
210
210
211
211
try {
212
- // eslint-disable-next-line
213
212
mod = require ( filepath )
214
213
}
215
214
catch ( err ) {
You can’t perform that action at this time.
0 commit comments