Skip to content

Commit

Permalink
Override semver version to 7.5.3 GHSA-c2qf-rxjj-qqgw/CVE-2022-25883
Browse files Browse the repository at this point in the history
  • Loading branch information
shivammathur committed Jul 1, 2023
1 parent f1cc14e commit 394503c
Show file tree
Hide file tree
Showing 3 changed files with 677 additions and 701 deletions.
5 changes: 5 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4473,6 +4473,10 @@ function copyFile(srcFile, destFile, force) {
if (range.includes('||')) {
return range.split('||').some((r) => satisfies(version, r));
}
else if (range.includes(' - ')) {
const [a, b] = range.split(' - ', 2);
return satisfies(version, `>=${a} <=${b}`);
}
else if (range.includes(' ')) {
return range
.trim()
Expand Down Expand Up @@ -4554,6 +4558,7 @@ function copyFile(srcFile, destFile, force) {
'=': [0],
'<=': [-1, 0],
'<': [-1],
'!=': [-1, 1],
};
const allowedOperators = Object.keys(operatorResMap);
const assertValidOperator = (op) => {
Expand Down
Loading

0 comments on commit 394503c

Please sign in to comment.