topo
Advanced tools
Comparing version 2.0.2 to 3.0.0
@@ -40,7 +40,7 @@ 'use strict'; | ||
seq: this._items.length, | ||
sort: sort, | ||
before: before, | ||
after: after, | ||
group: group, | ||
node: node | ||
sort, | ||
before, | ||
after, | ||
group, | ||
node | ||
}; | ||
@@ -175,3 +175,3 @@ | ||
for (let i = 0; i < this._items.length; ++i) { | ||
for (let i = 0; i < this._items.length; ++i) { // Really looping thru item.seq values out of order | ||
let next = i; | ||
@@ -181,3 +181,3 @@ | ||
next = null; | ||
for (let j = 0; j < this._items.length; ++j) { | ||
for (let j = 0; j < this._items.length; ++j) { // As above, these are item.seq values | ||
if (visited[j] === true) { | ||
@@ -194,3 +194,3 @@ continue; | ||
for (let k = 0; k < shouldSeeCount; ++k) { | ||
if (sorted.indexOf(ancestors[j][k]) >= 0) { | ||
if (visited[ancestors[j][k]]) { | ||
++seenCount; | ||
@@ -208,3 +208,2 @@ } | ||
if (next !== null) { | ||
next = next.toString(); // Normalize to string TODO: replace with seq | ||
visited[next] = true; | ||
@@ -211,0 +210,0 @@ sorted.push(next); |
{ | ||
"name": "topo", | ||
"description": "Topological sorting with grouping support", | ||
"version": "2.0.2", | ||
"version": "3.0.0", | ||
"repository": "git://github.com/hapijs/topo", | ||
@@ -14,10 +14,10 @@ "main": "lib/index.js", | ||
"engines": { | ||
"node": ">=4.0.0" | ||
"node": ">=8.0.0" | ||
}, | ||
"dependencies": { | ||
"hoek": "4.x.x" | ||
"hoek": "5.x.x" | ||
}, | ||
"devDependencies": { | ||
"code": "3.x.x", | ||
"lab": "10.x.x" | ||
"code": "5.x.x", | ||
"lab": "14.x.x" | ||
}, | ||
@@ -24,0 +24,0 @@ "scripts": { |
8870
164
+ Addedhoek@5.0.4(transitive)
- Removedhoek@4.3.1(transitive)
Updatedhoek@5.x.x