File tree Expand file tree Collapse file tree 4 files changed +18
-14
lines changed Expand file tree Collapse file tree 4 files changed +18
-14
lines changed Original file line number Diff line number Diff line change @@ -180,7 +180,7 @@ export class FileLocaleMessage extends LocaleMessage {
180
180
delete require . cache [ key ]
181
181
return require ( fileName )
182
182
} else if ( ext === '.yaml' || ext === '.yml' ) {
183
- return yaml . safeLoad ( fs . readFileSync ( fileName , 'utf8' ) )
183
+ return yaml . load ( fs . readFileSync ( fileName , 'utf8' ) )
184
184
} else if ( ext === '.json' || ext === '.json5' ) {
185
185
return JSON5 . parse ( fs . readFileSync ( fileName , 'utf8' ) )
186
186
}
Original file line number Diff line number Diff line change @@ -51,5 +51,5 @@ export function parseJsonValuesInI18nBlock(
51
51
export function parseYamlValuesInI18nBlock (
52
52
i18nBlock : VAST . VElement
53
53
) : I18nLocaleMessageDictionary | null {
54
- return parseValuesInI18nBlock ( i18nBlock , code => yaml . safeLoad ( code ) as never )
54
+ return parseValuesInI18nBlock ( i18nBlock , code => yaml . load ( code ) as never )
55
55
}
Original file line number Diff line number Diff line change 27
27
"@intlify/message-compiler" : " ^9.0.0-beta.16" ,
28
28
"glob" : " ^7.1.3" ,
29
29
"ignore" : " ^5.0.5" ,
30
- "js-yaml" : " ^3.14 .0" ,
30
+ "js-yaml" : " ^4.0 .0" ,
31
31
"json5" : " ^2.1.3" ,
32
32
"jsonc-eslint-parser" : " ^0.6.2" ,
33
33
"lodash" : " ^4.17.11" ,
41
41
"@types/eslint" : " ^7.2.0" ,
42
42
"@types/eslint-scope" : " ^3.7.0" ,
43
43
"@types/eslint-visitor-keys" : " ^1.0.0" ,
44
- "@types/js-yaml" : " ^3.12.5 " ,
44
+ "@types/js-yaml" : " ^4.0.0 " ,
45
45
"@types/json5" : " ^0.0.30" ,
46
46
"@types/lodash" : " ^4.14.159" ,
47
47
"@types/mocha" : " ^8.0.1" ,
Original file line number Diff line number Diff line change 1219
1219
" @types/minimatch" " *"
1220
1220
" @types/node" " *"
1221
1221
1222
- " @types/js-yaml@^3.12.5 " :
1223
- version "3.12.5 "
1224
- resolved "https://registry.yarnpkg.com/@types/js-yaml/-/js-yaml-3.12.5 .tgz#136d5e6a57a931e1cce6f9d8126aa98a9c92a6bb "
1225
- integrity sha512-JCcp6J0GV66Y4ZMDAQCXot4xprYB+Zfd3meK9+INSJeVZwJmHAW30BBEEkPzXswMXuiyReUGOP3GxrADc9wPww ==
1222
+ " @types/js-yaml@^4.0.0 " :
1223
+ version "4.0.0 "
1224
+ resolved "https://registry.yarnpkg.com/@types/js-yaml/-/js-yaml-4.0.0 .tgz#d1a11688112091f2c711674df3a65ea2f47b5dfb "
1225
+ integrity sha512-4vlpCM5KPCL5CfGmTbpjwVKbISRYhduEJvvUWsH5EB7QInhEj94XPZ3ts/9FPiLZFqYO0xoW4ZL8z2AabTGgJA ==
1226
1226
1227
1227
" @types/json-schema@*" , "@types/json-schema@^7.0.3":
1228
1228
version "7.0.5"
@@ -2050,6 +2050,11 @@ argparse@^1.0.7:
2050
2050
dependencies :
2051
2051
sprintf-js "~1.0.2"
2052
2052
2053
+ argparse@^2.0.1 :
2054
+ version "2.0.1"
2055
+ resolved "https://registry.yarnpkg.com/argparse/-/argparse-2.0.1.tgz#246f50f3ca78a3240f6c997e8a9bd1eac49e4b38"
2056
+ integrity sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==
2057
+
2053
2058
arr-diff@^4.0.0 :
2054
2059
version "4.0.0"
2055
2060
resolved "https://registry.yarnpkg.com/arr-diff/-/arr-diff-4.0.0.tgz#d6461074febfec71e7e15235761a329a5dc7c520"
@@ -6375,13 +6380,12 @@ js-yaml@^3.11.0, js-yaml@^3.13.1:
6375
6380
argparse "^1.0.7"
6376
6381
esprima "^4.0.0"
6377
6382
6378
- js-yaml@^3.14 .0 :
6379
- version "3.14 .0"
6380
- resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.14 .0.tgz#a7a34170f26a21bb162424d8adacb4113a69e482 "
6381
- integrity sha512-/4IbIeHcD9VMHFqDR/gQ7EdZdLimOvW2DdcxFjdyyZ9NsbS+ccrXqVWDtab/lRl5AlUqmpBx8EhPaWR+OtY17A ==
6383
+ js-yaml@^4.0 .0 :
6384
+ version "4.0 .0"
6385
+ resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-4.0 .0.tgz#f426bc0ff4b4051926cd588c71113183409a121f "
6386
+ integrity sha512-pqon0s+4ScYUvX30wxQi3PogGFAlUyH0awepWvwkj4jD4v+ova3RiYw8bmA6x2rDrEaj8i/oWKoRxpVNW+Re8Q ==
6382
6387
dependencies :
6383
- argparse "^1.0.7"
6384
- esprima "^4.0.0"
6388
+ argparse "^2.0.1"
6385
6389
6386
6390
jsbn@~0.1.0 :
6387
6391
version "0.1.1"
You can’t perform that action at this time.
0 commit comments