File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
src/transforms/v2-to-v3/client-instances Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -28,12 +28,13 @@ export const getAwsGlobalConfig = (
28
28
property : { type : "Identifier" , name : "update" } ,
29
29
} ,
30
30
} )
31
- . filter (
32
- ( { node } ) => node . arguments . length === 1 && node . arguments [ 0 ] . type === "ObjectExpression"
33
- )
34
- . forEach ( ( { node } ) => {
35
- const objectExpressionProperties = ( node . arguments [ 0 ] as ObjectExpression ) . properties ;
31
+ . forEach ( ( callExpression ) => {
32
+ const node = callExpression . node ;
33
+ if ( node . arguments . length !== 1 || node . arguments [ 0 ] . type !== "ObjectExpression" ) {
34
+ return ;
35
+ }
36
36
37
+ const objectExpressionProperties = node . arguments [ 0 ] . properties ;
37
38
objectExpressionProperties . forEach ( ( property ) => {
38
39
objectExpression . properties . push ( property ) ;
39
40
} ) ;
You can’t perform that action at this time.
0 commit comments