diff --git a/src/config.ts b/src/config.ts index 5d4781b..6a2441b 100644 --- a/src/config.ts +++ b/src/config.ts @@ -1,5 +1,5 @@ import { ISettings, Product } from './interfaces/ISettings'; -import verifyProductName from './verifyProductName'; +import verifyProductName from './ssn/verifyProductName'; const settings: ISettings = {}; diff --git a/src/ssn/getPatchmanifest.ts b/src/ssn/getPatchmanifest.ts index bf557be..a60f31b 100644 --- a/src/ssn/getPatchmanifest.ts +++ b/src/ssn/getPatchmanifest.ts @@ -1,7 +1,7 @@ import { TextDecoder } from 'util'; import getUrlContents from '../getUrlContents'; import { Product } from '../interfaces/ISettings'; -import verifyProductName from '../verifyProductName'; +import verifyProductName from '../ssn/verifyProductName'; import extractFile from './extractFile'; import readSsnFile from './readSsnFile'; diff --git a/src/ssn/getSolidpkg.ts b/src/ssn/getSolidpkg.ts index 5447761..8ea3c3f 100644 --- a/src/ssn/getSolidpkg.ts +++ b/src/ssn/getSolidpkg.ts @@ -1,6 +1,6 @@ import getUrlContents from '../getUrlContents'; import { Product } from '../interfaces/ISettings'; -import verifyProductName from '../verifyProductName'; +import verifyProductName from '../ssn/verifyProductName'; import bpParse from './bencodeParser'; import extractFile from './extractFile'; import readSsnFile from './readSsnFile'; diff --git a/src/verifyProductName.ts b/src/ssn/verifyProductName.ts similarity index 92% rename from src/verifyProductName.ts rename to src/ssn/verifyProductName.ts index 969478f..fb8f47b 100644 --- a/src/verifyProductName.ts +++ b/src/ssn/verifyProductName.ts @@ -1,4 +1,4 @@ -import { Product } from './interfaces/ISettings'; +import { Product } from '../interfaces/ISettings'; const allowedProducts: Product[] = ['assets_swtor_de_de', 'assets_swtor_en_us', 'assets_swtor_fr_fr', 'assets_swtor_main', 'assets_swtor_test_de_de', 'assets_swtor_test_en_us', 'assets_swtor_test_fr_fr', 'assets_swtor_test_main', 'eualas', 'movies_de_de', 'movies_en_us', 'movies_fr_fr', 'patcher2014', 'patcher2017', 'retailclient_betatest', 'retailclient_cstraining', 'retailclient_liveeptest', 'retailclient_publictest', 'retailclient_squadron157', 'retailclient_swtor'];