Skip to content

Commit

Permalink
Update @types/hast, utilities
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Aug 6, 2023
1 parent ecb93c0 commit 11e66c0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
3 changes: 2 additions & 1 deletion lib/enter-state.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @typedef {import('./types.js').Node} Node
* @typedef {import('./types.js').ElementChild} ElementChild
* @typedef {import('./types.js').Direction} Direction
* @typedef {import('unist-util-visit/complex-types.js').Visitor<ElementChild>} Visitor
* @typedef {import('unist-util-visit').Visitor<ElementChild>} Visitor
*/

import {direction} from 'direction'
Expand Down Expand Up @@ -69,6 +69,7 @@ export function enterState(state, node) {
} else if (dir === 'auto' || node.tagName === 'bdi') {
if (node.tagName === 'textarea') {
// Check contents of `<textarea>`.
// @ts-expect-error: to do: remove when `rehype-minify` is updated.
dirInferred = dirBidi(toString(node))
} else if (
node.tagName === 'input' &&
Expand Down
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,32 +38,32 @@
"index.js"
],
"dependencies": {
"@types/hast": "^2.0.0",
"@types/unist": "^2.0.0",
"@types/hast": "^3.0.0",
"@types/unist": "^3.0.0",
"bcp-47-match": "^2.0.0",
"comma-separated-tokens": "^2.0.0",
"css-selector-parser": "^1.0.0",
"direction": "^2.0.0",
"hast-util-has-property": "^2.0.0",
"hast-util-has-property": "^3.0.0",
"hast-util-to-string": "^2.0.0",
"hast-util-whitespace": "^2.0.0",
"hast-util-whitespace": "^3.0.0",
"not": "^0.1.0",
"nth-check": "^2.0.0",
"property-information": "^6.0.0",
"space-separated-tokens": "^2.0.0",
"unist-util-visit": "^4.0.0",
"unist-util-visit": "^5.0.0",
"zwitch": "^2.0.0"
},
"devDependencies": {
"@types/node": "^20.0.0",
"c8": "^8.0.0",
"hastscript": "^7.0.0",
"hastscript": "^8.0.0",
"prettier": "^3.0.0",
"remark-cli": "^11.0.0",
"remark-preset-wooorm": "^9.0.0",
"type-coverage": "^2.0.0",
"typescript": "^5.0.0",
"unist-builder": "^3.0.0",
"unist-builder": "^4.0.0",
"xo": "^0.55.0"
},
"scripts": {
Expand Down

0 comments on commit 11e66c0

Please sign in to comment.