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

toposort

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

toposort - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

9

index.js

@@ -9,3 +9,3 @@

module.exports = function(edges){
module.exports = function(edges) {
return toposort(uniqueNodes(edges), edges)

@@ -25,2 +25,9 @@ }

// check for unknown nodes
edges.forEach(function(edge) {
if (!nodesHash.has(edge[0]) || !nodesHash.has(edge[1])) {
throw new Error('Unknown node. There is an unknown node in the supplied edges.')
}
})
while (i--) {

@@ -27,0 +34,0 @@ if (!visited[i]) visit(nodes[i], i, new Set())

2

package.json
{
"name": "toposort",
"version": "2.0.1",
"version": "2.0.2",
"description": "Topological sort of directed ascyclic graphs (like dependecy lists)",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -85,3 +85,3 @@ var vows = require('vows')

{ topic: function() {
return toposort.array(['bla']
return toposort.array(['bla'],
[ ["foo", 'bar']

@@ -88,0 +88,0 @@ , ["bar", "ron"]

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