Merge branch 'modules-proxy-patches' into immediate-finds-modules-proxy

This commit is contained in:
Nuckyz 2024-05-28 04:27:52 -03:00
commit f016d277b7
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9

View file

@ -41,9 +41,9 @@ const browser = await pup.launch({
const page = await browser.newPage();
await page.setUserAgent("Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36");
async function maybeGetError(handle: JSHandle) {
return (handle as JSHandle<Error>).getProperty("message")
.then(m => m?.jsonValue() ?? "Unknown Error");
async function maybeGetError(handle: JSHandle): Promise<string | undefined> {
return await (handle as JSHandle<Error>)?.getProperty("message")
.then(m => m?.jsonValue());
}
const report = {
@ -236,7 +236,7 @@ page.on("console", async e => {
const [, name] = failedToStartMatch;
report.badStarts.push({
plugin: name,
error: cause
error: cause ?? "Unknown error"
});
break;