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,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright 2021 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 {any[]} array
|
|
8
|
+
* @param {any} needle
|
|
9
|
+
* @param {any} comparator
|
|
10
|
+
*/
|
|
11
|
+
declare function lowerBound(array: any[], needle: any, comparator: any, left: any, right: any): any;
|
|
12
|
+
/**
|
|
13
|
+
* @param {any[]} array
|
|
14
|
+
* @param {any} needle
|
|
15
|
+
* @param {any} comparator
|
|
16
|
+
*/
|
|
17
|
+
declare function upperBound(array: any[], needle: any, comparator: any, left: any, right: any): any;
|
|
18
|
+
export namespace ArrayUtilities {
|
|
19
|
+
export { lowerBound };
|
|
20
|
+
export { upperBound };
|
|
21
|
+
}
|
|
22
|
+
export namespace DevToolsPath {
|
|
23
|
+
const EmptyUrlString: string;
|
|
24
|
+
}
|
|
25
|
+
export {};
|
|
26
|
+
//# sourceMappingURL=Platform.d.ts.map
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export const __esModule: boolean;
|
|
2
|
+
/**
|
|
3
|
+
* http://tools.ietf.org/html/rfc3986#section-5.2.4
|
|
4
|
+
*/
|
|
5
|
+
export function normalizePath(path: any): any;
|
|
6
|
+
export class ParsedURL {
|
|
7
|
+
static concatenate(devToolsPath: any, ...appendage: any[]): any;
|
|
8
|
+
static beginsWithWindowsDriveLetter(url: any): boolean;
|
|
9
|
+
static beginsWithScheme(url: any): boolean;
|
|
10
|
+
static isRelativeURL(url: any): boolean;
|
|
11
|
+
static urlRegexInstance: null;
|
|
12
|
+
constructor(url: any);
|
|
13
|
+
isValid: boolean;
|
|
14
|
+
url: any;
|
|
15
|
+
scheme: any;
|
|
16
|
+
user: any;
|
|
17
|
+
host: any;
|
|
18
|
+
port: any;
|
|
19
|
+
path: any;
|
|
20
|
+
queryParams: any;
|
|
21
|
+
fragment: any;
|
|
22
|
+
folderPathComponents: any;
|
|
23
|
+
lastPathComponent: any;
|
|
24
|
+
blobInnerScheme: any;
|
|
25
|
+
get displayName(): any;
|
|
26
|
+
#private;
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=ParsedURL.d.ts.map
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
export = TextSourceMap;
|
|
2
|
+
declare class TextSourceMap {
|
|
3
|
+
/**
|
|
4
|
+
* Implements Source Map V3 model. See https://github.com/google/closure-compiler/wiki/Source-Maps
|
|
5
|
+
* for format description.
|
|
6
|
+
*/
|
|
7
|
+
constructor(compiledURL: any, sourceMappingURL: any, payload: any, initiator: any);
|
|
8
|
+
compiledURL(): any;
|
|
9
|
+
url(): any;
|
|
10
|
+
sourceURLs(): any[];
|
|
11
|
+
embeddedContentByURL(sourceURL: any): any;
|
|
12
|
+
findEntry(lineNumber: any, columnNumber: any): {
|
|
13
|
+
lineNumber: number;
|
|
14
|
+
columnNumber: number;
|
|
15
|
+
sourceURL?: string | undefined;
|
|
16
|
+
sourceLineNumber: number;
|
|
17
|
+
sourceColumnNumber: number;
|
|
18
|
+
name?: string | undefined;
|
|
19
|
+
lastColumnNumber?: number | undefined;
|
|
20
|
+
} | null;
|
|
21
|
+
findEntryRanges(lineNumber: any, columnNumber: any): {
|
|
22
|
+
range: any;
|
|
23
|
+
sourceRange: any;
|
|
24
|
+
sourceURL: string;
|
|
25
|
+
} | null;
|
|
26
|
+
sourceLineMapping(sourceURL: any, lineNumber: any, columnNumber: any): {
|
|
27
|
+
lineNumber: number;
|
|
28
|
+
columnNumber: number;
|
|
29
|
+
sourceURL?: string | undefined;
|
|
30
|
+
sourceLineNumber: number;
|
|
31
|
+
sourceColumnNumber: number;
|
|
32
|
+
name?: string | undefined;
|
|
33
|
+
lastColumnNumber?: number | undefined;
|
|
34
|
+
} | null;
|
|
35
|
+
findReverseIndices(sourceURL: any, lineNumber: any, columnNumber: any): any;
|
|
36
|
+
findReverseEntries(sourceURL: any, lineNumber: any, columnNumber: any): any;
|
|
37
|
+
findReverseRanges(sourceURL: any, lineNumber: any, columnNumber: any): any[];
|
|
38
|
+
/** @return {Array<{lineNumber: number, columnNumber: number, sourceURL?: string, sourceLineNumber: number, sourceColumnNumber: number, name?: string, lastColumnNumber?: number}>} */
|
|
39
|
+
mappings(): Array<{
|
|
40
|
+
lineNumber: number;
|
|
41
|
+
columnNumber: number;
|
|
42
|
+
sourceURL?: string;
|
|
43
|
+
sourceLineNumber: number;
|
|
44
|
+
sourceColumnNumber: number;
|
|
45
|
+
name?: string;
|
|
46
|
+
lastColumnNumber?: number;
|
|
47
|
+
}>;
|
|
48
|
+
reversedMappings(sourceURL: any): any;
|
|
49
|
+
eachSection(callback: any): void;
|
|
50
|
+
parseSources(sourceMap: any): void;
|
|
51
|
+
parseMap(map: any, lineNumber: any, columnNumber: any): void;
|
|
52
|
+
isSeparator(char: any): boolean;
|
|
53
|
+
decodeVLQ(stringCharIterator: any): number;
|
|
54
|
+
reverseMapTextRange(url: any, textRange: any): any;
|
|
55
|
+
mapsOrigin(): boolean;
|
|
56
|
+
hasIgnoreListHint(sourceURL: any): any;
|
|
57
|
+
/**
|
|
58
|
+
* Returns a list of ranges in the generated script for original sources that
|
|
59
|
+
* match a predicate. Each range is a [begin, end) pair, meaning that code at
|
|
60
|
+
* the beginning location, up to but not including the end location, matches
|
|
61
|
+
* the predicate.
|
|
62
|
+
*/
|
|
63
|
+
findRanges(predicate: any, options: any): any[];
|
|
64
|
+
#private;
|
|
65
|
+
}
|
|
66
|
+
declare namespace TextSourceMap {
|
|
67
|
+
export { __esModule, SourceMapV3, Section, Offset, SourceMapEntry, TextSourceMap };
|
|
68
|
+
}
|
|
69
|
+
declare const __esModule: boolean;
|
|
70
|
+
declare class SourceMapV3 {
|
|
71
|
+
version: any;
|
|
72
|
+
file: any;
|
|
73
|
+
sources: any;
|
|
74
|
+
sections: any;
|
|
75
|
+
mappings: any;
|
|
76
|
+
sourceRoot: any;
|
|
77
|
+
names: any;
|
|
78
|
+
sourcesContent: any;
|
|
79
|
+
x_google_ignoreList: any;
|
|
80
|
+
}
|
|
81
|
+
declare class Section {
|
|
82
|
+
map: any;
|
|
83
|
+
offset: any;
|
|
84
|
+
url: any;
|
|
85
|
+
}
|
|
86
|
+
declare class Offset {
|
|
87
|
+
line: any;
|
|
88
|
+
column: any;
|
|
89
|
+
}
|
|
90
|
+
declare class SourceMapEntry {
|
|
91
|
+
static compare(entry1: any, entry2: any): number;
|
|
92
|
+
constructor(lineNumber: any, columnNumber: any, sourceURL: any, sourceLineNumber: any, sourceColumnNumber: any, name: any);
|
|
93
|
+
lineNumber: any;
|
|
94
|
+
columnNumber: any;
|
|
95
|
+
sourceURL: any;
|
|
96
|
+
sourceLineNumber: any;
|
|
97
|
+
sourceColumnNumber: any;
|
|
98
|
+
name: any;
|
|
99
|
+
}
|
|
100
|
+
//# sourceMappingURL=SourceMap.d.ts.map
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export type Finding = import('csp_evaluator/finding').Finding;
|
|
2
|
+
/**
|
|
3
|
+
* @param {Finding} finding
|
|
4
|
+
* @return {LH.IcuMessage|string}
|
|
5
|
+
*/
|
|
6
|
+
export function getTranslatedDescription(finding: Finding): LH.IcuMessage | string;
|
|
7
|
+
/**
|
|
8
|
+
* @param {string[]} rawCsps
|
|
9
|
+
* @return {{bypasses: Finding[], warnings: Finding[], syntax: Finding[][]}}
|
|
10
|
+
*/
|
|
11
|
+
export function evaluateRawCspsForXss(rawCsps: string[]): {
|
|
12
|
+
bypasses: Finding[];
|
|
13
|
+
warnings: Finding[];
|
|
14
|
+
syntax: Finding[][];
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* @param {string} rawCsp
|
|
18
|
+
*/
|
|
19
|
+
export function parseCsp(rawCsp: string): import("csp_evaluator/dist/csp.js").Csp;
|
|
20
|
+
export namespace UIStrings {
|
|
21
|
+
const missingBaseUri: string;
|
|
22
|
+
const missingScriptSrc: string;
|
|
23
|
+
const missingObjectSrc: string;
|
|
24
|
+
const strictDynamic: string;
|
|
25
|
+
const unsafeInline: string;
|
|
26
|
+
const unsafeInlineFallback: string;
|
|
27
|
+
const allowlistFallback: string;
|
|
28
|
+
const reportToOnly: string;
|
|
29
|
+
const reportingDestinationMissing: string;
|
|
30
|
+
const nonceLength: string;
|
|
31
|
+
const nonceCharset: string;
|
|
32
|
+
const missingSemicolon: string;
|
|
33
|
+
const unknownDirective: string;
|
|
34
|
+
const unknownKeyword: string;
|
|
35
|
+
const deprecatedReflectedXSS: string;
|
|
36
|
+
const deprecatedReferrer: string;
|
|
37
|
+
const deprecatedDisownOpener: string;
|
|
38
|
+
const plainWildcards: string;
|
|
39
|
+
const plainUrlScheme: string;
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=csp-evaluator.d.ts.map
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A union of all types derived from BaseNode, allowing type check discrimination
|
|
3
|
+
* based on `node.type`. If a new node type is created, it should be added here.
|
|
4
|
+
*/
|
|
5
|
+
export type Node = import('./cpu-node.js').CPUNode | import('./network-node.js').NetworkNode;
|
|
6
|
+
/**
|
|
7
|
+
* @license Copyright 2017 The Lighthouse Authors. All Rights Reserved.
|
|
8
|
+
* 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
|
|
9
|
+
* 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.
|
|
10
|
+
*/
|
|
11
|
+
/**
|
|
12
|
+
* A union of all types derived from BaseNode, allowing type check discrimination
|
|
13
|
+
* based on `node.type`. If a new node type is created, it should be added here.
|
|
14
|
+
* @typedef {import('./cpu-node.js').CPUNode | import('./network-node.js').NetworkNode} Node
|
|
15
|
+
*/
|
|
16
|
+
/**
|
|
17
|
+
* @fileoverview This class encapsulates logic for handling resources and tasks used to model the
|
|
18
|
+
* execution dependency graph of the page. A node has a unique identifier and can depend on other
|
|
19
|
+
* nodes/be depended on. The construction of the graph maintains some important invariants that are
|
|
20
|
+
* inherent to the model:
|
|
21
|
+
*
|
|
22
|
+
* 1. The graph is a DAG, there are no cycles.
|
|
23
|
+
* 2. There is always a root node upon which all other nodes eventually depend.
|
|
24
|
+
*
|
|
25
|
+
* This allows particular optimizations in this class so that we do no need to check for cycles as
|
|
26
|
+
* these methods are called and we can always start traversal at the root node.
|
|
27
|
+
*/
|
|
28
|
+
export class BaseNode {
|
|
29
|
+
/**
|
|
30
|
+
* Returns whether the given node has a cycle in its dependent graph by performing a DFS.
|
|
31
|
+
* @param {Node} node
|
|
32
|
+
* @param {'dependents'|'dependencies'|'both'} [direction]
|
|
33
|
+
* @return {boolean}
|
|
34
|
+
*/
|
|
35
|
+
static hasCycle(node: Node, direction?: "dependents" | "dependencies" | "both" | undefined): boolean;
|
|
36
|
+
/**
|
|
37
|
+
* @param {string} id
|
|
38
|
+
*/
|
|
39
|
+
constructor(id: string);
|
|
40
|
+
_id: string;
|
|
41
|
+
_isMainDocument: boolean;
|
|
42
|
+
/** @type {Node[]} */
|
|
43
|
+
_dependents: Node[];
|
|
44
|
+
/** @type {Node[]} */
|
|
45
|
+
_dependencies: Node[];
|
|
46
|
+
/**
|
|
47
|
+
* @return {string}
|
|
48
|
+
*/
|
|
49
|
+
get id(): string;
|
|
50
|
+
/**
|
|
51
|
+
* @return {typeof BaseNode.TYPES[keyof typeof BaseNode.TYPES]}
|
|
52
|
+
*/
|
|
53
|
+
get type(): "network" | "cpu";
|
|
54
|
+
/**
|
|
55
|
+
* In microseconds
|
|
56
|
+
* @return {number}
|
|
57
|
+
*/
|
|
58
|
+
get startTime(): number;
|
|
59
|
+
/**
|
|
60
|
+
* In microseconds
|
|
61
|
+
* @return {number}
|
|
62
|
+
*/
|
|
63
|
+
get endTime(): number;
|
|
64
|
+
/**
|
|
65
|
+
* @param {boolean} value
|
|
66
|
+
*/
|
|
67
|
+
setIsMainDocument(value: boolean): void;
|
|
68
|
+
/**
|
|
69
|
+
* @return {boolean}
|
|
70
|
+
*/
|
|
71
|
+
isMainDocument(): boolean;
|
|
72
|
+
/**
|
|
73
|
+
* @return {Node[]}
|
|
74
|
+
*/
|
|
75
|
+
getDependents(): Node[];
|
|
76
|
+
/**
|
|
77
|
+
* @return {number}
|
|
78
|
+
*/
|
|
79
|
+
getNumberOfDependents(): number;
|
|
80
|
+
/**
|
|
81
|
+
* @return {Node[]}
|
|
82
|
+
*/
|
|
83
|
+
getDependencies(): Node[];
|
|
84
|
+
/**
|
|
85
|
+
* @return {number}
|
|
86
|
+
*/
|
|
87
|
+
getNumberOfDependencies(): number;
|
|
88
|
+
/**
|
|
89
|
+
* @return {Node}
|
|
90
|
+
*/
|
|
91
|
+
getRootNode(): Node;
|
|
92
|
+
/**
|
|
93
|
+
* @param {Node} node
|
|
94
|
+
*/
|
|
95
|
+
addDependent(node: Node): void;
|
|
96
|
+
/**
|
|
97
|
+
* @param {Node} node
|
|
98
|
+
*/
|
|
99
|
+
addDependency(node: Node): void;
|
|
100
|
+
/**
|
|
101
|
+
* @param {Node} node
|
|
102
|
+
*/
|
|
103
|
+
removeDependent(node: Node): void;
|
|
104
|
+
/**
|
|
105
|
+
* @param {Node} node
|
|
106
|
+
*/
|
|
107
|
+
removeDependency(node: Node): void;
|
|
108
|
+
removeAllDependencies(): void;
|
|
109
|
+
/**
|
|
110
|
+
* Computes whether the given node is anywhere in the dependency graph of this node.
|
|
111
|
+
* While this method can prevent cycles, it walks the graph and should be used sparingly.
|
|
112
|
+
* Nodes are always considered dependent on themselves for the purposes of cycle detection.
|
|
113
|
+
* @param {BaseNode} node
|
|
114
|
+
* @return {boolean}
|
|
115
|
+
*/
|
|
116
|
+
isDependentOn(node: BaseNode): boolean;
|
|
117
|
+
/**
|
|
118
|
+
* Clones the node's information without adding any dependencies/dependents.
|
|
119
|
+
* @return {Node}
|
|
120
|
+
*/
|
|
121
|
+
cloneWithoutRelationships(): Node;
|
|
122
|
+
/**
|
|
123
|
+
* Clones the entire graph connected to this node filtered by the optional predicate. If a node is
|
|
124
|
+
* included by the predicate, all nodes along the paths between the node and the root will be included. If the
|
|
125
|
+
* node this was called on is not included in the resulting filtered graph, the method will throw.
|
|
126
|
+
* @param {function(Node):boolean} [predicate]
|
|
127
|
+
* @return {Node}
|
|
128
|
+
*/
|
|
129
|
+
cloneWithRelationships(predicate?: ((arg0: Node) => boolean) | undefined): Node;
|
|
130
|
+
/**
|
|
131
|
+
* Traverses all connected nodes in BFS order, calling `callback` exactly once
|
|
132
|
+
* on each. `traversalPath` is the shortest (though not necessarily unique)
|
|
133
|
+
* path from `node` to the root of the iteration.
|
|
134
|
+
*
|
|
135
|
+
* The `getNextNodes` function takes a visited node and returns which nodes to
|
|
136
|
+
* visit next. It defaults to returning the node's dependents.
|
|
137
|
+
* @param {(node: Node, traversalPath: Node[]) => void} callback
|
|
138
|
+
* @param {function(Node): Node[]} [getNextNodes]
|
|
139
|
+
*/
|
|
140
|
+
traverse(callback: (node: Node, traversalPath: Node[]) => void, getNextNodes?: ((arg0: Node) => Node[]) | undefined): void;
|
|
141
|
+
/**
|
|
142
|
+
* @see BaseNode.traverse
|
|
143
|
+
* @param {function(Node): Node[]} [getNextNodes]
|
|
144
|
+
*/
|
|
145
|
+
traverseGenerator(getNextNodes?: ((arg0: Node) => Node[]) | undefined): Generator<{
|
|
146
|
+
node: Node;
|
|
147
|
+
traversalPath: Node[];
|
|
148
|
+
}, void, unknown>;
|
|
149
|
+
/**
|
|
150
|
+
* @param {Node} node
|
|
151
|
+
* @return {boolean}
|
|
152
|
+
*/
|
|
153
|
+
canDependOn(node: Node): boolean;
|
|
154
|
+
}
|
|
155
|
+
export namespace BaseNode {
|
|
156
|
+
namespace TYPES {
|
|
157
|
+
const NETWORK: 'network';
|
|
158
|
+
const CPU: 'cpu';
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
//# sourceMappingURL=base-node.d.ts.map
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export class CPUNode extends BaseNode {
|
|
2
|
+
/**
|
|
3
|
+
* @param {LH.TraceEvent} parentEvent
|
|
4
|
+
* @param {LH.TraceEvent[]=} childEvents
|
|
5
|
+
*/
|
|
6
|
+
constructor(parentEvent: LH.TraceEvent, childEvents?: LH.TraceEvent[] | undefined);
|
|
7
|
+
_event: LH.TraceEvent;
|
|
8
|
+
_childEvents: LH.TraceEvent[];
|
|
9
|
+
get type(): "cpu";
|
|
10
|
+
/**
|
|
11
|
+
* @return {LH.TraceEvent}
|
|
12
|
+
*/
|
|
13
|
+
get event(): LH.TraceEvent;
|
|
14
|
+
/**
|
|
15
|
+
* @return {LH.TraceEvent[]}
|
|
16
|
+
*/
|
|
17
|
+
get childEvents(): LH.TraceEvent[];
|
|
18
|
+
/**
|
|
19
|
+
* Returns true if this node contains a Layout task.
|
|
20
|
+
* @return {boolean}
|
|
21
|
+
*/
|
|
22
|
+
didPerformLayout(): boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Returns the script URLs that had their EvaluateScript events occur in this task.
|
|
25
|
+
*/
|
|
26
|
+
getEvaluateScriptURLs(): Set<string>;
|
|
27
|
+
/**
|
|
28
|
+
* @return {CPUNode}
|
|
29
|
+
*/
|
|
30
|
+
cloneWithoutRelationships(): CPUNode;
|
|
31
|
+
}
|
|
32
|
+
import { BaseNode } from "./base-node.js";
|
|
33
|
+
import * as LH from "../../../types/lh.js";
|
|
34
|
+
//# sourceMappingURL=cpu-node.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 {BaseNode} from './base-node.js';
|
|
8
9
|
|
|
9
10
|
class CPUNode extends BaseNode {
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export class NetworkNode extends BaseNode {
|
|
2
|
+
/**
|
|
3
|
+
* @param {LH.Artifacts.NetworkRequest} networkRecord
|
|
4
|
+
*/
|
|
5
|
+
constructor(networkRecord: LH.Artifacts.NetworkRequest);
|
|
6
|
+
/** @private */
|
|
7
|
+
private _record;
|
|
8
|
+
get type(): "network";
|
|
9
|
+
/**
|
|
10
|
+
* @return {LH.Artifacts.NetworkRequest}
|
|
11
|
+
*/
|
|
12
|
+
get record(): NetworkRequest;
|
|
13
|
+
/**
|
|
14
|
+
* @return {string}
|
|
15
|
+
*/
|
|
16
|
+
get initiatorType(): string;
|
|
17
|
+
/**
|
|
18
|
+
* @return {boolean}
|
|
19
|
+
*/
|
|
20
|
+
get fromDiskCache(): boolean;
|
|
21
|
+
/**
|
|
22
|
+
* @return {boolean}
|
|
23
|
+
*/
|
|
24
|
+
get isNonNetworkProtocol(): boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Returns whether this network record can be downloaded without a TCP connection.
|
|
27
|
+
* During simulation we treat data coming in over a network connection separately from on-device data.
|
|
28
|
+
* @return {boolean}
|
|
29
|
+
*/
|
|
30
|
+
get isConnectionless(): boolean;
|
|
31
|
+
/**
|
|
32
|
+
* @return {boolean}
|
|
33
|
+
*/
|
|
34
|
+
hasRenderBlockingPriority(): boolean;
|
|
35
|
+
/**
|
|
36
|
+
* @return {NetworkNode}
|
|
37
|
+
*/
|
|
38
|
+
cloneWithoutRelationships(): NetworkNode;
|
|
39
|
+
}
|
|
40
|
+
import { BaseNode } from "./base-node.js";
|
|
41
|
+
import { NetworkRequest } from "../network-request.js";
|
|
42
|
+
import * as LH from "../../../types/lh.js";
|
|
43
|
+
//# sourceMappingURL=network-node.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 {BaseNode} from './base-node.js';
|
|
8
9
|
import {NetworkRequest} from '../network-request.js';
|
|
9
10
|
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
export class ConnectionPool {
|
|
2
|
+
/**
|
|
3
|
+
* @param {LH.Artifacts.NetworkRequest[]} records
|
|
4
|
+
* @param {Required<LH.Gatherer.Simulation.Options>} options
|
|
5
|
+
*/
|
|
6
|
+
constructor(records: LH.Artifacts.NetworkRequest[], options: Required<LH.Gatherer.Simulation.Options>);
|
|
7
|
+
_options: Required<LH.Gatherer.Simulation.Options>;
|
|
8
|
+
_records: import("../../network-request.js").NetworkRequest[];
|
|
9
|
+
/** @type {Map<string, TcpConnection[]>} */
|
|
10
|
+
_connectionsByOrigin: Map<string, TcpConnection[]>;
|
|
11
|
+
/** @type {Map<LH.Artifacts.NetworkRequest, TcpConnection>} */
|
|
12
|
+
_connectionsByRecord: Map<LH.Artifacts.NetworkRequest, TcpConnection>;
|
|
13
|
+
_connectionsInUse: Set<any>;
|
|
14
|
+
_connectionReusedByRequestId: Map<string, boolean>;
|
|
15
|
+
/**
|
|
16
|
+
* @return {TcpConnection[]}
|
|
17
|
+
*/
|
|
18
|
+
connectionsInUse(): TcpConnection[];
|
|
19
|
+
_initializeConnections(): void;
|
|
20
|
+
/**
|
|
21
|
+
* @param {Array<TcpConnection>} connections
|
|
22
|
+
* @param {{ignoreConnectionReused?: boolean, observedConnectionWasReused: boolean}} options
|
|
23
|
+
*/
|
|
24
|
+
_findAvailableConnectionWithLargestCongestionWindow(connections: Array<TcpConnection>, options: {
|
|
25
|
+
ignoreConnectionReused?: boolean | undefined;
|
|
26
|
+
observedConnectionWasReused: boolean;
|
|
27
|
+
}): TcpConnection | null;
|
|
28
|
+
/**
|
|
29
|
+
* This method finds an available connection to the origin specified by the network record or null
|
|
30
|
+
* if no connection was available. If returned, connection will not be available for other network
|
|
31
|
+
* records until release is called.
|
|
32
|
+
*
|
|
33
|
+
* If ignoreConnectionReused is true, acquire will consider all connections not in use as available.
|
|
34
|
+
* Otherwise, only connections that have matching "warmth" are considered available.
|
|
35
|
+
*
|
|
36
|
+
* @param {LH.Artifacts.NetworkRequest} record
|
|
37
|
+
* @param {{ignoreConnectionReused?: boolean}} options
|
|
38
|
+
* @return {?TcpConnection}
|
|
39
|
+
*/
|
|
40
|
+
acquire(record: LH.Artifacts.NetworkRequest, options?: {
|
|
41
|
+
ignoreConnectionReused?: boolean;
|
|
42
|
+
}): TcpConnection | null;
|
|
43
|
+
/**
|
|
44
|
+
* Return the connection currently being used to fetch a record. If no connection
|
|
45
|
+
* currently being used for this record, an error will be thrown.
|
|
46
|
+
*
|
|
47
|
+
* @param {LH.Artifacts.NetworkRequest} record
|
|
48
|
+
* @return {TcpConnection}
|
|
49
|
+
*/
|
|
50
|
+
acquireActiveConnectionFromRecord(record: LH.Artifacts.NetworkRequest): TcpConnection;
|
|
51
|
+
/**
|
|
52
|
+
* @param {LH.Artifacts.NetworkRequest} record
|
|
53
|
+
*/
|
|
54
|
+
release(record: LH.Artifacts.NetworkRequest): void;
|
|
55
|
+
}
|
|
56
|
+
import * as LH from "../../../../types/lh.js";
|
|
57
|
+
import { TcpConnection } from "./tcp-connection.js";
|
|
58
|
+
//# sourceMappingURL=connection-pool.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 {NetworkAnalyzer} from './network-analyzer.js';
|
|
8
9
|
import {TcpConnection} from './tcp-connection.js';
|
|
9
10
|
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export class DNSCache {
|
|
2
|
+
/**
|
|
3
|
+
* @param {{rtt: number}} options
|
|
4
|
+
*/
|
|
5
|
+
constructor({ rtt }: {
|
|
6
|
+
rtt: number;
|
|
7
|
+
});
|
|
8
|
+
_rtt: number;
|
|
9
|
+
/** @type {Map<string, {resolvedAt: number}>} */
|
|
10
|
+
_resolvedDomainNames: Map<string, {
|
|
11
|
+
resolvedAt: number;
|
|
12
|
+
}>;
|
|
13
|
+
/**
|
|
14
|
+
* @param {LH.Artifacts.NetworkRequest} request
|
|
15
|
+
* @param {{requestedAt: number, shouldUpdateCache: boolean}=} options
|
|
16
|
+
* @return {number}
|
|
17
|
+
*/
|
|
18
|
+
getTimeUntilResolution(request: LH.Artifacts.NetworkRequest, options?: {
|
|
19
|
+
requestedAt: number;
|
|
20
|
+
shouldUpdateCache: boolean;
|
|
21
|
+
} | undefined): number;
|
|
22
|
+
/**
|
|
23
|
+
* @param {LH.Artifacts.NetworkRequest} request
|
|
24
|
+
* @param {number} resolvedAt
|
|
25
|
+
*/
|
|
26
|
+
_updateCacheResolvedAtIfNeeded(request: LH.Artifacts.NetworkRequest, resolvedAt: number): void;
|
|
27
|
+
/**
|
|
28
|
+
* Forcefully sets the DNS resolution time for a record.
|
|
29
|
+
* Useful for testing and alternate execution simulations.
|
|
30
|
+
*
|
|
31
|
+
* @param {string} domain
|
|
32
|
+
* @param {number} resolvedAt
|
|
33
|
+
*/
|
|
34
|
+
setResolvedAt(domain: string, resolvedAt: number): void;
|
|
35
|
+
}
|
|
36
|
+
export namespace DNSCache {
|
|
37
|
+
export { DNS_RESOLUTION_RTT_MULTIPLIER as RTT_MULTIPLIER };
|
|
38
|
+
}
|
|
39
|
+
import * as LH from "../../../../types/lh.js";
|
|
40
|
+
declare const DNS_RESOLUTION_RTT_MULTIPLIER: 2;
|
|
41
|
+
export {};
|
|
42
|
+
//# sourceMappingURL=dns-cache.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
|
// A DNS lookup will usually take ~1-2 roundtrips of connection latency plus the extra DNS routing time.
|
|
8
10
|
// Example: https://www.webpagetest.org/result/180703_3A_e33ec79747c002ed4d7bcbfc81462203/1/details/#waterfall_view_step1
|
|
9
11
|
// Example: https://www.webpagetest.org/result/180707_1M_89673eb633b5d98386de95dfcf9b33d5/1/details/#waterfall_view_step1
|