lighthouse 12.1.0 → 12.2.0
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/cli/cli-flags.d.ts +2 -2
- package/cli/cli-flags.js +1 -1
- package/cli/sentry-prompt.js +2 -2
- package/cli/test/smokehouse/frontends/lib.d.ts +1 -1
- package/cli/test/smokehouse/lib/concurrent-mapper.d.ts +6 -6
- package/cli/test/smokehouse/lighthouse-runners/bundle.d.ts +1 -1
- package/cli/test/smokehouse/lighthouse-runners/cli.d.ts +1 -2
- package/cli/test/smokehouse/lighthouse-runners/devtools.d.ts +1 -1
- package/cli/test/smokehouse/report-assert.d.ts +0 -1
- package/cli/test/smokehouse/version-check.d.ts +3 -3
- package/core/audits/accessibility/accesskeys.d.ts +3 -3
- package/core/audits/accessibility/aria-allowed-attr.d.ts +3 -3
- package/core/audits/accessibility/aria-allowed-role.d.ts +3 -3
- package/core/audits/accessibility/aria-command-name.d.ts +3 -3
- package/core/audits/accessibility/aria-conditional-attr.d.ts +3 -3
- package/core/audits/accessibility/aria-deprecated-role.d.ts +3 -3
- package/core/audits/accessibility/aria-dialog-name.d.ts +3 -3
- package/core/audits/accessibility/aria-hidden-body.d.ts +3 -3
- package/core/audits/accessibility/aria-hidden-focus.d.ts +3 -3
- package/core/audits/accessibility/aria-input-field-name.d.ts +3 -3
- package/core/audits/accessibility/aria-meter-name.d.ts +3 -3
- package/core/audits/accessibility/aria-progressbar-name.d.ts +3 -3
- package/core/audits/accessibility/aria-prohibited-attr.d.ts +3 -3
- package/core/audits/accessibility/aria-required-attr.d.ts +3 -3
- package/core/audits/accessibility/aria-required-children.d.ts +3 -3
- package/core/audits/accessibility/aria-required-parent.d.ts +3 -3
- package/core/audits/accessibility/aria-roles.d.ts +3 -3
- package/core/audits/accessibility/aria-text.d.ts +3 -3
- package/core/audits/accessibility/aria-toggle-field-name.d.ts +3 -3
- package/core/audits/accessibility/aria-tooltip-name.d.ts +3 -3
- package/core/audits/accessibility/aria-treeitem-name.d.ts +3 -3
- package/core/audits/accessibility/aria-valid-attr-value.d.ts +3 -3
- package/core/audits/accessibility/aria-valid-attr.d.ts +3 -3
- package/core/audits/accessibility/axe-audit.d.ts +1 -1
- package/core/audits/accessibility/button-name.d.ts +3 -3
- package/core/audits/accessibility/bypass.d.ts +3 -3
- package/core/audits/accessibility/color-contrast.d.ts +3 -3
- package/core/audits/accessibility/definition-list.d.ts +3 -3
- package/core/audits/accessibility/dlitem.d.ts +3 -3
- package/core/audits/accessibility/document-title.d.ts +3 -3
- package/core/audits/accessibility/duplicate-id-aria.d.ts +3 -3
- package/core/audits/accessibility/empty-heading.d.ts +3 -3
- package/core/audits/accessibility/form-field-multiple-labels.d.ts +3 -3
- package/core/audits/accessibility/frame-title.d.ts +3 -3
- package/core/audits/accessibility/heading-order.d.ts +3 -3
- package/core/audits/accessibility/html-has-lang.d.ts +3 -3
- package/core/audits/accessibility/html-lang-valid.d.ts +3 -3
- package/core/audits/accessibility/html-xml-lang-mismatch.d.ts +3 -3
- package/core/audits/accessibility/identical-links-same-purpose.d.ts +3 -3
- package/core/audits/accessibility/image-alt.d.ts +3 -3
- package/core/audits/accessibility/image-redundant-alt.d.ts +3 -3
- package/core/audits/accessibility/input-button-name.d.ts +3 -3
- package/core/audits/accessibility/input-image-alt.d.ts +3 -3
- package/core/audits/accessibility/label-content-name-mismatch.d.ts +3 -3
- package/core/audits/accessibility/label.d.ts +3 -3
- package/core/audits/accessibility/landmark-one-main.d.ts +3 -3
- package/core/audits/accessibility/link-in-text-block.d.ts +3 -3
- package/core/audits/accessibility/link-name.d.ts +3 -3
- package/core/audits/accessibility/list.d.ts +3 -3
- package/core/audits/accessibility/listitem.d.ts +3 -3
- package/core/audits/accessibility/meta-refresh.d.ts +3 -3
- package/core/audits/accessibility/meta-viewport.d.ts +3 -3
- package/core/audits/accessibility/object-alt.d.ts +3 -3
- package/core/audits/accessibility/select-name.d.ts +3 -3
- package/core/audits/accessibility/skip-link.d.ts +3 -3
- package/core/audits/accessibility/tabindex.d.ts +3 -3
- package/core/audits/accessibility/table-duplicate-name.d.ts +3 -3
- package/core/audits/accessibility/table-fake-caption.d.ts +3 -3
- package/core/audits/accessibility/target-size.d.ts +3 -3
- package/core/audits/accessibility/td-has-header.d.ts +3 -3
- package/core/audits/accessibility/td-headers-attr.d.ts +3 -3
- package/core/audits/accessibility/th-has-data-cells.d.ts +3 -3
- package/core/audits/accessibility/valid-lang.d.ts +3 -3
- package/core/audits/accessibility/video-caption.d.ts +3 -3
- package/core/audits/audit.d.ts +17 -17
- package/core/audits/autocomplete.d.ts +9 -9
- package/core/audits/bf-cache.d.ts +10 -10
- package/core/audits/bootup-time.d.ts +7 -7
- package/core/audits/byte-efficiency/byte-efficiency-audit.d.ts +6 -8
- package/core/audits/byte-efficiency/byte-efficiency-audit.js +3 -6
- package/core/audits/byte-efficiency/duplicated-javascript.d.ts +4 -4
- package/core/audits/byte-efficiency/efficient-animated-content.d.ts +3 -4
- package/core/audits/byte-efficiency/legacy-javascript.d.ts +7 -8
- package/core/audits/byte-efficiency/modern-image-formats.d.ts +3 -3
- package/core/audits/byte-efficiency/offscreen-images.d.ts +3 -4
- package/core/audits/byte-efficiency/render-blocking-resources.d.ts +5 -9
- package/core/audits/byte-efficiency/render-blocking-resources.js +10 -16
- package/core/audits/byte-efficiency/total-byte-weight.d.ts +4 -4
- package/core/audits/byte-efficiency/unminified-css.d.ts +3 -3
- package/core/audits/byte-efficiency/unminified-javascript.d.ts +3 -3
- package/core/audits/byte-efficiency/unused-css-rules.d.ts +3 -3
- package/core/audits/byte-efficiency/unused-javascript.d.ts +3 -3
- package/core/audits/byte-efficiency/uses-long-cache-ttl.d.ts +4 -6
- package/core/audits/byte-efficiency/uses-optimized-images.d.ts +3 -3
- package/core/audits/byte-efficiency/uses-responsive-images-snapshot.d.ts +4 -4
- package/core/audits/byte-efficiency/uses-responsive-images.d.ts +4 -5
- package/core/audits/byte-efficiency/uses-text-compression.d.ts +3 -3
- package/core/audits/critical-request-chains.d.ts +3 -3
- package/core/audits/csp-xss.d.ts +8 -8
- package/core/audits/deprecations.d.ts +6 -6
- package/core/audits/dobetterweb/charset.d.ts +3 -3
- package/core/audits/dobetterweb/doctype.d.ts +9 -9
- package/core/audits/dobetterweb/dom-size.d.ts +9 -9
- package/core/audits/dobetterweb/geolocation-on-start.d.ts +3 -3
- package/core/audits/dobetterweb/inspector-issues.d.ts +6 -6
- package/core/audits/dobetterweb/js-libraries.d.ts +3 -3
- package/core/audits/dobetterweb/no-document-write.d.ts +3 -3
- package/core/audits/dobetterweb/notification-on-start.d.ts +3 -3
- package/core/audits/dobetterweb/paste-preventing-inputs.d.ts +3 -3
- package/core/audits/dobetterweb/uses-http2.d.ts +7 -11
- package/core/audits/dobetterweb/uses-http2.js +2 -5
- package/core/audits/dobetterweb/uses-passive-event-listeners.d.ts +3 -3
- package/core/audits/errors-in-console.d.ts +4 -4
- package/core/audits/font-display.d.ts +4 -4
- package/core/audits/image-aspect-ratio.d.ts +5 -5
- package/core/audits/image-size-responsive.d.ts +7 -7
- package/core/audits/is-on-https.d.ts +10 -10
- package/core/audits/largest-contentful-paint-element.d.ts +9 -9
- package/core/audits/layout-shifts.d.ts +9 -9
- package/core/audits/lcp-lazy-loaded.d.ts +3 -3
- package/core/audits/long-tasks.d.ts +11 -11
- package/core/audits/long-tasks.js +5 -5
- package/core/audits/mainthread-work-breakdown.d.ts +5 -5
- package/core/audits/metrics/cumulative-layout-shift.d.ts +1 -1
- package/core/audits/metrics/first-contentful-paint.d.ts +1 -1
- package/core/audits/metrics/first-meaningful-paint.d.ts +1 -1
- package/core/audits/metrics/interaction-to-next-paint.d.ts +1 -1
- package/core/audits/metrics/interactive.d.ts +1 -1
- package/core/audits/metrics/largest-contentful-paint.d.ts +1 -1
- package/core/audits/metrics/max-potential-fid.d.ts +2 -4
- package/core/audits/metrics/speed-index.d.ts +1 -1
- package/core/audits/metrics/total-blocking-time.d.ts +1 -1
- package/core/audits/network-rtt.d.ts +2 -2
- package/core/audits/network-server-latency.d.ts +2 -2
- package/core/audits/non-composited-animations.d.ts +9 -9
- package/core/audits/oopif-iframe-test-audit.d.ts +5 -5
- package/core/audits/preload-fonts.d.ts +3 -3
- package/core/audits/prioritize-lcp-image.d.ts +7 -7
- package/core/audits/redirects-http.d.ts +3 -3
- package/core/audits/redirects.d.ts +2 -3
- package/core/audits/resource-summary.d.ts +1 -1
- package/core/audits/screenshot-thumbnails.d.ts +2 -3
- package/core/audits/script-treemap-data.d.ts +1 -1
- package/core/audits/seo/canonical.d.ts +8 -8
- package/core/audits/seo/crawlable-anchors.d.ts +4 -4
- package/core/audits/seo/font-size.d.ts +11 -11
- package/core/audits/seo/hreflang.d.ts +6 -6
- package/core/audits/seo/http-status-code.d.ts +3 -3
- package/core/audits/seo/is-crawlable.d.ts +9 -10
- package/core/audits/seo/link-text.d.ts +4 -4
- package/core/audits/seo/manual/structured-data.d.ts +2 -2
- package/core/audits/seo/meta-description.d.ts +4 -4
- package/core/audits/seo/robots-txt.d.ts +6 -6
- package/core/audits/server-response-time.d.ts +4 -4
- package/core/audits/third-party-cookies.d.ts +4 -4
- package/core/audits/third-party-facades.d.ts +11 -12
- package/core/audits/third-party-summary.d.ts +5 -6
- package/core/audits/third-party-summary.js +7 -4
- package/core/audits/unsized-images.d.ts +3 -3
- package/core/audits/user-timings.d.ts +6 -6
- package/core/audits/uses-rel-preconnect.d.ts +5 -5
- package/core/audits/uses-rel-preload.d.ts +7 -7
- package/core/audits/uses-rel-preload.js +8 -6
- package/core/audits/valid-source-maps.d.ts +6 -7
- package/core/audits/viewport.d.ts +4 -4
- package/core/audits/work-during-interaction.d.ts +11 -12
- package/core/computed/computed-artifact.d.ts +2 -2
- package/core/computed/critical-request-chains.d.ts +9 -11
- package/core/computed/critical-request-chains.js +6 -6
- package/core/computed/document-urls.d.ts +3 -8
- package/core/computed/document-urls.js +1 -1
- package/core/computed/entity-classification.d.ts +6 -8
- package/core/computed/image-records.d.ts +3 -5
- package/core/computed/js-bundles.d.ts +2 -4
- package/core/computed/lcp-image-record.d.ts +3 -5
- package/core/computed/load-simulator.d.ts +7 -11
- package/core/computed/load-simulator.js +1 -1
- package/core/computed/main-resource.d.ts +5 -7
- package/core/computed/main-resource.js +1 -1
- package/core/computed/main-thread-tasks.d.ts +1 -3
- package/core/computed/metrics/cumulative-layout-shift.d.ts +2 -14
- package/core/computed/metrics/first-contentful-paint-all-frames.d.ts +1 -3
- package/core/computed/metrics/first-contentful-paint.d.ts +1 -3
- package/core/computed/metrics/interactive.d.ts +1 -3
- package/core/computed/metrics/lantern-first-contentful-paint.d.ts +3 -7
- package/core/computed/metrics/lantern-first-contentful-paint.js +3 -5
- package/core/computed/metrics/lantern-interactive.d.ts +3 -7
- package/core/computed/metrics/lantern-interactive.js +3 -5
- package/core/computed/metrics/lantern-largest-contentful-paint.d.ts +3 -7
- package/core/computed/metrics/lantern-largest-contentful-paint.js +3 -5
- package/core/computed/metrics/lantern-max-potential-fid.d.ts +3 -7
- package/core/computed/metrics/lantern-max-potential-fid.js +3 -5
- package/core/computed/metrics/lantern-metric.d.ts +8 -8
- package/core/computed/metrics/lantern-metric.js +1 -1
- package/core/computed/metrics/lantern-speed-index.d.ts +3 -7
- package/core/computed/metrics/lantern-speed-index.js +3 -5
- package/core/computed/metrics/lantern-total-blocking-time.d.ts +3 -7
- package/core/computed/metrics/lantern-total-blocking-time.js +1 -3
- package/core/computed/metrics/largest-contentful-paint-all-frames.d.ts +1 -3
- package/core/computed/metrics/largest-contentful-paint.d.ts +1 -3
- package/core/computed/metrics/lcp-breakdown.d.ts +3 -9
- package/core/computed/metrics/max-potential-fid.d.ts +1 -3
- package/core/computed/metrics/responsiveness.d.ts +7 -10
- package/core/computed/metrics/speed-index.d.ts +1 -3
- package/core/computed/metrics/time-to-first-byte.d.ts +1 -3
- package/core/computed/metrics/timing-summary.d.ts +8 -13
- package/core/computed/metrics/total-blocking-time.d.ts +1 -3
- package/core/computed/metrics/total-blocking-time.js +1 -1
- package/core/computed/module-duplication.d.ts +2 -8
- package/core/computed/navigation-insights.d.ts +2 -4
- package/core/computed/network-analysis.d.ts +2 -4
- package/core/computed/network-analysis.js +1 -1
- package/core/computed/network-records.d.ts +1 -3
- package/core/computed/page-dependency-graph.d.ts +9 -14
- package/core/computed/page-dependency-graph.js +3 -4
- package/core/computed/processed-navigation.d.ts +2 -5
- package/core/computed/processed-trace.d.ts +1 -3
- package/core/computed/resource-summary.d.ts +6 -10
- package/core/computed/screenshots.d.ts +1 -6
- package/core/computed/speedline.d.ts +1 -3
- package/core/computed/tbt-impact-tasks.d.ts +4 -5
- package/core/computed/tbt-impact-tasks.js +31 -8
- package/core/computed/trace-engine-result.d.ts +1 -3
- package/core/computed/trace-engine-result.js +10 -1
- package/core/computed/unused-css.d.ts +7 -9
- package/core/computed/unused-javascript-summary.d.ts +3 -5
- package/core/computed/user-timings.d.ts +3 -5
- package/core/computed/viewport-meta.d.ts +7 -9
- package/core/config/config-helpers.d.ts +5 -5
- package/core/config/config.d.ts +3 -3
- package/core/config/constants.d.ts +6 -6
- package/core/config/filters.d.ts +8 -8
- package/core/config/validation.d.ts +1 -1
- package/core/gather/driver/environment.d.ts +5 -5
- package/core/gather/driver/environment.js +1 -1
- package/core/gather/driver/execution-context.d.ts +6 -6
- package/core/gather/driver/navigation.d.ts +3 -3
- package/core/gather/driver/network-monitor.d.ts +6 -6
- package/core/gather/driver/storage.d.ts +4 -4
- package/core/gather/driver/target-manager.d.ts +4 -5
- package/core/gather/driver/target-manager.js +1 -1
- package/core/gather/driver/wait-for-condition.d.ts +3 -3
- package/core/gather/driver/wait-for-condition.js +4 -4
- package/core/gather/driver.d.ts +1 -1
- package/core/gather/gatherers/accessibility.d.ts +1 -1
- package/core/gather/gatherers/anchor-elements.d.ts +1 -1
- package/core/gather/gatherers/bf-cache-failures.d.ts +3 -3
- package/core/gather/gatherers/cache-contents.d.ts +1 -1
- package/core/gather/gatherers/console-messages.d.ts +1 -1
- package/core/gather/gatherers/css-usage.d.ts +1 -1
- package/core/gather/gatherers/devtools-log-compat.d.ts +3 -3
- package/core/gather/gatherers/devtools-log.d.ts +3 -3
- package/core/gather/gatherers/dobetterweb/doctype.d.ts +1 -1
- package/core/gather/gatherers/dobetterweb/domstats.d.ts +1 -1
- package/core/gather/gatherers/dobetterweb/optimized-images.d.ts +6 -7
- package/core/gather/gatherers/dobetterweb/response-compression.d.ts +4 -5
- package/core/gather/gatherers/full-page-screenshot.d.ts +3 -3
- package/core/gather/gatherers/iframe-elements.d.ts +1 -1
- package/core/gather/gatherers/image-elements.d.ts +1 -1
- package/core/gather/gatherers/inputs.d.ts +1 -1
- package/core/gather/gatherers/inspector-issues.d.ts +2 -2
- package/core/gather/gatherers/js-usage.d.ts +1 -1
- package/core/gather/gatherers/link-elements.d.ts +6 -10
- package/core/gather/gatherers/link-elements.js +5 -12
- package/core/gather/gatherers/main-document-content.d.ts +2 -2
- package/core/gather/gatherers/meta-elements.d.ts +1 -1
- package/core/gather/gatherers/network-user-agent.d.ts +4 -4
- package/core/gather/gatherers/root-causes.d.ts +3 -4
- package/core/gather/gatherers/seo/font-size.d.ts +19 -19
- package/core/gather/gatherers/seo/robots-txt.d.ts +1 -1
- package/core/gather/gatherers/source-maps.d.ts +2 -2
- package/core/gather/gatherers/stacks.d.ts +2 -2
- package/core/gather/gatherers/stylesheets.d.ts +1 -9
- package/core/gather/gatherers/stylesheets.js +8 -39
- package/core/gather/gatherers/trace-compat.d.ts +3 -3
- package/core/gather/gatherers/trace-elements.d.ts +4 -6
- package/core/gather/navigation-runner.d.ts +3 -4
- package/core/gather/runner-helpers.d.ts +3 -3
- package/core/gather/session.d.ts +4 -4
- package/core/gather/session.js +1 -1
- package/core/gather/snapshot-runner.d.ts +2 -2
- package/core/gather/timespan-runner.d.ts +3 -3
- package/core/index.d.cts +1 -7
- package/core/index.d.ts +6 -6
- package/core/lib/arbitrary-equality-map.d.ts +2 -2
- package/core/lib/asset-saver.d.ts +3 -3
- package/core/lib/asset-saver.js +1 -1
- package/core/lib/bf-cache-strings.d.ts +117 -117
- package/core/lib/cdt/Platform.d.ts +1 -1
- package/core/lib/cdt/SDK.d.ts +1 -1
- package/core/lib/cdt/generated/ParsedURL.js +2 -2
- package/core/lib/cdt/generated/SourceMap.d.ts +11 -11
- package/core/lib/cdt/generated/SourceMap.js +3 -3
- package/core/lib/csp-evaluator.d.ts +20 -20
- package/core/lib/deprecation-description.d.ts +3 -3
- package/core/lib/deprecations-strings.d.ts +112 -112
- package/core/lib/i18n/i18n.d.ts +48 -48
- package/core/lib/icons.d.ts +3 -3
- package/core/lib/lantern/lantern.d.ts +2 -19
- package/core/lib/lantern/lantern.js +2 -45
- package/core/lib/lantern-trace-saver.d.ts +5 -7
- package/core/lib/lantern-trace-saver.js +2 -3
- package/core/lib/lh-error.d.ts +87 -87
- package/core/lib/lighthouse-compatibility.d.ts +1 -1
- package/core/lib/manifest-parser.d.ts +1 -1
- package/core/lib/minify-devtoolslog.d.ts +1 -1
- package/core/lib/navigation-error.d.ts +4 -6
- package/core/lib/navigation-error.js +2 -2
- package/core/lib/network-recorder.js +1 -1
- package/core/lib/network-request.d.ts +5 -5
- package/core/lib/network-request.js +2 -2
- package/core/lib/page-functions.d.ts +2 -2
- package/core/lib/script-helpers.d.ts +0 -1
- package/core/lib/sentry.d.ts +8 -8
- package/core/lib/stack-packs.d.ts +1 -1
- package/core/lib/trace-engine.d.ts +2 -2
- package/core/lib/tracehouse/cpu-profile-model.d.ts +8 -8
- package/core/lib/tracehouse/cpu-profile-model.js +2 -2
- package/core/lib/tracehouse/main-thread-tasks.d.ts +5 -5
- package/core/lib/tracehouse/task-groups.d.ts +6 -38
- package/core/lib/tracehouse/task-summary.d.ts +0 -1
- package/core/lib/tracehouse/trace-processor.d.ts +9 -9
- package/core/lib/traces/metric-trace-events.d.ts +1 -1
- package/core/lib/url-utils.d.ts +4 -4
- package/core/runner.d.ts +3 -4
- package/core/runner.js +0 -1
- package/core/scoring.d.ts +0 -1
- package/core/user-flow.d.ts +5 -5
- package/dist/report/bundle.esm.js +1 -1
- package/dist/report/flow.js +1 -1
- package/dist/report/standalone.js +1 -1
- package/eslint-local-rules.d.cts +4 -1
- package/flow-report/src/i18n/localized-strings.d.ts +1 -1
- package/flow-report/src/i18n/ui-strings.d.ts +43 -43
- package/package.json +7 -7
- package/readme.md +0 -2
- package/report/generator/file-namer.d.ts +2 -2
- package/report/generator/flow-report-assets.d.ts +1 -1
- package/report/generator/report-generator.d.ts +4 -4
- package/report/renderer/api.d.ts +2 -5
- package/report/renderer/category-renderer.d.ts +8 -8
- package/report/renderer/components.d.ts +2 -2
- package/report/renderer/crc-details-renderer.d.ts +2 -2
- package/report/renderer/details-renderer.d.ts +7 -7
- package/report/renderer/dom.d.ts +7 -7
- package/report/renderer/drop-down-menu.d.ts +1 -1
- package/report/renderer/drop-down-menu.js +15 -17
- package/report/renderer/element-screenshot-renderer.d.ts +3 -3
- package/report/renderer/explodey-gauge.d.ts +2 -2
- package/report/renderer/features-util.d.ts +1 -1
- package/report/renderer/performance-category-renderer.d.ts +1 -1
- package/report/renderer/report-globals.d.ts +1 -1
- package/report/renderer/report-renderer.d.ts +1 -1
- package/report/renderer/report-ui-features.d.ts +1 -1
- package/report/renderer/report-utils.d.ts +62 -62
- package/report/renderer/snippet-renderer.d.ts +9 -9
- package/report/renderer/swap-locale-feature.d.ts +2 -2
- package/report/renderer/topbar-features.d.ts +2 -2
- package/report/types/augment-dom.d.ts +0 -11
- package/shared/localization/format.d.ts +3 -3
- package/shared/localization/locales/en-US.json +1 -1
- package/shared/localization/locales/en-XL.json +1 -1
- package/shared/localization/locales.d.ts +1 -1
- package/shared/type-verifiers.d.ts +1 -1
- package/shared/util.d.ts +6 -6
- package/tsconfig.json +1 -11
- package/types/artifacts.d.ts +4 -4
- package/types/gatherer.d.ts +4 -5
- package/types/internal/node.d.ts +0 -6
- package/types/internal/query-selector.d.ts +2 -2
- package/core/lib/lantern/BaseNode.d.ts +0 -163
- package/core/lib/lantern/BaseNode.js +0 -369
- package/core/lib/lantern/BaseNode.test.js +0 -385
- package/core/lib/lantern/CpuNode.d.ts +0 -43
- package/core/lib/lantern/CpuNode.js +0 -99
- package/core/lib/lantern/LanternError.d.ts +0 -8
- package/core/lib/lantern/LanternError.js +0 -9
- package/core/lib/lantern/Metric.d.ts +0 -69
- package/core/lib/lantern/Metric.js +0 -137
- package/core/lib/lantern/NetworkNode.d.ts +0 -49
- package/core/lib/lantern/NetworkNode.js +0 -136
- package/core/lib/lantern/PageDependencyGraph.d.ts +0 -82
- package/core/lib/lantern/PageDependencyGraph.js +0 -610
- package/core/lib/lantern/PageDependencyGraph.test.js +0 -654
- package/core/lib/lantern/TBTUtils.d.ts +0 -44
- package/core/lib/lantern/TBTUtils.js +0 -76
- package/core/lib/lantern/TBTUtils.test.d.ts +0 -2
- package/core/lib/lantern/TBTUtils.test.js +0 -130
- package/core/lib/lantern/TraceEngineComputationData.d.ts +0 -25
- package/core/lib/lantern/TraceEngineComputationData.js +0 -466
- package/core/lib/lantern/metrics/FirstContentfulPaint.d.ts +0 -79
- package/core/lib/lantern/metrics/FirstContentfulPaint.js +0 -198
- package/core/lib/lantern/metrics/FirstContentfulPaint.test.js +0 -54
- package/core/lib/lantern/metrics/Interactive.d.ts +0 -20
- package/core/lib/lantern/metrics/Interactive.js +0 -109
- package/core/lib/lantern/metrics/Interactive.test.js +0 -56
- package/core/lib/lantern/metrics/LargestContentfulPaint.d.ts +0 -19
- package/core/lib/lantern/metrics/LargestContentfulPaint.js +0 -105
- package/core/lib/lantern/metrics/LargestContentfulPaint.test.js +0 -42
- package/core/lib/lantern/metrics/MaxPotentialFID.d.ts +0 -24
- package/core/lib/lantern/metrics/MaxPotentialFID.js +0 -91
- package/core/lib/lantern/metrics/MetricTestUtils.d.ts +0 -19
- package/core/lib/lantern/metrics/MetricTestUtils.js +0 -48
- package/core/lib/lantern/metrics/SpeedIndex.d.ts +0 -32
- package/core/lib/lantern/metrics/SpeedIndex.js +0 -142
- package/core/lib/lantern/metrics/SpeedIndex.test.js +0 -83
- package/core/lib/lantern/metrics/TotalBlockingTime.d.ts +0 -25
- package/core/lib/lantern/metrics/TotalBlockingTime.js +0 -125
- package/core/lib/lantern/metrics/__snapshots__/FirstContentfulPaint.test.js.snap +0 -11
- package/core/lib/lantern/metrics/__snapshots__/Interactive.test.js.snap +0 -17
- package/core/lib/lantern/metrics/metrics.d.ts +0 -9
- package/core/lib/lantern/metrics/metrics.js +0 -16
- package/core/lib/lantern/simulation/ConnectionPool.d.ts +0 -48
- package/core/lib/lantern/simulation/ConnectionPool.js +0 -152
- package/core/lib/lantern/simulation/ConnectionPool.test.js +0 -195
- package/core/lib/lantern/simulation/Constants.d.ts +0 -52
- package/core/lib/lantern/simulation/Constants.js +0 -48
- package/core/lib/lantern/simulation/DNSCache.d.ts +0 -42
- package/core/lib/lantern/simulation/DNSCache.js +0 -74
- package/core/lib/lantern/simulation/DNSCache.test.js +0 -72
- package/core/lib/lantern/simulation/NetworkAnalyzer.d.ts +0 -209
- package/core/lib/lantern/simulation/NetworkAnalyzer.js +0 -597
- package/core/lib/lantern/simulation/NetworkAnalyzer.test.js +0 -475
- package/core/lib/lantern/simulation/SimulationTimingMap.d.ts +0 -153
- package/core/lib/lantern/simulation/SimulationTimingMap.js +0 -219
- package/core/lib/lantern/simulation/Simulator.d.ts +0 -157
- package/core/lib/lantern/simulation/Simulator.js +0 -593
- package/core/lib/lantern/simulation/Simulator.test.js +0 -434
- package/core/lib/lantern/simulation/TCPConnection.test.d.ts +0 -2
- package/core/lib/lantern/simulation/TCPConnection.test.js +0 -374
- package/core/lib/lantern/simulation/TcpConnection.d.ts +0 -89
- package/core/lib/lantern/simulation/TcpConnection.js +0 -230
- package/core/lib/lantern/simulation/simulation.d.ts +0 -21
- package/core/lib/lantern/simulation/simulation.js +0 -28
- package/core/lib/lantern/types/lantern.d.ts +0 -256
- package/core/lib/lantern/types/lantern.js +0 -7
package/core/lib/lh-error.d.ts
CHANGED
|
@@ -8,23 +8,23 @@ export type LighthouseErrorDefinition = {
|
|
|
8
8
|
lhrRuntimeError?: boolean | undefined;
|
|
9
9
|
};
|
|
10
10
|
export type SerializedLighthouseError = {
|
|
11
|
-
sentinel:
|
|
11
|
+
sentinel: "__LighthouseErrorSentinel";
|
|
12
12
|
code: string;
|
|
13
|
-
stack?: string
|
|
13
|
+
stack?: string;
|
|
14
14
|
cause?: unknown;
|
|
15
15
|
properties?: {
|
|
16
16
|
[p: string]: string | undefined;
|
|
17
|
-
}
|
|
17
|
+
};
|
|
18
18
|
};
|
|
19
19
|
export type SerializedBaseError = {
|
|
20
|
-
sentinel:
|
|
20
|
+
sentinel: "__ErrorSentinel";
|
|
21
21
|
message: string;
|
|
22
22
|
code?: string;
|
|
23
23
|
stack?: string;
|
|
24
24
|
cause?: unknown;
|
|
25
25
|
};
|
|
26
26
|
/**
|
|
27
|
-
* The {@link ErrorOptions
|
|
27
|
+
* The {@link ErrorOptions} type wasn't added until es2022 (Node 16), so we recreate it here to support ts targets before es2022.
|
|
28
28
|
* TODO: Just use `ErrorOptions` if we can't support targets before es2022 in the docs test.
|
|
29
29
|
*/
|
|
30
30
|
export type LHErrorOptions = {
|
|
@@ -80,273 +80,273 @@ export class LighthouseError extends Error {
|
|
|
80
80
|
}
|
|
81
81
|
export namespace LighthouseError {
|
|
82
82
|
export { ERRORS as errors };
|
|
83
|
-
export
|
|
84
|
-
export
|
|
83
|
+
export let NO_ERROR: string;
|
|
84
|
+
export let UNKNOWN_ERROR: string;
|
|
85
85
|
}
|
|
86
86
|
export namespace UIStrings {
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
87
|
+
let didntCollectScreenshots: string;
|
|
88
|
+
let badTraceRecording: string;
|
|
89
|
+
let noFcp: string;
|
|
90
|
+
let noLcp: string;
|
|
91
|
+
let pageLoadTookTooLong: string;
|
|
92
|
+
let pageLoadFailed: string;
|
|
93
|
+
let pageLoadFailedWithStatusCode: string;
|
|
94
|
+
let pageLoadFailedWithDetails: string;
|
|
95
|
+
let pageLoadFailedInsecure: string;
|
|
96
|
+
let pageLoadFailedInterstitial: string;
|
|
97
|
+
let internalChromeError: string;
|
|
98
|
+
let requestContentTimeout: string;
|
|
99
|
+
let notHtml: string;
|
|
100
|
+
let urlInvalid: string;
|
|
101
|
+
let protocolTimeout: string;
|
|
102
|
+
let dnsFailure: string;
|
|
103
|
+
let pageLoadFailedHung: string;
|
|
104
|
+
let criTimeout: string;
|
|
105
|
+
let missingRequiredArtifact: string;
|
|
106
|
+
let erroredRequiredArtifact: string;
|
|
107
|
+
let oldChromeDoesNotSupportFeature: string;
|
|
108
|
+
let targetCrashed: string;
|
|
109
109
|
}
|
|
110
110
|
declare namespace ERRORS {
|
|
111
111
|
namespace NO_SPEEDLINE_FRAMES {
|
|
112
|
-
export
|
|
112
|
+
export let code: string;
|
|
113
113
|
import message = UIStrings.didntCollectScreenshots;
|
|
114
114
|
export { message };
|
|
115
|
-
export
|
|
115
|
+
export let lhrRuntimeError: boolean;
|
|
116
116
|
}
|
|
117
117
|
namespace SPEEDINDEX_OF_ZERO {
|
|
118
|
-
|
|
118
|
+
let code_1: string;
|
|
119
119
|
export { code_1 as code };
|
|
120
120
|
import message_1 = UIStrings.didntCollectScreenshots;
|
|
121
121
|
export { message_1 as message };
|
|
122
|
-
|
|
122
|
+
let lhrRuntimeError_1: boolean;
|
|
123
123
|
export { lhrRuntimeError_1 as lhrRuntimeError };
|
|
124
124
|
}
|
|
125
125
|
namespace NO_SCREENSHOTS {
|
|
126
|
-
|
|
126
|
+
let code_2: string;
|
|
127
127
|
export { code_2 as code };
|
|
128
128
|
import message_2 = UIStrings.didntCollectScreenshots;
|
|
129
129
|
export { message_2 as message };
|
|
130
|
-
|
|
130
|
+
let lhrRuntimeError_2: boolean;
|
|
131
131
|
export { lhrRuntimeError_2 as lhrRuntimeError };
|
|
132
132
|
}
|
|
133
133
|
namespace INVALID_SPEEDLINE {
|
|
134
|
-
|
|
134
|
+
let code_3: string;
|
|
135
135
|
export { code_3 as code };
|
|
136
136
|
import message_3 = UIStrings.didntCollectScreenshots;
|
|
137
137
|
export { message_3 as message };
|
|
138
|
-
|
|
138
|
+
let lhrRuntimeError_3: boolean;
|
|
139
139
|
export { lhrRuntimeError_3 as lhrRuntimeError };
|
|
140
140
|
}
|
|
141
141
|
namespace NO_TRACING_STARTED {
|
|
142
|
-
|
|
142
|
+
let code_4: string;
|
|
143
143
|
export { code_4 as code };
|
|
144
144
|
import message_4 = UIStrings.badTraceRecording;
|
|
145
145
|
export { message_4 as message };
|
|
146
|
-
|
|
146
|
+
let lhrRuntimeError_4: boolean;
|
|
147
147
|
export { lhrRuntimeError_4 as lhrRuntimeError };
|
|
148
148
|
}
|
|
149
149
|
namespace NO_RESOURCE_REQUEST {
|
|
150
|
-
|
|
150
|
+
let code_5: string;
|
|
151
151
|
export { code_5 as code };
|
|
152
152
|
import message_5 = UIStrings.badTraceRecording;
|
|
153
153
|
export { message_5 as message };
|
|
154
|
-
|
|
154
|
+
let lhrRuntimeError_5: boolean;
|
|
155
155
|
export { lhrRuntimeError_5 as lhrRuntimeError };
|
|
156
156
|
}
|
|
157
157
|
namespace NO_NAVSTART {
|
|
158
|
-
|
|
158
|
+
let code_6: string;
|
|
159
159
|
export { code_6 as code };
|
|
160
160
|
import message_6 = UIStrings.badTraceRecording;
|
|
161
161
|
export { message_6 as message };
|
|
162
|
-
|
|
162
|
+
let lhrRuntimeError_6: boolean;
|
|
163
163
|
export { lhrRuntimeError_6 as lhrRuntimeError };
|
|
164
164
|
}
|
|
165
165
|
namespace NO_FCP {
|
|
166
|
-
|
|
166
|
+
let code_7: string;
|
|
167
167
|
export { code_7 as code };
|
|
168
168
|
import message_7 = UIStrings.noFcp;
|
|
169
169
|
export { message_7 as message };
|
|
170
|
-
|
|
170
|
+
let lhrRuntimeError_7: boolean;
|
|
171
171
|
export { lhrRuntimeError_7 as lhrRuntimeError };
|
|
172
172
|
}
|
|
173
173
|
namespace NO_DCL {
|
|
174
|
-
|
|
174
|
+
let code_8: string;
|
|
175
175
|
export { code_8 as code };
|
|
176
176
|
import message_8 = UIStrings.badTraceRecording;
|
|
177
177
|
export { message_8 as message };
|
|
178
|
-
|
|
178
|
+
let lhrRuntimeError_8: boolean;
|
|
179
179
|
export { lhrRuntimeError_8 as lhrRuntimeError };
|
|
180
180
|
}
|
|
181
181
|
namespace NO_FMP {
|
|
182
|
-
|
|
182
|
+
let code_9: string;
|
|
183
183
|
export { code_9 as code };
|
|
184
184
|
import message_9 = UIStrings.badTraceRecording;
|
|
185
185
|
export { message_9 as message };
|
|
186
186
|
}
|
|
187
187
|
namespace NO_LCP {
|
|
188
|
-
|
|
188
|
+
let code_10: string;
|
|
189
189
|
export { code_10 as code };
|
|
190
190
|
import message_10 = UIStrings.noLcp;
|
|
191
191
|
export { message_10 as message };
|
|
192
192
|
}
|
|
193
193
|
namespace NO_LCP_ALL_FRAMES {
|
|
194
|
-
|
|
194
|
+
let code_11: string;
|
|
195
195
|
export { code_11 as code };
|
|
196
196
|
import message_11 = UIStrings.noLcp;
|
|
197
197
|
export { message_11 as message };
|
|
198
198
|
}
|
|
199
199
|
namespace UNSUPPORTED_OLD_CHROME {
|
|
200
|
-
|
|
200
|
+
let code_12: string;
|
|
201
201
|
export { code_12 as code };
|
|
202
202
|
import message_12 = UIStrings.oldChromeDoesNotSupportFeature;
|
|
203
203
|
export { message_12 as message };
|
|
204
204
|
}
|
|
205
205
|
namespace NO_TTI_CPU_IDLE_PERIOD {
|
|
206
|
-
|
|
206
|
+
let code_13: string;
|
|
207
207
|
export { code_13 as code };
|
|
208
208
|
import message_13 = UIStrings.pageLoadTookTooLong;
|
|
209
209
|
export { message_13 as message };
|
|
210
210
|
}
|
|
211
211
|
namespace NO_TTI_NETWORK_IDLE_PERIOD {
|
|
212
|
-
|
|
212
|
+
let code_14: string;
|
|
213
213
|
export { code_14 as code };
|
|
214
214
|
import message_14 = UIStrings.pageLoadTookTooLong;
|
|
215
215
|
export { message_14 as message };
|
|
216
216
|
}
|
|
217
217
|
namespace NO_DOCUMENT_REQUEST {
|
|
218
|
-
|
|
218
|
+
let code_15: string;
|
|
219
219
|
export { code_15 as code };
|
|
220
220
|
import message_15 = UIStrings.pageLoadFailed;
|
|
221
221
|
export { message_15 as message };
|
|
222
|
-
|
|
222
|
+
let lhrRuntimeError_9: boolean;
|
|
223
223
|
export { lhrRuntimeError_9 as lhrRuntimeError };
|
|
224
224
|
}
|
|
225
225
|
namespace FAILED_DOCUMENT_REQUEST {
|
|
226
|
-
|
|
226
|
+
let code_16: string;
|
|
227
227
|
export { code_16 as code };
|
|
228
228
|
import message_16 = UIStrings.pageLoadFailedWithDetails;
|
|
229
229
|
export { message_16 as message };
|
|
230
|
-
|
|
230
|
+
let lhrRuntimeError_10: boolean;
|
|
231
231
|
export { lhrRuntimeError_10 as lhrRuntimeError };
|
|
232
232
|
}
|
|
233
233
|
namespace ERRORED_DOCUMENT_REQUEST {
|
|
234
|
-
|
|
234
|
+
let code_17: string;
|
|
235
235
|
export { code_17 as code };
|
|
236
236
|
import message_17 = UIStrings.pageLoadFailedWithStatusCode;
|
|
237
237
|
export { message_17 as message };
|
|
238
|
-
|
|
238
|
+
let lhrRuntimeError_11: boolean;
|
|
239
239
|
export { lhrRuntimeError_11 as lhrRuntimeError };
|
|
240
240
|
}
|
|
241
241
|
namespace INSECURE_DOCUMENT_REQUEST {
|
|
242
|
-
|
|
242
|
+
let code_18: string;
|
|
243
243
|
export { code_18 as code };
|
|
244
244
|
import message_18 = UIStrings.pageLoadFailedInsecure;
|
|
245
245
|
export { message_18 as message };
|
|
246
|
-
|
|
246
|
+
let lhrRuntimeError_12: boolean;
|
|
247
247
|
export { lhrRuntimeError_12 as lhrRuntimeError };
|
|
248
248
|
}
|
|
249
249
|
namespace CHROME_INTERSTITIAL_ERROR {
|
|
250
|
-
|
|
250
|
+
let code_19: string;
|
|
251
251
|
export { code_19 as code };
|
|
252
252
|
import message_19 = UIStrings.pageLoadFailedInterstitial;
|
|
253
253
|
export { message_19 as message };
|
|
254
|
-
|
|
254
|
+
let lhrRuntimeError_13: boolean;
|
|
255
255
|
export { lhrRuntimeError_13 as lhrRuntimeError };
|
|
256
256
|
}
|
|
257
257
|
namespace PAGE_HUNG {
|
|
258
|
-
|
|
258
|
+
let code_20: string;
|
|
259
259
|
export { code_20 as code };
|
|
260
260
|
import message_20 = UIStrings.pageLoadFailedHung;
|
|
261
261
|
export { message_20 as message };
|
|
262
|
-
|
|
262
|
+
let lhrRuntimeError_14: boolean;
|
|
263
263
|
export { lhrRuntimeError_14 as lhrRuntimeError };
|
|
264
264
|
}
|
|
265
265
|
namespace NOT_HTML {
|
|
266
|
-
|
|
266
|
+
let code_21: string;
|
|
267
267
|
export { code_21 as code };
|
|
268
268
|
import message_21 = UIStrings.notHtml;
|
|
269
269
|
export { message_21 as message };
|
|
270
|
-
|
|
270
|
+
let lhrRuntimeError_15: boolean;
|
|
271
271
|
export { lhrRuntimeError_15 as lhrRuntimeError };
|
|
272
272
|
}
|
|
273
273
|
namespace TRACING_ALREADY_STARTED {
|
|
274
|
-
|
|
274
|
+
let code_22: string;
|
|
275
275
|
export { code_22 as code };
|
|
276
276
|
import message_22 = UIStrings.internalChromeError;
|
|
277
277
|
export { message_22 as message };
|
|
278
|
-
export
|
|
279
|
-
|
|
278
|
+
export let pattern: RegExp;
|
|
279
|
+
let lhrRuntimeError_16: boolean;
|
|
280
280
|
export { lhrRuntimeError_16 as lhrRuntimeError };
|
|
281
281
|
}
|
|
282
282
|
namespace PARSING_PROBLEM {
|
|
283
|
-
|
|
283
|
+
let code_23: string;
|
|
284
284
|
export { code_23 as code };
|
|
285
285
|
import message_23 = UIStrings.internalChromeError;
|
|
286
286
|
export { message_23 as message };
|
|
287
|
-
|
|
287
|
+
let pattern_1: RegExp;
|
|
288
288
|
export { pattern_1 as pattern };
|
|
289
|
-
|
|
289
|
+
let lhrRuntimeError_17: boolean;
|
|
290
290
|
export { lhrRuntimeError_17 as lhrRuntimeError };
|
|
291
291
|
}
|
|
292
292
|
namespace READ_FAILED {
|
|
293
|
-
|
|
293
|
+
let code_24: string;
|
|
294
294
|
export { code_24 as code };
|
|
295
295
|
import message_24 = UIStrings.internalChromeError;
|
|
296
296
|
export { message_24 as message };
|
|
297
|
-
|
|
297
|
+
let pattern_2: RegExp;
|
|
298
298
|
export { pattern_2 as pattern };
|
|
299
|
-
|
|
299
|
+
let lhrRuntimeError_18: boolean;
|
|
300
300
|
export { lhrRuntimeError_18 as lhrRuntimeError };
|
|
301
301
|
}
|
|
302
302
|
namespace INVALID_URL {
|
|
303
|
-
|
|
303
|
+
let code_25: string;
|
|
304
304
|
export { code_25 as code };
|
|
305
305
|
import message_25 = UIStrings.urlInvalid;
|
|
306
306
|
export { message_25 as message };
|
|
307
307
|
}
|
|
308
308
|
namespace PROTOCOL_TIMEOUT {
|
|
309
|
-
|
|
309
|
+
let code_26: string;
|
|
310
310
|
export { code_26 as code };
|
|
311
311
|
import message_26 = UIStrings.protocolTimeout;
|
|
312
312
|
export { message_26 as message };
|
|
313
|
-
|
|
313
|
+
let lhrRuntimeError_19: boolean;
|
|
314
314
|
export { lhrRuntimeError_19 as lhrRuntimeError };
|
|
315
315
|
}
|
|
316
316
|
namespace DNS_FAILURE {
|
|
317
|
-
|
|
317
|
+
let code_27: string;
|
|
318
318
|
export { code_27 as code };
|
|
319
319
|
import message_27 = UIStrings.dnsFailure;
|
|
320
320
|
export { message_27 as message };
|
|
321
|
-
|
|
321
|
+
let lhrRuntimeError_20: boolean;
|
|
322
322
|
export { lhrRuntimeError_20 as lhrRuntimeError };
|
|
323
323
|
}
|
|
324
324
|
namespace CRI_TIMEOUT {
|
|
325
|
-
|
|
325
|
+
let code_28: string;
|
|
326
326
|
export { code_28 as code };
|
|
327
327
|
import message_28 = UIStrings.criTimeout;
|
|
328
328
|
export { message_28 as message };
|
|
329
|
-
|
|
329
|
+
let lhrRuntimeError_21: boolean;
|
|
330
330
|
export { lhrRuntimeError_21 as lhrRuntimeError };
|
|
331
331
|
}
|
|
332
332
|
namespace MISSING_REQUIRED_ARTIFACT {
|
|
333
|
-
|
|
333
|
+
let code_29: string;
|
|
334
334
|
export { code_29 as code };
|
|
335
335
|
import message_29 = UIStrings.missingRequiredArtifact;
|
|
336
336
|
export { message_29 as message };
|
|
337
337
|
}
|
|
338
338
|
namespace ERRORED_REQUIRED_ARTIFACT {
|
|
339
|
-
|
|
339
|
+
let code_30: string;
|
|
340
340
|
export { code_30 as code };
|
|
341
341
|
import message_30 = UIStrings.erroredRequiredArtifact;
|
|
342
342
|
export { message_30 as message };
|
|
343
343
|
}
|
|
344
344
|
namespace TARGET_CRASHED {
|
|
345
|
-
|
|
345
|
+
let code_31: string;
|
|
346
346
|
export { code_31 as code };
|
|
347
347
|
import message_31 = UIStrings.targetCrashed;
|
|
348
348
|
export { message_31 as message };
|
|
349
|
-
|
|
349
|
+
let lhrRuntimeError_22: boolean;
|
|
350
350
|
export { lhrRuntimeError_22 as lhrRuntimeError };
|
|
351
351
|
}
|
|
352
352
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type ItemValueType = import(
|
|
1
|
+
export type ItemValueType = import("../../types/lhr/audit-details").default.ItemValueType;
|
|
2
2
|
/** @typedef {import('../../types/lhr/audit-details').default.ItemValueType} ItemValueType */
|
|
3
3
|
/**
|
|
4
4
|
* Upgrades an lhr object in-place to account for changes in the data structure over major versions.
|
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
* @param {LH.DevtoolsLog} log
|
|
3
3
|
* @return {LH.DevtoolsLog}
|
|
4
4
|
*/
|
|
5
|
-
export function minifyDevtoolsLog(log:
|
|
5
|
+
export function minifyDevtoolsLog(log: LH.DevtoolsLog): LH.DevtoolsLog;
|
|
6
6
|
//# sourceMappingURL=minify-devtoolslog.d.ts.map
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
export function getNetworkError(mainRecord: LH.Artifacts.NetworkRequest | undefined, context: {
|
|
8
8
|
warnings: Array<string | LH.IcuMessage>;
|
|
9
|
-
ignoreStatusCode?: LH.Config.Settings[
|
|
9
|
+
ignoreStatusCode?: LH.Config.Settings["ignoreStatusCode"];
|
|
10
10
|
}): LH.LighthouseError | undefined;
|
|
11
11
|
/**
|
|
12
12
|
* Returns an error if we ended up on the `chrome-error` page and all other requests failed.
|
|
@@ -24,7 +24,7 @@ export function getInterstitialError(mainRecord: LH.Artifacts.NetworkRequest | u
|
|
|
24
24
|
*/
|
|
25
25
|
export function getPageLoadError(navigationError: LH.LighthouseError | undefined, context: {
|
|
26
26
|
url: string;
|
|
27
|
-
ignoreStatusCode?:
|
|
27
|
+
ignoreStatusCode?: LH.Config.Settings["ignoreStatusCode"];
|
|
28
28
|
networkRecords: Array<LH.Artifacts.NetworkRequest>;
|
|
29
29
|
warnings: Array<string | LH.IcuMessage>;
|
|
30
30
|
}): LH.LighthouseError | undefined;
|
|
@@ -36,9 +36,7 @@ export function getPageLoadError(navigationError: LH.LighthouseError | undefined
|
|
|
36
36
|
*/
|
|
37
37
|
export function getNonHtmlError(finalRecord: LH.Artifacts.NetworkRequest | undefined): LH.LighthouseError | undefined;
|
|
38
38
|
export namespace UIStrings {
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
let warningXhtml: string;
|
|
40
|
+
let warningStatusCode: string;
|
|
41
41
|
}
|
|
42
|
-
import { NetworkRequest } from './network-request.js';
|
|
43
|
-
import { LighthouseError } from './lh-error.js';
|
|
44
42
|
//# sourceMappingURL=navigation-error.d.ts.map
|
|
@@ -131,7 +131,7 @@ function getNonHtmlError(finalRecord) {
|
|
|
131
131
|
function getPageLoadError(navigationError, context) {
|
|
132
132
|
const {url, networkRecords} = context;
|
|
133
133
|
/** @type {LH.Artifacts.NetworkRequest|undefined} */
|
|
134
|
-
let mainRecord = Lantern.
|
|
134
|
+
let mainRecord = Lantern.Core.NetworkAnalyzer.findResourceForUrl(networkRecords, url);
|
|
135
135
|
|
|
136
136
|
// If the url doesn't give us a network request, it's possible we landed on a chrome-error:// page
|
|
137
137
|
// In this case, just get the first document request.
|
|
@@ -149,7 +149,7 @@ function getPageLoadError(navigationError, context) {
|
|
|
149
149
|
// MIME Type is only set on the final redirected document request. Use this for the HTML check instead of root.
|
|
150
150
|
let finalRecord;
|
|
151
151
|
if (mainRecord) {
|
|
152
|
-
finalRecord = Lantern.
|
|
152
|
+
finalRecord = Lantern.Core.NetworkAnalyzer.resolveRedirects(mainRecord);
|
|
153
153
|
} else {
|
|
154
154
|
// We have no network requests to process, use the navError
|
|
155
155
|
return navigationError;
|
|
@@ -253,7 +253,7 @@ class NetworkRecorder extends RequestEventEmitter {
|
|
|
253
253
|
return record.redirectSource;
|
|
254
254
|
}
|
|
255
255
|
|
|
256
|
-
const initiatorURL = Lantern.PageDependencyGraph.getNetworkInitiators(record)[0];
|
|
256
|
+
const initiatorURL = Lantern.Graph.PageDependencyGraph.getNetworkInitiators(record)[0];
|
|
257
257
|
let candidates = recordsByURL.get(initiatorURL) || [];
|
|
258
258
|
// The (valid) initiator must come before the initiated request.
|
|
259
259
|
candidates = candidates.filter(c => {
|
|
@@ -49,14 +49,14 @@ export class NetworkRequest {
|
|
|
49
49
|
static get TYPES(): LH.Util.SelfMap<LH.Crdp.Network.ResourceType>;
|
|
50
50
|
/**
|
|
51
51
|
* @param {NetworkRequest} record
|
|
52
|
-
* @return {Lantern.NetworkRequest<NetworkRequest>}
|
|
52
|
+
* @return {Lantern.Types.NetworkRequest<NetworkRequest>}
|
|
53
53
|
*/
|
|
54
|
-
static asLanternNetworkRequest(record: NetworkRequest): Lantern.NetworkRequest<NetworkRequest>;
|
|
54
|
+
static asLanternNetworkRequest(record: NetworkRequest): Lantern.Types.NetworkRequest<NetworkRequest>;
|
|
55
55
|
/**
|
|
56
|
-
* @param {NetworkRequest} record
|
|
56
|
+
* @param {Pick<NetworkRequest, 'protocol'|'parsedURL'>} record
|
|
57
57
|
* @return {boolean}
|
|
58
58
|
*/
|
|
59
|
-
static isNonNetworkRequest(record: NetworkRequest): boolean;
|
|
59
|
+
static isNonNetworkRequest(record: Pick<NetworkRequest, "protocol" | "parsedURL">): boolean;
|
|
60
60
|
/**
|
|
61
61
|
* Technically there's not alignment on URLs that create "secure connections" vs "secure contexts"
|
|
62
62
|
* https://github.com/GoogleChrome/lighthouse/pull/11766#discussion_r582340683
|
|
@@ -206,7 +206,7 @@ export class NetworkRequest {
|
|
|
206
206
|
* @param {number} timestamp in seconds
|
|
207
207
|
* @param {LH.Crdp.Network.ResponseReceivedEvent['type']=} resourceType
|
|
208
208
|
*/
|
|
209
|
-
_onResponse(response: LH.Crdp.Network.Response, timestamp: number, resourceType?: LH.Crdp.Network.ResponseReceivedEvent[
|
|
209
|
+
_onResponse(response: LH.Crdp.Network.Response, timestamp: number, resourceType?: LH.Crdp.Network.ResponseReceivedEvent["type"] | undefined): void;
|
|
210
210
|
responseTimestamp: number | undefined;
|
|
211
211
|
/**
|
|
212
212
|
* Resolve differences between conflicting timing signals. Based on the property setters in DevTools.
|
|
@@ -577,7 +577,7 @@ class NetworkRequest {
|
|
|
577
577
|
|
|
578
578
|
/**
|
|
579
579
|
* @param {NetworkRequest} record
|
|
580
|
-
* @return {Lantern.NetworkRequest<NetworkRequest>}
|
|
580
|
+
* @return {Lantern.Types.NetworkRequest<NetworkRequest>}
|
|
581
581
|
*/
|
|
582
582
|
static asLanternNetworkRequest(record) {
|
|
583
583
|
// In LR, network records are missing connection timing, but we've smuggled it in via headers.
|
|
@@ -616,7 +616,7 @@ class NetworkRequest {
|
|
|
616
616
|
}
|
|
617
617
|
|
|
618
618
|
/**
|
|
619
|
-
* @param {NetworkRequest} record
|
|
619
|
+
* @param {Pick<NetworkRequest, 'protocol'|'parsedURL'>} record
|
|
620
620
|
* @return {boolean}
|
|
621
621
|
*/
|
|
622
622
|
static isNonNetworkRequest(record) {
|
|
@@ -17,7 +17,7 @@ export namespace pageFunctions {
|
|
|
17
17
|
/**
|
|
18
18
|
* `typed-query-selector`'s CSS selector parser.
|
|
19
19
|
*/
|
|
20
|
-
export type ParseSelector<T extends string> = import(
|
|
20
|
+
export type ParseSelector<T extends string> = import("typed-query-selector/parser").ParseSelector<T>;
|
|
21
21
|
/**
|
|
22
22
|
* @fileoverview
|
|
23
23
|
* Helper functions that are passed by `toString()` by Driver to be evaluated in target page.
|
|
@@ -55,7 +55,7 @@ declare function wrapRuntimeEvalErrorInBrowser(err?: string | Error | undefined)
|
|
|
55
55
|
* Combinators are not supported.
|
|
56
56
|
* @return {Array<ParseSelector<T>>}
|
|
57
57
|
*/
|
|
58
|
-
declare function getElementsInDocument<T extends string>(selector?: T | undefined):
|
|
58
|
+
declare function getElementsInDocument<T extends string>(selector?: T | undefined): Array<ParseSelector<T>>;
|
|
59
59
|
/**
|
|
60
60
|
* Gets the opening tag text of the given node.
|
|
61
61
|
* @param {Element|ShadowRoot} element
|
|
@@ -42,5 +42,4 @@ export function estimateTransferSize(networkRecord: LH.Artifacts.NetworkRequest
|
|
|
42
42
|
* @param {Array<LH.Artifacts.NetworkRequest>} networkRecords
|
|
43
43
|
*/
|
|
44
44
|
export function estimateCompressionRatioForContent(compressionRatioByUrl: Map<string, number>, url: string, artifacts: LH.Artifacts, networkRecords: Array<LH.Artifacts.NetworkRequest>): number;
|
|
45
|
-
import { NetworkRequest } from './network-request.js';
|
|
46
45
|
//# sourceMappingURL=script-helpers.d.ts.map
|
package/core/lib/sentry.d.ts
CHANGED
|
@@ -3,21 +3,21 @@ export namespace Sentry {
|
|
|
3
3
|
export { noop as captureMessage };
|
|
4
4
|
export { noop as captureBreadcrumb };
|
|
5
5
|
export { noop as getContext };
|
|
6
|
-
export
|
|
7
|
-
level?: string
|
|
6
|
+
export let captureException: (error: Error, options: {
|
|
7
|
+
level?: string;
|
|
8
8
|
tags?: {
|
|
9
9
|
[key: string]: any;
|
|
10
|
-
}
|
|
10
|
+
};
|
|
11
11
|
extra?: {
|
|
12
12
|
[key: string]: any;
|
|
13
|
-
}
|
|
13
|
+
};
|
|
14
14
|
}) => Promise<void>;
|
|
15
15
|
export function _shouldSample(): boolean;
|
|
16
16
|
}
|
|
17
|
-
export type Breadcrumb = import(
|
|
18
|
-
export type NodeClient = import(
|
|
19
|
-
export type NodeOptions = import(
|
|
20
|
-
export type Severity = import(
|
|
17
|
+
export type Breadcrumb = import("@sentry/node").Breadcrumb;
|
|
18
|
+
export type NodeClient = import("@sentry/node").NodeClient;
|
|
19
|
+
export type NodeOptions = import("@sentry/node").NodeOptions;
|
|
20
|
+
export type Severity = import("@sentry/node").Severity;
|
|
21
21
|
/**
|
|
22
22
|
* When called, replaces noops with actual Sentry implementation.
|
|
23
23
|
* @param {{url: string, flags: LH.CliFlags, config?: LH.Config, environmentData: NodeOptions}} opts
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @param {LH.Artifacts['Stacks']|undefined} pageStacks
|
|
4
4
|
* @return {LH.RawIcu<Array<LH.Result.StackPack>>}
|
|
5
5
|
*/
|
|
6
|
-
export function getStackPacks(pageStacks: LH.Artifacts[
|
|
6
|
+
export function getStackPacks(pageStacks: LH.Artifacts["Stacks"] | undefined): LH.RawIcu<Array<LH.Result.StackPack>>;
|
|
7
7
|
/**
|
|
8
8
|
* Pairs consisting of a stack pack's ID and the set of stacks needed to be
|
|
9
9
|
* detected in a page to display that pack's advice.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export type SyntheticLayoutShift = import(
|
|
1
|
+
export type SyntheticLayoutShift = import("@paulirish/trace_engine").Types.TraceEvents.SyntheticLayoutShift;
|
|
2
2
|
export type SaneSyntheticLayoutShift = SyntheticLayoutShift & {
|
|
3
3
|
args: {
|
|
4
|
-
data: NonNullable<SyntheticLayoutShift[
|
|
4
|
+
data: NonNullable<SyntheticLayoutShift["args"]["data"]>;
|
|
5
5
|
};
|
|
6
6
|
};
|
|
7
7
|
export const TraceProcessor: typeof TraceEngine.Processor.TraceProcessor;
|
|
@@ -3,11 +3,11 @@ export type CpuProfile = {
|
|
|
3
3
|
pid: number;
|
|
4
4
|
tid: number;
|
|
5
5
|
startTime: number;
|
|
6
|
-
nodes: Required<LH.TraceCpuProfile>[
|
|
6
|
+
nodes: Required<LH.TraceCpuProfile>["nodes"];
|
|
7
7
|
samples: Array<number>;
|
|
8
8
|
timeDeltas: Array<number>;
|
|
9
9
|
};
|
|
10
|
-
export type ProfilerRange = Required<Required<LH.TraceEvent[
|
|
10
|
+
export type ProfilerRange = Required<Required<LH.TraceEvent["args"]>["data"]>["_syntheticProfilerRange"];
|
|
11
11
|
export type SynthethicEvent = LH.TraceEvent & {
|
|
12
12
|
args: {
|
|
13
13
|
data: {
|
|
@@ -15,7 +15,7 @@ export type SynthethicEvent = LH.TraceEvent & {
|
|
|
15
15
|
};
|
|
16
16
|
};
|
|
17
17
|
};
|
|
18
|
-
export type SynthethicTaskNode = Omit<LH.Artifacts.TaskNode,
|
|
18
|
+
export type SynthethicTaskNode = Omit<LH.Artifacts.TaskNode, "event"> & {
|
|
19
19
|
event: SynthethicEvent;
|
|
20
20
|
endEvent: SynthethicEvent;
|
|
21
21
|
};
|
|
@@ -79,7 +79,7 @@ export class CpuProfileModel {
|
|
|
79
79
|
startTime: number;
|
|
80
80
|
endTime: number;
|
|
81
81
|
}>, options: {
|
|
82
|
-
type:
|
|
82
|
+
type: "startTime" | "endTime";
|
|
83
83
|
initialIndex: number;
|
|
84
84
|
earliestPossibleTimestamp: number;
|
|
85
85
|
latestPossibleTimestamp: number;
|
|
@@ -104,7 +104,7 @@ export class CpuProfileModel {
|
|
|
104
104
|
*/
|
|
105
105
|
static _findEffectiveTimestamp(data: {
|
|
106
106
|
syntheticTask: SynthethicTaskNode;
|
|
107
|
-
eventType:
|
|
107
|
+
eventType: "start" | "end";
|
|
108
108
|
allEventsAtTs: {
|
|
109
109
|
naive: Array<SynthethicEvent>;
|
|
110
110
|
refined: Array<SynthethicEvent>;
|
|
@@ -149,16 +149,16 @@ export class CpuProfileModel {
|
|
|
149
149
|
id: number;
|
|
150
150
|
callFrame: {
|
|
151
151
|
functionName: string;
|
|
152
|
-
url?: string
|
|
152
|
+
url?: string;
|
|
153
153
|
};
|
|
154
|
-
parent?: number
|
|
154
|
+
parent?: number;
|
|
155
155
|
}>;
|
|
156
156
|
_activeNodeArraysById: Map<number, number[]>;
|
|
157
157
|
/**
|
|
158
158
|
* Initialization function to enable O(1) access to nodes by node ID.
|
|
159
159
|
* @return {Map<number, CpuProfile['nodes'][0]>}
|
|
160
160
|
*/
|
|
161
|
-
_createNodeMap(): Map<number, CpuProfile[
|
|
161
|
+
_createNodeMap(): Map<number, CpuProfile["nodes"][0]>;
|
|
162
162
|
/**
|
|
163
163
|
* Initialization function to enable O(1) access to the set of active nodes in the stack by node ID.
|
|
164
164
|
* @return {Map<number, Array<number>>}
|