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

futzy

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

futzy - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

README.md

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

6

package.json
{
"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": {

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