Socket
Socket
Sign inDemoInstall

frecency

Package Overview
Dependencies
0
Maintainers
24
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.3.0 to 1.3.1

2

CHANGELOG.md
## Release History
* 1.3.1 fallback on other score computation when an entry is too old #11
* 1.3.0 make weights configurable #12

@@ -4,0 +6,0 @@

4

dist/browser.js

@@ -469,3 +469,3 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {

result._frecencyScore = _this._exactQueryMatchWeight * _this._calculateScore(_selection.selectedAt, _selection.timesSelected, now);
return;
if (result._frecencyScore > 0) return;
}

@@ -495,3 +495,3 @@ }

result._frecencyScore = _this._subQueryMatchWeight * _this._calculateScore(_selection2.selectedAt, _selection2.timesSelected, now);
return;
if (result._frecencyScore > 0) return;
}

@@ -498,0 +498,0 @@ }

@@ -460,3 +460,3 @@ 'use strict';

result._frecencyScore = _this._exactQueryMatchWeight * _this._calculateScore(_selection.selectedAt, _selection.timesSelected, now);
return;
if (result._frecencyScore > 0) return;
}

@@ -486,3 +486,3 @@ }

result._frecencyScore = _this._subQueryMatchWeight * _this._calculateScore(_selection2.selectedAt, _selection2.timesSelected, now);
return;
if (result._frecencyScore > 0) return;
}

@@ -489,0 +489,0 @@ }

{
"name": "frecency",
"version": "1.3.0",
"version": "1.3.1",
"description": "Frecency sorting for search results.",

@@ -5,0 +5,0 @@ "main": "dist/main.js",

@@ -304,3 +304,3 @@ // @flow

selection.timesSelected, now);
return;
if (result._frecencyScore > 0) return;
}

@@ -324,3 +324,3 @@ }

selection.timesSelected, now);
return;
if (result._frecencyScore > 0) return;
}

@@ -327,0 +327,0 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc