From 9ab326dfe9cf6834e8cf6c5d467ad57c9928da2a Mon Sep 17 00:00:00 2001 From: C-3PO Date: Sun, 8 Jul 2018 19:50:44 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Enable=20compression=20again?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ssn/getPatch.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ssn/getPatch.ts b/src/ssn/getPatch.ts index 5f2127a..e006503 100644 --- a/src/ssn/getPatch.ts +++ b/src/ssn/getPatch.ts @@ -40,7 +40,7 @@ export default async function getPatch(product: Product, from: number, to: numbe fileEntries.filter((file) => file.diffType === SsnDiffType.NewFile).forEach(async (file) => { try { const fileStream = await getFileFromDisks(diskFilenames, { diskStart: file.diskNumberStart, offset: file.offset, storedSize: file.compressedSize }); - const fileContents = extractFileStream(file, fileStream, true); + const fileContents = extractFileStream(file, fileStream); console.debug(await streamToArrayBuffer(fileContents)); //TODO: need to write to disk } catch (error) { @@ -52,7 +52,7 @@ export default async function getPatch(product: Product, from: number, to: numbe fileEntries.filter((file) => file.diffType === SsnDiffType.Changed).forEach(async (file) => { try { const fileStream = await getFileFromDisks(diskFilenames, { diskStart: file.diskNumberStart, offset: file.offset, storedSize: file.compressedSize }); - const fileContents = extractFileStream(file, fileStream, true); + const fileContents = extractFileStream(file, fileStream); console.debug(await streamToArrayBuffer(fileContents)); //TODO: need to apply diffing, then write to disk } catch (error) {