@@ -303,14 +303,14 @@ const updateSources = async () => {
303303 var todayDate = new Date ( ) . toISOString ( ) . slice ( 0 , 10 ) ;
304304 output = "# AUTOGENERATED FROM PLATFORM API. DO NOT EDIT\n"
305305 output += "# sources last updated " + todayDate + " \n" ;
306- output += yaml . safeDump ( { items : sourcesUpdated } , options ) ;
306+ output += yaml . dump ( { items : sourcesUpdated } , options ) ;
307307 fs . writeFileSync ( path . resolve ( __dirname , `../src/_data/catalog/sources_capi.yml` ) , output ) ;
308308
309309 // Create source-category mapping yaml file
310310 var todayDate = new Date ( ) . toISOString ( ) . slice ( 0 , 10 ) ;
311311 output = "# AUTOGENERATED FROM PLATFORM API. DO NOT EDIT\n"
312312 output += "# source cateogries last updated " + todayDate + " \n" ;
313- output += yaml . safeDump ( { items : sourceCategories } , options ) ;
313+ output += yaml . dump ( { items : sourceCategories } , options ) ;
314314 fs . writeFileSync ( path . resolve ( __dirname , `../src/_data/catalog/source_categories_capi.yml` ) , output ) ;
315315}
316316
@@ -413,14 +413,14 @@ const updateDestinations = async () => {
413413 output = "# AUTOGENERATED FROM PLATFORM API. DO NOT EDIT\n"
414414 var todayDate = new Date ( ) . toISOString ( ) . slice ( 0 , 10 ) ;
415415 output += "# destination data last updated " + todayDate + " \n" ;
416- output += yaml . safeDump ( { items : destinationsUpdated } , options ) ;
416+ output += yaml . dump ( { items : destinationsUpdated } , options ) ;
417417 fs . writeFileSync ( path . resolve ( __dirname , `../src/_data/catalog/destinations_capi.yml` ) , output ) ;
418418
419419 // Create destination-category mapping yaml file
420420 output = "# AUTOGENERATED FROM PLATFORM API. DO NOT EDIT\n"
421421 var todayDate = new Date ( ) . toISOString ( ) . slice ( 0 , 10 ) ;
422422 output += "# destination categories last updated " + todayDate + " \n" ;
423- output += yaml . safeDump ( { items : destinationCategories } , options ) ;
423+ output += yaml . dump ( { items : destinationCategories } , options ) ;
424424 fs . writeFileSync ( path . resolve ( __dirname , `../src/_data/catalog/destination_categories_capi.yml` ) , output ) ;
425425}
426426
0 commit comments