Skip to content

Commit 1e094d1

Browse files
committed
Update internal dependency
1 parent e6fda68 commit 1e094d1

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

index.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import {convertElement} from 'hast-util-is-element'
22
import {hasProperty} from 'hast-util-has-property'
33
import {embedded} from 'hast-util-embedded'
4-
// @ts-expect-error: to do types.
5-
import bodyOkLink from 'hast-util-is-body-ok-link'
4+
import {isBodyOkLink} from 'hast-util-is-body-ok-link'
65

76
const basic = convertElement([
87
'a',
@@ -61,12 +60,13 @@ const meta = convertElement('meta')
6160
* @returns {boolean}
6261
*/
6362
export function phrasing(node) {
64-
return (
65-
// @ts-expect-error Looks like a text.
63+
return Boolean(
64+
// @ts-expect-error Looks like a node.
6665
(node && node.type === 'text') ||
67-
basic(node) ||
68-
embedded(node) ||
69-
bodyOkLink(node) ||
70-
(meta(node) && hasProperty(node, 'itemProp'))
66+
basic(node) ||
67+
embedded(node) ||
68+
// @ts-expect-error Looks like a node.
69+
isBodyOkLink(node) ||
70+
(meta(node) && hasProperty(node, 'itemProp'))
7171
)
7272
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"dependencies": {
3535
"hast-util-embedded": "^2.0.0",
3636
"hast-util-has-property": "^2.0.0",
37-
"hast-util-is-body-ok-link": "^1.0.0",
37+
"hast-util-is-body-ok-link": "^2.0.0",
3838
"hast-util-is-element": "^2.0.0"
3939
},
4040
"devDependencies": {

0 commit comments

Comments
 (0)