From c4b7934013cf53fc5a464f0d7f690890ce509fe0 Mon Sep 17 00:00:00 2001 From: C-3PO Date: Mon, 9 Jul 2018 16:00:59 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=94=20Fix=20check=20of=20reliable=20URL?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/cdn/funcs/createDirRecursively.ts | 2 +- src/ssn/verify/verifySolidpkg.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cdn/funcs/createDirRecursively.ts b/src/cdn/funcs/createDirRecursively.ts index e7b2fa0..262b737 100644 --- a/src/cdn/funcs/createDirRecursively.ts +++ b/src/cdn/funcs/createDirRecursively.ts @@ -34,7 +34,7 @@ export default function createDirRecursively(folderName: string): Promise } else { reject('Is not a directory'); } - }) + }); break; } diff --git a/src/ssn/verify/verifySolidpkg.ts b/src/ssn/verify/verifySolidpkg.ts index da5fb50..df34a23 100644 --- a/src/ssn/verify/verifySolidpkg.ts +++ b/src/ssn/verify/verifySolidpkg.ts @@ -19,7 +19,7 @@ export default function verifySolidpkg(file: ISolid, { product, from, to }: {pro if (![16068, 16097].includes(file.networkgroupid)) { throw new Error(`Expected networkgroupid 16068 or 16097 but it was "${file.networkgroupid}".`); } - if (file.reliable !== `http://cdn-patch.swtor.com/patch/${product}/${product}_${from}to${to}/`) { + if (file.reliable !== `http://cdn-patch.swtor.com/patch/${product.startsWith('retailclient_') ? `${product.substring(13)}/` : ''}${product}/${product}_${from}to${to}/`) { throw new Error(`Expected reliable URL but it was "${file.reliable}".`); } if (!(['0', '1', '2']).includes(file['reliable-id'])) {