Skip to content

Commit 5d9a4c3

Browse files
committed
build(deps): bump unist-util-source from 4.0.2 to 5.0.0
Signed-off-by: Lexus Drumgold <[email protected]>
1 parent 9a6ff58 commit 5d9a4c3

File tree

3 files changed

+11
-21
lines changed

3 files changed

+11
-21
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
"@types/unist": "2.0.6",
8989
"detab": "3.0.2",
9090
"unist-builder": "4.0.0",
91-
"unist-util-source": "4.0.2",
91+
"unist-util-source": "5.0.0",
9292
"vfile": "6.0.1",
9393
"vfile-location": "5.0.1"
9494
},

src/parser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ class Parser extends AbstractParser<Root> {
566566
* @return {Nullable<string>} Source code or `null`
567567
*/
568568
protected source(value: unist.Node | unist.Position): Nullable<string> {
569-
return source(value, this.lexer.file)
569+
return at([source(this.lexer.file, value)], 0, null)
570570
}
571571

572572
/**

yarn.lock

Lines changed: 9 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1176,7 +1176,7 @@ __metadata:
11761176
unified: "npm:10.1.2"
11771177
unist-builder: "npm:4.0.0"
11781178
unist-util-inspect: "npm:7.0.1"
1179-
unist-util-source: "npm:4.0.2"
1179+
unist-util-source: "npm:5.0.0"
11801180
version-bump-prompt: "npm:6.1.0"
11811181
vfile: "npm:6.0.1"
11821182
vfile-location: "npm:5.0.1"
@@ -9624,14 +9624,14 @@ __metadata:
96249624
languageName: node
96259625
linkType: hard
96269626

9627-
"unist-util-source@npm:4.0.2":
9628-
version: 4.0.2
9629-
resolution: "unist-util-source@npm:4.0.2"
9627+
"unist-util-source@npm:5.0.0":
9628+
version: 5.0.0
9629+
resolution: "unist-util-source@npm:5.0.0"
96309630
dependencies:
9631-
"@types/unist": "npm:^2.0.0"
9632-
vfile: "npm:^5.0.0"
9633-
vfile-location: "npm:^4.0.0"
9634-
checksum: c93b4f30a46688aa8fa226269169634853da4aed4f05b25c3debafb55abfab0876e1aabe2a5e824d961afad056141a02e087ea610a70bde93d5235198adc6bc9
9631+
"@types/unist": "npm:^3.0.0"
9632+
vfile: "npm:^6.0.0"
9633+
vfile-location: "npm:^5.0.0"
9634+
checksum: f7ee00c6eedcd8d385ecc7d14f7623fb0f6c29afb5a2bb95bca271d8f30e04ac05315245f14c358c147730414c2b4b23bcd8d1425afa8aced9e3bc1493a9ea1b
96359635
languageName: node
96369636
linkType: hard
96379637

@@ -9774,7 +9774,7 @@ __metadata:
97749774
languageName: node
97759775
linkType: hard
97769776

9777-
"vfile-location@npm:5.0.1":
9777+
"vfile-location@npm:5.0.1, vfile-location@npm:^5.0.0":
97789778
version: 5.0.1
97799779
resolution: "vfile-location@npm:5.0.1"
97809780
dependencies:
@@ -9784,16 +9784,6 @@ __metadata:
97849784
languageName: node
97859785
linkType: hard
97869786

9787-
"vfile-location@npm:^4.0.0":
9788-
version: 4.1.0
9789-
resolution: "vfile-location@npm:4.1.0"
9790-
dependencies:
9791-
"@types/unist": "npm:^2.0.0"
9792-
vfile: "npm:^5.0.0"
9793-
checksum: d80162bda086822a8fb0070229ddf71fe8b2c0f47221dde03e08175cbe30d5b28e6eb6cb8a8303e710d109790d5e6e5bd860d2c927ad2f199fa89c080fd8508b
9794-
languageName: node
9795-
linkType: hard
9796-
97979787
"vfile-message@npm:^4.0.0":
97989788
version: 4.0.2
97999789
resolution: "vfile-message@npm:4.0.2"

0 commit comments

Comments
 (0)