Socket
Socket
Sign inDemoInstall

option-select-action

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

option-select-action - npm Package Compare versions

Comparing version 0.2.0 to 0.3.0

5

index.js

@@ -12,2 +12,3 @@ var slice = Array.prototype.slice

select: select.bind(null, actions, value, opts),
pop: pop.bind(null, value),
toObject: toObject.bind(null, value),

@@ -29,4 +30,8 @@ value: toObject.bind(null, value)

function pop (value) {
return value.pop()
}
function toObject (value) {
return value
}

2

package.json
{
"name": "option-select-action",
"description": "add an option object to a value array or call a fuction based on the object's properties",
"version": "0.2.0",
"version": "0.3.0",
"repository": {

@@ -6,0 +6,0 @@ "url": "nrw/option-select-action"

@@ -30,2 +30,5 @@ # option-select-action [![build status](https://secure.travis-ci.org/nrw/option-select-action.png)](http://travis-ci.org/nrw/option-select-action)

assert.equal(i, 2)
store.pop()
assert.deepEqual(store.value(), [])
```

@@ -27,2 +27,8 @@ var test = require('tape')

t.equal(i, 2)
t.same(store.pop(), {id: 'six'})
t.same(store.value(), [{}])
store.pop()
t.same(store.value(), [])
t.end()

@@ -29,0 +35,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