🎨 Improve debug output

This commit is contained in:
C-3PO 2018-06-24 02:31:06 +02:00
parent 6709315b68
commit 05d721171a
Signed by: c3po
GPG key ID: 62993C4BB4D86F24

View file

@ -29,14 +29,14 @@ export default async function getPatch(product: Product, from: number, to: numbe
//Extract newly added files //Extract newly added files
fileEntries.filter((file) => file.diffType === SsnDiffType.NewFile).forEach(async (file) => { fileEntries.filter((file) => file.diffType === SsnDiffType.NewFile).forEach(async (file) => {
const fileContents = await extractFile(file, dvArray); const fileContents = await extractFile(file, dvArray);
console.debug(fileContents); console.debug(new Uint8Array(fileContents));
//TODO //TODO
}); });
//Extract changed files //Extract changed files
fileEntries.filter((file) => file.diffType === SsnDiffType.Changed).forEach(async (file) => { fileEntries.filter((file) => file.diffType === SsnDiffType.Changed).forEach(async (file) => {
const fileContents = await extractFile(file, dvArray); const fileContents = await extractFile(file, dvArray);
console.debug(fileContents); console.debug(new Uint8Array(fileContents));
//TODO //TODO
}); });