Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export default hunks => {
if (!hunks) {
return undefined;
}
const options = {
highlight: false,
enhancers: [markEdits(hunks, { type: 'line' })],
};
try {
return tokenize(hunks, options);
} catch (ex) {
return undefined;
}
};
{hunks => {
const options = {
enhancers: [markEdits(hunks)]
}
const tokens = tokenize(hunks, options)
return hunks.map(hunk => [
{hunk.content}
,
])
}}