From 1653455ec06c8f4973efce2536243aebb9e38c5c Mon Sep 17 00:00:00 2001 From: C-3PO Date: Fri, 22 Jun 2018 16:21:45 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=9A=20Move=20product=20names=20into=20?= =?UTF-8?q?ssn?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/config.ts | 2 +- src/ssn/getPatchmanifest.ts | 2 +- src/ssn/getSolidpkg.ts | 2 +- src/{ => ssn}/verifyProductName.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) rename src/{ => ssn}/verifyProductName.ts (92%) 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'];