New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@pnpm/deps.graph-sequencer

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pnpm/deps.graph-sequencer - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

11

lib/index.js

@@ -83,2 +83,3 @@ "use strict";

const cycleVisited = new Set();
const cycles = [];
while (queue.length) {

@@ -88,3 +89,5 @@ const [id, cycle] = queue.shift();

if (to === startNode) {
return cycle;
cycleVisited.add(to);
cycles.push([...cycle]);
continue;
}

@@ -98,3 +101,7 @@ if (visited.has(to) || cycleVisited.has(to)) {

}
return [];
if (!cycles.length) {
return [];
}
cycles.sort((a, b) => b.length - a.length);
return cycles[0];
}

@@ -101,0 +108,0 @@ }

4

package.json
{
"name": "@pnpm/deps.graph-sequencer",
"version": "2.0.0",
"version": "2.0.1",
"description": "Sort items in a graph using a topological sort",

@@ -27,3 +27,3 @@ "main": "lib/index.js",

"devDependencies": {
"@pnpm/deps.graph-sequencer": "2.0.0"
"@pnpm/deps.graph-sequencer": "2.0.1"
},

@@ -30,0 +30,0 @@ "exports": {

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