Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
exports.generate = async function generate(url) {
const opts = { timeout: 30000, disableSandbox: true };
try {
console.log("Generating", url);
const result = await respecWriter(url, "/dev/null", {}, opts);
return result;
} catch (err) {
throw new SpecGeneratorError({ status: 500, message: err.message });
}
};