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,230 @@
|
|
|
1
|
+
export type I18n<T> = import('./i18n').I18n<T>;
|
|
2
|
+
export class Util {
|
|
3
|
+
/** @type {I18n<typeof UIStrings>} */
|
|
4
|
+
static i18n: I18n<typeof UIStrings>;
|
|
5
|
+
static get PASS_THRESHOLD(): number;
|
|
6
|
+
static get MS_DISPLAY_VALUE(): string;
|
|
7
|
+
/**
|
|
8
|
+
* If LHR is older than 10.0 it will not have the `finalDisplayedUrl` property.
|
|
9
|
+
* Old LHRs should have the `finalUrl` property which will work fine for the report.
|
|
10
|
+
*
|
|
11
|
+
* @param {LH.Result} lhr
|
|
12
|
+
*/
|
|
13
|
+
static getFinalDisplayedUrl(lhr: LH.Result): string;
|
|
14
|
+
/**
|
|
15
|
+
* If LHR is older than 10.0 it will not have the `mainDocumentUrl` property.
|
|
16
|
+
* Old LHRs should have the `finalUrl` property which is the same as `mainDocumentUrl`.
|
|
17
|
+
*
|
|
18
|
+
* @param {LH.Result} lhr
|
|
19
|
+
*/
|
|
20
|
+
static getMainDocumentUrl(lhr: LH.Result): string | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* Returns a new LHR that's reshaped for slightly better ergonomics within the report rendereer.
|
|
23
|
+
* Also, sets up the localized UI strings used within renderer and makes changes to old LHRs to be
|
|
24
|
+
* compatible with current renderer.
|
|
25
|
+
* The LHR passed in is not mutated.
|
|
26
|
+
* TODO(team): we all agree the LHR shape change is technical debt we should fix
|
|
27
|
+
* @param {LH.Result} result
|
|
28
|
+
* @return {LH.ReportResult}
|
|
29
|
+
*/
|
|
30
|
+
static prepareReportResult(result: LH.Result): LH.ReportResult;
|
|
31
|
+
/**
|
|
32
|
+
* @param {LH.Result} lhr
|
|
33
|
+
* @return {LH.Result.FullPageScreenshot=}
|
|
34
|
+
*/
|
|
35
|
+
static getFullPageScreenshot(lhr: LH.Result): LH.Result.FullPageScreenshot | undefined;
|
|
36
|
+
/**
|
|
37
|
+
* Used to determine if the "passed" for the purposes of showing up in the "failed" or "passed"
|
|
38
|
+
* sections of the report.
|
|
39
|
+
*
|
|
40
|
+
* @param {{score: (number|null), scoreDisplayMode: string}} audit
|
|
41
|
+
* @return {boolean}
|
|
42
|
+
*/
|
|
43
|
+
static showAsPassed(audit: {
|
|
44
|
+
score: (number | null);
|
|
45
|
+
scoreDisplayMode: string;
|
|
46
|
+
}): boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Convert a score to a rating label.
|
|
49
|
+
* TODO: Return `'error'` for `score === null && !scoreDisplayMode`.
|
|
50
|
+
*
|
|
51
|
+
* @param {number|null} score
|
|
52
|
+
* @param {string=} scoreDisplayMode
|
|
53
|
+
* @return {string}
|
|
54
|
+
*/
|
|
55
|
+
static calculateRating(score: number | null, scoreDisplayMode?: string | undefined): string;
|
|
56
|
+
/**
|
|
57
|
+
* Split a string by markdown code spans (enclosed in `backticks`), splitting
|
|
58
|
+
* into segments that were enclosed in backticks (marked as `isCode === true`)
|
|
59
|
+
* and those that outside the backticks (`isCode === false`).
|
|
60
|
+
* @param {string} text
|
|
61
|
+
* @return {Array<{isCode: true, text: string}|{isCode: false, text: string}>}
|
|
62
|
+
*/
|
|
63
|
+
static splitMarkdownCodeSpans(text: string): Array<{
|
|
64
|
+
isCode: true;
|
|
65
|
+
text: string;
|
|
66
|
+
} | {
|
|
67
|
+
isCode: false;
|
|
68
|
+
text: string;
|
|
69
|
+
}>;
|
|
70
|
+
/**
|
|
71
|
+
* Split a string on markdown links (e.g. [some link](https://...)) into
|
|
72
|
+
* segments of plain text that weren't part of a link (marked as
|
|
73
|
+
* `isLink === false`), and segments with text content and a URL that did make
|
|
74
|
+
* up a link (marked as `isLink === true`).
|
|
75
|
+
* @param {string} text
|
|
76
|
+
* @return {Array<{isLink: true, text: string, linkHref: string}|{isLink: false, text: string}>}
|
|
77
|
+
*/
|
|
78
|
+
static splitMarkdownLink(text: string): Array<{
|
|
79
|
+
isLink: true;
|
|
80
|
+
text: string;
|
|
81
|
+
linkHref: string;
|
|
82
|
+
} | {
|
|
83
|
+
isLink: false;
|
|
84
|
+
text: string;
|
|
85
|
+
}>;
|
|
86
|
+
/**
|
|
87
|
+
* @param {URL} parsedUrl
|
|
88
|
+
* @param {{numPathParts?: number, preserveQuery?: boolean, preserveHost?: boolean}=} options
|
|
89
|
+
* @return {string}
|
|
90
|
+
*/
|
|
91
|
+
static getURLDisplayName(parsedUrl: URL, options?: {
|
|
92
|
+
numPathParts?: number | undefined;
|
|
93
|
+
preserveQuery?: boolean | undefined;
|
|
94
|
+
preserveHost?: boolean | undefined;
|
|
95
|
+
} | undefined): string;
|
|
96
|
+
/**
|
|
97
|
+
* Split a URL into a file, hostname and origin for easy display.
|
|
98
|
+
* @param {string} url
|
|
99
|
+
* @return {{file: string, hostname: string, origin: string}}
|
|
100
|
+
*/
|
|
101
|
+
static parseURL(url: string): {
|
|
102
|
+
file: string;
|
|
103
|
+
hostname: string;
|
|
104
|
+
origin: string;
|
|
105
|
+
};
|
|
106
|
+
/**
|
|
107
|
+
* @param {string|URL} value
|
|
108
|
+
* @return {!URL}
|
|
109
|
+
*/
|
|
110
|
+
static createOrReturnURL(value: string | URL): URL;
|
|
111
|
+
/**
|
|
112
|
+
* Gets the tld of a domain
|
|
113
|
+
*
|
|
114
|
+
* @param {string} hostname
|
|
115
|
+
* @return {string} tld
|
|
116
|
+
*/
|
|
117
|
+
static getTld(hostname: string): string;
|
|
118
|
+
/**
|
|
119
|
+
* Returns a primary domain for provided hostname (e.g. www.example.com -> example.com).
|
|
120
|
+
* @param {string|URL} url hostname or URL object
|
|
121
|
+
* @return {string}
|
|
122
|
+
*/
|
|
123
|
+
static getRootDomain(url: string | URL): string;
|
|
124
|
+
/**
|
|
125
|
+
* @param {LH.Result['configSettings']} settings
|
|
126
|
+
* @return {!{deviceEmulation: string, screenEmulation?: string, networkThrottling: string, cpuThrottling: string, summary: string}}
|
|
127
|
+
*/
|
|
128
|
+
static getEmulationDescriptions(settings: LH.Result['configSettings']): {
|
|
129
|
+
deviceEmulation: string;
|
|
130
|
+
screenEmulation?: string | undefined;
|
|
131
|
+
networkThrottling: string;
|
|
132
|
+
cpuThrottling: string;
|
|
133
|
+
summary: string;
|
|
134
|
+
};
|
|
135
|
+
/**
|
|
136
|
+
* Returns only lines that are near a message, or the first few lines if there are
|
|
137
|
+
* no line messages.
|
|
138
|
+
* @param {LH.Audit.Details.SnippetValue['lines']} lines
|
|
139
|
+
* @param {LH.Audit.Details.SnippetValue['lineMessages']} lineMessages
|
|
140
|
+
* @param {number} surroundingLineCount Number of lines to include before and after
|
|
141
|
+
* the message. If this is e.g. 2 this function might return 5 lines.
|
|
142
|
+
*/
|
|
143
|
+
static filterRelevantLines(lines: LH.Audit.Details.SnippetValue['lines'], lineMessages: LH.Audit.Details.SnippetValue['lineMessages'], surroundingLineCount: number): {
|
|
144
|
+
content: string;
|
|
145
|
+
lineNumber: number;
|
|
146
|
+
truncated?: boolean | undefined;
|
|
147
|
+
}[];
|
|
148
|
+
/**
|
|
149
|
+
* @param {string} categoryId
|
|
150
|
+
*/
|
|
151
|
+
static isPluginCategory(categoryId: string): boolean;
|
|
152
|
+
/**
|
|
153
|
+
* @param {LH.Result.GatherMode} gatherMode
|
|
154
|
+
*/
|
|
155
|
+
static shouldDisplayAsFraction(gatherMode: LH.Result.GatherMode): boolean;
|
|
156
|
+
/**
|
|
157
|
+
* @param {LH.ReportResult.Category} category
|
|
158
|
+
*/
|
|
159
|
+
static calculateCategoryFraction(category: LH.ReportResult.Category): {
|
|
160
|
+
numPassed: number;
|
|
161
|
+
numPassableAudits: number;
|
|
162
|
+
numInformative: number;
|
|
163
|
+
totalWeight: number;
|
|
164
|
+
};
|
|
165
|
+
}
|
|
166
|
+
export namespace Util {
|
|
167
|
+
export const reportJson: LH.ReportResult | null;
|
|
168
|
+
/**
|
|
169
|
+
* An always-increasing counter for making unique SVG ID suffixes.
|
|
170
|
+
*/
|
|
171
|
+
export function getUniqueSuffix(): number;
|
|
172
|
+
export function resetUniqueSuffix(): void;
|
|
173
|
+
export { UIStrings };
|
|
174
|
+
}
|
|
175
|
+
export namespace UIStrings {
|
|
176
|
+
const varianceDisclaimer: string;
|
|
177
|
+
const calculatorLink: string;
|
|
178
|
+
const showRelevantAudits: string;
|
|
179
|
+
const opportunityResourceColumnLabel: string;
|
|
180
|
+
const opportunitySavingsColumnLabel: string;
|
|
181
|
+
const errorMissingAuditInfo: string;
|
|
182
|
+
const errorLabel: string;
|
|
183
|
+
const warningHeader: string;
|
|
184
|
+
const warningAuditsGroupTitle: string;
|
|
185
|
+
const passedAuditsGroupTitle: string;
|
|
186
|
+
const notApplicableAuditsGroupTitle: string;
|
|
187
|
+
const manualAuditsGroupTitle: string;
|
|
188
|
+
const toplevelWarningsMessage: string;
|
|
189
|
+
const crcInitialNavigation: string;
|
|
190
|
+
const crcLongestDurationLabel: string;
|
|
191
|
+
const snippetExpandButtonLabel: string;
|
|
192
|
+
const snippetCollapseButtonLabel: string;
|
|
193
|
+
const lsPerformanceCategoryDescription: string;
|
|
194
|
+
const labDataTitle: string;
|
|
195
|
+
const thirdPartyResourcesLabel: string;
|
|
196
|
+
const viewTreemapLabel: string;
|
|
197
|
+
const viewTraceLabel: string;
|
|
198
|
+
const viewOriginalTraceLabel: string;
|
|
199
|
+
const dropdownPrintSummary: string;
|
|
200
|
+
const dropdownPrintExpanded: string;
|
|
201
|
+
const dropdownCopyJSON: string;
|
|
202
|
+
const dropdownSaveHTML: string;
|
|
203
|
+
const dropdownSaveJSON: string;
|
|
204
|
+
const dropdownViewer: string;
|
|
205
|
+
const dropdownSaveGist: string;
|
|
206
|
+
const dropdownDarkTheme: string;
|
|
207
|
+
const runtimeSettingsDevice: string;
|
|
208
|
+
const runtimeSettingsNetworkThrottling: string;
|
|
209
|
+
const runtimeSettingsCPUThrottling: string;
|
|
210
|
+
const runtimeSettingsUANetwork: string;
|
|
211
|
+
const runtimeSettingsBenchmark: string;
|
|
212
|
+
const runtimeSettingsAxeVersion: string;
|
|
213
|
+
const runtimeSettingsScreenEmulation: string;
|
|
214
|
+
const footerIssue: string;
|
|
215
|
+
const runtimeNoEmulation: string;
|
|
216
|
+
const runtimeMobileEmulation: string;
|
|
217
|
+
const runtimeDesktopEmulation: string;
|
|
218
|
+
const runtimeUnknown: string;
|
|
219
|
+
const runtimeSingleLoad: string;
|
|
220
|
+
const runtimeAnalysisWindow: string;
|
|
221
|
+
const runtimeSingleLoadTooltip: string;
|
|
222
|
+
const throttlingProvided: string;
|
|
223
|
+
const show: string;
|
|
224
|
+
const hide: string;
|
|
225
|
+
const expandView: string;
|
|
226
|
+
const collapseView: string;
|
|
227
|
+
const runtimeSlow4g: string;
|
|
228
|
+
const runtimeCustom: string;
|
|
229
|
+
}
|
|
230
|
+
//# sourceMappingURL=util.d.ts.map
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @param {any} lhr
|
|
3
|
+
* @param {Element} container
|
|
4
|
+
*/
|
|
5
|
+
declare function renderLHReport(lhr: any, container: Element): Promise<void>;
|
|
6
|
+
/**
|
|
7
|
+
* @param {LH.Locale} locale
|
|
8
|
+
*/
|
|
9
|
+
declare function swapLhrLocale(locale: LH.Locale): Promise<void>;
|
|
10
|
+
/**
|
|
11
|
+
* Tweak the LHR to make the desktop and mobile reports easier to identify.
|
|
12
|
+
* Adjusted: Perf category name and score, and emoji placed on top of key screenshots.
|
|
13
|
+
* @param {LH.Result} lhr
|
|
14
|
+
* @param {string} tabId
|
|
15
|
+
*/
|
|
16
|
+
declare function distinguishLHR(lhr: LH.Result, tabId: string): Promise<void>;
|
|
17
|
+
/**
|
|
18
|
+
* Add 📱 and 💻 emoji on top of screenshot
|
|
19
|
+
* @param {string} datauri
|
|
20
|
+
* @param {string} tabId
|
|
21
|
+
*/
|
|
22
|
+
declare function decorateScreenshot(datauri: string, tabId: string): Promise<string>;
|
|
23
|
+
type lighthouseRenderer = typeof import("../clients/bundle.js");
|
|
24
|
+
/**
|
|
25
|
+
* @license Copyright 2021 The Lighthouse Authors. All Rights Reserved.
|
|
26
|
+
* 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
|
|
27
|
+
* 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.
|
|
28
|
+
*/
|
|
29
|
+
/** @fileoverview This file exercises two LH reports within the same DOM. */
|
|
30
|
+
/** @typedef {import('../clients/bundle.js')} lighthouseRenderer */
|
|
31
|
+
/** @type {lighthouseRenderer} */
|
|
32
|
+
declare const lighthouseRenderer: lighthouseRenderer;
|
|
33
|
+
declare function wait(ms?: number): Promise<any>;
|
|
34
|
+
//# sourceMappingURL=faux-psi.d.ts.map
|
package/root.d.ts
ADDED
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
export type MessageElement = import('intl-messageformat-parser').Element;
|
|
2
|
+
export type ArgumentElement = import('intl-messageformat-parser').ArgumentElement;
|
|
3
|
+
export const DEFAULT_LOCALE: "en-US";
|
|
4
|
+
/** @param {string[]} pathInLHR */
|
|
5
|
+
export function _formatPathAsString(pathInLHR: string[]): string;
|
|
6
|
+
/**
|
|
7
|
+
* Function to retrieve all 'argumentElement's from an ICU message. An argumentElement
|
|
8
|
+
* is an ICU element with an argument in it, like '{varName}' or '{varName, number, bytes}'. This
|
|
9
|
+
* differs from 'messageElement's which are just arbitrary text in a message.
|
|
10
|
+
*
|
|
11
|
+
* Notes:
|
|
12
|
+
* This function will recursively inspect plural elements for nested argumentElements.
|
|
13
|
+
*
|
|
14
|
+
* We need to find all the elements from the plural format sections, but
|
|
15
|
+
* they need to be deduplicated. I.e. "=1{hello {icu}} =other{hello {icu}}"
|
|
16
|
+
* the variable "icu" would appear twice if it wasn't de duplicated. And they cannot
|
|
17
|
+
* be stored in a set because they are not equal since their locations are different,
|
|
18
|
+
* thus they are stored via a Map keyed on the "id" which is the ICU varName.
|
|
19
|
+
*
|
|
20
|
+
* @param {Array<MessageElement>} icuElements
|
|
21
|
+
* @param {Map<string, ArgumentElement>} [seenElementsById]
|
|
22
|
+
* @return {Map<string, ArgumentElement>}
|
|
23
|
+
*/
|
|
24
|
+
export function collectAllCustomElementsFromICU(icuElements: Array<MessageElement>, seenElementsById?: Map<string, import("intl-messageformat-parser").ArgumentElement> | undefined): Map<string, ArgumentElement>;
|
|
25
|
+
/**
|
|
26
|
+
* Returns whether `icuMessageOrNot`` is an `LH.IcuMessage` instance.
|
|
27
|
+
* @param {unknown} icuMessageOrNot
|
|
28
|
+
* @return {icuMessageOrNot is LH.IcuMessage}
|
|
29
|
+
*/
|
|
30
|
+
export function isIcuMessage(icuMessageOrNot: unknown): icuMessageOrNot is import("../../types/lhr/i18n.js").IcuMessage;
|
|
31
|
+
/**
|
|
32
|
+
* Get the localized and formatted form of `icuMessageOrRawString` if it's an
|
|
33
|
+
* LH.IcuMessage, or get it back directly if it's already a string.
|
|
34
|
+
* Warning: this function throws if `icuMessageOrRawString` is not the expected
|
|
35
|
+
* type (use function from `createIcuMessageFn` to create a valid LH.IcuMessage)
|
|
36
|
+
* or `locale` isn't supported (use `lookupLocale` to find a valid locale).
|
|
37
|
+
* @param {LH.IcuMessage | string} icuMessageOrRawString
|
|
38
|
+
* @param {LH.Locale} locale
|
|
39
|
+
* @return {string}
|
|
40
|
+
*/
|
|
41
|
+
export function getFormatted(icuMessageOrRawString: LH.IcuMessage | string, locale: LH.Locale): string;
|
|
42
|
+
/**
|
|
43
|
+
* @param {LH.Locale} locale
|
|
44
|
+
* @return {Record<string, string>}
|
|
45
|
+
*/
|
|
46
|
+
export function getRendererFormattedStrings(locale: LH.Locale): Record<string, string>;
|
|
47
|
+
/**
|
|
48
|
+
* Recursively walk the input object, looking for property values that are
|
|
49
|
+
* `LH.IcuMessage`s and replace them with their localized values. Primarily
|
|
50
|
+
* used with the full LHR or a Config as input.
|
|
51
|
+
* Returns a map of locations that were replaced to the `IcuMessage` that was at
|
|
52
|
+
* that location.
|
|
53
|
+
* @param {unknown} inputObject
|
|
54
|
+
* @param {LH.Locale} locale
|
|
55
|
+
* @return {LH.Result.IcuMessagePaths}
|
|
56
|
+
*/
|
|
57
|
+
export function replaceIcuMessages(inputObject: unknown, locale: LH.Locale): LH.Result.IcuMessagePaths;
|
|
58
|
+
/**
|
|
59
|
+
* Returns whether the `requestedLocale` is registered and available for use
|
|
60
|
+
* @param {LH.Locale} requestedLocale
|
|
61
|
+
* @return {boolean}
|
|
62
|
+
*/
|
|
63
|
+
export function hasLocale(requestedLocale: LH.Locale): boolean;
|
|
64
|
+
/**
|
|
65
|
+
* Populate the i18n string lookup dict with locale data
|
|
66
|
+
* Used when the host environment selects the locale and serves lighthouse the intended locale file
|
|
67
|
+
* @see https://docs.google.com/document/d/1jnt3BqKB-4q3AE94UWFA0Gqspx8Sd_jivlB7gQMlmfk/edit
|
|
68
|
+
* @param {LH.Locale} locale
|
|
69
|
+
* @param {import('./locales').LhlMessages} lhlMessages
|
|
70
|
+
*/
|
|
71
|
+
export function registerLocaleData(locale: LH.Locale, lhlMessages: import('./locales').LhlMessages): void;
|
|
72
|
+
/**
|
|
73
|
+
* Format string `message` by localizing `values` and inserting them. `message`
|
|
74
|
+
* is assumed to already be in the given locale.
|
|
75
|
+
* If you need to localize a messagem `getFormatted` is probably what you want.
|
|
76
|
+
* @param {string} message
|
|
77
|
+
* @param {Record<string, string | number>|undefined} values
|
|
78
|
+
* @param {LH.Locale} locale
|
|
79
|
+
* @return {string}
|
|
80
|
+
*/
|
|
81
|
+
export function formatMessage(message: string, values: Record<string, string | number> | undefined, locale: LH.Locale): string;
|
|
82
|
+
/**
|
|
83
|
+
* @param {string} i18nMessageId
|
|
84
|
+
*/
|
|
85
|
+
export function getIcuMessageIdParts(i18nMessageId: string): {
|
|
86
|
+
filename: string;
|
|
87
|
+
key: string;
|
|
88
|
+
};
|
|
89
|
+
/**
|
|
90
|
+
* Returns a list of available locales.
|
|
91
|
+
* - if full build, this includes all canonical locales, aliases, and any locale added
|
|
92
|
+
* via `registerLocaleData`.
|
|
93
|
+
* - if bundled and locale messages have been stripped (locales.js shimmed), this includes
|
|
94
|
+
* only DEFAULT_LOCALE and any locales from `registerLocaleData`.
|
|
95
|
+
* @return {Array<LH.Locale>}
|
|
96
|
+
*/
|
|
97
|
+
export function getAvailableLocales(): Array<LH.Locale>;
|
|
98
|
+
/**
|
|
99
|
+
* Returns a list of canonical locales, as defined by the existent message files.
|
|
100
|
+
* In practice, each of these may have aliases in the full list returned by
|
|
101
|
+
* `getAvailableLocales()`.
|
|
102
|
+
* TODO: create a CanonicalLocale type
|
|
103
|
+
* @return {Array<string>}
|
|
104
|
+
*/
|
|
105
|
+
export function getCanonicalLocales(): Array<string>;
|
|
106
|
+
//# sourceMappingURL=format.d.ts.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export type Locale = import('../../types/lhr/settings').Locale;
|
|
2
|
+
export type LhlMessages = Record<string, {
|
|
3
|
+
message: string;
|
|
4
|
+
}>;
|
|
5
|
+
/** @type {Record<Locale, LhlMessages>} */
|
|
6
|
+
export const locales: Record<Locale, LhlMessages>;
|
|
7
|
+
//# sourceMappingURL=locales.d.ts.map
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Use the lhr.i18n.icuMessagePaths object to change locales.
|
|
3
|
+
*
|
|
4
|
+
* `icuMessagePaths` is an object keyed by `LH.IcuMessage['i18nId']`s. Within each is either
|
|
5
|
+
* 1) an array of strings, which are just object paths to where that message is used in the LHR
|
|
6
|
+
* 2) an array of `LH.IcuMessagePath`s which include both a `path` and a `values` object
|
|
7
|
+
* which will be used in the replacement within `format.getFormatted()`
|
|
8
|
+
*
|
|
9
|
+
* An example:
|
|
10
|
+
"icuMessagePaths": {
|
|
11
|
+
"core/audits/metrics/first-contentful-paint.js | title": [
|
|
12
|
+
"audits[first-contentful-paint].title"
|
|
13
|
+
],
|
|
14
|
+
"core/audits/server-response-time.js | displayValue": [
|
|
15
|
+
{
|
|
16
|
+
"values": {
|
|
17
|
+
"timeInMs": 570.5630000000001
|
|
18
|
+
},
|
|
19
|
+
"path": "audits[server-response-time].displayValue"
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"core/lib/i18n/i18n.js | columnTimeSpent": [
|
|
23
|
+
"audits[mainthread-work-breakdown].details.headings[1].text",
|
|
24
|
+
"audits[network-rtt].details.headings[1].text",
|
|
25
|
+
"audits[network-server-latency].details.headings[1].text"
|
|
26
|
+
],
|
|
27
|
+
...
|
|
28
|
+
*/
|
|
29
|
+
/**
|
|
30
|
+
* Returns a new LHR with all strings changed to the new `requestedLocale`.
|
|
31
|
+
* @param {LH.Result} lhr
|
|
32
|
+
* @param {LH.Locale} requestedLocale
|
|
33
|
+
* @return {{lhr: LH.Result, missingIcuMessageIds: string[]}}
|
|
34
|
+
*/
|
|
35
|
+
export function swapLocale(lhr: LH.Result, requestedLocale: LH.Locale): {
|
|
36
|
+
lhr: LH.Result;
|
|
37
|
+
missingIcuMessageIds: string[];
|
|
38
|
+
};
|
|
39
|
+
//# sourceMappingURL=swap-locale.d.ts.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright 2020 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
|
+
* @fileoverview A collection of general type verification functions for dealing
|
|
8
|
+
* with external data. If these grow in scope they could be auto-generated with
|
|
9
|
+
* something like `io-ts`, but it's not worth the complexity yet.
|
|
10
|
+
*/
|
|
11
|
+
/**
|
|
12
|
+
* Type predicate verifying `val` is an object (excluding `Array` and `null`).
|
|
13
|
+
* @param {unknown} val
|
|
14
|
+
* @return {val is Record<string, unknown>}
|
|
15
|
+
*/
|
|
16
|
+
export function isObjectOfUnknownValues(val: unknown): val is Record<string, unknown>;
|
|
17
|
+
/**
|
|
18
|
+
* Type predicate verifying `val` is an object or an array.
|
|
19
|
+
* @param {unknown} val
|
|
20
|
+
* @return {val is Record<string, unknown>|Array<unknown>}
|
|
21
|
+
*/
|
|
22
|
+
export function isObjectOrArrayOfUnknownValues(val: unknown): val is unknown[] | Record<string, unknown>;
|
|
23
|
+
//# sourceMappingURL=type-verifiers.d.ts.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Determine if a string is a valid language code
|
|
3
|
+
* @method isValidLang
|
|
4
|
+
* @memberof axe.utils
|
|
5
|
+
* @param {String} lang String to test if a valid language code
|
|
6
|
+
* @returns {Boolean}
|
|
7
|
+
*/
|
|
8
|
+
export function isValidLang(lang: string): boolean;
|
|
9
|
+
//# sourceMappingURL=valid-langs.d.ts.map
|
package/types/artifacts.d.ts
CHANGED
|
@@ -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 {Protocol as Crdp} from 'devtools-protocol/types/protocol.js';
|
|
8
|
+
|
|
7
9
|
import {parseManifest} from '../core/lib/manifest-parser.js';
|
|
8
10
|
import {Simulator} from '../core/lib/dependency-graph/simulator/simulator.js';
|
|
9
11
|
import {LighthouseError} from '../core/lib/lh-error.js';
|
|
@@ -12,12 +14,12 @@ import speedline from 'speedline-core';
|
|
|
12
14
|
import TextSourceMap from '../core/lib/cdt/generated/SourceMap.js';
|
|
13
15
|
import {ArbitraryEqualityMap} from '../core/lib/arbitrary-equality-map.js';
|
|
14
16
|
import type { TaskNode as _TaskNode } from '../core/lib/tracehouse/main-thread-tasks.js';
|
|
15
|
-
import AuditDetails from './lhr/audit-details'
|
|
16
|
-
import Config from './config';
|
|
17
|
-
import Gatherer from './gatherer';
|
|
18
|
-
import {IcuMessage} from './lhr/i18n';
|
|
19
|
-
import LHResult from './lhr/lhr'
|
|
20
|
-
import Protocol from './protocol';
|
|
17
|
+
import AuditDetails from './lhr/audit-details.js'
|
|
18
|
+
import Config from './config.js';
|
|
19
|
+
import Gatherer from './gatherer.js';
|
|
20
|
+
import {IcuMessage} from './lhr/i18n.js';
|
|
21
|
+
import LHResult from './lhr/lhr.js'
|
|
22
|
+
import Protocol from './protocol.js';
|
|
21
23
|
import Util from './utility-types.js';
|
|
22
24
|
import Audit from './audit.js';
|
|
23
25
|
|
|
@@ -123,7 +125,7 @@ export interface GathererArtifacts extends PublicGathererArtifacts,LegacyBaseArt
|
|
|
123
125
|
/** Array of all URLs cached in CacheStorage. */
|
|
124
126
|
CacheContents: string[];
|
|
125
127
|
/** CSS coverage information for styles used by page's final state. */
|
|
126
|
-
CSSUsage: {rules:
|
|
128
|
+
CSSUsage: {rules: Crdp.CSS.RuleUsage[], stylesheets: Artifacts.CSSStyleSheetInfo[]};
|
|
127
129
|
/** The primary log of devtools protocol activity. Used in Fraggle Rock gathering. */
|
|
128
130
|
DevtoolsLog: DevtoolsLog;
|
|
129
131
|
/** Information on the document's doctype(or null if not present), specifically the name, publicId, and systemId.
|
|
@@ -149,7 +151,7 @@ export interface GathererArtifacts extends PublicGathererArtifacts,LegacyBaseArt
|
|
|
149
151
|
InstallabilityErrors: Artifacts.InstallabilityErrors;
|
|
150
152
|
/** JS coverage information for code used during audit. Keyed by script id. */
|
|
151
153
|
// 'url' is excluded because it can be overriden by a magic sourceURL= comment, which makes keeping it a dangerous footgun!
|
|
152
|
-
JsUsage: Record<string, Omit<
|
|
154
|
+
JsUsage: Record<string, Omit<Crdp.Profiler.ScriptCoverage, 'url'>>;
|
|
153
155
|
/** Parsed version of the page's Web App Manifest, or null if none found. */
|
|
154
156
|
Manifest: Artifacts.Manifest | null;
|
|
155
157
|
/** The URL loaded with interception */
|
|
@@ -165,7 +167,7 @@ export interface GathererArtifacts extends PublicGathererArtifacts,LegacyBaseArt
|
|
|
165
167
|
/** Information on all scripts in the page. */
|
|
166
168
|
Scripts: Artifacts.Script[];
|
|
167
169
|
/** Version information for all ServiceWorkers active after the first page load. */
|
|
168
|
-
ServiceWorker: {versions:
|
|
170
|
+
ServiceWorker: {versions: Crdp.ServiceWorker.ServiceWorkerVersion[], registrations: Crdp.ServiceWorker.ServiceWorkerRegistration[]};
|
|
169
171
|
/** Source maps of scripts executed in the page. */
|
|
170
172
|
SourceMaps: Array<Artifacts.SourceMap>;
|
|
171
173
|
/** Information on detected tech stacks (e.g. JS libraries) used by the page. */
|
|
@@ -242,7 +244,7 @@ declare module Artifacts {
|
|
|
242
244
|
}
|
|
243
245
|
|
|
244
246
|
interface CSSStyleSheetInfo {
|
|
245
|
-
header:
|
|
247
|
+
header: Crdp.CSS.CSSStyleSheetHeader;
|
|
246
248
|
content: string;
|
|
247
249
|
}
|
|
248
250
|
|
|
@@ -311,7 +313,7 @@ declare module Artifacts {
|
|
|
311
313
|
|
|
312
314
|
interface PasswordInputsWithPreventedPaste {node: NodeDetails}
|
|
313
315
|
|
|
314
|
-
interface Script extends Omit<
|
|
316
|
+
interface Script extends Omit<Crdp.Debugger.ScriptParsedEvent, 'url'|'embedderName'> {
|
|
315
317
|
/**
|
|
316
318
|
* Set by a sourceURL= magic comment if present, otherwise this is the same as the URL.
|
|
317
319
|
* Use this field for presentational purposes only.
|
|
@@ -386,7 +388,7 @@ declare module Artifacts {
|
|
|
386
388
|
|
|
387
389
|
interface Bundle {
|
|
388
390
|
rawMap: RawSourceMap;
|
|
389
|
-
script:
|
|
391
|
+
script: Artifacts.Script;
|
|
390
392
|
map: TextSourceMap;
|
|
391
393
|
sizes: {
|
|
392
394
|
// TODO(cjamcl): Rename to `sources`.
|
|
@@ -410,15 +412,15 @@ declare module Artifacts {
|
|
|
410
412
|
node: NodeDetails
|
|
411
413
|
onclick: string
|
|
412
414
|
listeners?: Array<{
|
|
413
|
-
type:
|
|
415
|
+
type: Crdp.DOMDebugger.EventListener['type']
|
|
414
416
|
}>
|
|
415
417
|
}
|
|
416
418
|
|
|
417
419
|
type BFCacheReasonMap = {
|
|
418
|
-
[key in
|
|
420
|
+
[key in Crdp.Page.BackForwardCacheNotRestoredReason]?: string[];
|
|
419
421
|
};
|
|
420
422
|
|
|
421
|
-
type BFCacheNotRestoredReasonsTree = Record<
|
|
423
|
+
type BFCacheNotRestoredReasonsTree = Record<Crdp.Page.BackForwardCacheNotRestoredReasonType, BFCacheReasonMap>;
|
|
422
424
|
|
|
423
425
|
interface BFCacheFailure {
|
|
424
426
|
notRestoredReasonsTree: BFCacheNotRestoredReasonsTree;
|
|
@@ -459,10 +461,10 @@ declare module Artifacts {
|
|
|
459
461
|
cssRule?: {
|
|
460
462
|
type: 'Regular' | 'Inline' | 'Attributes';
|
|
461
463
|
range?: {startLine: number, startColumn: number};
|
|
462
|
-
parentRule?: {origin:
|
|
464
|
+
parentRule?: {origin: Crdp.CSS.StyleSheetOrigin, selectors: {text: string}[]};
|
|
463
465
|
styleSheetId?: string;
|
|
464
|
-
stylesheet?:
|
|
465
|
-
cssProperties?: Array<
|
|
466
|
+
stylesheet?: Crdp.CSS.CSSStyleSheetHeader;
|
|
467
|
+
cssProperties?: Array<Crdp.CSS.CSSProperty>;
|
|
466
468
|
}
|
|
467
469
|
}>
|
|
468
470
|
}
|
|
@@ -471,7 +473,7 @@ declare module Artifacts {
|
|
|
471
473
|
type Manifest = ReturnType<typeof parseManifest>;
|
|
472
474
|
|
|
473
475
|
interface InstallabilityErrors {
|
|
474
|
-
errors:
|
|
476
|
+
errors: Crdp.Page.InstallabilityError[];
|
|
475
477
|
}
|
|
476
478
|
|
|
477
479
|
interface ImageElement {
|
|
@@ -598,22 +600,22 @@ declare module Artifacts {
|
|
|
598
600
|
}
|
|
599
601
|
|
|
600
602
|
interface InspectorIssues {
|
|
601
|
-
attributionReportingIssue:
|
|
602
|
-
blockedByResponseIssue:
|
|
603
|
-
clientHintIssue:
|
|
604
|
-
contentSecurityPolicyIssue:
|
|
605
|
-
corsIssue:
|
|
606
|
-
deprecationIssue:
|
|
607
|
-
federatedAuthRequestIssue:
|
|
608
|
-
genericIssue:
|
|
609
|
-
heavyAdIssue:
|
|
610
|
-
lowTextContrastIssue:
|
|
611
|
-
mixedContentIssue:
|
|
612
|
-
navigatorUserAgentIssue:
|
|
613
|
-
quirksModeIssue:
|
|
614
|
-
cookieIssue:
|
|
615
|
-
sharedArrayBufferIssue:
|
|
616
|
-
twaQualityEnforcement:
|
|
603
|
+
attributionReportingIssue: Crdp.Audits.AttributionReportingIssueDetails[];
|
|
604
|
+
blockedByResponseIssue: Crdp.Audits.BlockedByResponseIssueDetails[];
|
|
605
|
+
clientHintIssue: Crdp.Audits.ClientHintIssueDetails[];
|
|
606
|
+
contentSecurityPolicyIssue: Crdp.Audits.ContentSecurityPolicyIssueDetails[];
|
|
607
|
+
corsIssue: Crdp.Audits.CorsIssueDetails[];
|
|
608
|
+
deprecationIssue: Crdp.Audits.DeprecationIssueDetails[];
|
|
609
|
+
federatedAuthRequestIssue: Crdp.Audits.FederatedAuthRequestIssueDetails[],
|
|
610
|
+
genericIssue: Crdp.Audits.GenericIssueDetails[];
|
|
611
|
+
heavyAdIssue: Crdp.Audits.HeavyAdIssueDetails[];
|
|
612
|
+
lowTextContrastIssue: Crdp.Audits.LowTextContrastIssueDetails[];
|
|
613
|
+
mixedContentIssue: Crdp.Audits.MixedContentIssueDetails[];
|
|
614
|
+
navigatorUserAgentIssue: Crdp.Audits.NavigatorUserAgentIssueDetails[];
|
|
615
|
+
quirksModeIssue: Crdp.Audits.QuirksModeIssueDetails[];
|
|
616
|
+
cookieIssue: Crdp.Audits.CookieIssueDetails[];
|
|
617
|
+
sharedArrayBufferIssue: Crdp.Audits.SharedArrayBufferIssueDetails[];
|
|
618
|
+
twaQualityEnforcement: Crdp.Audits.TrustedWebActivityIssueDetails[];
|
|
617
619
|
}
|
|
618
620
|
|
|
619
621
|
// Computed artifact types below.
|
|
@@ -881,7 +883,7 @@ declare module Artifacts {
|
|
|
881
883
|
/** Time of the console log in milliseconds since epoch. */
|
|
882
884
|
timestamp: number;
|
|
883
885
|
/** The stack trace of the log/exception, if known. */
|
|
884
|
-
stackTrace?:
|
|
886
|
+
stackTrace?: Crdp.Runtime.StackTrace;
|
|
885
887
|
/** The URL of the log/exception, if known. */
|
|
886
888
|
url?: string;
|
|
887
889
|
/** The script id of the log/exception, if known. */
|
|
@@ -912,8 +914,8 @@ declare module Artifacts {
|
|
|
912
914
|
* deprecations, violations, and more.
|
|
913
915
|
*/
|
|
914
916
|
interface ConsoleProtocolLog extends BaseConsoleMessage {
|
|
915
|
-
source:
|
|
916
|
-
level:
|
|
917
|
+
source: Crdp.Log.LogEntry['source'],
|
|
918
|
+
level: Crdp.Log.LogEntry['level'],
|
|
917
919
|
eventType: 'protocolLog';
|
|
918
920
|
}
|
|
919
921
|
|