Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Aug 6, 2021
1 parent ab51cd4 commit 0cea259
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions index.js
@@ -1,4 +1,4 @@
import mdast2hast from 'mdast-util-to-hast'
import {toHast} from 'mdast-util-to-hast'

// Attacher.
// If a destination is given, runs the destination with the new hast tree
Expand All @@ -20,7 +20,7 @@ function bridge(destination, options) {
return transformer

function transformer(node, file, next) {
destination.run(mdast2hast(node, options), file, done)
destination.run(toHast(node, options), file, done)

function done(error) {
next(error)
Expand All @@ -34,6 +34,6 @@ function mutate(options) {
return transformer

function transformer(node) {
return mdast2hast(node, options)
return toHast(node, options)
}
}
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -33,7 +33,7 @@
"index.js"
],
"dependencies": {
"mdast-util-to-hast": "^10.2.0"
"mdast-util-to-hast": "^11.0.0"
},
"devDependencies": {
"c8": "^7.0.0",
Expand Down

0 comments on commit 0cea259

Please sign in to comment.