File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
lib/semmle/javascript/frameworks
test/library-tests/threat-models/sources Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -74,6 +74,8 @@ private class DefaultModels extends CommandLineArguments::Range {
74
74
or
75
75
// `require('commander').opt()` => `{a: ..., b: ...}`
76
76
this = commander ( ) .getMember ( "opts" ) .getACall ( )
77
+ or
78
+ this = API:: moduleImport ( "yargs/yargs" ) .getReturn ( ) .getMember ( "argv" ) .asSource ( )
77
79
}
78
80
}
79
81
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ const yargs = require('yargs/yargs');
13
13
const { hideBin } = require ( 'yargs/helpers' ) ;
14
14
const argv = yargs ( hideBin ( process . argv ) ) . argv ; // $ threat-source=commandargs
15
15
16
- SINK ( argv . foo ) ; // $ MISSING: hasFlow
16
+ SINK ( argv . foo ) ; // $ hasFlow
17
17
18
18
// older version
19
19
// https://www.npmjs.com/package/yargs/v/7.1.2
You can’t perform that action at this time.
0 commit comments