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,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @param {LH.Gatherer.FRProtocolSession} session
|
|
3
|
+
* @param {LH.Config.Settings} settings
|
|
4
|
+
* @return {Promise<void>}
|
|
5
|
+
*/
|
|
6
|
+
export function emulate(session: LH.Gatherer.FRProtocolSession, settings: LH.Config.Settings): Promise<void>;
|
|
7
|
+
/**
|
|
8
|
+
* Sets the throttling options specified in config settings, clearing existing network throttling if
|
|
9
|
+
* throttlingMethod is not `devtools` (but not CPU throttling, suspected requirement of WPT-compat).
|
|
10
|
+
*
|
|
11
|
+
* @param {LH.Gatherer.FRProtocolSession} session
|
|
12
|
+
* @param {LH.Config.Settings} settings
|
|
13
|
+
* @return {Promise<void>}
|
|
14
|
+
*/
|
|
15
|
+
export function throttle(session: LH.Gatherer.FRProtocolSession, settings: LH.Config.Settings): Promise<void>;
|
|
16
|
+
/**
|
|
17
|
+
* @param {LH.Gatherer.FRProtocolSession} session
|
|
18
|
+
* @return {Promise<void>}
|
|
19
|
+
*/
|
|
20
|
+
export function clearThrottling(session: LH.Gatherer.FRProtocolSession): Promise<void>;
|
|
21
|
+
/**
|
|
22
|
+
* @param {LH.Gatherer.FRProtocolSession} session
|
|
23
|
+
* @param {Required<LH.ThrottlingSettings>} throttlingSettings
|
|
24
|
+
* @return {Promise<void>}
|
|
25
|
+
*/
|
|
26
|
+
export function enableNetworkThrottling(session: LH.Gatherer.FRProtocolSession, throttlingSettings: Required<LH.ThrottlingSettings>): Promise<void>;
|
|
27
|
+
/**
|
|
28
|
+
* @param {LH.Gatherer.FRProtocolSession} session
|
|
29
|
+
* @return {Promise<void>}
|
|
30
|
+
*/
|
|
31
|
+
export function clearNetworkThrottling(session: LH.Gatherer.FRProtocolSession): Promise<void>;
|
|
32
|
+
/**
|
|
33
|
+
* @param {LH.Gatherer.FRProtocolSession} session
|
|
34
|
+
* @param {Required<LH.ThrottlingSettings>} throttlingSettings
|
|
35
|
+
* @return {Promise<void>}
|
|
36
|
+
*/
|
|
37
|
+
export function enableCPUThrottling(session: LH.Gatherer.FRProtocolSession, throttlingSettings: Required<LH.ThrottlingSettings>): Promise<void>;
|
|
38
|
+
/**
|
|
39
|
+
* @param {LH.Gatherer.FRProtocolSession} session
|
|
40
|
+
* @return {Promise<void>}
|
|
41
|
+
*/
|
|
42
|
+
export function clearCPUThrottling(session: LH.Gatherer.FRProtocolSession): Promise<void>;
|
|
43
|
+
//# sourceMappingURL=emulation.d.ts.map
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
export type LhlMessages = import('../../../shared/localization/locales').LhlMessages;
|
|
2
|
+
export namespace UIStrings {
|
|
3
|
+
const ms: string;
|
|
4
|
+
const seconds: string;
|
|
5
|
+
const displayValueByteSavings: string;
|
|
6
|
+
const displayValueMsSavings: string;
|
|
7
|
+
const displayValueElementsFound: string;
|
|
8
|
+
const columnURL: string;
|
|
9
|
+
const columnSize: string;
|
|
10
|
+
const columnResourceSize: string;
|
|
11
|
+
const columnTransferSize: string;
|
|
12
|
+
const columnCacheTTL: string;
|
|
13
|
+
const columnWastedBytes: string;
|
|
14
|
+
const columnWastedMs: string;
|
|
15
|
+
const columnBlockingTime: string;
|
|
16
|
+
const columnTimeSpent: string;
|
|
17
|
+
const columnLocation: string;
|
|
18
|
+
const columnResourceType: string;
|
|
19
|
+
const columnRequests: string;
|
|
20
|
+
const columnName: string;
|
|
21
|
+
const columnSource: string;
|
|
22
|
+
const columnOverBudget: string;
|
|
23
|
+
const columnElement: string;
|
|
24
|
+
const columnStartTime: string;
|
|
25
|
+
const columnDuration: string;
|
|
26
|
+
const columnFailingElem: string;
|
|
27
|
+
const columnDescription: string;
|
|
28
|
+
const totalResourceType: string;
|
|
29
|
+
const documentResourceType: string;
|
|
30
|
+
const scriptResourceType: string;
|
|
31
|
+
const stylesheetResourceType: string;
|
|
32
|
+
const imageResourceType: string;
|
|
33
|
+
const mediaResourceType: string;
|
|
34
|
+
const fontResourceType: string;
|
|
35
|
+
const otherResourceType: string;
|
|
36
|
+
const thirdPartyResourceType: string;
|
|
37
|
+
const otherResourcesLabel: string;
|
|
38
|
+
const firstContentfulPaintMetric: string;
|
|
39
|
+
const interactiveMetric: string;
|
|
40
|
+
const firstMeaningfulPaintMetric: string;
|
|
41
|
+
const totalBlockingTimeMetric: string;
|
|
42
|
+
const maxPotentialFIDMetric: string;
|
|
43
|
+
const speedIndexMetric: string;
|
|
44
|
+
const largestContentfulPaintMetric: string;
|
|
45
|
+
const cumulativeLayoutShiftMetric: string;
|
|
46
|
+
const interactionToNextPaint: string;
|
|
47
|
+
const itemSeverityLow: string;
|
|
48
|
+
const itemSeverityMedium: string;
|
|
49
|
+
const itemSeverityHigh: string;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Look up the best available locale for the requested language through these fall backs:
|
|
53
|
+
* - exact match
|
|
54
|
+
* - progressively shorter prefixes (`de-CH-1996` -> `de-CH` -> `de`)
|
|
55
|
+
* - supported locales in Intl formatters
|
|
56
|
+
*
|
|
57
|
+
* If `locale` isn't provided or one could not be found, DEFAULT_LOCALE is returned.
|
|
58
|
+
*
|
|
59
|
+
* By default any of the locales Lighthouse has strings for can be returned, but this
|
|
60
|
+
* can be overriden with `possibleLocales`, useful e.g. when Lighthouse is bundled and
|
|
61
|
+
* only DEFAULT_LOCALE is available, but `possibleLocales` can be used to select a
|
|
62
|
+
* locale available to be downloaded on demand.
|
|
63
|
+
* @param {string|string[]=} locales
|
|
64
|
+
* @param {Array<string>=} possibleLocales
|
|
65
|
+
* @return {LH.Locale}
|
|
66
|
+
*/
|
|
67
|
+
export function lookupLocale(locales?: (string | string[]) | undefined, possibleLocales?: Array<string> | undefined): LH.Locale;
|
|
68
|
+
/**
|
|
69
|
+
* Returns a function that generates `LH.IcuMessage` objects to localize the
|
|
70
|
+
* messages in `fileStrings` and the shared `i18n.UIStrings`.
|
|
71
|
+
* @param {string} filename
|
|
72
|
+
* @param {Record<string, string>} fileStrings
|
|
73
|
+
*/
|
|
74
|
+
export function createIcuMessageFn(filename: string, fileStrings: Record<string, string>): (message: string, values?: Record<string, string | number> | undefined) => LH.IcuMessage;
|
|
75
|
+
/**
|
|
76
|
+
* Returns true if the given value is a string or an LH.IcuMessage.
|
|
77
|
+
* @param {unknown} value
|
|
78
|
+
* @return {value is string|LH.IcuMessage}
|
|
79
|
+
*/
|
|
80
|
+
export function isStringOrIcuMessage(value: unknown): value is string | import("../../index.js").IcuMessage;
|
|
81
|
+
//# sourceMappingURL=i18n.d.ts.map
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright 2016 The Lighthouse Authors. All Rights Reserved.
|
|
3
|
+
* 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
|
|
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
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* @param {NonNullable<LH.Artifacts.Manifest['value']>} manifest
|
|
8
|
+
* @return {boolean} Does the manifest have any icons?
|
|
9
|
+
*/
|
|
10
|
+
export function doExist(manifest: NonNullable<LH.Artifacts.Manifest['value']>): boolean;
|
|
11
|
+
/**
|
|
12
|
+
* @param {number} sizeRequirement
|
|
13
|
+
* @param {NonNullable<LH.Artifacts.Manifest['value']>} manifest
|
|
14
|
+
* @return {Array<string>} Value of satisfactory sizes (eg. ['192x192', '256x256'])
|
|
15
|
+
*/
|
|
16
|
+
export function pngSizedAtLeast(sizeRequirement: number, manifest: NonNullable<LH.Artifacts.Manifest['value']>): Array<string>;
|
|
17
|
+
/**
|
|
18
|
+
* @param {NonNullable<LH.Artifacts.Manifest['value']>} manifest
|
|
19
|
+
* @return {boolean} Does the manifest icons value contain at least one icon with purpose including "maskable"
|
|
20
|
+
*/
|
|
21
|
+
export function containsMaskableIcon(manifest: NonNullable<LH.Artifacts.Manifest['value']>): boolean;
|
|
22
|
+
//# sourceMappingURL=icons.d.ts.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
export const simulationNamesToIgnore: string[];
|
|
3
|
+
export { convertNodeTimingsToTrace };
|
|
4
|
+
}
|
|
5
|
+
export default _default;
|
|
6
|
+
export type Node = import('./dependency-graph/base-node.js').Node;
|
|
7
|
+
export type CompleteNodeTiming = import('./dependency-graph/simulator/simulator.js').CompleteNodeTiming;
|
|
8
|
+
/**
|
|
9
|
+
* @license Copyright 2018 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
|
+
/** @typedef {import('./dependency-graph/base-node.js').Node} Node */
|
|
14
|
+
/** @typedef {import('./dependency-graph/simulator/simulator.js').CompleteNodeTiming} CompleteNodeTiming */
|
|
15
|
+
/**
|
|
16
|
+
* @param {Map<Node, CompleteNodeTiming>} nodeTimings
|
|
17
|
+
* @return {LH.Trace}
|
|
18
|
+
*/
|
|
19
|
+
declare function convertNodeTimingsToTrace(nodeTimings: Map<Node, CompleteNodeTiming>): LH.Trace;
|
|
20
|
+
//# sourceMappingURL=lantern-trace-saver.d.ts.map
|
|
@@ -0,0 +1,328 @@
|
|
|
1
|
+
export type LighthouseErrorDefinition = {
|
|
2
|
+
code: string;
|
|
3
|
+
message: string;
|
|
4
|
+
pattern?: RegExp | undefined;
|
|
5
|
+
/**
|
|
6
|
+
* True if it should appear in the top-level LHR.runtimeError property.
|
|
7
|
+
*/
|
|
8
|
+
lhrRuntimeError?: boolean | undefined;
|
|
9
|
+
};
|
|
10
|
+
export type SerializedLighthouseError = {
|
|
11
|
+
[p: string]: string | undefined;
|
|
12
|
+
sentinel: '__LighthouseErrorSentinel';
|
|
13
|
+
code: string;
|
|
14
|
+
stack?: string | undefined;
|
|
15
|
+
};
|
|
16
|
+
export type SerializedBaseError = {
|
|
17
|
+
sentinel: '__ErrorSentinel';
|
|
18
|
+
message: string;
|
|
19
|
+
code?: string;
|
|
20
|
+
stack?: string;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* @typedef {{sentinel: '__LighthouseErrorSentinel', code: string, stack?: string, [p: string]: string|undefined}} SerializedLighthouseError
|
|
24
|
+
* @typedef {{sentinel: '__ErrorSentinel', message: string, code?: string, stack?: string}} SerializedBaseError
|
|
25
|
+
*/
|
|
26
|
+
export class LighthouseError extends Error {
|
|
27
|
+
/**
|
|
28
|
+
* @param {string} method
|
|
29
|
+
* @param {{message: string, data?: string|undefined}} protocolError
|
|
30
|
+
* @return {Error|LighthouseError}
|
|
31
|
+
*/
|
|
32
|
+
static fromProtocolMessage(method: string, protocolError: {
|
|
33
|
+
message: string;
|
|
34
|
+
data?: string | undefined;
|
|
35
|
+
}): Error | LighthouseError;
|
|
36
|
+
/**
|
|
37
|
+
* A JSON.stringify replacer to serialize LighthouseErrors and (as a fallback) Errors.
|
|
38
|
+
* Returns a simplified version of the error object that can be reconstituted
|
|
39
|
+
* as a copy of the original error at parse time.
|
|
40
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify#The_replacer_parameter
|
|
41
|
+
* @param {Error|LighthouseError} err
|
|
42
|
+
* @return {SerializedBaseError|SerializedLighthouseError}
|
|
43
|
+
*/
|
|
44
|
+
static stringifyReplacer(err: Error | LighthouseError): SerializedBaseError | SerializedLighthouseError;
|
|
45
|
+
/**
|
|
46
|
+
* A JSON.parse reviver. If any value passed in is a serialized Error or
|
|
47
|
+
* LighthouseError, the error is recreated as the original object. Otherwise, the
|
|
48
|
+
* value is passed through unchanged.
|
|
49
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Using_the_reviver_parameter
|
|
50
|
+
* @param {string} key
|
|
51
|
+
* @param {any} possibleError
|
|
52
|
+
* @return {any}
|
|
53
|
+
*/
|
|
54
|
+
static parseReviver(key: string, possibleError: any): any;
|
|
55
|
+
/**
|
|
56
|
+
* @param {LighthouseErrorDefinition} errorDefinition
|
|
57
|
+
* @param {Record<string, string|undefined>=} properties
|
|
58
|
+
*/
|
|
59
|
+
constructor(errorDefinition: LighthouseErrorDefinition, properties?: Record<string, string | undefined> | undefined);
|
|
60
|
+
code: string;
|
|
61
|
+
friendlyMessage: import("../index.js").IcuMessage;
|
|
62
|
+
lhrRuntimeError: boolean;
|
|
63
|
+
}
|
|
64
|
+
export namespace LighthouseError {
|
|
65
|
+
export { ERRORS as errors };
|
|
66
|
+
export const NO_ERROR: string;
|
|
67
|
+
export const UNKNOWN_ERROR: string;
|
|
68
|
+
}
|
|
69
|
+
export namespace UIStrings {
|
|
70
|
+
const didntCollectScreenshots: string;
|
|
71
|
+
const badTraceRecording: string;
|
|
72
|
+
const noFcp: string;
|
|
73
|
+
const noLcp: string;
|
|
74
|
+
const pageLoadTookTooLong: string;
|
|
75
|
+
const pageLoadFailed: string;
|
|
76
|
+
const pageLoadFailedWithStatusCode: string;
|
|
77
|
+
const pageLoadFailedWithDetails: string;
|
|
78
|
+
const pageLoadFailedInsecure: string;
|
|
79
|
+
const pageLoadFailedInterstitial: string;
|
|
80
|
+
const internalChromeError: string;
|
|
81
|
+
const requestContentTimeout: string;
|
|
82
|
+
const notHtml: string;
|
|
83
|
+
const urlInvalid: string;
|
|
84
|
+
const protocolTimeout: string;
|
|
85
|
+
const dnsFailure: string;
|
|
86
|
+
const pageLoadFailedHung: string;
|
|
87
|
+
const criTimeout: string;
|
|
88
|
+
const missingRequiredArtifact: string;
|
|
89
|
+
const erroredRequiredArtifact: string;
|
|
90
|
+
const oldChromeDoesNotSupportFeature: string;
|
|
91
|
+
}
|
|
92
|
+
declare namespace ERRORS {
|
|
93
|
+
namespace NO_SPEEDLINE_FRAMES {
|
|
94
|
+
export const code: string;
|
|
95
|
+
import message = UIStrings.didntCollectScreenshots;
|
|
96
|
+
export { message };
|
|
97
|
+
export const lhrRuntimeError: boolean;
|
|
98
|
+
}
|
|
99
|
+
namespace SPEEDINDEX_OF_ZERO {
|
|
100
|
+
const code_1: string;
|
|
101
|
+
export { code_1 as code };
|
|
102
|
+
import message_1 = UIStrings.didntCollectScreenshots;
|
|
103
|
+
export { message_1 as message };
|
|
104
|
+
const lhrRuntimeError_1: boolean;
|
|
105
|
+
export { lhrRuntimeError_1 as lhrRuntimeError };
|
|
106
|
+
}
|
|
107
|
+
namespace NO_SCREENSHOTS {
|
|
108
|
+
const code_2: string;
|
|
109
|
+
export { code_2 as code };
|
|
110
|
+
import message_2 = UIStrings.didntCollectScreenshots;
|
|
111
|
+
export { message_2 as message };
|
|
112
|
+
const lhrRuntimeError_2: boolean;
|
|
113
|
+
export { lhrRuntimeError_2 as lhrRuntimeError };
|
|
114
|
+
}
|
|
115
|
+
namespace INVALID_SPEEDLINE {
|
|
116
|
+
const code_3: string;
|
|
117
|
+
export { code_3 as code };
|
|
118
|
+
import message_3 = UIStrings.didntCollectScreenshots;
|
|
119
|
+
export { message_3 as message };
|
|
120
|
+
const lhrRuntimeError_3: boolean;
|
|
121
|
+
export { lhrRuntimeError_3 as lhrRuntimeError };
|
|
122
|
+
}
|
|
123
|
+
namespace NO_TRACING_STARTED {
|
|
124
|
+
const code_4: string;
|
|
125
|
+
export { code_4 as code };
|
|
126
|
+
import message_4 = UIStrings.badTraceRecording;
|
|
127
|
+
export { message_4 as message };
|
|
128
|
+
const lhrRuntimeError_4: boolean;
|
|
129
|
+
export { lhrRuntimeError_4 as lhrRuntimeError };
|
|
130
|
+
}
|
|
131
|
+
namespace NO_RESOURCE_REQUEST {
|
|
132
|
+
const code_5: string;
|
|
133
|
+
export { code_5 as code };
|
|
134
|
+
import message_5 = UIStrings.badTraceRecording;
|
|
135
|
+
export { message_5 as message };
|
|
136
|
+
const lhrRuntimeError_5: boolean;
|
|
137
|
+
export { lhrRuntimeError_5 as lhrRuntimeError };
|
|
138
|
+
}
|
|
139
|
+
namespace NO_NAVSTART {
|
|
140
|
+
const code_6: string;
|
|
141
|
+
export { code_6 as code };
|
|
142
|
+
import message_6 = UIStrings.badTraceRecording;
|
|
143
|
+
export { message_6 as message };
|
|
144
|
+
const lhrRuntimeError_6: boolean;
|
|
145
|
+
export { lhrRuntimeError_6 as lhrRuntimeError };
|
|
146
|
+
}
|
|
147
|
+
namespace NO_FCP {
|
|
148
|
+
const code_7: string;
|
|
149
|
+
export { code_7 as code };
|
|
150
|
+
import message_7 = UIStrings.noFcp;
|
|
151
|
+
export { message_7 as message };
|
|
152
|
+
const lhrRuntimeError_7: boolean;
|
|
153
|
+
export { lhrRuntimeError_7 as lhrRuntimeError };
|
|
154
|
+
}
|
|
155
|
+
namespace NO_DCL {
|
|
156
|
+
const code_8: string;
|
|
157
|
+
export { code_8 as code };
|
|
158
|
+
import message_8 = UIStrings.badTraceRecording;
|
|
159
|
+
export { message_8 as message };
|
|
160
|
+
const lhrRuntimeError_8: boolean;
|
|
161
|
+
export { lhrRuntimeError_8 as lhrRuntimeError };
|
|
162
|
+
}
|
|
163
|
+
namespace NO_FMP {
|
|
164
|
+
const code_9: string;
|
|
165
|
+
export { code_9 as code };
|
|
166
|
+
import message_9 = UIStrings.badTraceRecording;
|
|
167
|
+
export { message_9 as message };
|
|
168
|
+
}
|
|
169
|
+
namespace NO_LCP {
|
|
170
|
+
const code_10: string;
|
|
171
|
+
export { code_10 as code };
|
|
172
|
+
import message_10 = UIStrings.noLcp;
|
|
173
|
+
export { message_10 as message };
|
|
174
|
+
}
|
|
175
|
+
namespace NO_LCP_ALL_FRAMES {
|
|
176
|
+
const code_11: string;
|
|
177
|
+
export { code_11 as code };
|
|
178
|
+
import message_11 = UIStrings.noLcp;
|
|
179
|
+
export { message_11 as message };
|
|
180
|
+
}
|
|
181
|
+
namespace UNSUPPORTED_OLD_CHROME {
|
|
182
|
+
const code_12: string;
|
|
183
|
+
export { code_12 as code };
|
|
184
|
+
import message_12 = UIStrings.oldChromeDoesNotSupportFeature;
|
|
185
|
+
export { message_12 as message };
|
|
186
|
+
}
|
|
187
|
+
namespace NO_TTI_CPU_IDLE_PERIOD {
|
|
188
|
+
const code_13: string;
|
|
189
|
+
export { code_13 as code };
|
|
190
|
+
import message_13 = UIStrings.pageLoadTookTooLong;
|
|
191
|
+
export { message_13 as message };
|
|
192
|
+
}
|
|
193
|
+
namespace NO_TTI_NETWORK_IDLE_PERIOD {
|
|
194
|
+
const code_14: string;
|
|
195
|
+
export { code_14 as code };
|
|
196
|
+
import message_14 = UIStrings.pageLoadTookTooLong;
|
|
197
|
+
export { message_14 as message };
|
|
198
|
+
}
|
|
199
|
+
namespace NO_DOCUMENT_REQUEST {
|
|
200
|
+
const code_15: string;
|
|
201
|
+
export { code_15 as code };
|
|
202
|
+
import message_15 = UIStrings.pageLoadFailed;
|
|
203
|
+
export { message_15 as message };
|
|
204
|
+
const lhrRuntimeError_9: boolean;
|
|
205
|
+
export { lhrRuntimeError_9 as lhrRuntimeError };
|
|
206
|
+
}
|
|
207
|
+
namespace FAILED_DOCUMENT_REQUEST {
|
|
208
|
+
const code_16: string;
|
|
209
|
+
export { code_16 as code };
|
|
210
|
+
import message_16 = UIStrings.pageLoadFailedWithDetails;
|
|
211
|
+
export { message_16 as message };
|
|
212
|
+
const lhrRuntimeError_10: boolean;
|
|
213
|
+
export { lhrRuntimeError_10 as lhrRuntimeError };
|
|
214
|
+
}
|
|
215
|
+
namespace ERRORED_DOCUMENT_REQUEST {
|
|
216
|
+
const code_17: string;
|
|
217
|
+
export { code_17 as code };
|
|
218
|
+
import message_17 = UIStrings.pageLoadFailedWithStatusCode;
|
|
219
|
+
export { message_17 as message };
|
|
220
|
+
const lhrRuntimeError_11: boolean;
|
|
221
|
+
export { lhrRuntimeError_11 as lhrRuntimeError };
|
|
222
|
+
}
|
|
223
|
+
namespace INSECURE_DOCUMENT_REQUEST {
|
|
224
|
+
const code_18: string;
|
|
225
|
+
export { code_18 as code };
|
|
226
|
+
import message_18 = UIStrings.pageLoadFailedInsecure;
|
|
227
|
+
export { message_18 as message };
|
|
228
|
+
const lhrRuntimeError_12: boolean;
|
|
229
|
+
export { lhrRuntimeError_12 as lhrRuntimeError };
|
|
230
|
+
}
|
|
231
|
+
namespace CHROME_INTERSTITIAL_ERROR {
|
|
232
|
+
const code_19: string;
|
|
233
|
+
export { code_19 as code };
|
|
234
|
+
import message_19 = UIStrings.pageLoadFailedInterstitial;
|
|
235
|
+
export { message_19 as message };
|
|
236
|
+
const lhrRuntimeError_13: boolean;
|
|
237
|
+
export { lhrRuntimeError_13 as lhrRuntimeError };
|
|
238
|
+
}
|
|
239
|
+
namespace PAGE_HUNG {
|
|
240
|
+
const code_20: string;
|
|
241
|
+
export { code_20 as code };
|
|
242
|
+
import message_20 = UIStrings.pageLoadFailedHung;
|
|
243
|
+
export { message_20 as message };
|
|
244
|
+
const lhrRuntimeError_14: boolean;
|
|
245
|
+
export { lhrRuntimeError_14 as lhrRuntimeError };
|
|
246
|
+
}
|
|
247
|
+
namespace NOT_HTML {
|
|
248
|
+
const code_21: string;
|
|
249
|
+
export { code_21 as code };
|
|
250
|
+
import message_21 = UIStrings.notHtml;
|
|
251
|
+
export { message_21 as message };
|
|
252
|
+
const lhrRuntimeError_15: boolean;
|
|
253
|
+
export { lhrRuntimeError_15 as lhrRuntimeError };
|
|
254
|
+
}
|
|
255
|
+
namespace TRACING_ALREADY_STARTED {
|
|
256
|
+
const code_22: string;
|
|
257
|
+
export { code_22 as code };
|
|
258
|
+
import message_22 = UIStrings.internalChromeError;
|
|
259
|
+
export { message_22 as message };
|
|
260
|
+
export const pattern: RegExp;
|
|
261
|
+
const lhrRuntimeError_16: boolean;
|
|
262
|
+
export { lhrRuntimeError_16 as lhrRuntimeError };
|
|
263
|
+
}
|
|
264
|
+
namespace PARSING_PROBLEM {
|
|
265
|
+
const code_23: string;
|
|
266
|
+
export { code_23 as code };
|
|
267
|
+
import message_23 = UIStrings.internalChromeError;
|
|
268
|
+
export { message_23 as message };
|
|
269
|
+
const pattern_1: RegExp;
|
|
270
|
+
export { pattern_1 as pattern };
|
|
271
|
+
const lhrRuntimeError_17: boolean;
|
|
272
|
+
export { lhrRuntimeError_17 as lhrRuntimeError };
|
|
273
|
+
}
|
|
274
|
+
namespace READ_FAILED {
|
|
275
|
+
const code_24: string;
|
|
276
|
+
export { code_24 as code };
|
|
277
|
+
import message_24 = UIStrings.internalChromeError;
|
|
278
|
+
export { message_24 as message };
|
|
279
|
+
const pattern_2: RegExp;
|
|
280
|
+
export { pattern_2 as pattern };
|
|
281
|
+
const lhrRuntimeError_18: boolean;
|
|
282
|
+
export { lhrRuntimeError_18 as lhrRuntimeError };
|
|
283
|
+
}
|
|
284
|
+
namespace INVALID_URL {
|
|
285
|
+
const code_25: string;
|
|
286
|
+
export { code_25 as code };
|
|
287
|
+
import message_25 = UIStrings.urlInvalid;
|
|
288
|
+
export { message_25 as message };
|
|
289
|
+
}
|
|
290
|
+
namespace PROTOCOL_TIMEOUT {
|
|
291
|
+
const code_26: string;
|
|
292
|
+
export { code_26 as code };
|
|
293
|
+
import message_26 = UIStrings.protocolTimeout;
|
|
294
|
+
export { message_26 as message };
|
|
295
|
+
const lhrRuntimeError_19: boolean;
|
|
296
|
+
export { lhrRuntimeError_19 as lhrRuntimeError };
|
|
297
|
+
}
|
|
298
|
+
namespace DNS_FAILURE {
|
|
299
|
+
const code_27: string;
|
|
300
|
+
export { code_27 as code };
|
|
301
|
+
import message_27 = UIStrings.dnsFailure;
|
|
302
|
+
export { message_27 as message };
|
|
303
|
+
const lhrRuntimeError_20: boolean;
|
|
304
|
+
export { lhrRuntimeError_20 as lhrRuntimeError };
|
|
305
|
+
}
|
|
306
|
+
namespace CRI_TIMEOUT {
|
|
307
|
+
const code_28: string;
|
|
308
|
+
export { code_28 as code };
|
|
309
|
+
import message_28 = UIStrings.criTimeout;
|
|
310
|
+
export { message_28 as message };
|
|
311
|
+
const lhrRuntimeError_21: boolean;
|
|
312
|
+
export { lhrRuntimeError_21 as lhrRuntimeError };
|
|
313
|
+
}
|
|
314
|
+
namespace MISSING_REQUIRED_ARTIFACT {
|
|
315
|
+
const code_29: string;
|
|
316
|
+
export { code_29 as code };
|
|
317
|
+
import message_29 = UIStrings.missingRequiredArtifact;
|
|
318
|
+
export { message_29 as message };
|
|
319
|
+
}
|
|
320
|
+
namespace ERRORED_REQUIRED_ARTIFACT {
|
|
321
|
+
const code_30: string;
|
|
322
|
+
export { code_30 as code };
|
|
323
|
+
import message_30 = UIStrings.erroredRequiredArtifact;
|
|
324
|
+
export { message_30 as message };
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
export {};
|
|
328
|
+
//# sourceMappingURL=lh-error.d.ts.map
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Parse a manifest from the given inputs.
|
|
3
|
+
* @param {string} string Manifest JSON string.
|
|
4
|
+
* @param {string} manifestUrl URL of manifest file.
|
|
5
|
+
* @param {string} documentUrl URL of document containing manifest link element.
|
|
6
|
+
*/
|
|
7
|
+
export function parseManifest(string: string, manifestUrl: string, documentUrl: string): {
|
|
8
|
+
raw: string;
|
|
9
|
+
value: undefined;
|
|
10
|
+
warning: string;
|
|
11
|
+
url: string;
|
|
12
|
+
} | {
|
|
13
|
+
raw: string;
|
|
14
|
+
value: {
|
|
15
|
+
name: {
|
|
16
|
+
raw: any;
|
|
17
|
+
value: string | undefined;
|
|
18
|
+
warning: string | undefined;
|
|
19
|
+
};
|
|
20
|
+
short_name: {
|
|
21
|
+
raw: any;
|
|
22
|
+
value: string | undefined;
|
|
23
|
+
warning: string | undefined;
|
|
24
|
+
};
|
|
25
|
+
start_url: {
|
|
26
|
+
raw: any;
|
|
27
|
+
value: string;
|
|
28
|
+
warning?: string | undefined;
|
|
29
|
+
};
|
|
30
|
+
display: {
|
|
31
|
+
raw: any;
|
|
32
|
+
value: string;
|
|
33
|
+
warning: string | undefined;
|
|
34
|
+
};
|
|
35
|
+
orientation: {
|
|
36
|
+
raw: any;
|
|
37
|
+
value: string | undefined;
|
|
38
|
+
warning: string | undefined;
|
|
39
|
+
};
|
|
40
|
+
icons: {
|
|
41
|
+
raw: any;
|
|
42
|
+
/** @type {Array<ReturnType<typeof parseIcon>>} */
|
|
43
|
+
value: Array<ReturnType<typeof parseIcon>>;
|
|
44
|
+
warning: undefined;
|
|
45
|
+
} | {
|
|
46
|
+
raw: any;
|
|
47
|
+
/** @type {Array<ReturnType<typeof parseIcon>>} */
|
|
48
|
+
value: Array<ReturnType<typeof parseIcon>>;
|
|
49
|
+
warning: string;
|
|
50
|
+
} | {
|
|
51
|
+
raw: any[];
|
|
52
|
+
value: {
|
|
53
|
+
raw: any;
|
|
54
|
+
value: {
|
|
55
|
+
src: {
|
|
56
|
+
raw: any;
|
|
57
|
+
value: string | undefined;
|
|
58
|
+
warning: string | undefined;
|
|
59
|
+
};
|
|
60
|
+
type: {
|
|
61
|
+
raw: any;
|
|
62
|
+
value: string | undefined;
|
|
63
|
+
warning: string | undefined;
|
|
64
|
+
};
|
|
65
|
+
density: {
|
|
66
|
+
raw: any;
|
|
67
|
+
value: number;
|
|
68
|
+
/** @type {string|undefined} */
|
|
69
|
+
warning: string | undefined;
|
|
70
|
+
};
|
|
71
|
+
sizes: {
|
|
72
|
+
raw: any;
|
|
73
|
+
value: string[] | undefined;
|
|
74
|
+
warning: undefined;
|
|
75
|
+
} | {
|
|
76
|
+
value: undefined;
|
|
77
|
+
raw: any;
|
|
78
|
+
warning: string | undefined;
|
|
79
|
+
};
|
|
80
|
+
purpose: {
|
|
81
|
+
raw: any;
|
|
82
|
+
value: string[];
|
|
83
|
+
/** @type {string|undefined} */
|
|
84
|
+
warning: string | undefined;
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
warning: undefined;
|
|
88
|
+
}[];
|
|
89
|
+
warning: string | undefined;
|
|
90
|
+
};
|
|
91
|
+
related_applications: {
|
|
92
|
+
raw: any;
|
|
93
|
+
value: undefined;
|
|
94
|
+
warning: undefined;
|
|
95
|
+
} | {
|
|
96
|
+
raw: any;
|
|
97
|
+
value: undefined;
|
|
98
|
+
warning: string;
|
|
99
|
+
} | {
|
|
100
|
+
raw: any[];
|
|
101
|
+
value: {
|
|
102
|
+
raw: any;
|
|
103
|
+
value: {
|
|
104
|
+
platform: {
|
|
105
|
+
raw: any;
|
|
106
|
+
value: string | undefined;
|
|
107
|
+
warning: string | undefined;
|
|
108
|
+
};
|
|
109
|
+
id: {
|
|
110
|
+
raw: any;
|
|
111
|
+
value: string | undefined;
|
|
112
|
+
warning: string | undefined;
|
|
113
|
+
};
|
|
114
|
+
url: {
|
|
115
|
+
raw: any;
|
|
116
|
+
value: string | undefined;
|
|
117
|
+
warning: string | undefined;
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
warning: undefined;
|
|
121
|
+
}[];
|
|
122
|
+
warning: undefined;
|
|
123
|
+
};
|
|
124
|
+
prefer_related_applications: {
|
|
125
|
+
raw: any;
|
|
126
|
+
value: boolean | undefined;
|
|
127
|
+
warning: string | undefined;
|
|
128
|
+
};
|
|
129
|
+
theme_color: {
|
|
130
|
+
raw: any;
|
|
131
|
+
value: string | undefined;
|
|
132
|
+
warning: string | undefined;
|
|
133
|
+
};
|
|
134
|
+
background_color: {
|
|
135
|
+
raw: any;
|
|
136
|
+
value: string | undefined;
|
|
137
|
+
warning: string | undefined;
|
|
138
|
+
};
|
|
139
|
+
};
|
|
140
|
+
warning: string | undefined;
|
|
141
|
+
url: string;
|
|
142
|
+
};
|
|
143
|
+
/**
|
|
144
|
+
* @see https://www.w3.org/TR/2016/WD-appmanifest-20160825/#src-member
|
|
145
|
+
* @param {*} raw
|
|
146
|
+
* @param {string} manifestUrl
|
|
147
|
+
*/
|
|
148
|
+
declare function parseIcon(raw: any, manifestUrl: string): {
|
|
149
|
+
raw: any;
|
|
150
|
+
value: {
|
|
151
|
+
src: {
|
|
152
|
+
raw: any;
|
|
153
|
+
value: string | undefined;
|
|
154
|
+
warning: string | undefined;
|
|
155
|
+
};
|
|
156
|
+
type: {
|
|
157
|
+
raw: any;
|
|
158
|
+
value: string | undefined;
|
|
159
|
+
warning: string | undefined;
|
|
160
|
+
};
|
|
161
|
+
density: {
|
|
162
|
+
raw: any;
|
|
163
|
+
value: number;
|
|
164
|
+
/** @type {string|undefined} */
|
|
165
|
+
warning: string | undefined;
|
|
166
|
+
};
|
|
167
|
+
sizes: {
|
|
168
|
+
raw: any;
|
|
169
|
+
value: string[] | undefined;
|
|
170
|
+
warning: undefined;
|
|
171
|
+
} | {
|
|
172
|
+
value: undefined;
|
|
173
|
+
raw: any;
|
|
174
|
+
warning: string | undefined;
|
|
175
|
+
};
|
|
176
|
+
purpose: {
|
|
177
|
+
raw: any;
|
|
178
|
+
value: string[];
|
|
179
|
+
/** @type {string|undefined} */
|
|
180
|
+
warning: string | undefined;
|
|
181
|
+
};
|
|
182
|
+
};
|
|
183
|
+
warning: undefined;
|
|
184
|
+
};
|
|
185
|
+
export {};
|
|
186
|
+
//# sourceMappingURL=manifest-parser.d.ts.map
|