@pnpm/render-peer-issues
Advanced tools
Comparing version 5.0.8 to 5.0.9
@@ -41,10 +41,9 @@ "use strict"; | ||
if (currentParentPkg && allowedVersionsByParentPkgName[peerName]?.[currentParentPkg.name]) { | ||
const allowedVersionsByParent = allowedVersionsByParentPkgName[peerName][currentParentPkg.name] | ||
.reduce((acc, { targetPkg, parentPkg, ranges }) => { | ||
const allowedVersionsByParent = {}; | ||
for (const { targetPkg, parentPkg, ranges } of allowedVersionsByParentPkgName[peerName][currentParentPkg.name]) { | ||
if (!parentPkg.pref || currentParentPkg.version && | ||
(isSubRange(parentPkg.pref, currentParentPkg.version) || semver_1.default.satisfies(currentParentPkg.version, parentPkg.pref))) { | ||
acc[targetPkg.name] = ranges; | ||
allowedVersionsByParent[targetPkg.name] = ranges; | ||
} | ||
return acc; | ||
}, {}); | ||
} | ||
if (allowedVersionsByParent[peerName]?.some((range) => semver_1.default.satisfies(issue.foundVersion, range))) | ||
@@ -76,3 +75,3 @@ continue; | ||
} | ||
const title = chalk_1.default.white(projectKey); | ||
const title = chalk_1.default.reset(projectKey); | ||
let summariesConcatenated = summaries.join('\n'); | ||
@@ -79,0 +78,0 @@ if (summariesConcatenated) { |
{ | ||
"name": "@pnpm/render-peer-issues", | ||
"description": "Visualizes peer dependency issues", | ||
"version": "5.0.8", | ||
"version": "5.0.9", | ||
"bugs": { | ||
@@ -29,6 +29,6 @@ "url": "https://github.com/pnpm/pnpm/issues" | ||
"semver": "^7.6.2", | ||
"@pnpm/error": "6.0.1", | ||
"@pnpm/matcher": "6.0.0", | ||
"@pnpm/parse-overrides": "5.1.0", | ||
"@pnpm/types": "12.2.0" | ||
"@pnpm/error": "6.0.2", | ||
"@pnpm/parse-overrides": "5.1.1", | ||
"@pnpm/types": "12.2.0", | ||
"@pnpm/matcher": "6.0.0" | ||
}, | ||
@@ -39,3 +39,3 @@ "devDependencies": { | ||
"strip-ansi": "^6.0.1", | ||
"@pnpm/render-peer-issues": "5.0.8" | ||
"@pnpm/render-peer-issues": "5.0.9" | ||
}, | ||
@@ -42,0 +42,0 @@ "exports": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17459
169
+ Added@pnpm/catalogs.resolver@0.1.1(transitive)
+ Added@pnpm/constants@9.0.0(transitive)
+ Added@pnpm/error@6.0.2(transitive)
+ Added@pnpm/parse-overrides@5.1.1(transitive)
- Removed@pnpm/catalogs.resolver@0.1.0(transitive)
- Removed@pnpm/constants@8.0.0(transitive)
- Removed@pnpm/error@6.0.1(transitive)
- Removed@pnpm/parse-overrides@5.1.0(transitive)
Updated@pnpm/error@6.0.2
Updated@pnpm/parse-overrides@5.1.1