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

unist-util-select

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

unist-util-select - npm Package Compare versions

Comparing version 1.4.0 to 1.5.0

8

index.js

@@ -10,2 +10,6 @@ 'use strict';

var select = function select (ast, selector) {
if (arguments.length == 1) {
return select.bind(this, ast);
}
debug('Selector: %j', selector);

@@ -20,2 +24,6 @@ selector = parseSelector(selector);

select.one = function selectOne (ast, selector) {
if (arguments.length == 1) {
return selectOne.bind(this, ast);
}
var nodes = select(ast, selector);

@@ -22,0 +30,0 @@

2

package.json
{
"name": "unist-util-select",
"version": "1.4.0",
"version": "1.5.0",
"description": "Select unist nodes using css-like selectors",

@@ -5,0 +5,0 @@ "author": "Eugene Sharygin <eush77@gmail.com>",

@@ -85,8 +85,12 @@ [![npm](https://nodei.co/npm/unist-util-select.png)](https://npmjs.com/package/unist-util-select)

#### `select(ast, selector)`
### `select(ast, selector)`
*Curried form: `select(ast)(selector)`*
Applies `selector` to `ast`, returns array of matching nodes.
#### `select.one(ast, selector)`
### `select.one(ast, selector)`
*Curried form: `select.one(ast)(selector)`*
Returns a single node matching `selector`.

@@ -93,0 +97,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