lighthouse4u 1.10.0 → 1.10.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lighthouse4u",
3
- "version": "1.10.0",
3
+ "version": "1.10.2",
4
4
  "description": "LH4U provides Google Lighthouse as a service, surfaced by both a friendly UI+API, and backed by Elastic Search for all your query and visualization needs",
5
5
  "main": "./src/cli.js",
6
6
  "bin": {
@@ -45,7 +45,7 @@
45
45
  "config-shield": "^0.2.3",
46
46
  "cross-fetch": "^3.1.4",
47
47
  "ejs": "^3.1.6",
48
- "express": "^4.17.3",
48
+ "express": "^4.19.2",
49
49
  "json5": "^2.2.0",
50
50
  "lighthouse": "^9.6.8",
51
51
  "lodash": "^4.17.21",
@@ -285,10 +285,12 @@ async function getLighthouseResult(url, config, { launcher, auditMode, throttlin
285
285
  // https://github.com/GoogleChrome/lighthouse/blob/master/typings/lhr.d.ts
286
286
  // use results.report for the HTML/JSON/CSV output as a string
287
287
  // use results.artifacts for the trace/screenshots/other specific case you need (rarer)
288
- chrome.kill().then(() => resolve(lhr)).catch(ex => reject(ex));
288
+ await chrome.kill();
289
+ resolve(lhr);
289
290
  } catch (ex) {
290
291
  clearTimeout(timer);
291
- chrome.kill().then(() => reject(ex)).catch(() => reject(ex));
292
+ await chrome.kill();
293
+ reject(ex);
292
294
  }
293
295
  });
294
296
  }