From 28c0fdecf4d47e5b869ce41dad08e3e9e39e0897 Mon Sep 17 00:00:00 2001 From: C-3PO Date: Thu, 5 Jul 2018 18:24:20 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=97=91=20Remove=20debugging=20output?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ssn/extractFileStream.ts | 4 ---- src/ssn/getManifest.ts | 5 ++--- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/ssn/extractFileStream.ts b/src/ssn/extractFileStream.ts index 3d01061..dcec088 100644 --- a/src/ssn/extractFileStream.ts +++ b/src/ssn/extractFileStream.ts @@ -44,10 +44,6 @@ export default function extractFileStream(file: ISsnFileEntry, inputStream: stre curStream = curStream.pipe(decryptTransform); } - const writeStream = fs.createWriteStream('test-deflated.raw'); - curStream.pipe(writeStream); - return curStream; - //pipe into decompression const decompressTransform = zlib.createInflateRaw(); decompressTransform.on('error', (error) => { diff --git a/src/ssn/getManifest.ts b/src/ssn/getManifest.ts index c479e43..e0e1abb 100644 --- a/src/ssn/getManifest.ts +++ b/src/ssn/getManifest.ts @@ -37,7 +37,7 @@ export default async function getManifest(product: Product): Promise //Extract manifest.xml file const patchmanifestStream = extractFileStream(firstFile, stream); - /*//Convert ArrayBuffer to string + //Convert ArrayBuffer to string const patchmanifestXml = await streamToString(patchmanifestStream); //convert XML to JSON-converted XML @@ -49,6 +49,5 @@ export default async function getManifest(product: Product): Promise //convert JSON-converted XML to an easier to read JSON const patchManifestSimple = parsePatchmanifest(patchManifestJson); - return patchManifestSimple;*/ - return { current: -1, releases: {} }; + return patchManifestSimple; }