Socket
Socket
Sign inDemoInstall

toposort-class

Package Overview
Dependencies
0
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.1 to 0.1.2

2

index.js

@@ -89,3 +89,3 @@ /**

}).forEach(function(e) {
visit(e[1], predsCopy, i);
i = visit(e[1], predsCopy, i);
});

@@ -92,0 +92,0 @@

{
"name": "toposort-class",
"version": "0.1.1",
"version": "0.1.2",
"description": "Topological sort of directed acyclic graphs (like dependecy lists)",

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

@@ -10,2 +10,3 @@ # Toposort

Let's say you have the following dependency graph:
* Plugin depends on Backbone and jQuery UI Button;

@@ -18,2 +19,3 @@ * Backbone depends on jQuery and Underscore;

Now, how would you sort this in a way that each asset will be correctly placed? You'll probably need the following sorting:
* `jQuery`, `jQuery UI Core`, `jQuery UI Widget`, `jQuery UI Button`, `Underscore`, `Backbone`, `Plugin`

@@ -63,2 +65,2 @@

## Legal
MIT License
MIT License
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc