Socket
Socket
Sign inDemoInstall

fuzzaldrin-plus

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fuzzaldrin-plus - npm Package Compare versions

Comparing version 0.2.0 to 0.3.0

.idea/encodings.xml

8

lib/fuzzaldrin.js
(function() {
var PathSeparator, filter, legacy_scorer, matcher, scorer;
var PathSeparator, filter, legacy_scorer, matcher, prepQueryCache, scorer;

@@ -14,2 +14,4 @@ scorer = require('./scorer');

prepQueryCache = null;
module.exports = {

@@ -32,3 +34,3 @@ filter: function(candidates, query, options) {

if (prepQuery == null) {
prepQuery = scorer.prepQuery(query);
prepQuery = prepQueryCache && prepQueryCache.query === query ? prepQueryCache : (prepQueryCache = scorer.prepQuery(query));
}

@@ -64,3 +66,3 @@ if (!legacy) {

if (prepQuery == null) {
prepQuery = scorer.prepQuery(query);
prepQuery = prepQueryCache && prepQueryCache.query === query ? prepQueryCache : (prepQueryCache = scorer.prepQuery(query));
}

@@ -67,0 +69,0 @@ if (!(allowErrors || scorer.isMatch(string, prepQuery.core_lw, prepQuery.core_up))) {

(function() {
var AcronymResult, PathSeparator, Query, basenameScore, coreChars, countDir, doScore, emptyAcronymResult, file_coeff, isMatch, isSeparator, isWordEnd, isWordStart, miss_coeff, opt_char_re, pos_bonus, scoreAcronyms, scoreCharacter, scoreConsecutives, scoreExact, scoreExactMatch, scorePattern, scorePosition, scoreSize, tau_depth, tau_size, wm;
var AcronymResult, PathSeparator, Query, basenameScore, coreChars, countDir, doScore, emptyAcronymResult, file_coeff, isMatch, isSeparator, isWordEnd, isWordStart, miss_coeff, opt_char_re, pos_bonus, scoreAcronyms, scoreCharacter, scoreConsecutives, scoreExact, scoreExactMatch, scorePattern, scorePosition, scoreSize, tau_depth, tau_size, truncatedUpperCase, wm;

@@ -49,3 +49,3 @@ PathSeparator = require('path').sep;

this.core_lw = this.core.toLowerCase();
this.core_up = this.core.toUpperCase();
this.core_up = truncatedUpperCase(this.core);
this.depth = countDir(query, query.length);

@@ -378,2 +378,12 @@ }

truncatedUpperCase = function(str) {
var char, upper, _i, _len;
upper = "";
for (_i = 0, _len = str.length; _i < _len; _i++) {
char = str[_i];
upper += char.toUpperCase()[0];
}
return upper;
};
}).call(this);
{
"name": "fuzzaldrin-plus",
"version": "0.2.0",
"version": "0.3.0",
"description": "Fuzzy filtering and string scoring - compatible with fuzzaldrin",

@@ -5,0 +5,0 @@ "licenses": [

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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