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 {
180180 delete require . cache [ key ]
181181 return require ( fileName )
182182 } else if ( ext === '.yaml' || ext === '.yml' ) {
183- return yaml . safeLoad ( fs . readFileSync ( fileName , 'utf8' ) )
183+ return yaml . load ( fs . readFileSync ( fileName , 'utf8' ) )
184184 } else if ( ext === '.json' || ext === '.json5' ) {
185185 return JSON5 . parse ( fs . readFileSync ( fileName , 'utf8' ) )
186186 }
Original file line number Diff line number Diff line change @@ -51,5 +51,5 @@ export function parseJsonValuesInI18nBlock(
5151export function parseYamlValuesInI18nBlock (
5252 i18nBlock : VAST . VElement
5353) : I18nLocaleMessageDictionary | null {
54- return parseValuesInI18nBlock ( i18nBlock , code => yaml . safeLoad ( code ) as never )
54+ return parseValuesInI18nBlock ( i18nBlock , code => yaml . load ( code ) as never )
5555}
Original file line number Diff line number Diff line change 2727 "@intlify/message-compiler" : " ^9.0.0-beta.16" ,
2828 "glob" : " ^7.1.3" ,
2929 "ignore" : " ^5.0.5" ,
30- "js-yaml" : " ^3.14 .0" ,
30+ "js-yaml" : " ^4.0 .0" ,
3131 "json5" : " ^2.1.3" ,
3232 "jsonc-eslint-parser" : " ^0.6.2" ,
3333 "lodash" : " ^4.17.11" ,
4141 "@types/eslint" : " ^7.2.0" ,
4242 "@types/eslint-scope" : " ^3.7.0" ,
4343 "@types/eslint-visitor-keys" : " ^1.0.0" ,
44- "@types/js-yaml" : " ^3.12.5 " ,
44+ "@types/js-yaml" : " ^4.0.0 " ,
4545 "@types/json5" : " ^0.0.30" ,
4646 "@types/lodash" : " ^4.14.159" ,
4747 "@types/mocha" : " ^8.0.1" ,
Original file line number Diff line number Diff line change 12191219 " @types/minimatch" " *"
12201220 " @types/node" " *"
12211221
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 ==
12261226
12271227" @types/json-schema@*" , "@types/json-schema@^7.0.3":
12281228 version "7.0.5"
@@ -2050,6 +2050,11 @@ argparse@^1.0.7:
20502050 dependencies :
20512051 sprintf-js "~1.0.2"
20522052
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+
20532058arr-diff@^4.0.0 :
20542059 version "4.0.0"
20552060 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:
63756380 argparse "^1.0.7"
63766381 esprima "^4.0.0"
63776382
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 ==
63826387 dependencies :
6383- argparse "^1.0.7"
6384- esprima "^4.0.0"
6388+ argparse "^2.0.1"
63856389
63866390jsbn@~0.1.0 :
63876391 version "0.1.1"
You can’t perform that action at this time.
0 commit comments