Skip to content

Commit fc5ad91

Browse files
committed
Update dependencies
1 parent f0c2fc4 commit fc5ad91

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

lib/index.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
2-
* @typedef {import('unist').Node} Node
32
* @typedef {import('unist').Position} Position
3+
* @typedef {import('unist').Node} Node
44
* @typedef {import('vfile').VFile} VFile
55
* @typedef {import('vfile').VFileValue} VFileValue
66
*/
@@ -48,12 +48,10 @@ export function source(value, file) {
4848
return null
4949
}
5050

51-
// @ts-expect-error: To do: add `PointLike` to `vfile-location`
5251
const endOffset = loc.toOffset(position.end)
53-
// @ts-expect-error: To do: add `PointLike` to `vfile-location`
5452
let startOffset = loc.toOffset(position.start)
5553

56-
if (endOffset === -1 || startOffset === -1) {
54+
if (endOffset === undefined || startOffset === undefined) {
5755
return null
5856
}
5957

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@
3333
],
3434
"dependencies": {
3535
"@types/unist": "^2.0.0",
36-
"vfile": "^5.0.0",
37-
"vfile-location": "^4.0.0"
36+
"vfile": "^6.0.0",
37+
"vfile-location": "^5.0.0"
3838
},
3939
"devDependencies": {
4040
"@types/node": "^20.0.0",

0 commit comments

Comments
 (0)