Comparing version 0.8.2 to 0.8.3
{ | ||
"name": "dagre", | ||
"version": "0.8.2", | ||
"version": "0.8.3", | ||
"main": [ | ||
@@ -5,0 +5,0 @@ "dist/dagre.core.js" |
@@ -41,3 +41,3 @@ "use strict"; | ||
var rank = _.minBy(_.map(g.outEdges(v), function(e) { | ||
var rank = _.min(_.map(g.outEdges(v), function(e) { | ||
return dfs(e.w) - g.edge(e).minlen; | ||
@@ -44,0 +44,0 @@ })); |
@@ -150,3 +150,3 @@ "use strict"; | ||
function normalizeRanks(g) { | ||
var min = _.minBy(_.map(g.nodes(), function(v) { return g.node(v).rank; })); | ||
var min = _.min(_.map(g.nodes(), function(v) { return g.node(v).rank; })); | ||
_.forEach(g.nodes(), function(v) { | ||
@@ -162,3 +162,3 @@ var node = g.node(v); | ||
// Ranks may not start at 0, so we need to offset them | ||
var offset = _.minBy(_.map(g.nodes(), function(v) { return g.node(v).rank; })); | ||
var offset = _.min(_.map(g.nodes(), function(v) { return g.node(v).rank; })); | ||
@@ -165,0 +165,0 @@ var layers = []; |
@@ -1,1 +0,1 @@ | ||
module.exports = "0.8.2"; | ||
module.exports = "0.8.3"; |
{ | ||
"name": "dagre", | ||
"version": "0.8.2", | ||
"version": "0.8.3", | ||
"description": "Graph layout for JavaScript", | ||
@@ -20,3 +20,3 @@ "author": "Chris Pettitt <cpettitt@gmail.com>", | ||
"benchmark": "^2.1.4", | ||
"browserify": "^14.5.0", | ||
"browserify": "^16.2.3", | ||
"chai": "^4.1.2", | ||
@@ -27,3 +27,3 @@ "istanbul": "^0.4.5", | ||
"jshint-stylish": "^2.2.1", | ||
"karma": "^2.0.0", | ||
"karma": "^3.0.0", | ||
"karma-chrome-launcher": "^2.2.0", | ||
@@ -30,0 +30,0 @@ "karma-firefox-launcher": "^1.1.0", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
1451381
36699
5