Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
// Extend and dereference our configuration
this.config = extendr.deep(
{
log: null,
cache: 1000 * 60 * 60 * 24, // one day by default
tmpPath: null,
requestOptions: null,
plugins: null
},
this.config || {},
config
)
// Get the temp path right away
safeps.getTmpPath(function(err, tmpPath) {
if (err) {
console.error(err)
} else {
me.config.tmpPath = tmpPath
}
})
}