Socket
Socket
Sign inDemoInstall

option-tree-navigate

Package Overview
Dependencies
1
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.2.1 to 0.3.0

6

index.js

@@ -25,3 +25,7 @@ module.exports = OptionTree

has: has.bind(null, tree, opts)
// query nodes
has: has.bind(null, tree, opts),
// for plugins
_tree: tree
}

@@ -28,0 +32,0 @@ }

2

package.json
{
"name": "option-tree-navigate",
"description": "navigate an object tree",
"version": "0.2.1",
"version": "0.3.0",
"repository": {

@@ -6,0 +6,0 @@ "url": "nrw/option-tree-navigate"

@@ -228,1 +228,15 @@ var test = require('tape')

})
test('exposes tree', function (t) {
var data = [{
id: 'x',
_opts: [
{id: 'y'},
{id: 'z'}
]
}]
tree = NavTree(data)
t.equal(tree._tree, data)
t.end()
})
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc