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'])) {