Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
tasks.addTask(message, complete => {
this.log('info', message)
const data = this.dataForReadmeFilesEnhanced[name]
writeFile(filepath, data, complete)
})
})
writeTasks.addTask('store the meta data in a cache somewhere', function(
writeTaskComplete
) {
const writeData = JSON.stringify(
{
headers: response.headers,
parse: feed.parse
},
null,
' '
)
safefs.writeFile(feed.metaPath, writeData, writeTaskComplete)
})
writeTasks.addTask('store the parsed data in a cache somewhere', function(
writeTaskComplete
) {
const writeData = feed.parse ? JSON.stringify(data) : data
safefs.writeFile(feed.path, writeData, writeTaskComplete)
})
tasks.addTask(message, complete => {
this.log('info', message)
const data =
JSON.stringify(this.dataForPackageFilesEnhanced[name], null, ' ') +
'\n'
writeFile(filepath, data, complete)
})
})