🚑 Fix build

This commit is contained in:
C-3PO 2018-07-08 20:27:09 +02:00
parent 7b5cdd5498
commit 6dc6aa8844
Signed by: c3po
GPG key ID: 62993C4BB4D86F24

View file

@ -44,7 +44,7 @@ export default async function getSolidpkg(product: Product, from: number, to: nu
await readLocalFileHeader(stream, true);
const solidFileStream = extractFileStream(firstFile, stream);
const solidFileArrayBuffer = await streamToArrayBuffer(solidFileStream);
const solidContents = parseBencode(new DataView(solidFileArrayBuffer)) as ISolid;
const solidContents = parseBencode(new DataView(solidFileArrayBuffer.buffer)) as ISolid;
//Verify metafile.solid for correctness
verifySolidpkg(solidContents, { product, from, to });