@@ -110,7 +110,7 @@ async function generateQueryPack(cliServer: cli.CodeQLCliServer, queryFile: stri
110110 [ `codeql/${ language } -all` ] : '*' ,
111111 }
112112 } ;
113- await fs . writeFile ( path . join ( queryPackDir , 'qlpack.yml' ) , yaml . safeDump ( syntheticQueryPack ) ) ;
113+ await fs . writeFile ( path . join ( queryPackDir , 'qlpack.yml' ) , yaml . dump ( syntheticQueryPack ) ) ;
114114 }
115115 if ( ! language ) {
116116 throw new UserCancellationException ( 'Could not determine language.' ) ;
@@ -378,7 +378,7 @@ export function parseResponse(owner: string, repo: string, response: QueriesResp
378378 */
379379async function ensureNameAndSuite ( queryPackDir : string , packRelativePath : string ) : Promise < void > {
380380 const packPath = path . join ( queryPackDir , 'qlpack.yml' ) ;
381- const qlpack = yaml . safeLoad ( await fs . readFile ( packPath , 'utf8' ) ) as QlPack ;
381+ const qlpack = yaml . load ( await fs . readFile ( packPath , 'utf8' ) ) as QlPack ;
382382 delete qlpack . defaultSuiteFile ;
383383
384384 qlpack . name = QUERY_PACK_NAME ;
@@ -388,7 +388,7 @@ async function ensureNameAndSuite(queryPackDir: string, packRelativePath: string
388388 } , {
389389 query : packRelativePath . replace ( / \\ / g, '/' )
390390 } ] ;
391- await fs . writeFile ( packPath , yaml . safeDump ( qlpack ) ) ;
391+ await fs . writeFile ( packPath , yaml . dump ( qlpack ) ) ;
392392}
393393
394394async function buildRemoteQueryEntity (
0 commit comments