lighthouse 9.5.0-dev.20230118 → 9.5.0-dev.20230119
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/bin.d.ts +5 -0
- package/cli/cli-flags.d.ts +258 -0
- package/cli/commands/commands.d.ts +4 -0
- package/cli/commands/list-audits.d.ts +2 -0
- package/cli/commands/list-locales.d.ts +2 -0
- package/cli/commands/list-trace-categories.d.ts +2 -0
- package/cli/index.d.ts +3 -0
- package/cli/printer.d.ts +28 -0
- package/cli/run.d.ts +24 -0
- package/cli/sentry-prompt.d.ts +5 -0
- package/cli/test/smokehouse/config/exclusions.d.ts +12 -0
- package/cli/test/smokehouse/core-tests.d.ts +4 -0
- package/cli/test/smokehouse/frontends/back-compat-util.d.ts +16 -0
- package/cli/test/smokehouse/frontends/lib.d.ts +8 -0
- package/cli/test/smokehouse/frontends/node.d.ts +2 -0
- package/cli/test/smokehouse/frontends/smokehouse-bin.d.ts +3 -0
- package/cli/test/smokehouse/lib/child-process-error.d.ts +21 -0
- package/cli/test/smokehouse/lib/concurrent-mapper.d.ts +78 -0
- package/cli/test/smokehouse/lib/local-console.d.ts +33 -0
- package/cli/test/smokehouse/lighthouse-runners/bundle.d.ts +16 -0
- package/cli/test/smokehouse/lighthouse-runners/cli.d.ts +18 -0
- package/cli/test/smokehouse/lighthouse-runners/devtools.d.ts +23 -0
- package/cli/test/smokehouse/report-assert-test.d.ts +2 -0
- package/cli/test/smokehouse/report-assert.d.ts +50 -0
- package/cli/test/smokehouse/smokehouse.d.ts +35 -0
- package/cli/test/smokehouse/version-check-test.d.ts +2 -0
- package/cli/test/smokehouse/version-check.d.ts +15 -0
- package/core/audits/accessibility/accesskeys.d.ts +10 -0
- package/core/audits/accessibility/aria-allowed-attr.d.ts +10 -0
- package/core/audits/accessibility/aria-command-name.d.ts +10 -0
- package/core/audits/accessibility/aria-hidden-body.d.ts +10 -0
- package/core/audits/accessibility/aria-hidden-focus.d.ts +10 -0
- package/core/audits/accessibility/aria-input-field-name.d.ts +10 -0
- package/core/audits/accessibility/aria-meter-name.d.ts +10 -0
- package/core/audits/accessibility/aria-progressbar-name.d.ts +10 -0
- package/core/audits/accessibility/aria-required-attr.d.ts +10 -0
- package/core/audits/accessibility/aria-required-children.d.ts +10 -0
- package/core/audits/accessibility/aria-required-parent.d.ts +10 -0
- package/core/audits/accessibility/aria-roles.d.ts +10 -0
- package/core/audits/accessibility/aria-toggle-field-name.d.ts +10 -0
- package/core/audits/accessibility/aria-tooltip-name.d.ts +10 -0
- package/core/audits/accessibility/aria-treeitem-name.d.ts +10 -0
- package/core/audits/accessibility/aria-valid-attr-value.d.ts +10 -0
- package/core/audits/accessibility/aria-valid-attr.d.ts +10 -0
- package/core/audits/accessibility/axe-audit.d.ts +17 -0
- package/core/audits/accessibility/button-name.d.ts +10 -0
- package/core/audits/accessibility/bypass.d.ts +10 -0
- package/core/audits/accessibility/color-contrast.d.ts +10 -0
- package/core/audits/accessibility/definition-list.d.ts +10 -0
- package/core/audits/accessibility/dlitem.d.ts +10 -0
- package/core/audits/accessibility/document-title.d.ts +10 -0
- package/core/audits/accessibility/duplicate-id-active.d.ts +10 -0
- package/core/audits/accessibility/duplicate-id-aria.d.ts +10 -0
- package/core/audits/accessibility/form-field-multiple-labels.d.ts +10 -0
- package/core/audits/accessibility/frame-title.d.ts +10 -0
- package/core/audits/accessibility/heading-order.d.ts +10 -0
- package/core/audits/accessibility/html-has-lang.d.ts +10 -0
- package/core/audits/accessibility/html-lang-valid.d.ts +10 -0
- package/core/audits/accessibility/image-alt.d.ts +10 -0
- package/core/audits/accessibility/input-image-alt.d.ts +10 -0
- package/core/audits/accessibility/label.d.ts +10 -0
- package/core/audits/accessibility/link-name.d.ts +10 -0
- package/core/audits/accessibility/list.d.ts +10 -0
- package/core/audits/accessibility/listitem.d.ts +10 -0
- package/core/audits/accessibility/manual/custom-controls-labels.d.ts +8 -0
- package/core/audits/accessibility/manual/custom-controls-roles.d.ts +8 -0
- package/core/audits/accessibility/manual/focus-traps.d.ts +8 -0
- package/core/audits/accessibility/manual/focusable-controls.d.ts +8 -0
- package/core/audits/accessibility/manual/interactive-element-affordance.d.ts +8 -0
- package/core/audits/accessibility/manual/logical-tab-order.d.ts +8 -0
- package/core/audits/accessibility/manual/managed-focus.d.ts +8 -0
- package/core/audits/accessibility/manual/offscreen-content-hidden.d.ts +9 -0
- package/core/audits/accessibility/manual/use-landmarks.d.ts +8 -0
- package/core/audits/accessibility/manual/visual-order-follows-dom.d.ts +8 -0
- package/core/audits/accessibility/meta-refresh.d.ts +10 -0
- package/core/audits/accessibility/meta-viewport.d.ts +10 -0
- package/core/audits/accessibility/object-alt.d.ts +10 -0
- package/core/audits/accessibility/tabindex.d.ts +10 -0
- package/core/audits/accessibility/td-headers-attr.d.ts +10 -0
- package/core/audits/accessibility/th-has-data-cells.d.ts +10 -0
- package/core/audits/accessibility/valid-lang.d.ts +10 -0
- package/core/audits/accessibility/video-caption.d.ts +10 -0
- package/core/audits/audit.d.ts +150 -0
- package/core/audits/audit.js +1 -0
- package/core/audits/autocomplete.d.ts +36 -0
- package/core/audits/bf-cache.d.ts +21 -0
- package/core/audits/bootup-time.d.ts +26 -0
- package/core/audits/byte-efficiency/byte-efficiency-audit.d.ts +82 -0
- package/core/audits/byte-efficiency/duplicated-javascript.d.ts +52 -0
- package/core/audits/byte-efficiency/efficient-animated-content.d.ts +23 -0
- package/core/audits/byte-efficiency/legacy-javascript.d.ts +99 -0
- package/core/audits/byte-efficiency/modern-image-formats.d.ts +38 -0
- package/core/audits/byte-efficiency/offscreen-images.d.ts +75 -0
- package/core/audits/byte-efficiency/render-blocking-resources.d.ts +55 -0
- package/core/audits/byte-efficiency/total-byte-weight.d.ts +21 -0
- package/core/audits/byte-efficiency/unminified-css.d.ts +36 -0
- package/core/audits/byte-efficiency/unminified-javascript.d.ts +37 -0
- package/core/audits/byte-efficiency/unused-css-rules.d.ts +16 -0
- package/core/audits/byte-efficiency/unused-javascript.d.ts +27 -0
- package/core/audits/byte-efficiency/uses-long-cache-ttl.d.ts +61 -0
- package/core/audits/byte-efficiency/uses-optimized-images.d.ts +33 -0
- package/core/audits/byte-efficiency/uses-responsive-images-snapshot.d.ts +16 -0
- package/core/audits/byte-efficiency/uses-responsive-images.d.ts +45 -0
- package/core/audits/byte-efficiency/uses-text-compression.d.ts +14 -0
- package/core/audits/content-width.d.ts +17 -0
- package/core/audits/critical-request-chains.d.ts +44 -0
- package/core/audits/csp-xss.d.ts +51 -0
- package/core/audits/deprecations.d.ts +19 -0
- package/core/audits/diagnostics.d.ts +11 -0
- package/core/audits/dobetterweb/charset.d.ts +19 -0
- package/core/audits/dobetterweb/doctype.d.ts +21 -0
- package/core/audits/dobetterweb/dom-size.d.ts +26 -0
- package/core/audits/dobetterweb/geolocation-on-start.d.ts +16 -0
- package/core/audits/dobetterweb/inspector-issues.d.ts +45 -0
- package/core/audits/dobetterweb/js-libraries.d.ts +15 -0
- package/core/audits/dobetterweb/no-document-write.d.ts +16 -0
- package/core/audits/dobetterweb/notification-on-start.d.ts +16 -0
- package/core/audits/dobetterweb/password-inputs-can-be-pasted-into.d.ts +15 -0
- package/core/audits/dobetterweb/uses-http2.d.ts +69 -0
- package/core/audits/dobetterweb/uses-passive-event-listeners.d.ts +16 -0
- package/core/audits/errors-in-console.d.ts +31 -0
- package/core/audits/final-screenshot.d.ts +11 -0
- package/core/audits/font-display.d.ts +32 -0
- package/core/audits/image-aspect-ratio.d.ts +30 -0
- package/core/audits/image-size-responsive.d.ts +28 -0
- package/core/audits/installable-manifest.d.ts +118 -0
- package/core/audits/is-on-https.d.ts +23 -0
- package/core/audits/largest-contentful-paint-element.d.ts +14 -0
- package/core/audits/layout-shift-elements.d.ts +15 -0
- package/core/audits/lcp-lazy-loaded.d.ts +21 -0
- package/core/audits/long-tasks.d.ts +16 -0
- package/core/audits/main-thread-tasks.d.ts +11 -0
- package/core/audits/mainthread-work-breakdown.d.ts +28 -0
- package/core/audits/manual/manual-audit.d.ts +13 -0
- package/core/audits/manual/pwa-cross-browser.d.ts +12 -0
- package/core/audits/manual/pwa-each-page-has-url.d.ts +12 -0
- package/core/audits/manual/pwa-page-transitions.d.ts +12 -0
- package/core/audits/maskable-icon.d.ts +25 -0
- package/core/audits/metrics/cumulative-layout-shift.d.ts +21 -0
- package/core/audits/metrics/experimental-interaction-to-next-paint.d.ts +21 -0
- package/core/audits/metrics/first-contentful-paint-3g.d.ts +15 -0
- package/core/audits/metrics/first-contentful-paint.d.ts +25 -0
- package/core/audits/metrics/first-meaningful-paint.d.ts +28 -0
- package/core/audits/metrics/interactive.d.ts +31 -0
- package/core/audits/metrics/largest-contentful-paint.d.ts +25 -0
- package/core/audits/metrics/max-potential-fid.d.ts +23 -0
- package/core/audits/metrics/speed-index.d.ts +27 -0
- package/core/audits/metrics/total-blocking-time.d.ts +32 -0
- package/core/audits/metrics.d.ts +11 -0
- package/core/audits/multi-check-audit.d.ts +28 -0
- package/core/audits/network-requests.d.ts +11 -0
- package/core/audits/network-rtt.d.ts +15 -0
- package/core/audits/network-server-latency.d.ts +15 -0
- package/core/audits/no-unload-listeners.d.ts +16 -0
- package/core/audits/non-composited-animations.d.ts +21 -0
- package/core/audits/oopif-iframe-test-audit.d.ts +14 -0
- package/core/audits/performance-budget.d.ts +39 -0
- package/core/audits/predictive-perf.d.ts +11 -0
- package/core/audits/preload-fonts.d.ts +29 -0
- package/core/audits/preload-lcp-image.d.ts +67 -0
- package/core/audits/redirects.d.ts +33 -0
- package/core/audits/resource-summary.d.ts +16 -0
- package/core/audits/screenshot-thumbnails.d.ts +32 -0
- package/core/audits/script-elements-test-audit.d.ts +14 -0
- package/core/audits/script-treemap-data.d.ts +42 -0
- package/core/audits/seo/canonical.d.ts +51 -0
- package/core/audits/seo/crawlable-anchors.d.ts +16 -0
- package/core/audits/seo/font-size.d.ts +24 -0
- package/core/audits/seo/hreflang.d.ts +28 -0
- package/core/audits/seo/http-status-code.d.ts +16 -0
- package/core/audits/seo/is-crawlable.d.ts +38 -0
- package/core/audits/seo/link-text.d.ts +16 -0
- package/core/audits/seo/manual/structured-data.d.ts +12 -0
- package/core/audits/seo/meta-description.d.ts +16 -0
- package/core/audits/seo/plugins.d.ts +15 -0
- package/core/audits/seo/robots-txt.d.ts +18 -0
- package/core/audits/seo/tap-targets.d.ts +50 -0
- package/core/audits/server-response-time.d.ts +21 -0
- package/core/audits/service-worker.d.ts +46 -0
- package/core/audits/splash-screen.d.ts +37 -0
- package/core/audits/themed-omnibox.d.ts +42 -0
- package/core/audits/third-party-facades.d.ts +41 -0
- package/core/audits/third-party-summary.d.ts +58 -0
- package/core/audits/timing-budget.d.ts +43 -0
- package/core/audits/unsized-images.d.ts +39 -0
- package/core/audits/user-timings.d.ts +43 -0
- package/core/audits/uses-rel-preconnect.d.ts +37 -0
- package/core/audits/uses-rel-preload.d.ts +61 -0
- package/core/audits/valid-source-maps.d.ts +27 -0
- package/core/audits/viewport.d.ts +17 -0
- package/core/audits/violation-audit.d.ts +14 -0
- package/core/audits/work-during-interaction.d.ts +82 -0
- package/core/computed/computed-artifact.d.ts +15 -0
- package/core/computed/critical-request-chains.d.ts +40 -0
- package/core/computed/image-records.d.ts +24 -0
- package/core/computed/js-bundles.d.ts +13 -0
- package/core/computed/load-simulator.d.ts +28 -0
- package/core/computed/main-resource.d.ts +25 -0
- package/core/computed/main-thread-tasks.d.ts +15 -0
- package/core/computed/manifest-values.d.ts +24 -0
- package/core/computed/metrics/cumulative-layout-shift.d.ts +53 -0
- package/core/computed/metrics/first-contentful-paint-all-frames.d.ts +19 -0
- package/core/computed/metrics/first-contentful-paint.d.ts +15 -0
- package/core/computed/metrics/first-meaningful-paint.d.ts +15 -0
- package/core/computed/metrics/interactive.d.ts +61 -0
- package/core/computed/metrics/lantern-first-contentful-paint.d.ts +48 -0
- package/core/computed/metrics/lantern-first-meaningful-paint.d.ts +12 -0
- package/core/computed/metrics/lantern-interactive.d.ts +31 -0
- package/core/computed/metrics/lantern-largest-contentful-paint.d.ts +25 -0
- package/core/computed/metrics/lantern-max-potential-fid.d.ts +30 -0
- package/core/computed/metrics/lantern-metric.d.ts +78 -0
- package/core/computed/metrics/lantern-speed-index.d.ts +38 -0
- package/core/computed/metrics/lantern-total-blocking-time.d.ts +31 -0
- package/core/computed/metrics/largest-contentful-paint-all-frames.d.ts +20 -0
- package/core/computed/metrics/largest-contentful-paint.d.ts +15 -0
- package/core/computed/metrics/max-potential-fid.d.ts +15 -0
- package/core/computed/metrics/metric.d.ts +38 -0
- package/core/computed/metrics/navigation-metric.d.ts +16 -0
- package/core/computed/metrics/responsiveness.d.ts +87 -0
- package/core/computed/metrics/speed-index.d.ts +10 -0
- package/core/computed/metrics/tbt-utils.d.ts +18 -0
- package/core/computed/metrics/timing-summary.d.ts +46 -0
- package/core/computed/metrics/total-blocking-time.d.ts +23 -0
- package/core/computed/module-duplication.d.ts +37 -0
- package/core/computed/network-analysis.d.ts +20 -0
- package/core/computed/network-records.d.ts +15 -0
- package/core/computed/network-records.js +1 -0
- package/core/computed/page-dependency-graph.d.ts +88 -0
- package/core/computed/processed-navigation.d.ts +15 -0
- package/core/computed/processed-trace.d.ts +14 -0
- package/core/computed/resource-summary.d.ts +44 -0
- package/core/computed/screenshots.d.ts +20 -0
- package/core/computed/speedline.d.ts +15 -0
- package/core/computed/unused-css.d.ts +62 -0
- package/core/computed/unused-javascript-summary.d.ts +71 -0
- package/core/computed/user-timings.d.ts +31 -0
- package/core/computed/viewport-meta.d.ts +35 -0
- package/core/config/budget.d.ts +74 -0
- package/core/config/config-helpers.d.ts +94 -0
- package/core/config/config-plugin.d.ts +46 -0
- package/core/config/config.d.ts +28 -0
- package/core/config/constants.d.ts +86 -0
- package/core/config/default-config.d.ts +5 -0
- package/core/config/default-config.js +1 -0
- package/core/config/desktop-config.d.ts +5 -0
- package/core/config/desktop-config.js +1 -0
- package/core/config/experimental-config.d.ts +13 -0
- package/core/config/filters.d.ts +83 -0
- package/core/config/full-config.d.ts +9 -0
- package/core/config/lr-desktop-config.d.ts +4 -0
- package/core/config/lr-mobile-config.d.ts +9 -0
- package/core/config/metrics-to-audits.d.ts +19 -0
- package/core/config/perf-config.d.ts +9 -0
- package/core/config/validation.d.ts +77 -0
- package/core/gather/base-artifacts.d.ts +16 -0
- package/core/gather/base-gatherer.d.ts +72 -0
- package/core/gather/base-gatherer.js +2 -0
- package/core/gather/driver/dom.d.ts +20 -0
- package/core/gather/driver/environment.d.ts +35 -0
- package/core/gather/driver/execution-context.d.ts +101 -0
- package/core/gather/driver/execution-context.js +1 -7
- package/core/gather/driver/navigation.d.ts +33 -0
- package/core/gather/driver/network-monitor.d.ts +82 -0
- package/core/gather/driver/network.d.ts +10 -0
- package/core/gather/driver/prepare.d.ts +46 -0
- package/core/gather/driver/service-workers.d.ts +16 -0
- package/core/gather/driver/storage.d.ts +24 -0
- package/core/gather/driver/target-manager.d.ts +61 -0
- package/core/gather/driver/wait-for-condition.d.ts +116 -0
- package/core/gather/driver/wait-for-condition.js +3 -2
- package/core/gather/driver.d.ts +30 -0
- package/core/gather/fetcher.d.ts +63 -0
- package/core/gather/fetcher.js +2 -0
- package/core/gather/gatherers/accessibility.d.ts +23 -0
- package/core/gather/gatherers/anchor-elements.d.ts +10 -0
- package/core/gather/gatherers/bf-cache-failures.d.ts +43 -0
- package/core/gather/gatherers/cache-contents.d.ts +11 -0
- package/core/gather/gatherers/console-messages.d.ts +39 -0
- package/core/gather/gatherers/css-usage.d.ts +39 -0
- package/core/gather/gatherers/devtools-log-compat.d.ts +13 -0
- package/core/gather/gatherers/devtools-log.d.ts +48 -0
- package/core/gather/gatherers/dobetterweb/doctype.d.ts +10 -0
- package/core/gather/gatherers/dobetterweb/domstats.d.ts +10 -0
- package/core/gather/gatherers/dobetterweb/optimized-images.d.ts +61 -0
- package/core/gather/gatherers/dobetterweb/password-inputs-with-prevented-paste.d.ts +10 -0
- package/core/gather/gatherers/dobetterweb/response-compression.d.ts +30 -0
- package/core/gather/gatherers/dobetterweb/tags-blocking-first-paint.d.ts +53 -0
- package/core/gather/gatherers/full-page-screenshot.d.ts +35 -0
- package/core/gather/gatherers/gatherer.d.ts +46 -0
- package/core/gather/gatherers/global-listeners.d.ts +27 -0
- package/core/gather/gatherers/iframe-elements.d.ts +11 -0
- package/core/gather/gatherers/image-elements.d.ts +35 -0
- package/core/gather/gatherers/inputs.d.ts +10 -0
- package/core/gather/gatherers/inspector-issues.d.ts +38 -0
- package/core/gather/gatherers/installability-errors.d.ts +17 -0
- package/core/gather/gatherers/js-usage.d.ts +22 -0
- package/core/gather/gatherers/link-elements.d.ts +39 -0
- package/core/gather/gatherers/main-document-content.d.ts +27 -0
- package/core/gather/gatherers/meta-elements.d.ts +10 -0
- package/core/gather/gatherers/network-user-agent.d.ts +18 -0
- package/core/gather/gatherers/script-elements.d.ts +26 -0
- package/core/gather/gatherers/scripts.d.ts +27 -0
- package/core/gather/gatherers/seo/embedded-content.d.ts +10 -0
- package/core/gather/gatherers/seo/font-size.d.ts +131 -0
- package/core/gather/gatherers/seo/robots-txt.d.ts +10 -0
- package/core/gather/gatherers/seo/tap-targets.d.ts +21 -0
- package/core/gather/gatherers/service-worker.d.ts +16 -0
- package/core/gather/gatherers/source-maps.d.ts +50 -0
- package/core/gather/gatherers/stacks.d.ts +38 -0
- package/core/gather/gatherers/trace-compat.d.ts +13 -0
- package/core/gather/gatherers/trace-elements.d.ts +83 -0
- package/core/gather/gatherers/trace.d.ts +23 -0
- package/core/gather/gatherers/viewport-dimensions.d.ts +10 -0
- package/core/gather/gatherers/web-app-manifest.d.ts +32 -0
- package/core/gather/navigation-runner.d.ts +92 -0
- package/core/gather/runner-helpers.d.ts +39 -0
- package/core/gather/session.d.ts +50 -0
- package/core/gather/snapshot-runner.d.ts +10 -0
- package/core/gather/timespan-runner.d.ts +12 -0
- package/core/index.d.cts +4 -0
- package/core/index.d.ts +88 -0
- package/core/index.js +2 -0
- package/core/legacy/config/config.d.ts +107 -0
- package/core/legacy/config/legacy-default-config.d.ts +4 -0
- package/core/legacy/gather/connections/connection.d.ts +75 -0
- package/core/legacy/gather/connections/connection.js +1 -0
- package/core/legacy/gather/connections/cri.d.ts +27 -0
- package/core/legacy/gather/connections/raw.d.ts +20 -0
- package/core/legacy/gather/driver.d.ts +214 -0
- package/core/legacy/gather/driver.js +1 -0
- package/core/legacy/gather/gather-runner.d.ts +166 -0
- package/core/lib/arbitrary-equality-map.d.ts +47 -0
- package/core/lib/asset-saver.d.ts +101 -0
- package/core/lib/axe.d.ts +2 -0
- package/core/lib/bf-cache-strings.d.ts +121 -0
- package/core/lib/cdt/Common.d.ts +3 -0
- package/core/lib/cdt/Platform.d.ts +26 -0
- package/core/lib/cdt/SDK.d.ts +2 -0
- package/core/lib/cdt/generated/ParsedURL.d.ts +28 -0
- package/core/lib/cdt/generated/SourceMap.d.ts +100 -0
- package/core/lib/csp-evaluator.d.ts +41 -0
- package/core/lib/dependency-graph/base-node.d.ts +161 -0
- package/core/lib/dependency-graph/cpu-node.d.ts +34 -0
- package/core/lib/dependency-graph/cpu-node.js +1 -0
- package/core/lib/dependency-graph/network-node.d.ts +43 -0
- package/core/lib/dependency-graph/network-node.js +1 -0
- package/core/lib/dependency-graph/simulator/connection-pool.d.ts +58 -0
- package/core/lib/dependency-graph/simulator/connection-pool.js +1 -0
- package/core/lib/dependency-graph/simulator/dns-cache.d.ts +42 -0
- package/core/lib/dependency-graph/simulator/dns-cache.js +2 -0
- package/core/lib/dependency-graph/simulator/network-analyzer.d.ts +166 -0
- package/core/lib/dependency-graph/simulator/simulator-timing-map.d.ts +153 -0
- package/core/lib/dependency-graph/simulator/simulator-timing-map.js +2 -2
- package/core/lib/dependency-graph/simulator/simulator.d.ts +154 -0
- package/core/lib/dependency-graph/simulator/simulator.js +3 -2
- package/core/lib/dependency-graph/simulator/tcp-connection.d.ts +89 -0
- package/core/lib/deprecations-strings.d.ts +66 -0
- package/core/lib/emulation.d.ts +43 -0
- package/core/lib/i18n/i18n.d.ts +81 -0
- package/core/lib/icons.d.ts +22 -0
- package/core/lib/lantern-trace-saver.d.ts +20 -0
- package/core/lib/lh-env.d.ts +2 -0
- package/core/lib/lh-error.d.ts +328 -0
- package/core/lib/lh-trace-processor.d.ts +5 -0
- package/core/lib/manifest-parser.d.ts +186 -0
- package/core/lib/median-run.d.ts +17 -0
- package/core/lib/minification-estimator.d.ts +9 -0
- package/core/lib/minify-devtoolslog.d.ts +6 -0
- package/core/lib/minify-trace.d.ts +6 -0
- package/core/lib/navigation-error.d.ts +39 -0
- package/core/lib/network-recorder.d.ts +115 -0
- package/core/lib/network-request.d.ts +245 -0
- package/core/lib/network-request.js +1 -0
- package/core/lib/page-functions.d.ts +149 -0
- package/core/lib/proto-preprocessor.d.ts +13 -0
- package/core/lib/rect-helpers.d.ts +100 -0
- package/core/lib/script-helpers.d.ts +17 -0
- package/core/lib/sentry.d.ts +32 -0
- package/core/lib/stack-packs.d.ts +16 -0
- package/core/lib/statistics.d.ts +28 -0
- package/core/lib/tappable-rects.d.ts +8 -0
- package/core/lib/third-party-web.d.ts +32 -0
- package/core/lib/timing-trace-saver.d.ts +21 -0
- package/core/lib/tracehouse/cpu-profile-model.d.ts +228 -0
- package/core/lib/tracehouse/main-thread-tasks.d.ts +162 -0
- package/core/lib/tracehouse/main-thread-tasks.js +1 -0
- package/core/lib/tracehouse/task-groups.d.ts +66 -0
- package/core/lib/tracehouse/task-summary.d.ts +18 -0
- package/core/lib/tracehouse/trace-processor.d.ts +275 -0
- package/core/lib/traces/metric-trace-events.d.ts +65 -0
- package/core/lib/url-utils.d.ts +100 -0
- package/core/runner.d.ts +109 -0
- package/core/scoring.d.ts +26 -0
- package/core/user-flow.d.ts +106 -0
- package/core/user-flow.js +1 -0
- package/core/util.d.cts +230 -0
- package/eslint-local-rules.d.cts +6 -0
- package/esm-utils.d.ts +14 -0
- package/flow-report/api.d.ts +7 -0
- package/flow-report/clients/standalone.d.ts +7 -0
- package/flow-report/src/app.d.ts +11 -0
- package/flow-report/src/common.d.ts +20 -0
- package/flow-report/src/header.d.ts +10 -0
- package/flow-report/src/help-dialog.d.ts +10 -0
- package/flow-report/src/i18n/i18n.d.ts +209 -0
- package/flow-report/src/i18n/localized-strings.d.ts +9 -0
- package/flow-report/src/i18n/ui-strings.d.ts +48 -0
- package/flow-report/src/icons.d.ts +18 -0
- package/flow-report/src/sidebar/flow.d.ts +8 -0
- package/flow-report/src/sidebar/sidebar.d.ts +17 -0
- package/flow-report/src/summary/category.d.ts +19 -0
- package/flow-report/src/summary/summary.d.ts +18 -0
- package/flow-report/src/topbar.d.ts +15 -0
- package/flow-report/src/util.d.ts +30 -0
- package/flow-report/src/wrappers/category-score.d.ts +12 -0
- package/flow-report/src/wrappers/markdown.d.ts +10 -0
- package/flow-report/src/wrappers/report.d.ts +10 -0
- package/flow-report/src/wrappers/styles.d.ts +8 -0
- package/flow-report/test/app-test.d.ts +7 -0
- package/flow-report/test/common-test.d.ts +7 -0
- package/flow-report/test/flow-report-pptr-test.d.ts +7 -0
- package/flow-report/test/header-test.d.ts +7 -0
- package/flow-report/test/sample-flow.d.ts +7 -0
- package/flow-report/test/setup/env-setup.d.ts +11 -0
- package/flow-report/test/sidebar/flow-test.d.ts +7 -0
- package/flow-report/test/sidebar/sidebar-test.d.ts +7 -0
- package/flow-report/test/summary/category-test.d.ts +7 -0
- package/flow-report/test/summary/summary-test.d.ts +7 -0
- package/flow-report/test/topbar-test.d.ts +7 -0
- package/flow-report/test/util-test.d.ts +7 -0
- package/flow-report/test/wrappers/category-score-test.d.ts +7 -0
- package/flow-report/test/wrappers/markdown-test.d.ts +7 -0
- package/flow-report/tsconfig.json +1 -1
- package/package.json +5 -2
- package/report/clients/bundle.d.ts +6 -0
- package/report/clients/standalone.d.ts +2 -0
- package/report/generator/file-namer.d.ts +35 -0
- package/report/generator/flow-report-assets.d.ts +9 -0
- package/report/generator/report-assets.d.ts +8 -0
- package/report/generator/report-generator.d.ts +59 -0
- package/report/renderer/api.d.ts +31 -0
- package/report/renderer/category-renderer.d.ts +176 -0
- package/report/renderer/components.d.ts +10 -0
- package/report/renderer/crc-details-renderer.d.ts +73 -0
- package/report/renderer/details-renderer.d.ts +141 -0
- package/report/renderer/dom.d.ts +125 -0
- package/report/renderer/drop-down-menu.d.ts +70 -0
- package/report/renderer/element-screenshot-renderer.d.ts +79 -0
- package/report/renderer/features-util.d.ts +13 -0
- package/report/renderer/i18n.d.ts +106 -0
- package/report/renderer/logger.d.ts +47 -0
- package/report/renderer/open-tab.d.ts +19 -0
- package/report/renderer/performance-category-renderer.d.ts +56 -0
- package/report/renderer/pwa-category-renderer.d.ts +55 -0
- package/report/renderer/report-renderer.d.ts +57 -0
- package/report/renderer/report-ui-features.d.ts +71 -0
- package/report/renderer/snippet-renderer.d.ts +85 -0
- package/report/renderer/swap-locale-feature.d.ts +31 -0
- package/report/renderer/text-encoding.d.ts +26 -0
- package/report/renderer/topbar-features.d.ts +82 -0
- package/report/renderer/util.d.ts +230 -0
- package/report/test-assets/faux-psi.d.ts +34 -0
- package/report/types/augment-dom.d.ts +1 -1
- package/root.d.ts +3 -0
- package/shared/localization/format.d.ts +106 -0
- package/shared/localization/i18n-module.d.ts +4 -0
- package/shared/localization/locales.d.ts +7 -0
- package/shared/localization/swap-flow-locale.d.ts +6 -0
- package/shared/localization/swap-locale.d.ts +39 -0
- package/shared/type-verifiers.d.ts +23 -0
- package/third-party/axe/valid-langs.d.ts +9 -0
- package/types/artifacts.d.ts +40 -38
- package/types/audit.d.ts +6 -6
- package/types/config.d.ts +3 -3
- package/types/externs.d.ts +7 -3
- package/types/gatherer.d.ts +27 -21
- package/types/{cssstyle/index.d.ts → internal/cssstyle.d.ts} +0 -0
- package/types/{enquirer.d.ts → internal/enquirer.d.ts} +0 -0
- package/types/{es-main.d.ts → internal/es-main.d.ts} +0 -0
- package/types/internal/global.d.ts +15 -0
- package/types/{http-link-header/index.d.ts → internal/http-link-header.d.ts} +0 -0
- package/types/{jsonlint-mod.d.ts → internal/jsonlint-mod.d.ts} +0 -0
- package/types/{lighthouse-logger/index.d.ts → internal/lighthouse-logger.d.ts} +0 -0
- package/types/{lookup-closest-locale/index.d.ts → internal/lookup-closest-locale.d.ts} +3 -1
- package/types/{metaviewport-parser/index.d.ts → internal/metaviewport-parser.d.ts} +0 -0
- package/types/{node-fetch.d.ts → internal/node-fetch.d.ts} +0 -0
- package/types/{node.d.ts → internal/node.d.ts} +0 -0
- package/types/{parse-cache-control/index.d.ts → internal/parse-cache-control.d.ts} +0 -0
- package/types/{pretty-json-stringify/index.d.ts → internal/pretty-json-stringify.d.ts} +0 -0
- package/types/{query-selector.d.ts → internal/query-selector.d.ts} +1 -1
- package/types/{rollup-plugin-postprocess.d.ts → internal/rollup-plugin-postprocess.d.ts} +0 -0
- package/types/{smokehouse.d.ts → internal/smokehouse.d.ts} +3 -3
- package/types/{test.d.ts → internal/test.d.ts} +0 -0
- package/types/lh.d.ts +81 -0
- package/types/lh.js +13 -0
- package/types/lhr/audit-details.d.ts +2 -2
- package/types/lhr/audit-result.d.ts +2 -2
- package/types/lhr/flow-result.d.ts +1 -1
- package/types/lhr/lhr.d.ts +2 -2
- package/types/lhr/settings.d.ts +1 -1
- package/types/lhr/treemap.d.ts +2 -2
- package/types/protocol.d.ts +8 -3
- package/types/puppeteer.d.ts +11 -6
- package/types/user-flow.d.ts +14 -5
- package/types/global-lh.d.ts +0 -85
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
export type GathererConstructor = typeof import('../gather/gatherers/gatherer.js').Gatherer;
|
|
2
|
+
export type Audit = typeof import('../audits/audit.js')['Audit'];
|
|
3
|
+
export type Gatherer = InstanceType<GathererConstructor>;
|
|
4
|
+
/**
|
|
5
|
+
* // TODO(bckenny): could adopt "jsonified" type to ensure T will survive JSON
|
|
6
|
+
* round trip: https://github.com/Microsoft/TypeScript/issues/21838
|
|
7
|
+
* @template T
|
|
8
|
+
* @param {T} json
|
|
9
|
+
* @return {T}
|
|
10
|
+
*/
|
|
11
|
+
export function deepClone<T>(json: T): T;
|
|
12
|
+
/**
|
|
13
|
+
* Deep clone a config, copying over any "live" gatherer or audit that
|
|
14
|
+
* wouldn't make the JSON round trip.
|
|
15
|
+
* @param {LH.Config} json
|
|
16
|
+
* @return {LH.Config}
|
|
17
|
+
*/
|
|
18
|
+
export function deepCloneConfigJson(json: LH.Config): LH.Config;
|
|
19
|
+
/**
|
|
20
|
+
* Until support of jsdoc templates with constraints, type in config.d.ts.
|
|
21
|
+
* See https://github.com/Microsoft/TypeScript/issues/24283
|
|
22
|
+
* @type {LH.Config.Merge}
|
|
23
|
+
*/
|
|
24
|
+
export const mergeConfigFragment: LH.Config.Merge;
|
|
25
|
+
/**
|
|
26
|
+
* Merge an array of items by a caller-defined key. `mergeConfigFragment` is used to merge any items
|
|
27
|
+
* with a matching key.
|
|
28
|
+
*
|
|
29
|
+
* @template {Record<string, any>} T
|
|
30
|
+
* @param {Array<T>|null|undefined} baseArray
|
|
31
|
+
* @param {Array<T>|null|undefined} extensionArray
|
|
32
|
+
* @param {(item: T) => string} keyFn
|
|
33
|
+
* @return {Array<T>}
|
|
34
|
+
*/
|
|
35
|
+
export function mergeConfigFragmentArrayByKey<T extends Record<string, any>>(baseArray: T[] | null | undefined, extensionArray: T[] | null | undefined, keyFn: (item: T) => string): T[];
|
|
36
|
+
/**
|
|
37
|
+
* If any items with identical `path` properties are found in the input array,
|
|
38
|
+
* merge their `options` properties into the first instance and then discard any
|
|
39
|
+
* other instances.
|
|
40
|
+
* @template {{path?: string, options: Record<string, unknown>}} T
|
|
41
|
+
* @param {T[]} items
|
|
42
|
+
* @return T[]
|
|
43
|
+
*/
|
|
44
|
+
export function mergeOptionsOfItems<T extends {
|
|
45
|
+
path?: string | undefined;
|
|
46
|
+
options: Record<string, unknown>;
|
|
47
|
+
}>(items: T[]): T[];
|
|
48
|
+
/**
|
|
49
|
+
* @param {LH.Config} config
|
|
50
|
+
* @param {string | undefined} configDir
|
|
51
|
+
* @param {{plugins?: string[]} | undefined} flags
|
|
52
|
+
* @return {Promise<LH.Config>}
|
|
53
|
+
*/
|
|
54
|
+
export function mergePlugins(config: LH.Config, configDir: string | undefined, flags: {
|
|
55
|
+
plugins?: string[];
|
|
56
|
+
} | undefined): Promise<LH.Config>;
|
|
57
|
+
/**
|
|
58
|
+
* Take an array of audits and audit paths and require any paths (possibly
|
|
59
|
+
* relative to the optional `configDir`) using `resolveModule`,
|
|
60
|
+
* leaving only an array of AuditDefns.
|
|
61
|
+
* @param {LH.Config['audits']} audits
|
|
62
|
+
* @param {string=} configDir
|
|
63
|
+
* @return {Promise<Array<LH.Config.AuditDefn>|null>}
|
|
64
|
+
*/
|
|
65
|
+
export function resolveAuditsToDefns(audits: LH.Config['audits'], configDir?: string | undefined): Promise<Array<LH.Config.AuditDefn> | null>;
|
|
66
|
+
/**
|
|
67
|
+
* Turns a GathererJson into a GathererDefn which involves a few main steps:
|
|
68
|
+
* - Expanding the JSON shorthand the full definition format.
|
|
69
|
+
* - `require`ing in the implementation.
|
|
70
|
+
* - Creating a gatherer instance from the implementation.
|
|
71
|
+
* @param {LH.Config.GathererJson} gathererJson
|
|
72
|
+
* @param {Array<string>} coreGathererList
|
|
73
|
+
* @param {string=} configDir
|
|
74
|
+
* @return {Promise<LH.Config.GathererDefn>}
|
|
75
|
+
*/
|
|
76
|
+
export function resolveGathererToDefn(gathererJson: LH.Config.GathererJson, coreGathererList: Array<string>, configDir?: string | undefined): Promise<LH.Config.GathererDefn>;
|
|
77
|
+
/**
|
|
78
|
+
* Resolves the location of the specified module and returns an absolute
|
|
79
|
+
* string path to the file. Used for loading custom audits and gatherers.
|
|
80
|
+
* Throws an error if no module is found.
|
|
81
|
+
* @param {string} moduleIdentifier
|
|
82
|
+
* @param {string=} configDir The absolute path to the directory of the config file, if there is one.
|
|
83
|
+
* @param {string=} category Optional plugin category (e.g. 'audit') for better error messages.
|
|
84
|
+
* @return {string}
|
|
85
|
+
* @throws {Error}
|
|
86
|
+
*/
|
|
87
|
+
export function resolveModulePath(moduleIdentifier: string, configDir?: string | undefined, category?: string | undefined): string;
|
|
88
|
+
/**
|
|
89
|
+
* @param {LH.SharedFlagsSettings} settingsJson
|
|
90
|
+
* @param {LH.Flags|undefined} overrides
|
|
91
|
+
* @return {LH.Config.Settings}
|
|
92
|
+
*/
|
|
93
|
+
export function resolveSettings(settingsJson?: LH.SharedFlagsSettings, overrides?: LH.Flags | undefined): LH.Config.Settings;
|
|
94
|
+
//# sourceMappingURL=config-helpers.d.ts.map
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export default ConfigPlugin;
|
|
2
|
+
/**
|
|
3
|
+
* A set of methods for extracting and validating a Lighthouse plugin config.
|
|
4
|
+
*/
|
|
5
|
+
declare class ConfigPlugin {
|
|
6
|
+
/**
|
|
7
|
+
* Extract and validate the list of AuditDefns added by the plugin (or undefined
|
|
8
|
+
* if no additional audits are being added by the plugin).
|
|
9
|
+
* @param {unknown} auditsJson
|
|
10
|
+
* @param {string} pluginName
|
|
11
|
+
* @return {Array<{path: string}>|undefined}
|
|
12
|
+
*/
|
|
13
|
+
static _parseAuditsList(auditsJson: unknown, pluginName: string): Array<{
|
|
14
|
+
path: string;
|
|
15
|
+
}> | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* Extract and validate the list of category AuditRefs added by the plugin.
|
|
18
|
+
* @param {unknown} auditRefsJson
|
|
19
|
+
* @param {string} pluginName
|
|
20
|
+
* @return {Array<LH.Config.AuditRefJson>}
|
|
21
|
+
*/
|
|
22
|
+
static _parseAuditRefsList(auditRefsJson: unknown, pluginName: string): Array<LH.Config.AuditRefJson>;
|
|
23
|
+
/**
|
|
24
|
+
* Extract and validate the category added by the plugin.
|
|
25
|
+
* @param {unknown} categoryJson
|
|
26
|
+
* @param {string} pluginName
|
|
27
|
+
* @return {LH.Config.CategoryJson}
|
|
28
|
+
*/
|
|
29
|
+
static _parseCategory(categoryJson: unknown, pluginName: string): LH.Config.CategoryJson;
|
|
30
|
+
/**
|
|
31
|
+
* Extract and validate groups JSON added by the plugin.
|
|
32
|
+
* @param {unknown} groupsJson
|
|
33
|
+
* @param {string} pluginName
|
|
34
|
+
* @return {Record<string, LH.Config.GroupJson>|undefined}
|
|
35
|
+
*/
|
|
36
|
+
static _parseGroups(groupsJson: unknown, pluginName: string): Record<string, LH.Config.GroupJson> | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* Extracts and validates a config from the provided plugin input, throwing
|
|
39
|
+
* if it deviates from the expected object shape.
|
|
40
|
+
* @param {unknown} pluginJson
|
|
41
|
+
* @param {string} pluginName
|
|
42
|
+
* @return {LH.Config}
|
|
43
|
+
*/
|
|
44
|
+
static parsePlugin(pluginJson: unknown, pluginName: string): LH.Config;
|
|
45
|
+
}
|
|
46
|
+
//# sourceMappingURL=config-plugin.d.ts.map
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @param {LH.Config|undefined} config
|
|
3
|
+
* @param {{configPath?: string}} context
|
|
4
|
+
* @return {{configWorkingCopy: LH.Config, configDir?: string, configPath?: string}}
|
|
5
|
+
*/
|
|
6
|
+
export function resolveWorkingCopy(config: LH.Config | undefined, context: {
|
|
7
|
+
configPath?: string | undefined;
|
|
8
|
+
}): {
|
|
9
|
+
configWorkingCopy: LH.Config;
|
|
10
|
+
configDir?: string | undefined;
|
|
11
|
+
configPath?: string | undefined;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* @param {LH.Gatherer.GatherMode} gatherMode
|
|
15
|
+
* @param {LH.Config=} config
|
|
16
|
+
* @param {LH.Flags=} flags
|
|
17
|
+
* @return {Promise<{resolvedConfig: LH.Config.ResolvedConfig, warnings: string[]}>}
|
|
18
|
+
*/
|
|
19
|
+
export function initializeConfig(gatherMode: LH.Gatherer.GatherMode, config?: LH.Config | undefined, flags?: LH.Flags | undefined): Promise<{
|
|
20
|
+
resolvedConfig: LH.Config.ResolvedConfig;
|
|
21
|
+
warnings: string[];
|
|
22
|
+
}>;
|
|
23
|
+
/**
|
|
24
|
+
* @param {LH.Config.ResolvedConfig} resolvedConfig
|
|
25
|
+
* @return {string}
|
|
26
|
+
*/
|
|
27
|
+
export function getConfigDisplayString(resolvedConfig: LH.Config.ResolvedConfig): string;
|
|
28
|
+
//# sourceMappingURL=config.d.ts.map
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
export namespace throttling {
|
|
2
|
+
export { DEVTOOLS_RTT_ADJUSTMENT_FACTOR };
|
|
3
|
+
export { DEVTOOLS_THROUGHPUT_ADJUSTMENT_FACTOR };
|
|
4
|
+
export namespace mobileSlow4G {
|
|
5
|
+
const rttMs: number;
|
|
6
|
+
const throughputKbps: number;
|
|
7
|
+
const requestLatencyMs: number;
|
|
8
|
+
const downloadThroughputKbps: number;
|
|
9
|
+
const uploadThroughputKbps: number;
|
|
10
|
+
const cpuSlowdownMultiplier: number;
|
|
11
|
+
}
|
|
12
|
+
export namespace mobileRegular3G {
|
|
13
|
+
const rttMs_1: number;
|
|
14
|
+
export { rttMs_1 as rttMs };
|
|
15
|
+
const throughputKbps_1: number;
|
|
16
|
+
export { throughputKbps_1 as throughputKbps };
|
|
17
|
+
const requestLatencyMs_1: number;
|
|
18
|
+
export { requestLatencyMs_1 as requestLatencyMs };
|
|
19
|
+
const downloadThroughputKbps_1: number;
|
|
20
|
+
export { downloadThroughputKbps_1 as downloadThroughputKbps };
|
|
21
|
+
const uploadThroughputKbps_1: number;
|
|
22
|
+
export { uploadThroughputKbps_1 as uploadThroughputKbps };
|
|
23
|
+
const cpuSlowdownMultiplier_1: number;
|
|
24
|
+
export { cpuSlowdownMultiplier_1 as cpuSlowdownMultiplier };
|
|
25
|
+
}
|
|
26
|
+
export namespace desktopDense4G {
|
|
27
|
+
const rttMs_2: number;
|
|
28
|
+
export { rttMs_2 as rttMs };
|
|
29
|
+
const throughputKbps_2: number;
|
|
30
|
+
export { throughputKbps_2 as throughputKbps };
|
|
31
|
+
const cpuSlowdownMultiplier_2: number;
|
|
32
|
+
export { cpuSlowdownMultiplier_2 as cpuSlowdownMultiplier };
|
|
33
|
+
const requestLatencyMs_2: number;
|
|
34
|
+
export { requestLatencyMs_2 as requestLatencyMs };
|
|
35
|
+
const downloadThroughputKbps_2: number;
|
|
36
|
+
export { downloadThroughputKbps_2 as downloadThroughputKbps };
|
|
37
|
+
const uploadThroughputKbps_2: number;
|
|
38
|
+
export { uploadThroughputKbps_2 as uploadThroughputKbps };
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
export namespace screenEmulationMetrics {
|
|
42
|
+
export { MOTOG4_EMULATION_METRICS as mobile };
|
|
43
|
+
export { DESKTOP_EMULATION_METRICS as desktop };
|
|
44
|
+
}
|
|
45
|
+
export namespace userAgents {
|
|
46
|
+
export { MOTOG4_USERAGENT as mobile };
|
|
47
|
+
export { DESKTOP_USERAGENT as desktop };
|
|
48
|
+
}
|
|
49
|
+
/** @type {LH.Config.Settings} */
|
|
50
|
+
export const defaultSettings: LH.Config.Settings;
|
|
51
|
+
/** @type {LH.Config.Pass} */
|
|
52
|
+
export const defaultPassConfig: LH.Config.Pass;
|
|
53
|
+
/** @type {Required<LH.Config.NavigationJson>} */
|
|
54
|
+
export const defaultNavigationConfig: Required<LH.Config.NavigationJson>;
|
|
55
|
+
export namespace nonSimulatedPassConfigOverrides {
|
|
56
|
+
const pauseAfterFcpMs: number;
|
|
57
|
+
const pauseAfterLoadMs: number;
|
|
58
|
+
const networkQuietThresholdMs: number;
|
|
59
|
+
const cpuQuietThresholdMs: number;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* @license Copyright 2018 The Lighthouse Authors. All Rights Reserved.
|
|
63
|
+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
64
|
+
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
|
|
65
|
+
*/
|
|
66
|
+
/**
|
|
67
|
+
* Adjustments needed for DevTools network throttling to simulate
|
|
68
|
+
* more realistic network conditions.
|
|
69
|
+
* @see https://crbug.com/721112
|
|
70
|
+
* @see https://docs.google.com/document/d/10lfVdS1iDWCRKQXPfbxEn4Or99D64mvNlugP1AQuFlE/edit
|
|
71
|
+
*/
|
|
72
|
+
declare const DEVTOOLS_RTT_ADJUSTMENT_FACTOR: 3.75;
|
|
73
|
+
declare const DEVTOOLS_THROUGHPUT_ADJUSTMENT_FACTOR: 0.9;
|
|
74
|
+
/**
|
|
75
|
+
* @type {Required<LH.SharedFlagsSettings['screenEmulation']>}
|
|
76
|
+
*/
|
|
77
|
+
declare const MOTOG4_EMULATION_METRICS: Required<LH.SharedFlagsSettings['screenEmulation']>;
|
|
78
|
+
/**
|
|
79
|
+
* Desktop metrics adapted from emulated_devices/module.json
|
|
80
|
+
* @type {Required<LH.SharedFlagsSettings['screenEmulation']>}
|
|
81
|
+
*/
|
|
82
|
+
declare const DESKTOP_EMULATION_METRICS: Required<LH.SharedFlagsSettings['screenEmulation']>;
|
|
83
|
+
declare const MOTOG4_USERAGENT: "Mozilla/5.0 (Linux; Android 7.0; Moto G (4)) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4695.0 Mobile Safari/537.36 Chrome-Lighthouse";
|
|
84
|
+
declare const DESKTOP_USERAGENT: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4695.0 Safari/537.36 Chrome-Lighthouse";
|
|
85
|
+
export {};
|
|
86
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
+
import * as LH from '../../types/lh.js';
|
|
7
8
|
import * as constants from './constants.js';
|
|
8
9
|
|
|
9
10
|
/** @type {LH.Config} */
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export default config;
|
|
2
|
+
/**
|
|
3
|
+
* @license Copyright 2020 The Lighthouse Authors. All Rights Reserved.
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
5
|
+
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* @fileoverview Config for new audits that aren't quite ready for
|
|
9
|
+
* being enabled by default.
|
|
10
|
+
*/
|
|
11
|
+
/** @type {LH.Config} */
|
|
12
|
+
declare const config: LH.Config;
|
|
13
|
+
//# sourceMappingURL=experimental-config.d.ts.map
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Filters a config's artifacts, audits, and categories down to the set that supports the specified gather mode.
|
|
3
|
+
*
|
|
4
|
+
* @param {LH.Config.ResolvedConfig} resolvedConfig
|
|
5
|
+
* @param {LH.Gatherer.GatherMode} mode
|
|
6
|
+
* @return {LH.Config.ResolvedConfig}
|
|
7
|
+
*/
|
|
8
|
+
export function filterConfigByGatherMode(resolvedConfig: LH.Config.ResolvedConfig, mode: LH.Gatherer.GatherMode): LH.Config.ResolvedConfig;
|
|
9
|
+
/**
|
|
10
|
+
* Filters a config's artifacts, audits, and categories down to the requested set.
|
|
11
|
+
* Skip audits overrides inclusion via `onlyAudits`/`onlyCategories`.
|
|
12
|
+
*
|
|
13
|
+
* @param {LH.Config.ResolvedConfig} resolvedConfig
|
|
14
|
+
* @param {Pick<LH.Config.Settings, 'onlyAudits'|'onlyCategories'|'skipAudits'>} filters
|
|
15
|
+
* @return {LH.Config.ResolvedConfig}
|
|
16
|
+
*/
|
|
17
|
+
export function filterConfigByExplicitFilters(resolvedConfig: LH.Config.ResolvedConfig, filters: Pick<LH.Config.Settings, 'onlyAudits' | 'onlyCategories' | 'skipAudits'>): LH.Config.ResolvedConfig;
|
|
18
|
+
/**
|
|
19
|
+
* Filters an array of artifacts down to the set that supports the specified gather mode.
|
|
20
|
+
*
|
|
21
|
+
* @param {LH.Config.ResolvedConfig['artifacts']} artifacts
|
|
22
|
+
* @param {LH.Gatherer.GatherMode} mode
|
|
23
|
+
* @return {LH.Config.ResolvedConfig['artifacts']}
|
|
24
|
+
*/
|
|
25
|
+
export function filterArtifactsByGatherMode(artifacts: LH.Config.ResolvedConfig['artifacts'], mode: LH.Gatherer.GatherMode): LH.Config.ResolvedConfig['artifacts'];
|
|
26
|
+
/**
|
|
27
|
+
* Filters an array of artifacts down to the set that's required by the specified audits.
|
|
28
|
+
*
|
|
29
|
+
* @param {LH.Config.ResolvedConfig['artifacts']} artifacts
|
|
30
|
+
* @param {LH.Config.ResolvedConfig['audits']} audits
|
|
31
|
+
* @return {LH.Config.ResolvedConfig['artifacts']}
|
|
32
|
+
*/
|
|
33
|
+
export function filterArtifactsByAvailableAudits(artifacts: LH.Config.ResolvedConfig['artifacts'], audits: LH.Config.ResolvedConfig['audits']): LH.Config.ResolvedConfig['artifacts'];
|
|
34
|
+
/**
|
|
35
|
+
* Filters an array of navigations down to the set supported by the available artifacts.
|
|
36
|
+
*
|
|
37
|
+
* @param {LH.Config.ResolvedConfig['navigations']} navigations
|
|
38
|
+
* @param {Array<LH.Config.AnyArtifactDefn>} availableArtifacts
|
|
39
|
+
* @return {LH.Config.ResolvedConfig['navigations']}
|
|
40
|
+
*/
|
|
41
|
+
export function filterNavigationsByAvailableArtifacts(navigations: LH.Config.ResolvedConfig['navigations'], availableArtifacts: Array<LH.Config.AnyArtifactDefn>): LH.Config.ResolvedConfig['navigations'];
|
|
42
|
+
/**
|
|
43
|
+
* Filters an array of audits down to the set that can be computed using only the specified artifacts.
|
|
44
|
+
*
|
|
45
|
+
* @param {LH.Config.ResolvedConfig['audits']} audits
|
|
46
|
+
* @param {Array<LH.Config.AnyArtifactDefn>} availableArtifacts
|
|
47
|
+
* @return {LH.Config.ResolvedConfig['audits']}
|
|
48
|
+
*/
|
|
49
|
+
export function filterAuditsByAvailableArtifacts(audits: LH.Config.ResolvedConfig['audits'], availableArtifacts: Array<LH.Config.AnyArtifactDefn>): LH.Config.ResolvedConfig['audits'];
|
|
50
|
+
/**
|
|
51
|
+
* Optional `supportedModes` property can explicitly exclude an audit even if all required artifacts are available.
|
|
52
|
+
*
|
|
53
|
+
* @param {LH.Config.ResolvedConfig['audits']} audits
|
|
54
|
+
* @param {LH.Gatherer.GatherMode} mode
|
|
55
|
+
* @return {LH.Config.ResolvedConfig['audits']}
|
|
56
|
+
*/
|
|
57
|
+
export function filterAuditsByGatherMode(audits: LH.Config.ResolvedConfig['audits'], mode: LH.Gatherer.GatherMode): LH.Config.ResolvedConfig['audits'];
|
|
58
|
+
/**
|
|
59
|
+
* Filters a categories object and their auditRefs down to the set that can be computed using
|
|
60
|
+
* only the specified audits.
|
|
61
|
+
*
|
|
62
|
+
* @param {LH.Config.LegacyResolvedConfig['categories']} categories
|
|
63
|
+
* @param {Array<LH.Config.AuditDefn>} availableAudits
|
|
64
|
+
* @return {LH.Config.LegacyResolvedConfig['categories']}
|
|
65
|
+
*/
|
|
66
|
+
export function filterCategoriesByAvailableAudits(categories: LH.Config.LegacyResolvedConfig['categories'], availableAudits: Array<LH.Config.AuditDefn>): LH.Config.LegacyResolvedConfig['categories'];
|
|
67
|
+
/**
|
|
68
|
+
* Filters a categories object and their auditRefs down to the specified category ids.
|
|
69
|
+
*
|
|
70
|
+
* @param {LH.Config.LegacyResolvedConfig['categories']} categories
|
|
71
|
+
* @param {string[] | null | undefined} onlyCategories
|
|
72
|
+
* @return {LH.Config.LegacyResolvedConfig['categories']}
|
|
73
|
+
*/
|
|
74
|
+
export function filterCategoriesByExplicitFilters(categories: LH.Config.LegacyResolvedConfig['categories'], onlyCategories: string[] | null | undefined): LH.Config.LegacyResolvedConfig['categories'];
|
|
75
|
+
/**
|
|
76
|
+
* Optional `supportedModes` property can explicitly exclude a category even if some audits are available.
|
|
77
|
+
*
|
|
78
|
+
* @param {LH.Config.LegacyResolvedConfig['categories']} categories
|
|
79
|
+
* @param {LH.Gatherer.GatherMode} mode
|
|
80
|
+
* @return {LH.Config.LegacyResolvedConfig['categories']}
|
|
81
|
+
*/
|
|
82
|
+
export function filterCategoriesByGatherMode(categories: LH.Config.LegacyResolvedConfig['categories'], mode: LH.Gatherer.GatherMode): LH.Config.LegacyResolvedConfig['categories'];
|
|
83
|
+
//# sourceMappingURL=filters.d.ts.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export default fullConfig;
|
|
2
|
+
/**
|
|
3
|
+
* @license Copyright 2017 The Lighthouse Authors. All Rights Reserved.
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
5
|
+
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
|
|
6
|
+
*/
|
|
7
|
+
/** @type {LH.Config} */
|
|
8
|
+
declare const fullConfig: LH.Config;
|
|
9
|
+
//# sourceMappingURL=full-config.d.ts.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export default config;
|
|
2
|
+
/**
|
|
3
|
+
* @license Copyright 2018 The Lighthouse Authors. All Rights Reserved.
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
5
|
+
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
|
|
6
|
+
*/
|
|
7
|
+
/** @type {LH.Config} */
|
|
8
|
+
declare const config: LH.Config;
|
|
9
|
+
//# sourceMappingURL=lr-mobile-config.d.ts.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export namespace metricsToAudits {
|
|
2
|
+
export { fcpRelevantAudits };
|
|
3
|
+
export { lcpRelevantAudits };
|
|
4
|
+
export { tbtRelevantAudits };
|
|
5
|
+
export { clsRelevantAudits };
|
|
6
|
+
export { inpRelevantAudits };
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* @license Copyright 2021 The Lighthouse Authors. All Rights Reserved.
|
|
10
|
+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
|
|
12
|
+
*/
|
|
13
|
+
declare const fcpRelevantAudits: string[];
|
|
14
|
+
declare const lcpRelevantAudits: string[];
|
|
15
|
+
declare const tbtRelevantAudits: string[];
|
|
16
|
+
declare const clsRelevantAudits: string[];
|
|
17
|
+
declare const inpRelevantAudits: string[];
|
|
18
|
+
export {};
|
|
19
|
+
//# sourceMappingURL=metrics-to-audits.d.ts.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export default perfConfig;
|
|
2
|
+
/**
|
|
3
|
+
* @license Copyright 2018 The Lighthouse Authors. All Rights Reserved.
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
5
|
+
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
|
|
6
|
+
*/
|
|
7
|
+
/** @type {LH.Config} */
|
|
8
|
+
declare const perfConfig: LH.Config;
|
|
9
|
+
//# sourceMappingURL=perf-config.d.ts.map
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @param {LH.Config.GathererDefn | LH.Config.AnyFRGathererDefn} gathererDefn
|
|
3
|
+
* @return {gathererDefn is LH.Config.AnyFRGathererDefn}
|
|
4
|
+
*/
|
|
5
|
+
export function isFRGathererDefn(gathererDefn: LH.Config.GathererDefn | LH.Config.AnyFRGathererDefn): gathererDefn is import("../../types/config.js").default.AnyFRGathererDefn;
|
|
6
|
+
/**
|
|
7
|
+
* Determines if the artifact dependency direction is valid. The dependency's minimum supported mode
|
|
8
|
+
* must be less than or equal to the dependent's.
|
|
9
|
+
*
|
|
10
|
+
* @param {LH.Config.AnyFRGathererDefn} dependent The artifact that depends on the other.
|
|
11
|
+
* @param {LH.Config.AnyFRGathererDefn} dependency The artifact that is being depended on by the other.
|
|
12
|
+
* @return {boolean}
|
|
13
|
+
*/
|
|
14
|
+
export function isValidArtifactDependency(dependent: LH.Config.AnyFRGathererDefn, dependency: LH.Config.AnyFRGathererDefn): boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Throws if pluginName is invalid or (somehow) collides with a category in the
|
|
17
|
+
* config being added to.
|
|
18
|
+
* @param {LH.Config} config
|
|
19
|
+
* @param {string} pluginName
|
|
20
|
+
*/
|
|
21
|
+
export function assertValidPluginName(config: LH.Config, pluginName: string): void;
|
|
22
|
+
/**
|
|
23
|
+
* Throws an error if the provided object does not implement the required Fraggle Rock gatherer interface.
|
|
24
|
+
* @param {LH.Config.AnyFRGathererDefn} gathererDefn
|
|
25
|
+
*/
|
|
26
|
+
export function assertValidFRGatherer(gathererDefn: LH.Config.AnyFRGathererDefn): void;
|
|
27
|
+
/**
|
|
28
|
+
* Throws an error if the provided object does not implement the required navigations interface.
|
|
29
|
+
* @param {LH.Config.ResolvedConfig['navigations']} navigationsDefn
|
|
30
|
+
* @return {{warnings: string[]}}
|
|
31
|
+
*/
|
|
32
|
+
export function assertValidFRNavigations(navigationsDefn: LH.Config.ResolvedConfig['navigations']): {
|
|
33
|
+
warnings: string[];
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* Throws an error if the provided object does not implement the required properties of an audit
|
|
37
|
+
* definition.
|
|
38
|
+
* @param {LH.Config.AuditDefn} auditDefinition
|
|
39
|
+
*/
|
|
40
|
+
export function assertValidAudit(auditDefinition: LH.Config.AuditDefn): void;
|
|
41
|
+
/**
|
|
42
|
+
* @param {LH.Config.ResolvedConfig['categories']} categories
|
|
43
|
+
* @param {LH.Config.ResolvedConfig['audits']} audits
|
|
44
|
+
* @param {LH.Config.ResolvedConfig['groups']} groups
|
|
45
|
+
*/
|
|
46
|
+
export function assertValidCategories(categories: LH.Config.ResolvedConfig['categories'], audits: LH.Config.ResolvedConfig['audits'], groups: LH.Config.ResolvedConfig['groups']): void;
|
|
47
|
+
/**
|
|
48
|
+
* Validate the settings after they've been built.
|
|
49
|
+
* @param {LH.Config.Settings} settings
|
|
50
|
+
*/
|
|
51
|
+
export function assertValidSettings(settings: LH.Config.Settings): void;
|
|
52
|
+
/**
|
|
53
|
+
* Asserts that artifacts are in a valid dependency order that can be computed.
|
|
54
|
+
*
|
|
55
|
+
* @param {Array<LH.Config.NavigationDefn>} navigations
|
|
56
|
+
*/
|
|
57
|
+
export function assertArtifactTopologicalOrder(navigations: Array<LH.Config.NavigationDefn>): void;
|
|
58
|
+
/**
|
|
59
|
+
* @param {LH.Config.ResolvedConfig} resolvedConfig
|
|
60
|
+
* @return {{warnings: string[]}}
|
|
61
|
+
*/
|
|
62
|
+
export function assertValidConfig(resolvedConfig: LH.Config.ResolvedConfig): {
|
|
63
|
+
warnings: string[];
|
|
64
|
+
};
|
|
65
|
+
/**
|
|
66
|
+
* @param {string} artifactId
|
|
67
|
+
* @param {string} dependencyKey
|
|
68
|
+
* @return {never}
|
|
69
|
+
*/
|
|
70
|
+
export function throwInvalidDependencyOrder(artifactId: string, dependencyKey: string): never;
|
|
71
|
+
/**
|
|
72
|
+
* @param {string} artifactId
|
|
73
|
+
* @param {string} dependencyKey
|
|
74
|
+
* @return {never}
|
|
75
|
+
*/
|
|
76
|
+
export function throwInvalidArtifactDependency(artifactId: string, dependencyKey: string): never;
|
|
77
|
+
//# sourceMappingURL=validation.d.ts.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @param {LH.Config.ResolvedConfig} resolvedConfig
|
|
3
|
+
* @param {LH.Gatherer.FRTransitionalDriver} driver
|
|
4
|
+
* @param {{gatherMode: LH.Gatherer.GatherMode}} context
|
|
5
|
+
* @return {Promise<LH.BaseArtifacts>}
|
|
6
|
+
*/
|
|
7
|
+
export function getBaseArtifacts(resolvedConfig: LH.Config.ResolvedConfig, driver: LH.Gatherer.FRTransitionalDriver, context: {
|
|
8
|
+
gatherMode: LH.Gatherer.GatherMode;
|
|
9
|
+
}): Promise<LH.BaseArtifacts>;
|
|
10
|
+
/**
|
|
11
|
+
* @param {LH.FRBaseArtifacts} baseArtifacts
|
|
12
|
+
* @param {Partial<LH.Artifacts>} gathererArtifacts
|
|
13
|
+
* @return {LH.Artifacts}
|
|
14
|
+
*/
|
|
15
|
+
export function finalizeArtifacts(baseArtifacts: LH.FRBaseArtifacts, gathererArtifacts: Partial<LH.Artifacts>): LH.Artifacts;
|
|
16
|
+
//# sourceMappingURL=base-artifacts.d.ts.map
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
export default FRGatherer;
|
|
2
|
+
/**
|
|
3
|
+
* Base class for all gatherers supporting both Fraggle Rock and the legacy flow.
|
|
4
|
+
* Most extending classes should implement the Fraggle Rock API and let this class handle translation.
|
|
5
|
+
* See core/gather/gatherers/gatherer.js for legacy method explanations.
|
|
6
|
+
*
|
|
7
|
+
* @implements {LH.Gatherer.GathererInstance}
|
|
8
|
+
* @implements {LH.Gatherer.FRGathererInstance}
|
|
9
|
+
*/
|
|
10
|
+
declare class FRGatherer implements LH.Gatherer.GathererInstance, LH.Gatherer.FRGathererInstance {
|
|
11
|
+
/** @type {LH.Gatherer.GathererMeta} */
|
|
12
|
+
meta: LH.Gatherer.GathererMeta;
|
|
13
|
+
/**
|
|
14
|
+
* Method to start observing a page for an arbitrary period of time.
|
|
15
|
+
* @param {LH.Gatherer.FRTransitionalContext} passContext
|
|
16
|
+
* @return {Promise<void>|void}
|
|
17
|
+
*/
|
|
18
|
+
startInstrumentation(passContext: LH.Gatherer.FRTransitionalContext): Promise<void> | void;
|
|
19
|
+
/**
|
|
20
|
+
* Method to start observing a page when the measurements are very sensitive and
|
|
21
|
+
* should observe as little Lighthouse-induced work as possible.
|
|
22
|
+
* @param {LH.Gatherer.FRTransitionalContext} passContext
|
|
23
|
+
* @return {Promise<void>|void}
|
|
24
|
+
*/
|
|
25
|
+
startSensitiveInstrumentation(passContext: LH.Gatherer.FRTransitionalContext): Promise<void> | void;
|
|
26
|
+
/**
|
|
27
|
+
* Method to stop observing a page when the measurements are very sensitive and
|
|
28
|
+
* should observe as little Lighthouse-induced work as possible.
|
|
29
|
+
*
|
|
30
|
+
* @param {LH.Gatherer.FRTransitionalContext} passContext
|
|
31
|
+
* @return {Promise<void>|void}
|
|
32
|
+
*/
|
|
33
|
+
stopSensitiveInstrumentation(passContext: LH.Gatherer.FRTransitionalContext): Promise<void> | void;
|
|
34
|
+
/**
|
|
35
|
+
* Method to end observing a page after an arbitrary period of time.
|
|
36
|
+
* @param {LH.Gatherer.FRTransitionalContext} passContext
|
|
37
|
+
* @return {Promise<void>|void}
|
|
38
|
+
*/
|
|
39
|
+
stopInstrumentation(passContext: LH.Gatherer.FRTransitionalContext): Promise<void> | void;
|
|
40
|
+
/**
|
|
41
|
+
* Method to gather results about a page.
|
|
42
|
+
* @param {LH.Gatherer.FRTransitionalContext} passContext
|
|
43
|
+
* @return {LH.Gatherer.PhaseResult}
|
|
44
|
+
*/
|
|
45
|
+
getArtifact(passContext: LH.Gatherer.FRTransitionalContext): LH.Gatherer.PhaseResult;
|
|
46
|
+
/**
|
|
47
|
+
* Legacy property used to define the artifact ID. In Fraggle Rock, the artifact ID lives on the config.
|
|
48
|
+
* @return {keyof LH.GathererArtifacts}
|
|
49
|
+
*/
|
|
50
|
+
get name(): keyof LH.GathererArtifacts;
|
|
51
|
+
/**
|
|
52
|
+
* Legacy method. Called before navigation to target url, roughly corresponds to `startInstrumentation`.
|
|
53
|
+
* @param {LH.Gatherer.PassContext} passContext
|
|
54
|
+
* @return {Promise<LH.Gatherer.PhaseResultNonPromise>}
|
|
55
|
+
*/
|
|
56
|
+
beforePass(passContext: LH.Gatherer.PassContext): Promise<LH.Gatherer.PhaseResultNonPromise>;
|
|
57
|
+
/**
|
|
58
|
+
* Legacy method. Should never be used by a Fraggle Rock gatherer, here for compat only.
|
|
59
|
+
* @param {LH.Gatherer.PassContext} passContext
|
|
60
|
+
* @return {LH.Gatherer.PhaseResult}
|
|
61
|
+
*/
|
|
62
|
+
pass(passContext: LH.Gatherer.PassContext): LH.Gatherer.PhaseResult;
|
|
63
|
+
/**
|
|
64
|
+
* Legacy method. Roughly corresponds to `stopInstrumentation` or `getArtifact` depending on type of gatherer.
|
|
65
|
+
* @param {LH.Gatherer.PassContext} passContext
|
|
66
|
+
* @param {LH.Gatherer.LoadData} loadData
|
|
67
|
+
* @return {Promise<LH.Gatherer.PhaseResultNonPromise>}
|
|
68
|
+
*/
|
|
69
|
+
afterPass(passContext: LH.Gatherer.PassContext, loadData: LH.Gatherer.LoadData): Promise<LH.Gatherer.PhaseResultNonPromise>;
|
|
70
|
+
}
|
|
71
|
+
import * as LH from "../../types/lh.js";
|
|
72
|
+
//# sourceMappingURL=base-gatherer.d.ts.map
|
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
+
import * as LH from '../../types/lh.js';
|
|
8
|
+
|
|
7
9
|
/* eslint-disable no-unused-vars */
|
|
8
10
|
|
|
9
11
|
/**
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Resolves a backend node ID (from a trace event, protocol, etc) to the object ID for use with
|
|
3
|
+
* `Runtime.callFunctionOn`. `undefined` means the node could not be found.
|
|
4
|
+
*
|
|
5
|
+
* @param {LH.Gatherer.FRProtocolSession} session
|
|
6
|
+
* @param {number} backendNodeId
|
|
7
|
+
* @return {Promise<string|undefined>}
|
|
8
|
+
*/
|
|
9
|
+
export function resolveNodeIdToObjectId(session: LH.Gatherer.FRProtocolSession, backendNodeId: number): Promise<string | undefined>;
|
|
10
|
+
/**
|
|
11
|
+
* Resolves a proprietary devtools node path (created from page-function.js) to the object ID for use
|
|
12
|
+
* with `Runtime.callFunctionOn`. `undefined` means the node could not be found.
|
|
13
|
+
* Requires `DOM.getDocument` to have been called since the object's creation or it will always be `undefined`.
|
|
14
|
+
*
|
|
15
|
+
* @param {LH.Gatherer.FRProtocolSession} session
|
|
16
|
+
* @param {string} path
|
|
17
|
+
* @return {Promise<string|undefined>}
|
|
18
|
+
*/
|
|
19
|
+
export function resolveDevtoolsNodePathToObjectId(session: LH.Gatherer.FRProtocolSession, path: string): Promise<string | undefined>;
|
|
20
|
+
//# sourceMappingURL=dom.d.ts.map
|