New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

synchronous-autocomplete

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

synchronous-autocomplete - npm Package Compare versions

Comparing version 2.0.0-alpha.1 to 2.0.0

1

build.js

@@ -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;

2

package.json
{
"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) {

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