Fix error handling in NPM/Puppeteer

main
Elbert Alias 5 years ago
parent 6ac9025bbc
commit a805ebce80

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

@ -91,17 +91,21 @@ class PuppeteerBrowser extends Browser {
let responseReceived = false; let responseReceived = false;
page.on('request', (request) => { page.on('request', (request) => {
if ( try {
responseReceived if (
&& request.isNavigationRequest() responseReceived
&& request.frame() === page.mainFrame() && request.isNavigationRequest()
&& request.url() !== url && request.frame() === page.mainFrame()
) { && request.url() !== url
this.log(`abort navigation to ${request.url()}`); ) {
this.log(`abort navigation to ${request.url()}`);
request.abort('aborted');
} else { request.abort('aborted');
request.continue(); } 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." }, "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" }, "privacyPolicy": { "message": "Privacy policy" },
"categoryName1": { "message": "CMS" }, "categoryName1": { "message": "CMS" },
"categoryName2": { "message": "Message Board" }, "categoryName2": { "message": "Message boards" },
"categoryName3": { "message": "Database Manager" }, "categoryName3": { "message": "Database managers" },
"categoryName4": { "message": "Documentation Tool" }, "categoryName4": { "message": "Documentation tools" },
"categoryName5": { "message": "Widget" }, "categoryName5": { "message": "Widgets" },
"categoryName6": { "message": "Ecommerce" }, "categoryName6": { "message": "Ecommerce" },
"categoryName7": { "message": "Photo Galleries" }, "categoryName7": { "message": "Photo galleries" },
"categoryName8": { "message": "Wikis" }, "categoryName8": { "message": "Wikis" },
"categoryName9": { "message": "Hosting Panels" }, "categoryName9": { "message": "Hosting panels" },
"categoryName10": { "message": "Analytics" }, "categoryName10": { "message": "Analytics" },
"categoryName11": { "message": "Blog" }, "categoryName11": { "message": "Blogs" },
"categoryName12": { "message": "JavaScript Framework" }, "categoryName12": { "message": "JavaScript frameworks" },
"categoryName13": { "message": "Issue Tracker" }, "categoryName13": { "message": "Issue trackers" },
"categoryName14": { "message": "Video Player" }, "categoryName14": { "message": "Video players" },
"categoryName15": { "message": "Comment System" }, "categoryName15": { "message": "Comment systems" },
"categoryName16": { "message": "Captcha" }, "categoryName16": { "message": "Captchas" },
"categoryName17": { "message": "Font Script" }, "categoryName17": { "message": "Font scripts" },
"categoryName18": { "message": "Web Framework" }, "categoryName18": { "message": "Web frameworks" },
"categoryName19": { "message": "Miscellaneous" }, "categoryName19": { "message": "Miscellaneous" },
"categoryName20": { "message": "Editor" }, "categoryName20": { "message": "Editor" },
"categoryName21": { "message": "LMS" }, "categoryName21": { "message": "LMS" },
"categoryName22": { "message": "Web Server" }, "categoryName22": { "message": "Web servers" },
"categoryName23": { "message": "Cache Tool" }, "categoryName23": { "message": "Caching" },
"categoryName24": { "message": "Rich Text Editor" }, "categoryName24": { "message": "Rich text editors" },
"categoryName25": { "message": "JavaScript Graphics" }, "categoryName25": { "message": "JavaScript graphics" },
"categoryName26": { "message": "Mobile Framework" }, "categoryName26": { "message": "Mobile frameworks" },
"categoryName27": { "message": "Programming Language" }, "categoryName27": { "message": "Programming languages" },
"categoryName28": { "message": "Operating System" }, "categoryName28": { "message": "Operating systems" },
"categoryName29": { "message": "Search Engine" }, "categoryName29": { "message": "Search engines" },
"categoryName30": { "message": "Web Mail" }, "categoryName30": { "message": "Webmail" },
"categoryName31": { "message": "CDN" }, "categoryName31": { "message": "CDN" },
"categoryName32": { "message": "Marketing Automation" }, "categoryName32": { "message": "Marketing automation" },
"categoryName33": { "message": "Web Server Extension" }, "categoryName33": { "message": "Web server extensions" },
"categoryName34": { "message": "Database" }, "categoryName34": { "message": "Databases" },
"categoryName35": { "message": "Map" }, "categoryName35": { "message": "Maps" },
"categoryName36": { "message": "Advertising Network" }, "categoryName36": { "message": "Advertising" },
"categoryName37": { "message": "Network Service" }, "categoryName37": { "message": "Network services" },
"categoryName38": { "message": "Media Server" }, "categoryName38": { "message": "Media servers" },
"categoryName39": { "message": "Webcam" }, "categoryName39": { "message": "Webcams" },
"categoryName40": { "message": "Printer" }, "categoryName40": { "message": "Printers" },
"categoryName41": { "message": "Payment Processor" }, "categoryName41": { "message": "Payment processors" },
"categoryName42": { "message": "Tag Manager" }, "categoryName42": { "message": "Tag managers" },
"categoryName43": { "message": "Paywall" }, "categoryName44": { "message": "CI" },
"categoryName44": { "message": "Build/CI System" },
"categoryName45": { "message": "SCADA System" },
"categoryName46": { "message": "Remote Access" }, "categoryName46": { "message": "Remote Access" },
"categoryName47": { "message": "Development Tool" }, "categoryName47": { "message": "Developmentl" },
"categoryName48": { "message": "Network Storage" }, "categoryName48": { "message": "Network storage" },
"categoryName49": { "message": "Feed Readers" }, "categoryName49": { "message": "Feed readers" },
"categoryName50": { "message": "Document Management Systems" }, "categoryName50": { "message": "DMS" },
"categoryName51": { "message": "Landing Page Builder" }, "categoryName51": { "message": "Page builder" },
"categoryName52": { "message": "Live Chat" }, "categoryName52": { "message": "Live chat" },
"categoryName53": { "message": "CRM" }, "categoryName53": { "message": "CRM" },
"categoryName54": { "message": "SEO" }, "categoryName54": { "message": "SEO" },
"categoryName55": { "message": "Accounting" }, "categoryName55": { "message": "Accounting" },
"categoryName56": { "message": "Cryptominer" }, "categoryName56": { "message": "Cryptominers" },
"categoryName57": { "message": "Static Site Generator" }, "categoryName57": { "message": "Static site generators" },
"categoryName58": { "message": "User Onboarding" }, "categoryName58": { "message": "User onboarding" },
"categoryName59": { "message": "JavaScript Libraries" }, "categoryName59": { "message": "JavaScript libraries" },
"categoryName60": { "message": "Containers" }, "categoryName60": { "message": "Containers" },
"categoryName61": { "message": "SaaS" }, "categoryName61": { "message": "SaaS" },
"categoryName62": { "message": "PaaS" }, "categoryName62": { "message": "PaaS" },
"categoryName63": { "message": "IaaS" }, "categoryName63": { "message": "IaaS" },
"categoryName64": { "message": "Reverse Proxy" }, "categoryName64": { "message": "Reverse proxies" },
"categoryName65": { "message": "Load Balancer" }, "categoryName65": { "message": "Load balancers" },
"categoryName66": { "message": "UI Frameworks" } "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

Loading…
Cancel
Save