Socket
Socket
Sign inDemoInstall

lunr

Package Overview
Dependencies
0
Maintainers
1
Versions
64
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.1.5 to 2.1.6

perf/pipeline_perf.js

4

CHANGELOG.md
# Changelog
## 2.1.6
* Improve pipeline performance for large fields [#329](https://github.com/olivernn/lunr.js/pull/329), thanks [andymcm](https://github.com/andymcm).
## 2.1.5

@@ -4,0 +8,0 @@

19

lib/pipeline.js

@@ -206,10 +206,19 @@ /*!

var fn = this._stack[i]
var memo = []
tokens = tokens.reduce(function (memo, token, j) {
var result = fn(token, j, tokens)
for (var j = 0; j < tokens.length; j++) {
var result = fn(tokens[j], j, tokens)
if (result === void 0 || result === '') return memo
if (result === void 0 || result === '') continue
return memo.concat(result)
}, [])
if (result instanceof Array) {
for (var k = 0; k < result.length; k++) {
memo.push(result[k])
}
} else {
memo.push(result)
}
}
tokens = memo
}

@@ -216,0 +225,0 @@

{
"name": "lunr",
"description": "Simple full-text search in your browser.",
"version": "2.1.5",
"version": "2.1.6",
"author": "Oliver Nightingale",

@@ -6,0 +6,0 @@ "keywords": [

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

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