Socket
Socket
Sign inDemoInstall

@kamilmielnik/trie

Package Overview
Dependencies
0
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0-rc.0 to 1.0.0-rc.1

3

dist/index.d.ts

@@ -0,4 +1,5 @@

import { default as Trie } from './Trie';
export { Trie };
export * from './constants';
export * from './lib';
export { default as Trie } from './Trie';
export * from './types';

@@ -17,6 +17,6 @@ "use strict";

exports.Trie = void 0;
var Trie_1 = __importDefault(require("./Trie"));
Object.defineProperty(exports, "Trie", { enumerable: true, get: function () { return Trie_1.default; } });
__exportStar(require("./constants"), exports);
__exportStar(require("./lib"), exports);
var Trie_1 = require("./Trie");
Object.defineProperty(exports, "Trie", { enumerable: true, get: function () { return __importDefault(Trie_1).default; } });
__exportStar(require("./types"), exports);

@@ -12,2 +12,6 @@ "use strict";

if (prefix.length === 0) {
if (node.wordEnd) {
delete node.wordEnd;
return true;
}
return false;

@@ -20,14 +24,2 @@ }

}
if (prefix.length === 1) {
if (!nextNode.wordEnd) {
return false;
}
if (Object.keys(nextNode).length === 1) {
delete node[letter];
}
else {
delete nextNode.wordEnd;
}
return true;
}
var removed = remove(nextNode, prefix.substring(1));

@@ -34,0 +26,0 @@ if (!removed) {

{
"name": "@kamilmielnik/trie",
"version": "1.0.0-rc.0",
"version": "1.0.0-rc.1",
"description": "Trie data structure implementation (in TypeScript). Highly performant. No dependencies. Built for a Scrabble Solver.",

@@ -85,3 +85,3 @@ "keywords": [

"np": "^7.0.0",
"prettier": "^2.1.2",
"prettier": "^2.2.0",
"rimraf": "^3.0.2",

@@ -91,4 +91,4 @@ "ts-jest": "^26.4.4",

"typedoc-plugin-markdown": "^3.0.11",
"typescript": "^4.0.5"
"typescript": "^4.1.2"
}
}
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc