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';