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

lunr

Package Overview
Dependencies
Maintainers
1
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lunr - npm Package Compare versions

Comparing version 2.3.3 to 2.3.4

4

CHANGELOG.md
# Changelog
## 2.3.4
* Ensure that [inverted index is prototype-less](https://github.com/olivernn/lunr.js/pull/378) after serialization, thanks [Rob Hoelz](https://github.com/hoelzro).
## 2.3.3

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

2

lib/index.js

@@ -456,3 +456,3 @@ /*!

serializedVectors = serializedIndex.fieldVectors,
invertedIndex = {},
invertedIndex = Object.create(null),
serializedInvertedIndex = serializedIndex.invertedIndex,

@@ -459,0 +459,0 @@ tokenSetBuilder = new lunr.TokenSet.Builder,

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

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

@@ -18,2 +18,7 @@ suite('serialization', function () {

wordCount: 16
},{
id: 'd',
title: 'All about JavaScript',
body: 'JavaScript objects have a special __proto__ property',
wordCount: 7
}]

@@ -41,2 +46,10 @@

})
test('__proto__ double serialization', function () {
var doubleLoadedIdx = lunr.Index.load(JSON.parse(JSON.stringify(this.loadedIdx))),
idxResults = this.idx.search('__proto__'),
doubleSerializedResults = doubleLoadedIdx.search('__proto__')
assert.deepEqual(idxResults, doubleSerializedResults)
})
})

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc