@@ -303,14 +303,14 @@ const updateSources = async () => {
303
303
var todayDate = new Date ( ) . toISOString ( ) . slice ( 0 , 10 ) ;
304
304
output = "# AUTOGENERATED FROM PLATFORM API. DO NOT EDIT\n"
305
305
output += "# sources last updated " + todayDate + " \n" ;
306
- output += yaml . safeDump ( { items : sourcesUpdated } , options ) ;
306
+ output += yaml . dump ( { items : sourcesUpdated } , options ) ;
307
307
fs . writeFileSync ( path . resolve ( __dirname , `../src/_data/catalog/sources_capi.yml` ) , output ) ;
308
308
309
309
// Create source-category mapping yaml file
310
310
var todayDate = new Date ( ) . toISOString ( ) . slice ( 0 , 10 ) ;
311
311
output = "# AUTOGENERATED FROM PLATFORM API. DO NOT EDIT\n"
312
312
output += "# source cateogries last updated " + todayDate + " \n" ;
313
- output += yaml . safeDump ( { items : sourceCategories } , options ) ;
313
+ output += yaml . dump ( { items : sourceCategories } , options ) ;
314
314
fs . writeFileSync ( path . resolve ( __dirname , `../src/_data/catalog/source_categories_capi.yml` ) , output ) ;
315
315
}
316
316
@@ -413,14 +413,14 @@ const updateDestinations = async () => {
413
413
output = "# AUTOGENERATED FROM PLATFORM API. DO NOT EDIT\n"
414
414
var todayDate = new Date ( ) . toISOString ( ) . slice ( 0 , 10 ) ;
415
415
output += "# destination data last updated " + todayDate + " \n" ;
416
- output += yaml . safeDump ( { items : destinationsUpdated } , options ) ;
416
+ output += yaml . dump ( { items : destinationsUpdated } , options ) ;
417
417
fs . writeFileSync ( path . resolve ( __dirname , `../src/_data/catalog/destinations_capi.yml` ) , output ) ;
418
418
419
419
// Create destination-category mapping yaml file
420
420
output = "# AUTOGENERATED FROM PLATFORM API. DO NOT EDIT\n"
421
421
var todayDate = new Date ( ) . toISOString ( ) . slice ( 0 , 10 ) ;
422
422
output += "# destination categories last updated " + todayDate + " \n" ;
423
- output += yaml . safeDump ( { items : destinationCategories } , options ) ;
423
+ output += yaml . dump ( { items : destinationCategories } , options ) ;
424
424
fs . writeFileSync ( path . resolve ( __dirname , `../src/_data/catalog/destination_categories_capi.yml` ) , output ) ;
425
425
}
426
426
0 commit comments