synchronous-autocomplete
Advanced tools
Comparing version 2.0.0-alpha.1 to 2.0.0
@@ -7,3 +7,2 @@ 'use strict'; | ||
// todo: handle props like `toString` | ||
var buildIndexes = function buildIndexes(tokenize, items) { | ||
@@ -10,0 +9,0 @@ var originalIds = []; |
@@ -11,7 +11,5 @@ 'use strict'; | ||
// todo: hasProp check? | ||
if (tokens[fragment]) { | ||
var relevance = 1 + scores[fragment] + Math.sqrt(fragment.length); | ||
// todo: for i loop | ||
var _iteratorNormalCompletion = true; | ||
@@ -47,3 +45,2 @@ var _didIteratorError = false; | ||
for (var t in tokens) { | ||
// todo: hasProp check? | ||
if (fragment === t) continue; // has been dealt with above | ||
@@ -61,3 +58,2 @@ | ||
// todo: for i loop | ||
var _iteratorNormalCompletion2 = true; | ||
@@ -64,0 +60,0 @@ var _didIteratorError2 = false; |
{ | ||
"name": "synchronous-autocomplete", | ||
"description": "Fast, simple autocompletion.", | ||
"version": "2.0.0-alpha.1", | ||
"version": "2.0.0", | ||
"main": "index.js", | ||
@@ -6,0 +6,0 @@ "files": [ |
@@ -5,3 +5,2 @@ 'use strict' | ||
// todo: handle props like `toString` | ||
const buildIndexes = (tokenize, items) => { | ||
@@ -8,0 +7,0 @@ const originalIds = [] |
@@ -11,7 +11,5 @@ 'use strict' | ||
// todo: hasProp check? | ||
if (tokens[fragment]) { | ||
const relevance = 1 + scores[fragment] + Math.sqrt(fragment.length) | ||
// todo: for i loop | ||
for (let id of tokens[fragment]) { | ||
@@ -26,3 +24,2 @@ if (!results[id] || !results[id] > relevance) { | ||
for (let t in tokens) { | ||
// todo: hasProp check? | ||
if (fragment === t) continue // has been dealt with above | ||
@@ -40,3 +37,2 @@ | ||
// todo: for i loop | ||
for (let id of tokens[t]) { | ||
@@ -43,0 +39,0 @@ if (!results[id] || !results[id] > relevance) { |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
0
15758
307