mirror of
https://github.com/pnpm/pnpm.git
synced 2026-04-27 18:46:18 -04:00
fix: maximum call stack size exceeded error related to circular workspace dependencies (#8599)
This commit is contained in:
6
.changeset/many-cycles-search.md
Normal file
6
.changeset/many-cycles-search.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
"@pnpm/lockfile.filtering": patch
|
||||
"pnpm": patch
|
||||
---
|
||||
|
||||
Fix maximum call stack size exceeded error related to circular workspace dependencies [#8599](https://github.com/pnpm/pnpm/pull/8599).
|
||||
@@ -215,11 +215,12 @@ function toImporterDepPaths (
|
||||
}))
|
||||
.map(Object.entries)
|
||||
|
||||
const { depPaths, importerIds: nextImporterIds } = parseDepRefs(unnest(importerDeps), lockfile)
|
||||
let { depPaths, importerIds: nextImporterIds } = parseDepRefs(unnest(importerDeps), lockfile)
|
||||
|
||||
if (!nextImporterIds.length) {
|
||||
return depPaths
|
||||
}
|
||||
nextImporterIds = nextImporterIds.filter(importerId => !opts.importerIdSet.has(importerId))
|
||||
for (const importerId of nextImporterIds) {
|
||||
opts.importerIdSet.add(importerId)
|
||||
}
|
||||
|
||||
@@ -266,7 +266,7 @@ function reportSummary (vulnerabilities: AuditVulnerabilityCounts, totalVulnerab
|
||||
return `${chalk.red(totalVulnerabilityCount)} vulnerabilities found\nSeverity: ${
|
||||
Object.entries(vulnerabilities)
|
||||
.filter(([auditLevel, vulnerabilitiesCount]) => vulnerabilitiesCount > 0)
|
||||
.map(([auditLevel, vulnerabilitiesCount]) => AUDIT_COLOR[auditLevel as AuditLevelString](`${vulnerabilitiesCount} ${auditLevel}`))
|
||||
.map(([auditLevel, vulnerabilitiesCount]) => AUDIT_COLOR[auditLevel as AuditLevelString](`${vulnerabilitiesCount as string} ${auditLevel}`))
|
||||
.join(' | ')
|
||||
}`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user