Skip to content

Commit

Permalink
Update unist-util-is
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed May 31, 2019
1 parent f2462a7 commit 248bfe1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
14 changes: 5 additions & 9 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
'use strict'

var is = require('unist-util-is')
var convert = require('unist-util-is/convert')

module.exports = isPhrasing

var phrasing = [
var isPhrasing = convert([
'break',
'delete',
'emphasis',
Expand All @@ -17,9 +15,7 @@ var phrasing = [
'linkReference',
'strong',
'text'
]
])

// Check if a node is a phrasing element.
function isPhrasing(node) {
return is(phrasing, node)
}
isPhrasing.displayName = 'isPhrasing'
module.exports = isPhrasing
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"index.js"
],
"dependencies": {
"unist-util-is": "^2.1.1"
"unist-util-is": "^3.0.0"
},
"devDependencies": {
"nyc": "^14.0.0",
Expand Down

0 comments on commit 248bfe1

Please sign in to comment.