max-priority-queue-typed
Advanced tools
Comparing version 1.52.2 to 1.52.3
@@ -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": "max-priority-queue-typed", | ||
"version": "1.52.2", | ||
"version": "1.52.3", | ||
"description": "Max Priority Queue. Javascript & Typescript Data Structure.", | ||
@@ -130,4 +130,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 @@ } |
1968911
41447
Updateddata-structure-typed@^1.52.3