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

searchpicker

Package Overview
Dependencies
Maintainers
3
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

searchpicker - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

2

lib/SearchPicker.d.ts

@@ -32,3 +32,3 @@ import { EventObject } from "./EventObject";

private onSelect(e, selectedVia?);
private onResultSelected(result, selectedVia?, rank?, totalCount?);
private onResultSelected(result, query?, selectedVia?, rank?, totalCount?);
private applyTemplate();

@@ -35,0 +35,0 @@ private extendOptions(def, user);

@@ -96,3 +96,3 @@ "use strict";

this.choices.on('choiceRemoved', function (item) { return _this.onChoiceRemoved(item); });
this.results.on('resultSelected', function (result, selectedVia, rank, count) { return _this.onResultSelected(result, selectedVia, rank, count); });
this.results.on('resultSelected', function (result, query, selectedVia, rank, count) { return _this.onResultSelected(result, query, selectedVia, rank, count); });
this.results.on('highlight', function (_a) {

@@ -133,3 +133,3 @@ var item = _a.item, changed = _a.changed;

};
SearchPicker.prototype.onResultSelected = function (result, selectedVia, rank, totalCount) {
SearchPicker.prototype.onResultSelected = function (result, query, selectedVia, rank, totalCount) {
this.choices.addChoice(result);

@@ -139,3 +139,3 @@ this.results.hide();

this.results.setTop(this.choices.getHeight());
this.$notifyEvent('choiceAdded', result, selectedVia, rank, totalCount);
this.$notifyEvent('choiceAdded', result, query, selectedVia, rank, totalCount);
};

@@ -142,0 +142,0 @@ SearchPicker.prototype.applyTemplate = function () {

@@ -85,3 +85,3 @@ "use strict";

if (item != null)
this.$notifyEvent('resultSelected', item, selectedVia, this.items.indexOf(item) + 1, this.items.length);
this.$notifyEvent('resultSelected', item, this.lastSearchQuery, selectedVia, this.items.indexOf(item) + 1, this.items.length);
this.setProcessSearchResponses(false);

@@ -242,3 +242,3 @@ };

if (item != null)
_this.$notifyEvent('resultSelected', item, 'click', _this.items.indexOf(item) + 1, _this.items.length);
_this.$notifyEvent('resultSelected', item, _this.lastSearchQuery, 'click', _this.items.indexOf(item) + 1, _this.items.length);
return false;

@@ -245,0 +245,0 @@ };

{
"name": "searchpicker",
"version": "1.1.0",
"version": "1.1.1",
"description": "",

@@ -5,0 +5,0 @@ "main": "./lib/index.js",

@@ -109,3 +109,3 @@ import {EventObject} from "./EventObject";

this.results.on('resultSelected', (result,selectedVia, rank, count) => this.onResultSelected(result, selectedVia, rank, count ));
this.results.on('resultSelected', (result,query, selectedVia, rank, count) => this.onResultSelected(result, query, selectedVia, rank, count ));

@@ -154,3 +154,3 @@ this.results.on('highlight', ({item, changed}) => {

private onResultSelected(result: IPickerItem, selectedVia?: string, rank?: number, totalCount?:number) {
private onResultSelected(result: IPickerItem, query?:string, selectedVia?: string, rank?: number, totalCount?:number) {
this.choices.addChoice(result);

@@ -160,3 +160,3 @@ this.results.hide();

this.results.setTop(this.choices.getHeight());
this.$notifyEvent('choiceAdded', result, selectedVia, rank, totalCount);
this.$notifyEvent('choiceAdded', result, query, selectedVia, rank, totalCount);
}

@@ -163,0 +163,0 @@

@@ -80,3 +80,3 @@ import {Utility} from "./Utils";

if (item != null)
this.$notifyEvent('resultSelected', item, selectedVia, this.items.indexOf(item)+1, this.items.length);
this.$notifyEvent('resultSelected', item, this.lastSearchQuery, selectedVia, this.items.indexOf(item)+1, this.items.length);

@@ -263,3 +263,3 @@ this.setProcessSearchResponses(false);

if (item != null)
this.$notifyEvent('resultSelected', item, 'click', this.items.indexOf(item)+1, this.items.length);
this.$notifyEvent('resultSelected', item, this.lastSearchQuery, 'click', this.items.indexOf(item)+1, this.items.length);
return false;

@@ -266,0 +266,0 @@ };

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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