lighthouse 9.2.0-dev.20211218 → 9.2.0-dev.20211222

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.
Files changed (67) hide show
  1. package/dist/report/bundle.esm.js +6 -6
  2. package/dist/report/flow.js +5 -5
  3. package/dist/report/standalone.js +3 -3
  4. package/flow-report/src/common.tsx +1 -1
  5. package/flow-report/src/sidebar/flow.tsx +1 -1
  6. package/flow-report/src/util.ts +1 -2
  7. package/lighthouse-cli/run.js +1 -1
  8. package/lighthouse-cli/test/smokehouse/lighthouse-runners/cli.js +1 -1
  9. package/lighthouse-cli/test/smokehouse/report-assert.js +1 -1
  10. package/lighthouse-cli/test/smokehouse/smokehouse.js +4 -4
  11. package/lighthouse-core/audits/accessibility/axe-audit.js +4 -4
  12. package/lighthouse-core/audits/accessibility/object-alt.js +3 -3
  13. package/lighthouse-core/audits/audit.js +2 -2
  14. package/lighthouse-core/audits/byte-efficiency/byte-efficiency-audit.js +1 -1
  15. package/lighthouse-core/audits/byte-efficiency/duplicated-javascript.js +1 -1
  16. package/lighthouse-core/audits/dobetterweb/inspector-issues.js +3 -3
  17. package/lighthouse-core/audits/dobetterweb/uses-http2.js +1 -1
  18. package/lighthouse-core/audits/font-display.js +1 -1
  19. package/lighthouse-core/audits/installable-manifest.js +1 -1
  20. package/lighthouse-core/audits/maskable-icon.js +1 -1
  21. package/lighthouse-core/audits/multi-check-audit.js +1 -1
  22. package/lighthouse-core/audits/network-requests.js +4 -4
  23. package/lighthouse-core/audits/preload-lcp-image.js +1 -1
  24. package/lighthouse-core/audits/themed-omnibox.js +1 -1
  25. package/lighthouse-core/audits/valid-source-maps.js +2 -2
  26. package/lighthouse-core/computed/image-records.js +1 -1
  27. package/lighthouse-core/computed/js-bundles.js +1 -1
  28. package/lighthouse-core/computed/metrics/lantern-metric.js +1 -1
  29. package/lighthouse-core/computed/metrics/timing-summary.js +35 -35
  30. package/lighthouse-core/computed/page-dependency-graph.js +2 -2
  31. package/lighthouse-core/computed/resource-summary.js +1 -1
  32. package/lighthouse-core/config/config-helpers.js +2 -2
  33. package/lighthouse-core/config/config.js +1 -1
  34. package/lighthouse-core/fraggle-rock/config/filters.js +23 -1
  35. package/lighthouse-core/fraggle-rock/config/validation.js +2 -2
  36. package/lighthouse-core/fraggle-rock/gather/navigation-runner.js +2 -2
  37. package/lighthouse-core/fraggle-rock/user-flow.js +4 -4
  38. package/lighthouse-core/gather/connections/connection.js +1 -1
  39. package/lighthouse-core/gather/driver/execution-context.js +1 -1
  40. package/lighthouse-core/gather/driver/network-monitor.js +2 -2
  41. package/lighthouse-core/gather/driver/target-manager.js +1 -1
  42. package/lighthouse-core/gather/driver.js +1 -1
  43. package/lighthouse-core/gather/gatherers/console-messages.js +2 -2
  44. package/lighthouse-core/gather/gatherers/inspector-issues.js +3 -3
  45. package/lighthouse-core/gather/gatherers/js-usage.js +1 -1
  46. package/lighthouse-core/gather/gatherers/seo/font-size.js +1 -1
  47. package/lighthouse-core/gather/gatherers/trace-elements.js +8 -43
  48. package/lighthouse-core/lib/arbitrary-equality-map.js +1 -1
  49. package/lighthouse-core/lib/dependency-graph/simulator/connection-pool.js +1 -1
  50. package/lighthouse-core/lib/dependency-graph/simulator/network-analyzer.js +1 -1
  51. package/lighthouse-core/lib/emulation.js +1 -1
  52. package/lighthouse-core/lib/icons.js +1 -2
  53. package/lighthouse-core/lib/median-run.js +1 -2
  54. package/lighthouse-core/lib/network-recorder.js +2 -2
  55. package/lighthouse-core/lib/network-request.js +1 -1
  56. package/lighthouse-core/lib/tracehouse/cpu-profile-model.js +4 -6
  57. package/lighthouse-core/lib/tracehouse/main-thread-tasks.js +1 -1
  58. package/lighthouse-core/lib/tracehouse/trace-processor.js +14 -17
  59. package/lighthouse-core/runner.js +4 -4
  60. package/package.json +10 -10
  61. package/report/renderer/category-renderer.js +1 -1
  62. package/report/renderer/performance-category-renderer.js +4 -4
  63. package/report/renderer/report-renderer.js +1 -1
  64. package/report/test-assets/faux-psi.js +2 -3
  65. package/shared/localization/locales/en-US.json +3 -3
  66. package/shared/localization/locales/en-XL.json +3 -3
  67. package/third-party/snyk/snapshot.json +3 -1
@@ -2260,7 +2260,7 @@ class CategoryRenderer {
2260
2260
  * @return {boolean}
2261
2261
  */
2262
2262
  _auditHasWarning(audit) {
2263
- return Boolean(audit.result.warnings && audit.result.warnings.length);
2263
+ return Boolean(audit.result.warnings?.length);
2264
2264
  }
2265
2265
 
2266
2266
  /**
@@ -4176,8 +4176,8 @@ class PerformanceCategoryRenderer extends CategoryRenderer {
4176
4176
  // Filmstrip
4177
4177
  const timelineEl = this.dom.createChildOf(element, 'div', 'lh-filmstrip-container');
4178
4178
  const thumbnailAudit = category.auditRefs.find(audit => audit.id === 'screenshot-thumbnails');
4179
- const thumbnailResult = thumbnailAudit && thumbnailAudit.result;
4180
- if (thumbnailResult && thumbnailResult.details) {
4179
+ const thumbnailResult = thumbnailAudit?.result;
4180
+ if (thumbnailResult?.details) {
4181
4181
  timelineEl.id = thumbnailResult.id;
4182
4182
  const filmstripEl = this.detailsRenderer.render(thumbnailResult.details);
4183
4183
  filmstripEl && timelineEl.appendChild(filmstripEl);
@@ -4252,7 +4252,7 @@ class PerformanceCategoryRenderer extends CategoryRenderer {
4252
4252
  const budgetTableEls = [];
4253
4253
  ['performance-budget', 'timing-budget'].forEach((id) => {
4254
4254
  const audit = category.auditRefs.find(audit => audit.id === id);
4255
- if (audit && audit.result.details) {
4255
+ if (audit?.result.details) {
4256
4256
  const table = this.detailsRenderer.render(audit.result.details);
4257
4257
  if (table) {
4258
4258
  table.id = id;
@@ -4298,7 +4298,7 @@ class PerformanceCategoryRenderer extends CategoryRenderer {
4298
4298
 
4299
4299
  const labelEl = this.dom.createChildOf(metricFilterEl, 'label', 'lh-metricfilter__label');
4300
4300
  labelEl.htmlFor = elemId;
4301
- labelEl.title = metric.result && metric.result.title;
4301
+ labelEl.title = metric.result?.title;
4302
4302
  labelEl.textContent = metric.acronym || metric.id;
4303
4303
 
4304
4304
  if (metric.acronym === 'All') {
@@ -4773,7 +4773,7 @@ class ReportRenderer {
4773
4773
  Util.reportJson = report;
4774
4774
 
4775
4775
  const fullPageScreenshot =
4776
- report.audits['full-page-screenshot'] && report.audits['full-page-screenshot'].details &&
4776
+ report.audits['full-page-screenshot']?.details &&
4777
4777
  report.audits['full-page-screenshot'].details.type === 'full-page-screenshot' ?
4778
4778
  report.audits['full-page-screenshot'].details : undefined;
4779
4779
  const detailsRenderer = new DetailsRenderer(this._dom, {