unist-util-visit
Advanced tools
Comparing version 3.0.0 to 3.0.1
{ | ||
"name": "unist-util-visit", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "unist utility to visit nodes", | ||
@@ -68,3 +68,3 @@ "license": "MIT", | ||
"unified": "^9.0.0", | ||
"xo": "^0.38.0" | ||
"xo": "^0.39.0" | ||
}, | ||
@@ -71,0 +71,0 @@ "scripts": { |
@@ -27,6 +27,6 @@ # unist-util-visit | ||
```js | ||
var u = require('unist-builder') | ||
var visit = require('unist-util-visit') | ||
import {u} from 'unist-builder' | ||
import {visit} from 'unist-util-visit' | ||
var tree = u('tree', [ | ||
const tree = u('tree', [ | ||
u('leaf', '1'), | ||
@@ -38,3 +38,3 @@ u('node', [u('leaf', '2')]), | ||
visit(tree, 'leaf', function(node) { | ||
visit(tree, 'leaf', (node) => { | ||
console.log(node) | ||
@@ -41,0 +41,0 @@ }) |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
12914