@assetval/fuzzyset
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -1,2 +0,2 @@ | ||
interface FuzzySetInterface { | ||
declare class FuzzySearch { | ||
gramSizeLower: number; | ||
@@ -8,16 +8,7 @@ gramSizeUpper: number; | ||
items: Record<number, Array<[number, string]>>; | ||
add(value: string): void; | ||
length(): number; | ||
isEmpty(): boolean; | ||
values(): string[]; | ||
} | ||
declare class FuzzySearch implements FuzzySetInterface { | ||
gramSizeLower: number; | ||
gramSizeUpper: number; | ||
useLevenshtein: boolean; | ||
exactSet: Record<string, string>; | ||
matchDict: Record<string, Array<[number, number]>>; | ||
items: Record<number, Array<[number, string]>>; | ||
constructor(arr: string[], useLevenshtein?: boolean, gramSizeLower?: number, gramSizeUpper?: number); | ||
private levenshtein; | ||
get(value: string, defaultValue?: any, minMatchScore?: number): any; | ||
private _get; | ||
private __get; | ||
private _distance; | ||
@@ -24,0 +15,0 @@ private _nonWordRe; |
{ | ||
"name": "@assetval/fuzzyset", | ||
"description": "A fast fuzzy string set for JavaScript", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"sideEffects": false, | ||
@@ -6,0 +6,0 @@ "homepage": "http://Glench.github.com/fuzzyset.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
24615
453