Skip to content

Commit a6cd91b

Browse files
committed
add support for mz/fs and mz/child_process
1 parent bb8905b commit a6cd91b

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

javascript/ql/src/semmle/javascript/frameworks/NodeJSLib.qll

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -442,10 +442,7 @@ module NodeJSLib {
442442

443443
private DataFlow::SourceNode fsModule(DataFlow::TypeTracker t) {
444444
exists(string moduleName |
445-
moduleName = "fs" or
446-
moduleName = "graceful-fs" or
447-
moduleName = "fs-extra" or
448-
moduleName = "original-fs"
445+
moduleName = ["mz/fs", "original-fs", "fs-extra", "graceful-fs", "fs"]
449446
|
450447
result = DataFlow::moduleImport(moduleName)
451448
or
@@ -614,6 +611,8 @@ module NodeJSLib {
614611

615612
ChildProcessMethodCall() {
616613
this = maybePromisified(DataFlow::moduleMember("child_process", methodName)).getACall()
614+
or
615+
this = DataFlow::moduleMember("mz/child_process", methodName).getACall()
617616
}
618617

619618
private DataFlow::Node getACommandArgument(boolean shell) {

0 commit comments

Comments
 (0)