Skip to content

Commit b298c50

Browse files
committed
Update dev-dependencies
1 parent 3a68013 commit b298c50

File tree

2 files changed

+19
-8
lines changed

2 files changed

+19
-8
lines changed

lib/index.js

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,23 +66,34 @@ function transform(node, ctx) {
6666
*/
6767
function one(node, ctx) {
6868
switch (node.nodeType) {
69-
case ELEMENT_NODE:
69+
case ELEMENT_NODE: {
7070
// @ts-expect-error TypeScript is wrong.
7171
return element(node, ctx)
72+
}
73+
7274
case DOCUMENT_NODE:
73-
case DOCUMENT_FRAGMENT_NODE:
75+
case DOCUMENT_FRAGMENT_NODE: {
7476
// @ts-expect-error TypeScript is wrong.
7577
return root(node, ctx)
76-
case TEXT_NODE:
78+
}
79+
80+
case TEXT_NODE: {
7781
// @ts-expect-error TypeScript is wrong.
7882
return text(node)
79-
case COMMENT_NODE:
83+
}
84+
85+
case COMMENT_NODE: {
8086
// @ts-expect-error TypeScript is wrong.
8187
return comment(node)
82-
case DOCUMENT_TYPE_NODE:
88+
}
89+
90+
case DOCUMENT_TYPE_NODE: {
8391
return doctype()
84-
default:
92+
}
93+
94+
default: {
8595
return undefined
96+
}
8697
}
8798
}
8899

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,15 @@
4343
"@types/tape": "^4.0.0",
4444
"c8": "^7.0.0",
4545
"glob": "^8.0.0",
46-
"jsdom": "^20.0.0",
46+
"jsdom": "^21.0.0",
4747
"prettier": "^2.0.0",
4848
"remark-cli": "^11.0.0",
4949
"remark-preset-wooorm": "^9.0.0",
5050
"rimraf": "^3.0.0",
5151
"tape": "^5.0.0",
5252
"type-coverage": "^2.0.0",
5353
"typescript": "^4.0.0",
54-
"xo": "^0.52.0"
54+
"xo": "^0.53.0"
5555
},
5656
"scripts": {
5757
"prepack": "npm run build && npm run format",

0 commit comments

Comments
 (0)