Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
} else {
files[buildFilename] = cachedFiles[buildFilename];
}
});
} else {
cachedFiles = {};
}
allFilles.forEach(({ filename }) => delete files[`${filename}.jsdoc`]);
if (filesToParse.length === 0) {
done();
return;
}
jsdocParse({
src: filesToParse,
json: true,
}).pipe(collectJson(dataReady));
function dataReady(unfilteredSymbols) {
const symbolsByCategory = groupBy(
unfilteredSymbols.filter(
o =>
!o.deprecated &&
o.kind &&
(o.kind === 'component' ||
o.kind === 'widget' ||
o.kind === 'connector' ||
o.kind === 'server-side-rendering')
),
'kind'
} else {
files[buildFilename] = cachedFiles[buildFilename];
}
});
} else {
cachedFiles = {};
}
allFilles.forEach(({filename}) => delete files[`${filename}.jsdoc`]);
if (filesToParse.length === 0) {
done();
return;
}
jsdocParse({
src: filesToParse,
json: true,
}).pipe(collectJson(dataReady));
function dataReady(unfilteredSymbols) {
const symbolsByCategory = groupBy(
unfilteredSymbols.filter(
o => !o.deprecated &&
o.kind &&
(o.kind === 'component' || o.kind === 'widget' || o.kind === 'connector')
),
'kind'
);
forEach(symbolsByCategory, symbols => {
forEach(symbols, data => {