Skip to content

Commit 8de269e

Browse files
author
Esben Sparre Andreasen
committed
JS: add support for fs-extra in NodeJSFileSystemAccess
1 parent abbadf2 commit 8de269e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,14 +338,14 @@ module NodeJSLib {
338338

339339

340340
/**
341-
* A call to a method from module `fs` or `graceful-fs`.
341+
* A call to a method from module `fs`, `graceful-fs` or `fs-extra`.
342342
*/
343343
private class NodeJSFileSystemAccess extends FileSystemAccess, DataFlow::CallNode {
344344
string methodName;
345345

346346
NodeJSFileSystemAccess() {
347347
exists (string moduleName | this = DataFlow::moduleMember(moduleName, methodName).getACall() |
348-
moduleName = "fs" or moduleName = "graceful-fs"
348+
moduleName = "fs" or moduleName = "graceful-fs" or moduleName = "fs-extra"
349349
)
350350
}
351351

0 commit comments

Comments
 (0)