Skip to content

Commit 05e6eb9

Browse files
committed
Update dev-dependencies
1 parent 5e2a0bb commit 05e6eb9

File tree

6 files changed

+136
-134
lines changed

6 files changed

+136
-134
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ jobs:
77
name: ${{matrix.node}}
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@v3
11-
- uses: actions/setup-node@v3
10+
- uses: actions/checkout@v4
11+
- uses: actions/setup-node@v4
1212
with:
1313
node-version: ${{matrix.node}}
1414
- run: npm install
1515
- run: npm test
16-
- uses: codecov/codecov-action@v3
16+
- uses: codecov/codecov-action@v4
1717
strategy:
1818
matrix:
1919
node:
20-
- lts/gallium
20+
- lts/hydrogen
2121
- node

lib/index.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,9 @@ export function fromHtml(value, options) {
8989
const settings = options || emptyOptions
9090
const onerror = settings.onerror
9191
const file = value instanceof VFile ? value : new VFile(value)
92-
const fn = settings.fragment ? parseFragment : parse
93-
const doc = String(file)
94-
const p5doc = fn(doc, {
92+
const parseFunction = settings.fragment ? parseFragment : parse
93+
const document = String(file)
94+
const p5Document = parseFunction(document, {
9595
sourceCodeLocationInfo: true,
9696
// Note `parse5` types currently do not allow `undefined`.
9797
onParseError: settings.onerror ? internalOnerror : null,
@@ -100,7 +100,7 @@ export function fromHtml(value, options) {
100100

101101
// `parse5` returns document which are always mapped to roots.
102102
return /** @type {Root} */ (
103-
fromParse5(p5doc, {
103+
fromParse5(p5Document, {
104104
file,
105105
space: settings.space,
106106
verbose: settings.verbose
@@ -182,7 +182,7 @@ export function fromHtml(value, options) {
182182
function formatC(_, $1, $2) {
183183
const offset =
184184
($2 ? Number.parseInt($2, 10) : 0) * ($1 === '-' ? -1 : 1)
185-
const char = doc.charAt(error.startOffset + offset)
185+
const char = document.charAt(error.startOffset + offset)
186186
return visualizeCharacter(char)
187187
}
188188

@@ -193,7 +193,7 @@ export function fromHtml(value, options) {
193193
* Formatted.
194194
*/
195195
function formatX() {
196-
return visualizeCharacterCode(doc.charCodeAt(error.startOffset))
196+
return visualizeCharacterCode(document.charCodeAt(error.startOffset))
197197
}
198198
}
199199
}

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,18 +41,18 @@
4141
},
4242
"devDependencies": {
4343
"@types/mdast": "^4.0.0",
44-
"@types/node": "^20.0.0",
45-
"c8": "^8.0.0",
44+
"@types/node": "^22.0.0",
45+
"c8": "^10.0.0",
4646
"mdast-zone": "^6.0.0",
4747
"prettier": "^3.0.0",
48-
"remark-cli": "^11.0.0",
49-
"remark-preset-wooorm": "^9.0.0",
48+
"remark-cli": "^12.0.0",
49+
"remark-preset-wooorm": "^10.0.0",
5050
"to-vfile": "^8.0.0",
5151
"type-coverage": "^2.0.0",
5252
"type-fest": "^4.0.0",
5353
"typescript": "^5.0.0",
5454
"unist-builder": "^4.0.0",
55-
"xo": "^0.55.0"
55+
"xo": "^0.59.0"
5656
},
5757
"scripts": {
5858
"prepack": "npm run build && npm run format",

0 commit comments

Comments
 (0)