Skip to content

Commit 800a0e9

Browse files
committed
chore: add patch
1 parent 94daf6b commit 800a0e9

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

patches/yaml+1.10.2.patch

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ index 53eb011..dcb722e 100644
2222
schema: Schema
2323
}
2424
diff --git a/node_modules/yaml/parse-cst.d.ts b/node_modules/yaml/parse-cst.d.ts
25-
index 9fd2ebf..35ae387 100644
25+
index 9fd2ebf..45c1923 100644
2626
--- a/node_modules/yaml/parse-cst.d.ts
2727
+++ b/node_modules/yaml/parse-cst.d.ts
2828
@@ -10,8 +10,8 @@ export namespace CST {
@@ -45,6 +45,14 @@ index 9fd2ebf..35ae387 100644
4545
}
4646

4747
interface FlowCollection extends Node {
48+
@@ -184,6 +184,7 @@ export namespace CST {
49+
type: Type.DOCUMENT
50+
directives: Array<BlankLine | Comment | Directive>
51+
contents: Array<BlankLine | Comment | ContentNode>
52+
+ setOrigRanges(cr: number[], offset: number): number
53+
readonly anchor: null
54+
readonly comment: null
55+
readonly tag: null
4856
diff --git a/node_modules/yaml/types.d.ts b/node_modules/yaml/types.d.ts
4957
index 411e74e..0c60eb0 100644
5058
--- a/node_modules/yaml/types.d.ts

src/transforms/context.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ class Context {
4343
}
4444

4545
// From `yaml/parse-cst`
46+
// https://github.com/eemeli/yaml/blob/4cdcde632ece71155f3108ec0120c1a0329a6914/src/cst/parse.js#L22
4647
for (const document of this.#cst) {
4748
document.setOrigRanges([], 0);
4849
}

0 commit comments

Comments
 (0)