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

atom-select-list

Package Overview
Dependencies
Maintainers
4
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

atom-select-list - npm Package Compare versions

Comparing version 0.0.12 to 0.0.13

2

package.json
{
"name": "atom-select-list",
"version": "0.0.12",
"version": "0.0.13",
"description": "A general-purpose select list for use in Atom packages",

@@ -5,0 +5,0 @@ "main": "./src/select-list-view.js",

@@ -304,4 +304,4 @@ /** @babel */

} else {
if (this.props.didCancelSelection) {
this.props.didCancelSelection()
if (this.props.didConfirmEmptySelection) {
this.props.didConfirmEmptySelection()
}

@@ -308,0 +308,0 @@ }

@@ -156,2 +156,3 @@ /** @babel */

it('confirming an empty selection', async () => {
let emptySelectionConfirmEventsCount = 0
let selectionCancelEventsCount = 0

@@ -166,2 +167,3 @@ const selectionConfirmEvents = []

didConfirmSelection: (item) => { selectionConfirmEvents.push(item) },
didConfirmEmptySelection: (item) => { emptySelectionConfirmEventsCount++ },
didCancelSelection: () => { selectionCancelEventsCount++ },

@@ -177,5 +179,5 @@ filterKeyForItem: (item) => item.name

assert.deepEqual(selectionConfirmEvents, [])
assert.equal(selectionCancelEventsCount, 1)
assert.equal(selectionCancelEventsCount, 0)
assert.equal(emptySelectionConfirmEventsCount, 1)
selectionCancelEventsCount = 0
selectListView.reset()

@@ -187,3 +189,3 @@ await selectListView.update({items: []})

assert.deepEqual(selectionConfirmEvents, [])
assert.equal(selectionCancelEventsCount, 1)
assert.equal(emptySelectionConfirmEventsCount, 2)
})

@@ -190,0 +192,0 @@

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