Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const setup = inputSettings => {
let settings = Object.assign(utils.clone(defaultSettings), inputSettings);
// In memory
if (settings.content) {
checkMandatoriesMemoryContent(inputSettings);
return settings;
}
checkMandatories(inputSettings);
settings = Object.assign(settings, wildcards(settings.input, settings.publicFolder));
settings = Object.assign(
settings,
checkOutput(settings.input, settings.output, settings.publicFolder, settings.replaceInPlace)
);
settings = Object.assign(settings, setPublicFolder(settings.input, settings.publicFolder));