Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
({ location, content }, next) => {
const decoratedNext = prefixErrors(
next,
`Unable to parse API description document '${location}'`,
);
parse(content, decoratedNext);
},
(error, parseResults) => {