Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function process(metadata: Metadata): {
stringified: string
warnings: ReadonlyArray
} {
const result = validateAndStringifyWith({
items: ITEMS,
warnings: WARNINGS,
underscoresAsHyphens: UNDERSCORES_AS_HYPHENS,
})(metadata);
if (isRight(result)) {
return result.Right;
} else {
throw new MetadataException(result.Left);
}
}