Skip to content

Commit

Permalink
Adding react-dom + fixing the react detector
Browse files Browse the repository at this point in the history
  • Loading branch information
eoftedal committed Nov 1, 2023
1 parent 12e2759 commit 76c53ae
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 1 deletion.
63 changes: 62 additions & 1 deletion repository/jsrepository.json
Original file line number Diff line number Diff line change
Expand Up @@ -2942,13 +2942,74 @@
"filecontent": [
"/\\*\\*\n +\\* React \\(with addons\\) ?v(§§version§§)",
"/\\*\\*\n +\\* React v(§§version§§)",
"/\\*\\* @license React v(§§version§§)",
"/\\*\\* @license React v(§§version§§)[\\s]*\\* react\\.",
"\"\\./ReactReconciler\":[0-9]+,\"\\./Transaction\":[0-9]+,\"fbjs/lib/invariant\":[0-9]+\\}\\],[0-9]+:\\[function\\(require,module,exports\\)\\{\"use strict\";module\\.exports=\"(§§version§§)\"\\}",
"ReactVersion\\.js[\\*! \\\\/\n\r]{0,100}function\\(e,t\\)\\{\"use strict\";e\\.exports=\"(§§version§§)\"",
"expected a ReactNode.[\\s\\S]{0,1800}?function\\(e,t\\)\\{\"use strict\";e\\.exports=\"(§§version§§)\""
]
}
},
"react-dom": {
"vulnerabilities": [
{
"atOrAbove": "16.0.0",
"below": "16.0.1",
"severity": "medium",
"cwe": ["CWE-79"],
"identifiers": {
"CVE": ["CVE-2018-6341"],
"githubID": "GHSA-mvjj-gqq2-p4hw"
}
},
{
"atOrAbove": "16.1.0",
"below": "16.1.2",
"severity": "medium",
"cwe": ["CWE-79"],
"identifiers": {
"CVE": ["CVE-2018-6341"],
"githubID": "GHSA-mvjj-gqq2-p4hw"
}
},
{
"atOrAbove": "16.2.0",
"below": "16.2.1",
"severity": "medium",
"cwe": ["CWE-79"],
"identifiers": {
"CVE": ["CVE-2018-6341"],
"githubID": "GHSA-mvjj-gqq2-p4hw"
}
},
{
"atOrAbove": "16.3.0",
"below": "16.3.3",
"severity": "medium",
"cwe": ["CWE-79"],
"identifiers": {
"CVE": ["CVE-2018-6341"],
"githubID": "GHSA-mvjj-gqq2-p4hw"
}
},
{
"atOrAbove": "16.4.0",
"below": "16.4.2",
"severity": "medium",
"cwe": ["CWE-79"],
"identifiers": {
"CVE": ["CVE-2018-6341"],
"githubID": "GHSA-mvjj-gqq2-p4hw"
}
}
],
"extractors": {
"uri": ["/react-dom@(§§version§§)/"],
"filecontent": [
"version:\"(§§version§§)[a-z0-9\\-]*\"[\\s,]*rendererPackageName:\"react-dom\"",
"/\\*\\* @license React v(§§version§§)[\\s]*\\* react-dom\\."
]
}
},
"flowplayer": {
"vulnerabilities": [
{
Expand Down
5 changes: 5 additions & 0 deletions repository/testcases.json
Original file line number Diff line number Diff line change
Expand Up @@ -401,5 +401,10 @@
"versions": ["3.10.1"],
"subversions": [""]
}
},
"react-dom": {
"https://unpkg.com/react-dom@§§version§§/umd/react-dom.production.min.js": {
"versions": ["18.2.0", "18.1.0", "17.0.2", "16.14.0", "16.13.1"]
}
}
}

0 comments on commit 76c53ae

Please sign in to comment.