File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
javascript/ql/lib/semmle/javascript/frameworks Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -65,12 +65,14 @@ module AWS {
65
65
* Holds if the `i`th argument of `invk` is an object hash for `AWS.Config`.
66
66
*/
67
67
private predicate takesConfigurationObject ( DataFlow:: InvokeNode invk , int i ) {
68
- exists ( DataFlow :: ModuleImportNode mod | mod . getPath ( ) = "aws-sdk" |
68
+ exists ( API :: Node mod | mod = getAWSImport ( ) |
69
69
// `AWS.config.update(nd)`
70
- invk = mod .getAPropertyRead ( "config" ) .getAMemberCall ( "update" ) and
70
+ invk = mod .getMember ( "config" ) .getMember ( "update" ) . getACall ( ) and
71
71
i = 0
72
72
or
73
- exists ( DataFlow:: SourceNode cfg | cfg = mod .getAConstructorInvocation ( "Config" ) |
73
+ exists ( DataFlow:: SourceNode cfg |
74
+ cfg = mod .getMember ( "Config" ) .getAnInstantiation ( ) .getReturn ( ) .asSource ( )
75
+ |
74
76
// `new AWS.Config(nd)`
75
77
invk = cfg and
76
78
i = 0
You can’t perform that action at this time.
0 commit comments