Skip to content

Commit 27f3391

Browse files
committed
Update yaml to 2.7.1
Brings in a few bug fixes Fixes #1110 Signed-off-by: David Thompson <davthomp@redhat.com>
1 parent 159d215 commit 27f3391

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"vscode-languageserver-types": "^3.16.0",
3737
"vscode-nls": "^5.0.0",
3838
"vscode-uri": "^3.0.2",
39-
"yaml": "2.2.2"
39+
"yaml": "2.7.1"
4040
},
4141
"devDependencies": {
4242
"@microsoft/eslint-formatter-sarif": "3.0.0",

test/yamlValidation.test.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,12 @@ describe('YAML Validation Tests', () => {
5353
expect(result.length).to.be.equal(1);
5454
expect(result[0]).deep.equal(createExpectedError('Tabs are not allowed as indentation', 1, 1, 1, 10));
5555
});
56+
57+
it('Should allow proper space indentation followed by tab', async () => {
58+
const yaml = 'foo:\n \tbar';
59+
const result = await parseSetup(yaml);
60+
expect(result).to.be.empty;
61+
});
5662
});
5763

5864
describe('Unused anchors diagnostics', () => {

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3340,10 +3340,10 @@ yallist@^4.0.0:
33403340
resolved "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz"
33413341
integrity sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==
33423342

3343-
yaml@2.2.2:
3344-
version "2.2.2"
3345-
resolved "https://registry.yarnpkg.com/yaml/-/yaml-2.2.2.tgz#ec551ef37326e6d42872dad1970300f8eb83a073"
3346-
integrity sha512-CBKFWExMn46Foo4cldiChEzn7S7SRV+wqiluAb6xmueD/fGyRHIhX8m14vVGgeFWjN540nKCNVj6P21eQjgTuA==
3343+
yaml@2.7.1:
3344+
version "2.7.1"
3345+
resolved "https://registry.yarnpkg.com/yaml/-/yaml-2.7.1.tgz#44a247d1b88523855679ac7fa7cda6ed7e135cf6"
3346+
integrity sha512-10ULxpnOCQXxJvBgxsn9ptjq6uviG/htZKk9veJGhlqn3w/DxQ631zFF+nlQXLwmImeS5amR2dl2U8sg6U9jsQ==
33473347

33483348
yargs-parser@20.2.4, yargs-parser@^20.2.2:
33493349
version "20.2.4"

0 commit comments

Comments
 (0)