Fix error handling in NPM/Puppeteer

main
Elbert Alias 5 years ago
parent 6ac9025bbc
commit a805ebce80

@ -5133,7 +5133,7 @@
"cats": [
10
],
"icon": "Intercom.png",
"icon": "Intercom.svg",
"js": {
"Intercom": ""
},
@ -11394,7 +11394,7 @@
"script": [
"/_nuxt/"
],
"implies": "Vue.js",
"implies": ["Vue.js", "Node.js"],
"website": "https://nuxtjs.org"
},
"W3 Total Cache": {

@ -91,17 +91,21 @@ class PuppeteerBrowser extends Browser {
let responseReceived = false;
page.on('request', (request) => {
if (
responseReceived
&& request.isNavigationRequest()
&& request.frame() === page.mainFrame()
&& request.url() !== url
) {
this.log(`abort navigation to ${request.url()}`);
request.abort('aborted');
} else {
request.continue();
try {
if (
responseReceived
&& request.isNavigationRequest()
&& request.frame() === page.mainFrame()
&& request.url() !== url
) {
this.log(`abort navigation to ${request.url()}`);
request.abort('aborted');
} else {
request.continue();
}
} catch (error) {
reject(new Error(`page error: ${error.message || error}`));
}
});

@ -16,69 +16,67 @@
"termsContent": { "message": "This extension sends anonymous information about websites you visit, including domain name and identified technologies, to <a href='https://www.wappalyzer.com'>wappalyzer.com</a>. This can be disabled in the settings." },
"privacyPolicy": { "message": "Privacy policy" },
"categoryName1": { "message": "CMS" },
"categoryName2": { "message": "Message Board" },
"categoryName3": { "message": "Database Manager" },
"categoryName4": { "message": "Documentation Tool" },
"categoryName5": { "message": "Widget" },
"categoryName2": { "message": "Message boards" },
"categoryName3": { "message": "Database managers" },
"categoryName4": { "message": "Documentation tools" },
"categoryName5": { "message": "Widgets" },
"categoryName6": { "message": "Ecommerce" },
"categoryName7": { "message": "Photo Galleries" },
"categoryName7": { "message": "Photo galleries" },
"categoryName8": { "message": "Wikis" },
"categoryName9": { "message": "Hosting Panels" },
"categoryName9": { "message": "Hosting panels" },
"categoryName10": { "message": "Analytics" },
"categoryName11": { "message": "Blog" },
"categoryName12": { "message": "JavaScript Framework" },
"categoryName13": { "message": "Issue Tracker" },
"categoryName14": { "message": "Video Player" },
"categoryName15": { "message": "Comment System" },
"categoryName16": { "message": "Captcha" },
"categoryName17": { "message": "Font Script" },
"categoryName18": { "message": "Web Framework" },
"categoryName11": { "message": "Blogs" },
"categoryName12": { "message": "JavaScript frameworks" },
"categoryName13": { "message": "Issue trackers" },
"categoryName14": { "message": "Video players" },
"categoryName15": { "message": "Comment systems" },
"categoryName16": { "message": "Captchas" },
"categoryName17": { "message": "Font scripts" },
"categoryName18": { "message": "Web frameworks" },
"categoryName19": { "message": "Miscellaneous" },
"categoryName20": { "message": "Editor" },
"categoryName21": { "message": "LMS" },
"categoryName22": { "message": "Web Server" },
"categoryName23": { "message": "Cache Tool" },
"categoryName24": { "message": "Rich Text Editor" },
"categoryName25": { "message": "JavaScript Graphics" },
"categoryName26": { "message": "Mobile Framework" },
"categoryName27": { "message": "Programming Language" },
"categoryName28": { "message": "Operating System" },
"categoryName29": { "message": "Search Engine" },
"categoryName30": { "message": "Web Mail" },
"categoryName22": { "message": "Web servers" },
"categoryName23": { "message": "Caching" },
"categoryName24": { "message": "Rich text editors" },
"categoryName25": { "message": "JavaScript graphics" },
"categoryName26": { "message": "Mobile frameworks" },
"categoryName27": { "message": "Programming languages" },
"categoryName28": { "message": "Operating systems" },
"categoryName29": { "message": "Search engines" },
"categoryName30": { "message": "Webmail" },
"categoryName31": { "message": "CDN" },
"categoryName32": { "message": "Marketing Automation" },
"categoryName33": { "message": "Web Server Extension" },
"categoryName34": { "message": "Database" },
"categoryName35": { "message": "Map" },
"categoryName36": { "message": "Advertising Network" },
"categoryName37": { "message": "Network Service" },
"categoryName38": { "message": "Media Server" },
"categoryName39": { "message": "Webcam" },
"categoryName40": { "message": "Printer" },
"categoryName41": { "message": "Payment Processor" },
"categoryName42": { "message": "Tag Manager" },
"categoryName43": { "message": "Paywall" },
"categoryName44": { "message": "Build/CI System" },
"categoryName45": { "message": "SCADA System" },
"categoryName32": { "message": "Marketing automation" },
"categoryName33": { "message": "Web server extensions" },
"categoryName34": { "message": "Databases" },
"categoryName35": { "message": "Maps" },
"categoryName36": { "message": "Advertising" },
"categoryName37": { "message": "Network services" },
"categoryName38": { "message": "Media servers" },
"categoryName39": { "message": "Webcams" },
"categoryName40": { "message": "Printers" },
"categoryName41": { "message": "Payment processors" },
"categoryName42": { "message": "Tag managers" },
"categoryName44": { "message": "CI" },
"categoryName46": { "message": "Remote Access" },
"categoryName47": { "message": "Development Tool" },
"categoryName48": { "message": "Network Storage" },
"categoryName49": { "message": "Feed Readers" },
"categoryName50": { "message": "Document Management Systems" },
"categoryName51": { "message": "Landing Page Builder" },
"categoryName52": { "message": "Live Chat" },
"categoryName47": { "message": "Developmentl" },
"categoryName48": { "message": "Network storage" },
"categoryName49": { "message": "Feed readers" },
"categoryName50": { "message": "DMS" },
"categoryName51": { "message": "Page builder" },
"categoryName52": { "message": "Live chat" },
"categoryName53": { "message": "CRM" },
"categoryName54": { "message": "SEO" },
"categoryName55": { "message": "Accounting" },
"categoryName56": { "message": "Cryptominer" },
"categoryName57": { "message": "Static Site Generator" },
"categoryName58": { "message": "User Onboarding" },
"categoryName59": { "message": "JavaScript Libraries" },
"categoryName56": { "message": "Cryptominers" },
"categoryName57": { "message": "Static site generators" },
"categoryName58": { "message": "User onboarding" },
"categoryName59": { "message": "JavaScript libraries" },
"categoryName60": { "message": "Containers" },
"categoryName61": { "message": "SaaS" },
"categoryName62": { "message": "PaaS" },
"categoryName63": { "message": "IaaS" },
"categoryName64": { "message": "Reverse Proxy" },
"categoryName65": { "message": "Load Balancer" },
"categoryName66": { "message": "UI Frameworks" }
"categoryName64": { "message": "Reverse proxies" },
"categoryName65": { "message": "Load balancers" },
"categoryName66": { "message": "UI frameworks" }
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 540 B

@ -0,0 +1 @@
<svg width="2500" height="2500" viewBox="0 0 256 256" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMid"><path d="M221.867 140.748a8.534 8.534 0 0 1-17.067 0V64a8.534 8.534 0 0 1 17.067 0v76.748zm-2.978 53.413c-1.319 1.129-32.93 27.655-90.889 27.655-57.958 0-89.568-26.527-90.887-27.656a8.535 8.535 0 0 1-.925-12.033 8.53 8.53 0 0 1 12.013-.942c.501.42 28.729 23.563 79.8 23.563 51.712 0 79.503-23.31 79.778-23.545 3.571-3.067 8.968-2.655 12.033.925a8.534 8.534 0 0 1-.923 12.033zM34.133 64A8.534 8.534 0 0 1 51.2 64v76.748a8.534 8.534 0 0 1-17.067 0V64zm42.668-17.067a8.534 8.534 0 0 1 17.066 0v114.001a8.534 8.534 0 0 1-17.066 0v-114zm42.666-4.318A8.532 8.532 0 0 1 128 34.082a8.532 8.532 0 0 1 8.534 8.533v123.733a8.534 8.534 0 0 1-17.067 0V42.615zm42.667 4.318a8.534 8.534 0 0 1 17.066 0v114.001a8.534 8.534 0 0 1-17.066 0v-114zM224 0H32C14.327 0 0 14.327 0 32v192c0 17.672 14.327 32 32 32h192c17.673 0 32-14.328 32-32V32c0-17.673-14.327-32-32-32z" fill="#1F8DED"/></svg>

After

Width:  |  Height:  |  Size: 990 B