File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1- import { avroData , avroMetadata } from 'icebird'
1+ import { avroMetadata , avroRead } from 'icebird'
22import { useEffect , useState } from 'react'
33import type { FileSource } from '../../lib/sources/types.js'
44import { parseFileSize } from '../../lib/utils.js'
@@ -38,7 +38,7 @@ export default function AvroView({ source, setError }: ViewerProps) {
3838 const fileSize = parseFileSize ( res . headers ) ?? buffer . byteLength
3939 const reader = { view : new DataView ( buffer ) , offset : 0 }
4040 const { metadata, syncMarker } = avroMetadata ( reader )
41- const json = avroData ( { reader, metadata, syncMarker } )
41+ const json = avroRead ( { reader, metadata, syncMarker } )
4242 setError ( undefined )
4343 setContent ( { fileSize } )
4444 setJson ( json )
You can’t perform that action at this time.
0 commit comments