Skip to content

Commit

Permalink
build(deps): bump unist-util-source from 4.0.2 to 5.0.0
Browse files Browse the repository at this point in the history
Signed-off-by: Lexus Drumgold <[email protected]>
  • Loading branch information
unicornware committed Jul 30, 2023
1 parent 9a6ff58 commit 5d9a4c3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 21 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
"@types/unist": "2.0.6",
"detab": "3.0.2",
"unist-builder": "4.0.0",
"unist-util-source": "4.0.2",
"unist-util-source": "5.0.0",
"vfile": "6.0.1",
"vfile-location": "5.0.1"
},
Expand Down
2 changes: 1 addition & 1 deletion src/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ class Parser extends AbstractParser<Root> {
* @return {Nullable<string>} Source code or `null`
*/
protected source(value: unist.Node | unist.Position): Nullable<string> {
return source(value, this.lexer.file)
return at([source(this.lexer.file, value)], 0, null)
}

/**
Expand Down
28 changes: 9 additions & 19 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1176,7 +1176,7 @@ __metadata:
unified: "npm:10.1.2"
unist-builder: "npm:4.0.0"
unist-util-inspect: "npm:7.0.1"
unist-util-source: "npm:4.0.2"
unist-util-source: "npm:5.0.0"
version-bump-prompt: "npm:6.1.0"
vfile: "npm:6.0.1"
vfile-location: "npm:5.0.1"
Expand Down Expand Up @@ -9624,14 +9624,14 @@ __metadata:
languageName: node
linkType: hard

"unist-util-source@npm:4.0.2":
version: 4.0.2
resolution: "unist-util-source@npm:4.0.2"
"unist-util-source@npm:5.0.0":
version: 5.0.0
resolution: "unist-util-source@npm:5.0.0"
dependencies:
"@types/unist": "npm:^2.0.0"
vfile: "npm:^5.0.0"
vfile-location: "npm:^4.0.0"
checksum: c93b4f30a46688aa8fa226269169634853da4aed4f05b25c3debafb55abfab0876e1aabe2a5e824d961afad056141a02e087ea610a70bde93d5235198adc6bc9
"@types/unist": "npm:^3.0.0"
vfile: "npm:^6.0.0"
vfile-location: "npm:^5.0.0"
checksum: f7ee00c6eedcd8d385ecc7d14f7623fb0f6c29afb5a2bb95bca271d8f30e04ac05315245f14c358c147730414c2b4b23bcd8d1425afa8aced9e3bc1493a9ea1b
languageName: node
linkType: hard

Expand Down Expand Up @@ -9774,7 +9774,7 @@ __metadata:
languageName: node
linkType: hard

"vfile-location@npm:5.0.1":
"vfile-location@npm:5.0.1, vfile-location@npm:^5.0.0":
version: 5.0.1
resolution: "vfile-location@npm:5.0.1"
dependencies:
Expand All @@ -9784,16 +9784,6 @@ __metadata:
languageName: node
linkType: hard

"vfile-location@npm:^4.0.0":
version: 4.1.0
resolution: "vfile-location@npm:4.1.0"
dependencies:
"@types/unist": "npm:^2.0.0"
vfile: "npm:^5.0.0"
checksum: d80162bda086822a8fb0070229ddf71fe8b2c0f47221dde03e08175cbe30d5b28e6eb6cb8a8303e710d109790d5e6e5bd860d2c927ad2f199fa89c080fd8508b
languageName: node
linkType: hard

"vfile-message@npm:^4.0.0":
version: 4.0.2
resolution: "vfile-message@npm:4.0.2"
Expand Down

0 comments on commit 5d9a4c3

Please sign in to comment.