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 (path: any) => {
cache = {}
const protocol = avro.readProtocol(fs.readFileSync(path, 'utf8'))
return merge({ namespace: protocol.namespace }, combine(protocol.types.pop(), protocol.types))
}