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 {
6565 * Holds if the `i`th argument of `invk` is an object hash for `AWS.Config`.
6666 */
6767 private predicate takesConfigurationObject ( DataFlow:: InvokeNode invk , int i ) {
68- exists ( DataFlow :: ModuleImportNode mod | mod . getPath ( ) = "aws-sdk" |
68+ exists ( API :: Node mod | mod = getAWSImport ( ) |
6969 // `AWS.config.update(nd)`
70- invk = mod .getAPropertyRead ( "config" ) .getAMemberCall ( "update" ) and
70+ invk = mod .getMember ( "config" ) .getMember ( "update" ) . getACall ( ) and
7171 i = 0
7272 or
73- exists ( DataFlow:: SourceNode cfg | cfg = mod .getAConstructorInvocation ( "Config" ) |
73+ exists ( DataFlow:: SourceNode cfg |
74+ cfg = mod .getMember ( "Config" ) .getAnInstantiation ( ) .getReturn ( ) .asSource ( )
75+ |
7476 // `new AWS.Config(nd)`
7577 invk = cfg and
7678 i = 0
You can’t perform that action at this time.
0 commit comments