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

cspell-trie-lib

Package Overview
Dependencies
Maintainers
1
Versions
295
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cspell-trie-lib - npm Package Compare versions

Comparing version 4.0.16 to 4.1.0

2

dist/lib/importExport.js

@@ -175,3 +175,3 @@ "use strict";

const cNode = children.length ? { c: new TrieNode_1.ChildMap(children) } : {};
return Object.assign({}, cNode, flags);
return Object.assign(Object.assign({}, cNode), flags);
}

@@ -178,0 +178,0 @@ readHeader(iter);

@@ -10,11 +10,3 @@ import { TrieNode } from './TrieNode';

}
export interface SuggestionIterator extends IterableIterator<SuggestionResult> {
/**
* Ask for the next result.
* maxCost - sets the max cost for following suggestions
* This is used to limit which suggestions are emitted.
* If the iterator.next() returns `undefined`, it is to request a value for maxCost.
*/
next: (maxCost?: MaxCost) => IteratorResult<SuggestionResult>;
[Symbol.iterator]: () => SuggestionIterator;
export interface SuggestionIterator extends Generator<SuggestionResult, any, MaxCost | undefined> {
}

@@ -21,0 +13,0 @@ export declare function suggest(root: TrieNode, word: string, maxNumSuggestions?: number, compoundMethod?: CompoundWordsMethod, numChanges?: number): SuggestionResult[];

@@ -23,10 +23,3 @@ import { TrieNode } from './TrieNode';

}
export interface WalkerIterator extends IterableIterator<YieldResult> {
/**
* Ask for the next result.
* goDeeper of true tells the walker to go deeper in the Trie if possible. Default is true.
* This can be used to limit the walker's depth.
*/
next: (goDeeper?: boolean) => IteratorResult<YieldResult>;
[Symbol.iterator]: () => WalkerIterator;
export interface WalkerIterator extends Generator<YieldResult, any, boolean | undefined> {
}

@@ -41,10 +34,3 @@ /**

}
export interface HintedWalkerIterator extends IterableIterator<YieldResult> {
/**
* Ask for the next result.
* goDeeper of true tells the walker to go deeper in the Trie if possible. Default is true.
* This can be used to limit the walker's depth.
*/
next: (hinting?: Hinting) => IteratorResult<YieldResult>;
[Symbol.iterator]: () => WalkerIterator;
export interface HintedWalkerIterator extends Generator<YieldResult, any, Hinting | undefined> {
}

@@ -51,0 +37,0 @@ /**

{
"name": "cspell-trie-lib",
"version": "4.0.16",
"version": "4.1.0",
"description": "Trie Data Structure to support cspell.",

@@ -60,3 +60,3 @@ "main": "dist/index.js",

},
"gitHead": "b918b39bc90962f48043d44f7a565e8026f08118"
"gitHead": "ebda8f0a8263727a73dcb3dfdf75b9f7b85e344e"
}
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