@pnpm/render-peer-issues
Advanced tools
Comparing version 2.0.6 to 2.1.0
@@ -71,10 +71,11 @@ "use strict"; | ||
const [pkg, ...rest] = pkgs; | ||
if (!pkgNode.dependencies[pkg.name]) { | ||
pkgNode.dependencies[pkg.name] = { dependencies: {}, peerIssues: [] }; | ||
const label = `${pkg.name} ${chalk_1.default.grey(pkg.version)}`; | ||
if (!pkgNode.dependencies[label]) { | ||
pkgNode.dependencies[label] = { dependencies: {}, peerIssues: [] }; | ||
} | ||
if (rest.length === 0) { | ||
pkgNode.dependencies[pkg.name].peerIssues.push(issueText); | ||
pkgNode.dependencies[label].peerIssues.push(issueText); | ||
return; | ||
} | ||
createTree(pkgNode.dependencies[pkg.name], rest, issueText); | ||
createTree(pkgNode.dependencies[label], rest, issueText); | ||
} | ||
@@ -81,0 +82,0 @@ function toArchyData(depName, pkgNode) { |
{ | ||
"name": "@pnpm/render-peer-issues", | ||
"description": "Visualizes peer dependency issues", | ||
"version": "2.0.6", | ||
"version": "2.1.0", | ||
"bugs": { | ||
@@ -31,3 +31,3 @@ "url": "https://github.com/pnpm/pnpm/issues" | ||
"devDependencies": { | ||
"@pnpm/render-peer-issues": "2.0.6", | ||
"@pnpm/render-peer-issues": "2.1.0", | ||
"@types/archy": "0.0.31", | ||
@@ -34,0 +34,0 @@ "strip-ansi": "^6.0.1" |
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
10666
97