Skip to content

Commit 3e67eba

Browse files
committed
JS: Support lodash-es
1 parent 2f2d72f commit 3e67eba

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,9 @@ module LodashUnderscore {
2121
string name;
2222

2323
DefaultMember() {
24-
this = DataFlow::moduleMember("underscore", name)
24+
this = DataFlow::moduleMember(["underscore", "lodash", "lodash-es"], name)
2525
or
26-
this = DataFlow::moduleMember("lodash", name)
27-
or
28-
this = DataFlow::moduleImport("lodash/" + name)
26+
this = DataFlow::moduleImport(["lodash/", "lodash-es/"] + name)
2927
or
3028
this = DataFlow::moduleImport("lodash." + name.toLowerCase()) and isLodashMember(name)
3129
or

0 commit comments

Comments
 (0)