graph-typed
Advanced tools
Comparing version
@@ -421,4 +421,9 @@ "use strict"; | ||
const nodeC = startNode.children.get(c); | ||
if (nodeC) | ||
if (nodeC) { | ||
startNode = nodeC; | ||
} | ||
else { | ||
// Early return if the whole prefix is not found | ||
return []; | ||
} | ||
} | ||
@@ -425,0 +430,0 @@ } |
{ | ||
"name": "graph-typed", | ||
"version": "1.52.2", | ||
"version": "1.52.3", | ||
"description": "Graph. Javascript & Typescript Data Structure.", | ||
@@ -139,4 +139,4 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"data-structure-typed": "^1.52.2" | ||
"data-structure-typed": "^1.52.3" | ||
} | ||
} |
@@ -457,3 +457,8 @@ /** | ||
const nodeC = startNode.children.get(c); | ||
if (nodeC) startNode = nodeC; | ||
if (nodeC) { | ||
startNode = nodeC; | ||
} else { | ||
// Early return if the whole prefix is not found | ||
return []; | ||
} | ||
} | ||
@@ -460,0 +465,0 @@ } |
2931108
0.01%42252
0.02%Updated