Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
error(error) {
terminal.error(`[nwayo-extension:${this.id} error]`);
terminal.echo(error);
terminal.exit();
}
exec(`node ${paths.config.lodashBin} ${options} --development --output ${file}`, (error, stdout, stderr) => {
if (error !== null) {
terminal.error(stderr);
}
log('Lodash', file);
resolve();
});
});
gmfile.identify((error, info) => {
if (error) {
terminal.error(error);
}
done(null, toolbox.gmOptimization(gmfile.resize(size, size), info));
});
})))
gmfile.identify((error, info) => {
if (error) {
terminal.error(error);
}
toolbox.gmOptimization(gmfile.resize('50%', '50%'), info);
done(null, gmfile);
});
}))