Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@navpreetdevpuri/trie-js

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@navpreetdevpuri/trie-js - npm Package Compare versions

Comparing version 1.0.11 to 1.0.12

4

lib/index.d.ts

@@ -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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc