From 2a9d191e5b5d81c0d4edddfcb8cf399b53d8209d Mon Sep 17 00:00:00 2001 From: C-3PO Date: Sat, 23 Jun 2018 22:42:33 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=91=20Fix=20import=20statements?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ssn/extractFile.ts | 2 +- src/ssn/getPatch.ts | 2 +- src/ssn/readSsnFile.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ssn/extractFile.ts b/src/ssn/extractFile.ts index 7cd39f0..e96fda5 100644 --- a/src/ssn/extractFile.ts +++ b/src/ssn/extractFile.ts @@ -1,5 +1,5 @@ import * as zlib from 'zlib'; -import ISsnFileEntry from '../interfaces/ISsnFileEntry'; +import { ISsnFileEntry } from '../interfaces/ISsnFileEntry'; import decryptFile from './decryption/decryptFile'; class ByteReader { diff --git a/src/ssn/getPatch.ts b/src/ssn/getPatch.ts index 8c7ee11..ef7054d 100644 --- a/src/ssn/getPatch.ts +++ b/src/ssn/getPatch.ts @@ -25,7 +25,7 @@ export default async function getPatch(product: Product, from: number, to: numbe }); //Extract changed files - fileEntries.filter((file) => file.diffType === SsnDiffType.Changed).forEach((file) => { + fileEntries.filter((file) => file.diffType === SsnDiffType.Changed).forEach(async (file) => { const fileContents = await extractFile(file, dvArray); console.log(fileContents); //TODO diff --git a/src/ssn/readSsnFile.ts b/src/ssn/readSsnFile.ts index 92ba6e2..25d94c9 100644 --- a/src/ssn/readSsnFile.ts +++ b/src/ssn/readSsnFile.ts @@ -4,7 +4,7 @@ */ import { TextDecoder } from 'util'; -import ISsnFileEntry from '../interfaces/ISsnFileEntry'; +import { ISsnFileEntry } from '../interfaces/ISsnFileEntry'; import getDecryptionKeys from './decryption/getDecryptionKeys'; import modifyPassword from './decryption/modifyPassword';