Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@pnpm/render-peer-issues

Package Overview
Dependencies
Maintainers
2
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pnpm/render-peer-issues - npm Package Compare versions

Comparing version 2.0.6 to 2.1.0

9

lib/index.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc