JS: Support lodash-es

This commit is contained in:
Asger Feldthaus
2020-11-13 21:14:56 +00:00
parent 2f2d72f282
commit 3e67ebacb0

View File

@@ -21,11 +21,9 @@ module LodashUnderscore {
string name;
DefaultMember() {
this = DataFlow::moduleMember("underscore", name)
this = DataFlow::moduleMember(["underscore", "lodash", "lodash-es"], name)
or
this = DataFlow::moduleMember("lodash", name)
or
this = DataFlow::moduleImport("lodash/" + name)
this = DataFlow::moduleImport(["lodash/", "lodash-es/"] + name)
or
this = DataFlow::moduleImport("lodash." + name.toLowerCase()) and isLodashMember(name)
or