Comparing version 2.1.0 to 2.1.1
{ | ||
"name": "lunr.js", | ||
"version": "1.0.0", | ||
"version": "2.1.0", | ||
"main": "lunr.js", | ||
@@ -5,0 +5,0 @@ "ignore": [ |
{ | ||
"name": "lunr", | ||
"repo": "olivernn/lunr.js", | ||
"version": "1.0.0", | ||
"version": "2.1.0", | ||
"description": "Simple full-text search in your browser.", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
@@ -128,3 +128,3 @@ /*! | ||
fieldRef = new lunr.FieldRef (docRef, fieldName), | ||
fieldTerms = {} | ||
fieldTerms = Object.create(null) | ||
@@ -131,0 +131,0 @@ this.fieldTermFrequencies[fieldRef] = fieldTerms |
{ | ||
"name": "lunr", | ||
"description": "Simple full-text search in your browser.", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"author": "Oliver Nightingale", | ||
"keywords": ["search"], | ||
"keywords": [ | ||
"search" | ||
], | ||
"homepage": "http://lunrjs.com", | ||
@@ -8,0 +10,0 @@ "bugs": "http://github.com/olivernn/lunr.js/issues", |
@@ -13,2 +13,4 @@ suite('lunr.Builder', function () { | ||
assert.deepEqual(this.builder.invertedIndex.constructor.title.id, {}) | ||
assert.equal(this.builder.fieldTermFrequencies['title/id'].constructor, 1) | ||
}) | ||
@@ -15,0 +17,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
618864
79
18597