Skip to content

Commit

Permalink
Update dev-dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Jan 9, 2023
1 parent 3a68013 commit b298c50
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 8 deletions.
23 changes: 17 additions & 6 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,23 66,34 @@ function transform(node, ctx) {
*/
function one(node, ctx) {
switch (node.nodeType) {
case ELEMENT_NODE:
case ELEMENT_NODE: {
// @ts-expect-error TypeScript is wrong.
return element(node, ctx)
}

case DOCUMENT_NODE:
case DOCUMENT_FRAGMENT_NODE:
case DOCUMENT_FRAGMENT_NODE: {
// @ts-expect-error TypeScript is wrong.
return root(node, ctx)
case TEXT_NODE:
}

case TEXT_NODE: {
// @ts-expect-error TypeScript is wrong.
return text(node)
case COMMENT_NODE:
}

case COMMENT_NODE: {
// @ts-expect-error TypeScript is wrong.
return comment(node)
case DOCUMENT_TYPE_NODE:
}

case DOCUMENT_TYPE_NODE: {
return doctype()
default:
}

default: {
return undefined
}
}
}

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 43,15 @@
"@types/tape": "^4.0.0",
"c8": "^7.0.0",
"glob": "^8.0.0",
"jsdom": "^20.0.0",
"jsdom": "^21.0.0",
"prettier": "^2.0.0",
"remark-cli": "^11.0.0",
"remark-preset-wooorm": "^9.0.0",
"rimraf": "^3.0.0",
"tape": "^5.0.0",
"type-coverage": "^2.0.0",
"typescript": "^4.0.0",
"xo": "^0.52.0"
"xo": "^0.53.0"
},
"scripts": {
"prepack": "npm run build && npm run format",
Expand Down

0 comments on commit b298c50

Please sign in to comment.