Comparing version 2.0.1 to 2.0.2
@@ -96,5 +96,5 @@ 'use strict'; | ||
const groups = {}; | ||
const graph = {}; | ||
const graphAfters = {}; | ||
const graphAfters = Object.create(null); // A prototype can bungle lookups w/ false positives | ||
const groups = Object.create(null); | ||
@@ -136,3 +136,2 @@ for (let i = 0; i < this._items.length; ++i) { | ||
for (let k = 0; k < groups[group].length; ++k) { | ||
expandedGroups.push(groups[group][k]); | ||
@@ -139,0 +138,0 @@ } |
{ | ||
"name": "topo", | ||
"description": "Topological sorting with grouping support", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"repository": "git://github.com/hapijs/topo", | ||
@@ -20,3 +20,3 @@ "main": "lib/index.js", | ||
"devDependencies": { | ||
"code": "2.x.x", | ||
"code": "3.x.x", | ||
"lab": "10.x.x" | ||
@@ -23,0 +23,0 @@ }, |
@@ -5,3 +5,3 @@ # topo | ||
[![Build Status](https://secure.travis-ci.org/hapijs/topo.png)](http://travis-ci.org/hapijs/topo) | ||
[![Build Status](https://secure.travis-ci.org/hapijs/topo.svg?branch=master)](http://travis-ci.org/hapijs/topo) | ||
@@ -16,5 +16,5 @@ Lead Maintainer: [Devin Ivy](https://github.com/devinivy) | ||
```node | ||
var Topo = require('topo'); | ||
const Topo = require('topo'); | ||
var morning = new Topo(); | ||
const morning = new Topo(); | ||
@@ -21,0 +21,0 @@ morning.add('Nap', { after: ['breakfast', 'prep'] }); |
Sorry, the diff of this file is not supported yet
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
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
7241
4
165