diff --git a/src/reports/repoReports/dependencyReports/npmDependencyReports/getNPMDependencyPartsFromFile.ts b/src/reports/repoReports/dependencyReports/npmDependencyReports/getNPMDependencyPartsFromFile.ts index 18c473b..990c359 100644 --- a/src/reports/repoReports/dependencyReports/npmDependencyReports/getNPMDependencyPartsFromFile.ts +++ b/src/reports/repoReports/dependencyReports/npmDependencyReports/getNPMDependencyPartsFromFile.ts @@ -12,10 +12,9 @@ export default function (ruleFile: RuleFile): NPMDependencyParts[] { const allDeps: Record = combineDeps(ruleFile) for (const name in allDeps) { - const dependencyName = name if (!(allDeps[name]).includes('file:')) { // we don't care about intra-repo dependencies parts.push({ - name: dependencyName, + name, version: removeComparatorsInVersion(allDeps[name]) }) } diff --git a/src/reports/repoReports/dependencyReports/pipDependencyReports/getPIPDependencyPartsFromFile.ts b/src/reports/repoReports/dependencyReports/pipDependencyReports/getPIPDependencyPartsFromFile.ts index 5b995e4..f2db683 100644 --- a/src/reports/repoReports/dependencyReports/pipDependencyReports/getPIPDependencyPartsFromFile.ts +++ b/src/reports/repoReports/dependencyReports/pipDependencyReports/getPIPDependencyPartsFromFile.ts @@ -11,7 +11,7 @@ export default function (ruleFile: RuleFile): PIPDependencyParts[] { if (validPIPRequirementsFile.Check(ruleFile) && ruleFile.fileType === FileTypeEnum.PIP_REQUIREMENTS) { for (const name in ruleFile.dependencies) { parts.push({ - name: name, + name, version: removeComparatorsInVersion(ruleFile.dependencies[name].version) }) }