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

search-filterer

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

search-filterer - npm Package Compare versions

Comparing version 1.6.0 to 1.6.1

10

dist/index.js

@@ -5,4 +5,10 @@ "use strict";

const distance = (string1, string2) => {
const a = string1.trim().toLowerCase();
const b = string2.trim().toLowerCase();
const a = string1
.trim()
.toLowerCase()
.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&");
const b = string2
.trim()
.toLowerCase()
.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&");
if (!a.length || !b.length) {

@@ -9,0 +15,0 @@ return Infinity;

2

package.json
{
"name": "search-filterer",
"version": "1.6.0",
"version": "1.6.1",
"description": "A curried memoized search library",

@@ -5,0 +5,0 @@ "repository": "https://github.com/amatthews4851/search-filterer",

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