Fix NPM/Puppeteer error handling

main
Elbert Alias 5 years ago
parent 945641654b
commit 6f8678c4a6

@ -116,11 +116,7 @@ class PuppeteerBrowser extends Browser {
await Promise.race([
page.goto(url, { waitUntil: 'domcontentloaded' }),
new Promise(_resolve => setTimeout(() => {
this.log('timeout', 'error');
_resolve();
}, this.options.maxWait)),
new Promise((_resolve, _reject) => setTimeout(() => _reject(new Error('timeout')), this.options.maxWait)),
]);
// eslint-disable-next-line no-undef

@ -2,7 +2,7 @@
"name": "wappalyzer",
"description": "Uncovers the technologies used on websites",
"homepage": "https://github.com/AliasIO/Wappalyzer",
"version": "5.9.23",
"version": "5.9.24",
"author": "Elbert Alias",
"license": "GPL-3.0",
"repository": {

@ -4,7 +4,7 @@
"author": "Elbert Alias",
"homepage_url": "https://www.wappalyzer.com",
"description": "Identify web technologies",
"version": "5.9.23",
"version": "5.9.24",
"default_locale": "en",
"manifest_version": 2,
"icons": {