lighthouse 9.2.0-dev.20211216 → 9.2.0-dev.20211220
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/dist/report/bundle.esm.js +6 -6
- package/dist/report/flow.js +5 -5
- package/dist/report/standalone.js +3 -3
- package/flow-report/src/common.tsx +1 -1
- package/flow-report/src/sidebar/flow.tsx +1 -1
- package/flow-report/src/util.ts +1 -2
- package/lighthouse-cli/run.js +1 -1
- package/lighthouse-cli/test/smokehouse/lighthouse-runners/cli.js +1 -1
- package/lighthouse-cli/test/smokehouse/report-assert.js +1 -1
- package/lighthouse-cli/test/smokehouse/smokehouse.js +4 -4
- package/lighthouse-core/audits/accessibility/axe-audit.js +4 -4
- package/lighthouse-core/audits/accessibility/object-alt.js +3 -3
- package/lighthouse-core/audits/audit.js +2 -2
- package/lighthouse-core/audits/byte-efficiency/byte-efficiency-audit.js +1 -1
- package/lighthouse-core/audits/byte-efficiency/duplicated-javascript.js +1 -1
- package/lighthouse-core/audits/dobetterweb/inspector-issues.js +3 -3
- package/lighthouse-core/audits/dobetterweb/uses-http2.js +1 -1
- package/lighthouse-core/audits/font-display.js +1 -1
- package/lighthouse-core/audits/installable-manifest.js +1 -1
- package/lighthouse-core/audits/maskable-icon.js +1 -1
- package/lighthouse-core/audits/multi-check-audit.js +1 -1
- package/lighthouse-core/audits/network-requests.js +4 -4
- package/lighthouse-core/audits/preload-lcp-image.js +1 -1
- package/lighthouse-core/audits/themed-omnibox.js +1 -1
- package/lighthouse-core/audits/valid-source-maps.js +2 -2
- package/lighthouse-core/computed/image-records.js +1 -1
- package/lighthouse-core/computed/js-bundles.js +1 -1
- package/lighthouse-core/computed/metrics/lantern-metric.js +1 -1
- package/lighthouse-core/computed/metrics/timing-summary.js +35 -35
- package/lighthouse-core/computed/page-dependency-graph.js +2 -2
- package/lighthouse-core/computed/resource-summary.js +1 -1
- package/lighthouse-core/config/config-helpers.js +2 -2
- package/lighthouse-core/config/config.js +1 -1
- package/lighthouse-core/fraggle-rock/config/filters.js +23 -1
- package/lighthouse-core/fraggle-rock/config/validation.js +2 -2
- package/lighthouse-core/fraggle-rock/gather/navigation-runner.js +2 -2
- package/lighthouse-core/fraggle-rock/user-flow.js +4 -4
- package/lighthouse-core/gather/connections/connection.js +1 -1
- package/lighthouse-core/gather/driver/execution-context.js +1 -1
- package/lighthouse-core/gather/driver/network-monitor.js +2 -2
- package/lighthouse-core/gather/driver/target-manager.js +1 -1
- package/lighthouse-core/gather/driver.js +1 -1
- package/lighthouse-core/gather/gatherers/console-messages.js +2 -2
- package/lighthouse-core/gather/gatherers/inspector-issues.js +3 -3
- package/lighthouse-core/gather/gatherers/js-usage.js +1 -1
- package/lighthouse-core/gather/gatherers/seo/font-size.js +1 -1
- package/lighthouse-core/gather/gatherers/trace-elements.js +8 -43
- package/lighthouse-core/lib/arbitrary-equality-map.js +1 -1
- package/lighthouse-core/lib/dependency-graph/simulator/connection-pool.js +1 -1
- package/lighthouse-core/lib/dependency-graph/simulator/network-analyzer.js +1 -1
- package/lighthouse-core/lib/emulation.js +1 -1
- package/lighthouse-core/lib/icons.js +1 -2
- package/lighthouse-core/lib/median-run.js +1 -2
- package/lighthouse-core/lib/network-recorder.js +2 -2
- package/lighthouse-core/lib/network-request.js +1 -1
- package/lighthouse-core/lib/tracehouse/cpu-profile-model.js +4 -6
- package/lighthouse-core/lib/tracehouse/main-thread-tasks.js +1 -1
- package/lighthouse-core/lib/tracehouse/trace-processor.js +14 -17
- package/lighthouse-core/runner.js +4 -4
- package/package.json +7 -7
- package/report/renderer/category-renderer.js +1 -1
- package/report/renderer/performance-category-renderer.js +4 -4
- package/report/renderer/report-renderer.js +1 -1
- package/report/test-assets/faux-psi.js +2 -3
- package/shared/localization/locales/en-US.json +3 -3
- package/shared/localization/locales/en-XL.json +3 -3
- 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
|
|
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
|
|
4180
|
-
if (thumbnailResult
|
|
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
|
|
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
|
|
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']
|
|
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, {
|