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

trie-search

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

trie-search - npm Package Compare versions

Comparing version 1.2.7 to 1.2.8

2

package.json

@@ -6,3 +6,3 @@ {

"description": "A trie implementation that maps keys to objects for rapid retrieval by phrases. Most common use will be for typeahead searches.",
"version": "1.2.7",
"version": "1.2.8",
"main": "index.js",

@@ -9,0 +9,0 @@ "url": "https://github.com/joshjung/trie-search",

@@ -168,4 +168,4 @@ var HashArray = require('hasharray');

var phrases = key.split(this.options.splitOnRegEx);
var emptySplitMatch = phrases.filter(p => IS_WHITESPACE.test(p));
var selfMatch = phrases.filter(p => p === key);
var emptySplitMatch = phrases.filter(function(p) { return IS_WHITESPACE.test(p); });
var selfMatch = phrases.filter(function(p) { return p === key; });
var selfIsOnlyMatch = selfMatch.length + emptySplitMatch.length === phrases.length;

@@ -172,0 +172,0 @@

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