@navpreetdevpuri/trie-js
Advanced tools
Comparing version 1.0.11 to 1.0.12
@@ -29,4 +29,4 @@ type TrieNode = { | ||
getPreorderPredecessorAndSuccessor(key: string): { | ||
predecessor: TrieNode; | ||
successor: TrieNode; | ||
predecessor: any[]; | ||
successor: any[]; | ||
}; | ||
@@ -33,0 +33,0 @@ createTrie(nodes: { |
@@ -116,3 +116,3 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { | ||
successor = successor ? this._getMin(successor) : null; | ||
return { predecessor: predecessor, successor: successor }; | ||
return { predecessor: predecessor.values, successor: successor.values }; | ||
}; | ||
@@ -119,0 +119,0 @@ Trie.prototype.createTrie = function (nodes) { |
{ | ||
"name": "@navpreetdevpuri/trie-js", | ||
"version": "1.0.11", | ||
"version": "1.0.12", | ||
"description": "Trie data structure implementation in javascript", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -133,4 +133,4 @@ type TrieNode = { | ||
getPreorderPredecessorAndSuccessor(key: string): { | ||
predecessor: TrieNode; | ||
successor: TrieNode; | ||
predecessor: any[]; | ||
successor: any[]; | ||
} { | ||
@@ -146,3 +146,3 @@ const queue: [TrieNode, string][] = []; | ||
return { predecessor, successor }; | ||
return { predecessor: predecessor.values, successor: successor.values }; | ||
} | ||
@@ -149,0 +149,0 @@ |
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
19836