Skip to content

Commit 9152e8e

Browse files
committed
Update dev-dependencies
1 parent 9a84c7c commit 9152e8e

File tree

2 files changed

+11
-12
lines changed

2 files changed

+11
-12
lines changed

lib/index.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ import {VFileMessage} from 'vfile-message'
4747
* xast root.
4848
*/
4949
export function fromXml(value) {
50+
// @ts-expect-error: to do: update.
5051
const loc = location(value)
5152
/** @type {XmlDocument} */
5253
let xmlDocument
@@ -66,11 +67,9 @@ export function fromXml(value) {
6667
})
6768
} catch (error_) {
6869
const error = /** @type {XmlError} */ (error_)
69-
throw new VFileMessage(
70-
error.message,
71-
loc.toPoint(error.pos),
72-
'xast-util-from-xml:error'
73-
)
70+
const point = loc.toPoint(error.pos)
71+
// @ts-expect-error: to do: update.
72+
throw new VFileMessage(error.message, point, 'xast-util-from-xml:error')
7473
}
7574

7675
const state = {location: loc}
@@ -293,6 +292,7 @@ function patch(from, to, state) {
293292
from.end === -1 ? undefined : state.location.toPoint(from.end)
294293

295294
if (start && end) {
295+
// @ts-expect-error: to do: update.
296296
to.position = {start, end}
297297
}
298298
}

package.json

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,21 +44,20 @@
4444
"vfile-message": "^3.0.0"
4545
},
4646
"devDependencies": {
47-
"@types/node": "^18.0.0",
48-
"c8": "^7.0.0",
47+
"@types/node": "^20.0.0",
48+
"c8": "^8.0.0",
4949
"is-hidden": "^2.0.0",
50-
"prettier": "^2.0.0",
50+
"prettier": "^3.0.0",
5151
"remark-cli": "^11.0.0",
5252
"remark-preset-wooorm": "^9.0.0",
53-
"tape": "^5.0.0",
5453
"type-coverage": "^2.0.0",
55-
"typescript": "^4.0.0",
56-
"xo": "^0.53.0"
54+
"typescript": "^5.0.0",
55+
"xo": "^0.55.0"
5756
},
5857
"scripts": {
5958
"prepack": "npm run build && npm run format",
6059
"build": "tsc --build --clean && tsc --build && type-coverage",
61-
"format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix",
60+
"format": "remark . -qfo && prettier . -w --log-level warn && xo --fix",
6261
"test-api": "node --conditions development test/index.js",
6362
"test-coverage": "c8 --check-coverage --100 --reporter lcov npm run test-api",
6463
"test": "npm run build && npm run format && npm run test-coverage"

0 commit comments

Comments
 (0)