Skip to content

Commit

Permalink
Support for overrides
Browse files Browse the repository at this point in the history
Signed-off-by: Prabhu Subramanian <prabhu@appthreat.com>
  • Loading branch information
prabhu committed Oct 14, 2024
1 parent 6a4529c commit 126f4f8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions lib/helpers/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -2177,6 +2177,12 @@ export async function parsePnpmLock(pnpmLock, parentComponent = null) {
if (vers.includes("file:") || vers.includes("link:")) {
vers = await getVersionNumPnpm(vers.split("@").pop());
}
// With overrides version could be like this: @nolyfill/side-channel@1.0.29
if (vers.includes("@")) {
const overrideVersion = vers.split("@").pop();
dpkgName = vers.replace(`@${overrideVersion}`, "");
vers = overrideVersion;
}
const dpurlString = new PackageURL(
"npm",
"",
Expand Down
2 changes: 1 addition & 1 deletion types/lib/helpers/utils.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 126f4f8

Please sign in to comment.