All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 35s
10 lines
245 B
JavaScript
10 lines
245 B
JavaScript
export default prefixSize
|
|
|
|
import sizeChunks from './size-chunks.mjs'
|
|
|
|
function prefixSize(events, type) {
|
|
var tail = events[events.length - 1]
|
|
if (!tail || tail[1].type !== type) return 0
|
|
return sizeChunks(tail[2].sliceStream(tail[1]))
|
|
}
|