Comparing version
var assert = require('assert') | ||
, StringSet = require('Set') | ||
, Heap = require('heap') | ||
// once https://github.com/domenic/dict/pull/7 | ||
// is pulled we can use that instead of this fork | ||
, dict = require('dict_') | ||
, dict = require('dict') | ||
@@ -33,3 +31,3 @@ module.exports = aStar; | ||
var startTime = new Date(); | ||
while (openDataMap.size) { | ||
while (openHeap.size()) { | ||
if (new Date() - startTime > params.timeout) break; | ||
@@ -36,0 +34,0 @@ var node = openHeap.pop(); |
{ | ||
"name": "a-star", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Generic A* algorithm", | ||
@@ -15,4 +15,4 @@ "main": "index.js", | ||
"heap": "~0.2.1", | ||
"dict_": "~1.1.1" | ||
"dict": "~1.1.0" | ||
} | ||
} |
9702
-1.02%268
-0.74%+ Added
+ Added
- Removed