Comparing version 0.1.0 to 0.1.1
17
index.js
@@ -8,7 +8,4 @@ const TrieSearch = require("trie-search"); | ||
const DEFAULT_OPTIONS = { | ||
// indexChunkyStrings: true, | ||
// indexTinyStrings: true, | ||
performRawSearch: false, | ||
performRawSearchWhenNoResults: true, | ||
preindexOneCharacterResults: false, | ||
resultLimit: 20, | ||
@@ -36,10 +33,2 @@ }; | ||
for (const record of this.tokenizedData) { | ||
// if (this.options.indexChunkyStrings) { | ||
// if (!(record.normalized in tokenMapping)) { | ||
// tokenTrie.map(record.normalized, record.normalized); | ||
// tokenMapping[record.normalized] = new Set(); | ||
// } | ||
// tokenMapping[record.normalized].add(record); | ||
// } | ||
// if (this.options.indexTinyStrings) { | ||
for (const token of record.tokens) { | ||
@@ -54,3 +43,2 @@ recordTrie.map(token, record); | ||
} | ||
// } | ||
} | ||
@@ -88,7 +76,2 @@ | ||
// all records that match that token. | ||
// const matchingRecordsPerToken = matchRecordsToTokens( | ||
// matchingTokensOrdered, | ||
// this.index, | ||
// queryTokens | ||
// ); | ||
const matchingRecordsPerToken = queryTokens.map((qt) => | ||
@@ -95,0 +78,0 @@ // new Set(this.index.recordTrie.search(qt)) |
{ | ||
"name": "futzy", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "A fuzzy string matching library", | ||
@@ -11,5 +11,5 @@ "main": "index.js", | ||
"type": "git", | ||
"url": "git@git.corp.stripe.com:basta/futzy.git" | ||
"url": "git@github.com:mattbasta/futzy.git" | ||
}, | ||
"author": "", | ||
"author": "Matt Basta <me@mattbasta.com>", | ||
"license": "ISC", | ||
@@ -16,0 +16,0 @@ "dependencies": { |
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
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
16177
8
1
1
87
345