lighthouse 9.5.0-dev.20220901 → 9.5.0-dev.20220904
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/build-tracker.config.js +0 -1
- package/cli/test/smokehouse/frontends/smokehouse-bin.js +13 -16
- package/commitlint.config.js +0 -1
- package/core/audits/accessibility/accesskeys.js +0 -2
- package/core/audits/accessibility/aria-allowed-attr.js +0 -2
- package/core/audits/accessibility/aria-command-name.js +0 -2
- package/core/audits/accessibility/aria-hidden-body.js +0 -2
- package/core/audits/accessibility/aria-hidden-focus.js +0 -2
- package/core/audits/accessibility/aria-input-field-name.js +0 -2
- package/core/audits/accessibility/aria-meter-name.js +0 -2
- package/core/audits/accessibility/aria-progressbar-name.js +0 -2
- package/core/audits/accessibility/aria-required-attr.js +0 -2
- package/core/audits/accessibility/aria-required-children.js +0 -2
- package/core/audits/accessibility/aria-required-parent.js +0 -2
- package/core/audits/accessibility/aria-roles.js +0 -2
- package/core/audits/accessibility/aria-toggle-field-name.js +0 -2
- package/core/audits/accessibility/aria-tooltip-name.js +0 -2
- package/core/audits/accessibility/aria-treeitem-name.js +0 -2
- package/core/audits/accessibility/aria-valid-attr-value.js +0 -2
- package/core/audits/accessibility/aria-valid-attr.js +0 -2
- package/core/audits/accessibility/axe-audit.js +0 -2
- package/core/audits/accessibility/button-name.js +0 -2
- package/core/audits/accessibility/bypass.js +0 -2
- package/core/audits/accessibility/color-contrast.js +0 -2
- package/core/audits/accessibility/definition-list.js +0 -2
- package/core/audits/accessibility/dlitem.js +0 -2
- package/core/audits/accessibility/document-title.js +0 -2
- package/core/audits/accessibility/duplicate-id-active.js +0 -2
- package/core/audits/accessibility/duplicate-id-aria.js +0 -2
- package/core/audits/accessibility/form-field-multiple-labels.js +0 -2
- package/core/audits/accessibility/frame-title.js +0 -2
- package/core/audits/accessibility/heading-order.js +0 -2
- package/core/audits/accessibility/html-has-lang.js +0 -2
- package/core/audits/accessibility/html-lang-valid.js +0 -2
- package/core/audits/accessibility/image-alt.js +0 -2
- package/core/audits/accessibility/input-image-alt.js +0 -2
- package/core/audits/accessibility/label.js +0 -2
- package/core/audits/accessibility/link-name.js +0 -2
- package/core/audits/accessibility/list.js +0 -2
- package/core/audits/accessibility/listitem.js +0 -2
- package/core/audits/accessibility/manual/custom-controls-labels.js +0 -1
- package/core/audits/accessibility/manual/custom-controls-roles.js +0 -1
- package/core/audits/accessibility/manual/focus-traps.js +0 -1
- package/core/audits/accessibility/manual/focusable-controls.js +0 -1
- package/core/audits/accessibility/manual/interactive-element-affordance.js +0 -1
- package/core/audits/accessibility/manual/logical-tab-order.js +0 -1
- package/core/audits/accessibility/manual/managed-focus.js +0 -1
- package/core/audits/accessibility/manual/offscreen-content-hidden.js +0 -1
- package/core/audits/accessibility/manual/use-landmarks.js +0 -1
- package/core/audits/accessibility/manual/visual-order-follows-dom.js +0 -1
- package/core/audits/accessibility/meta-refresh.js +0 -2
- package/core/audits/accessibility/meta-viewport.js +0 -2
- package/core/audits/accessibility/object-alt.js +0 -2
- package/core/audits/accessibility/tabindex.js +0 -2
- package/core/audits/accessibility/td-headers-attr.js +0 -2
- package/core/audits/accessibility/th-has-data-cells.js +0 -2
- package/core/audits/accessibility/valid-lang.js +0 -2
- package/core/audits/accessibility/video-caption.js +0 -2
- package/core/audits/audit.js +0 -1
- package/core/audits/autocomplete.js +2 -2
- package/core/audits/bootup-time.js +0 -1
- package/core/audits/byte-efficiency/byte-efficiency-audit.js +0 -1
- package/core/audits/byte-efficiency/duplicated-javascript.js +0 -2
- package/core/audits/byte-efficiency/efficient-animated-content.js +1 -1
- package/core/audits/byte-efficiency/legacy-javascript.js +0 -2
- package/core/audits/byte-efficiency/modern-image-formats.js +1 -1
- package/core/audits/byte-efficiency/offscreen-images.js +1 -1
- package/core/audits/byte-efficiency/render-blocking-resources.js +1 -1
- package/core/audits/byte-efficiency/total-byte-weight.js +0 -1
- package/core/audits/byte-efficiency/unminified-css.js +0 -1
- package/core/audits/byte-efficiency/unminified-javascript.js +0 -1
- package/core/audits/byte-efficiency/unused-css-rules.js +0 -1
- package/core/audits/byte-efficiency/unused-javascript.js +0 -1
- package/core/audits/byte-efficiency/uses-long-cache-ttl.js +1 -1
- package/core/audits/byte-efficiency/uses-optimized-images.js +1 -1
- package/core/audits/byte-efficiency/uses-responsive-images-snapshot.js +1 -1
- package/core/audits/byte-efficiency/uses-responsive-images.js +1 -1
- package/core/audits/byte-efficiency/uses-text-compression.js +1 -1
- package/core/audits/content-width.js +0 -1
- package/core/audits/critical-request-chains.js +0 -1
- package/core/audits/csp-xss.js +0 -1
- package/core/audits/deprecations.js +0 -2
- package/core/audits/diagnostics.js +0 -1
- package/core/audits/dobetterweb/charset.js +1 -1
- package/core/audits/dobetterweb/doctype.js +0 -1
- package/core/audits/dobetterweb/dom-size.js +0 -1
- package/core/audits/dobetterweb/geolocation-on-start.js +0 -1
- package/core/audits/dobetterweb/inspector-issues.js +0 -2
- package/core/audits/dobetterweb/js-libraries.js +0 -1
- package/core/audits/dobetterweb/no-document-write.js +0 -1
- package/core/audits/dobetterweb/notification-on-start.js +0 -1
- package/core/audits/dobetterweb/password-inputs-can-be-pasted-into.js +0 -1
- package/core/audits/dobetterweb/uses-http2.js +0 -2
- package/core/audits/dobetterweb/uses-passive-event-listeners.js +0 -1
- package/core/audits/errors-in-console.js +0 -1
- package/core/audits/final-screenshot.js +0 -1
- package/core/audits/font-display.js +0 -1
- package/core/audits/full-page-screenshot.js +0 -1
- package/core/audits/image-aspect-ratio.js +1 -1
- package/core/audits/image-size-responsive.js +1 -1
- package/core/audits/installable-manifest.js +0 -1
- package/core/audits/is-on-https.js +0 -1
- package/core/audits/largest-contentful-paint-element.js +0 -1
- package/core/audits/layout-shift-elements.js +0 -1
- package/core/audits/lcp-lazy-loaded.js +0 -1
- package/core/audits/long-tasks.js +0 -1
- package/core/audits/main-thread-tasks.js +0 -1
- package/core/audits/mainthread-work-breakdown.js +0 -1
- package/core/audits/manual/manual-audit.js +0 -1
- package/core/audits/manual/pwa-cross-browser.js +0 -1
- package/core/audits/manual/pwa-each-page-has-url.js +0 -1
- package/core/audits/manual/pwa-page-transitions.js +0 -1
- package/core/audits/maskable-icon.js +0 -1
- package/core/audits/metrics/cumulative-layout-shift.js +0 -1
- package/core/audits/metrics/experimental-interaction-to-next-paint.js +0 -1
- package/core/audits/metrics/first-contentful-paint-3g.js +0 -1
- package/core/audits/metrics/first-contentful-paint.js +0 -1
- package/core/audits/metrics/first-meaningful-paint.js +0 -1
- package/core/audits/metrics/interactive.js +0 -1
- package/core/audits/metrics/largest-contentful-paint.js +0 -1
- package/core/audits/metrics/max-potential-fid.js +0 -1
- package/core/audits/metrics/speed-index.js +0 -1
- package/core/audits/metrics/total-blocking-time.js +0 -1
- package/core/audits/metrics.js +0 -1
- package/core/audits/multi-check-audit.js +0 -1
- package/core/audits/network-requests.js +0 -1
- package/core/audits/network-rtt.js +0 -1
- package/core/audits/network-server-latency.js +0 -1
- package/core/audits/no-unload-listeners.js +0 -1
- package/core/audits/non-composited-animations.js +0 -2
- package/core/audits/oopif-iframe-test-audit.js +0 -1
- package/core/audits/performance-budget.js +0 -1
- package/core/audits/predictive-perf.js +0 -1
- package/core/audits/preload-fonts.js +0 -2
- package/core/audits/preload-lcp-image.js +0 -1
- package/core/audits/redirects.js +0 -1
- package/core/audits/resource-summary.js +0 -1
- package/core/audits/screenshot-thumbnails.js +2 -2
- package/core/audits/script-elements-test-audit.js +0 -1
- package/core/audits/script-treemap-data.js +0 -2
- package/core/audits/seo/canonical.js +0 -1
- package/core/audits/seo/crawlable-anchors.js +0 -1
- package/core/audits/seo/font-size.js +0 -2
- package/core/audits/seo/hreflang.js +0 -2
- package/core/audits/seo/http-status-code.js +0 -1
- package/core/audits/seo/is-crawlable.js +1 -3
- package/core/audits/seo/link-text.js +0 -1
- package/core/audits/seo/manual/structured-data.js +0 -1
- package/core/audits/seo/meta-description.js +0 -1
- package/core/audits/seo/plugins.js +1 -2
- package/core/audits/seo/robots-txt.js +1 -3
- package/core/audits/seo/tap-targets.js +1 -4
- package/core/audits/server-response-time.js +0 -1
- package/core/audits/service-worker.js +0 -1
- package/core/audits/splash-screen.js +0 -1
- package/core/audits/themed-omnibox.js +2 -2
- package/core/audits/third-party-facades.js +0 -2
- package/core/audits/third-party-summary.js +0 -1
- package/core/audits/timing-budget.js +0 -1
- package/core/audits/unsized-images.js +0 -1
- package/core/audits/user-timings.js +0 -1
- package/core/audits/uses-rel-preconnect.js +0 -2
- package/core/audits/uses-rel-preload.js +0 -1
- package/core/audits/valid-source-maps.js +0 -1
- package/core/audits/viewport.js +0 -1
- package/core/audits/violation-audit.js +0 -1
- package/core/audits/work-during-interaction.js +0 -1
- package/core/computed/computed-artifact.js +2 -2
- package/core/computed/critical-request-chains.js +0 -1
- package/core/computed/image-records.js +0 -1
- package/core/computed/js-bundles.js +1 -1
- package/core/computed/load-simulator.js +0 -1
- package/core/computed/main-resource.js +0 -1
- package/core/computed/main-thread-tasks.js +0 -1
- package/core/computed/manifest-values.js +0 -1
- package/core/computed/metrics/cumulative-layout-shift.js +0 -1
- package/core/computed/metrics/first-contentful-paint-all-frames.js +0 -1
- package/core/computed/metrics/first-contentful-paint.js +0 -1
- package/core/computed/metrics/first-meaningful-paint.js +0 -1
- package/core/computed/metrics/interactive.js +0 -1
- package/core/computed/metrics/lantern-first-contentful-paint.js +0 -1
- package/core/computed/metrics/lantern-first-meaningful-paint.js +0 -1
- package/core/computed/metrics/lantern-interactive.js +0 -1
- package/core/computed/metrics/lantern-largest-contentful-paint.js +0 -1
- package/core/computed/metrics/lantern-max-potential-fid.js +0 -1
- package/core/computed/metrics/lantern-metric.js +0 -1
- package/core/computed/metrics/lantern-speed-index.js +0 -1
- package/core/computed/metrics/lantern-total-blocking-time.js +0 -1
- package/core/computed/metrics/largest-contentful-paint-all-frames.js +0 -2
- package/core/computed/metrics/largest-contentful-paint.js +0 -2
- package/core/computed/metrics/max-potential-fid.js +0 -1
- package/core/computed/metrics/metric.js +0 -1
- package/core/computed/metrics/navigation-metric.js +0 -1
- package/core/computed/metrics/responsiveness.js +0 -1
- package/core/computed/metrics/speed-index.js +0 -1
- package/core/computed/metrics/tbt-utils.js +0 -1
- package/core/computed/metrics/timing-summary.js +0 -1
- package/core/computed/metrics/total-blocking-time.js +0 -1
- package/core/computed/module-duplication.js +0 -1
- package/core/computed/network-analysis.js +0 -1
- package/core/computed/network-records.js +0 -1
- package/core/computed/page-dependency-graph.js +0 -1
- package/core/computed/processed-navigation.js +0 -1
- package/core/computed/processed-trace.js +0 -1
- package/core/computed/resource-summary.js +0 -1
- package/core/computed/screenshots.js +0 -1
- package/core/computed/speedline.js +2 -2
- package/core/computed/unused-css.js +0 -1
- package/core/computed/unused-javascript-summary.js +0 -1
- package/core/computed/user-timings.js +0 -1
- package/core/computed/viewport-meta.js +1 -1
- package/core/config/budget.js +0 -1
- package/core/config/config-helpers.js +2 -1
- package/core/config/config-plugin.js +0 -1
- package/core/config/config.js +4 -4
- package/core/config/constants.js +0 -1
- package/core/config/default-config.js +2 -4
- package/core/config/desktop-config.js +0 -1
- package/core/config/experimental-config.js +0 -1
- package/core/config/full-config.js +0 -1
- package/core/config/legacy-default-config.js +0 -1
- package/core/config/lr-desktop-config.js +0 -1
- package/core/config/lr-mobile-config.js +0 -1
- package/core/config/metrics-to-audits.js +0 -1
- package/core/config/perf-config.js +0 -1
- package/core/fraggle-rock/api.js +0 -1
- package/core/fraggle-rock/config/config.js +2 -5
- package/core/fraggle-rock/config/filters.js +1 -1
- package/core/fraggle-rock/config/validation.js +0 -1
- package/core/fraggle-rock/gather/base-artifacts.js +1 -1
- package/core/fraggle-rock/gather/base-gatherer.js +0 -1
- package/core/fraggle-rock/gather/driver.js +1 -1
- package/core/fraggle-rock/gather/navigation-runner.js +1 -1
- package/core/fraggle-rock/gather/runner-helpers.js +0 -1
- package/core/fraggle-rock/gather/session.js +1 -1
- package/core/fraggle-rock/gather/snapshot-runner.js +1 -1
- package/core/fraggle-rock/gather/timespan-runner.js +1 -1
- package/core/fraggle-rock/replay/stringify-extension.js +0 -1
- package/core/fraggle-rock/user-flow.js +0 -1
- package/core/gather/connections/connection.js +2 -1
- package/core/gather/connections/cri.js +4 -3
- package/core/gather/connections/raw.js +0 -1
- package/core/gather/driver/dom.js +0 -1
- package/core/gather/driver/environment.js +1 -1
- package/core/gather/driver/execution-context.js +0 -1
- package/core/gather/driver/navigation.js +1 -1
- package/core/gather/driver/network-monitor.js +2 -2
- package/core/gather/driver/network.js +0 -1
- package/core/gather/driver/prepare.js +1 -1
- package/core/gather/driver/service-workers.js +0 -1
- package/core/gather/driver/storage.js +1 -1
- package/core/gather/driver/target-manager.js +2 -1
- package/core/gather/driver/wait-for-condition.js +0 -1
- package/core/gather/driver.js +4 -3
- package/core/gather/fetcher.js +0 -1
- package/core/gather/gather-runner.js +1 -1
- package/core/gather/gatherers/accessibility.js +0 -2
- package/core/gather/gatherers/anchor-elements.js +0 -2
- package/core/gather/gatherers/cache-contents.js +0 -1
- package/core/gather/gatherers/console-messages.js +0 -1
- package/core/gather/gatherers/css-usage.js +2 -2
- package/core/gather/gatherers/devtools-log-compat.js +0 -2
- package/core/gather/gatherers/devtools-log.js +0 -1
- package/core/gather/gatherers/dobetterweb/doctype.js +0 -1
- package/core/gather/gatherers/dobetterweb/domstats.js +0 -1
- package/core/gather/gatherers/dobetterweb/optimized-images.js +2 -1
- package/core/gather/gatherers/dobetterweb/password-inputs-with-prevented-paste.js +0 -2
- package/core/gather/gatherers/dobetterweb/response-compression.js +3 -2
- package/core/gather/gatherers/dobetterweb/tags-blocking-first-paint.js +0 -1
- package/core/gather/gatherers/full-page-screenshot.js +0 -2
- package/core/gather/gatherers/gatherer.js +0 -1
- package/core/gather/gatherers/global-listeners.js +0 -1
- package/core/gather/gatherers/iframe-elements.js +0 -2
- package/core/gather/gatherers/image-elements.js +2 -1
- package/core/gather/gatherers/inputs.js +0 -2
- package/core/gather/gatherers/inspector-issues.js +0 -1
- package/core/gather/gatherers/installability-errors.js +1 -1
- package/core/gather/gatherers/js-usage.js +0 -1
- package/core/gather/gatherers/link-elements.js +1 -1
- package/core/gather/gatherers/main-document-content.js +0 -1
- package/core/gather/gatherers/meta-elements.js +0 -1
- package/core/gather/gatherers/network-user-agent.js +0 -1
- package/core/gather/gatherers/script-elements.js +0 -1
- package/core/gather/gatherers/scripts.js +0 -1
- package/core/gather/gatherers/seo/embedded-content.js +0 -2
- package/core/gather/gatherers/seo/font-size.js +0 -1
- package/core/gather/gatherers/seo/robots-txt.js +0 -1
- package/core/gather/gatherers/seo/tap-targets.js +0 -2
- package/core/gather/gatherers/service-worker.js +0 -1
- package/core/gather/gatherers/source-maps.js +0 -1
- package/core/gather/gatherers/stacks.js +2 -2
- package/core/gather/gatherers/trace-compat.js +0 -2
- package/core/gather/gatherers/trace-elements.js +0 -2
- package/core/gather/gatherers/trace.js +0 -2
- package/core/gather/gatherers/viewport-dimensions.js +0 -1
- package/core/gather/gatherers/web-app-manifest.js +1 -1
- package/core/index.js +5 -3
- package/core/lib/arbitrary-equality-map.js +0 -1
- package/core/lib/asset-saver.js +3 -2
- package/core/lib/axe.js +0 -1
- package/core/lib/cdt/Common.js +0 -1
- package/core/lib/cdt/Platform.js +0 -1
- package/core/lib/cdt/SDK.js +1 -1
- package/core/lib/csp-evaluator.js +1 -2
- package/core/lib/dependency-graph/base-node.js +0 -1
- package/core/lib/dependency-graph/cpu-node.js +0 -1
- package/core/lib/dependency-graph/network-node.js +0 -1
- package/core/lib/dependency-graph/simulator/connection-pool.js +0 -1
- package/core/lib/dependency-graph/simulator/dns-cache.js +0 -1
- package/core/lib/dependency-graph/simulator/network-analyzer.js +0 -1
- package/core/lib/dependency-graph/simulator/simulator-timing-map.js +0 -1
- package/core/lib/dependency-graph/simulator/simulator.js +0 -1
- package/core/lib/dependency-graph/simulator/tcp-connection.js +0 -1
- package/core/lib/emulation.js +0 -1
- package/core/lib/i18n/i18n.js +2 -2
- package/core/lib/icons.js +0 -1
- package/core/lib/lantern-trace-saver.js +0 -1
- package/core/lib/lh-env.js +0 -1
- package/core/lib/lh-error.js +0 -1
- package/core/lib/lh-trace-processor.js +0 -1
- package/core/lib/manifest-parser.js +2 -2
- package/core/lib/median-run.js +1 -1
- package/core/lib/minification-estimator.js +0 -1
- package/core/lib/minify-devtoolslog.js +0 -1
- package/core/lib/minify-trace.js +0 -1
- package/core/lib/navigation-error.js +0 -1
- package/core/lib/network-recorder.js +3 -2
- package/core/lib/network-request.js +0 -1
- package/core/lib/page-functions.js +0 -1
- package/core/lib/proto-preprocessor.js +1 -2
- package/core/lib/rect-helpers.js +0 -1
- package/core/lib/script-helpers.js +0 -1
- package/core/lib/sentry.js +0 -1
- package/core/lib/stack-packs.js +1 -1
- package/core/lib/statistics.js +0 -1
- package/core/lib/tappable-rects.js +0 -1
- package/core/lib/third-party-web.js +0 -1
- package/core/lib/timing-trace-saver.js +0 -1
- package/core/lib/tracehouse/cpu-profile-model.js +0 -1
- package/core/lib/tracehouse/main-thread-tasks.js +0 -1
- package/core/lib/tracehouse/task-groups.js +0 -1
- package/core/lib/tracehouse/task-summary.js +0 -1
- package/core/lib/tracehouse/trace-processor.js +0 -1
- package/core/lib/traces/metric-trace-events.js +1 -1
- package/core/lib/url-shim.js +0 -2
- package/core/runner.js +5 -4
- package/core/scoring.js +0 -2
- package/esm-utils.js +0 -2
- package/package.json +1 -1
- package/root.js +1 -1
- package/shared/localization/format.js +2 -1
- package/shared/localization/i18n-module.js +0 -1
- package/shared/localization/locales.js +1 -1
- package/shared/localization/swap-flow-locale.js +0 -1
- package/shared/localization/swap-locale.js +0 -1
- package/shared/test/localization/format-test.js +0 -1
- package/shared/test/localization/locales-test.js +2 -2
- package/shared/test/localization/swap-locale-test.js +0 -1
- package/shared/type-verifiers.js +0 -1
- package/cli/package.json +0 -4
- package/core/package.json +0 -4
- package/core/scripts/package.json +0 -4
- package/flow-report/package.json +0 -4
- package/report/package.json +0 -4
|
@@ -3,7 +3,6 @@
|
|
|
3
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
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
|
-
'use strict';
|
|
7
6
|
|
|
8
7
|
import isDeepEqual from 'lodash/isEqual.js';
|
|
9
8
|
|
package/core/lib/asset-saver.js
CHANGED
|
@@ -3,13 +3,14 @@
|
|
|
3
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
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
|
-
'use strict';
|
|
7
6
|
|
|
8
7
|
import fs from 'fs';
|
|
9
8
|
import path from 'path';
|
|
10
|
-
import log from 'lighthouse-logger';
|
|
11
9
|
import stream from 'stream';
|
|
12
10
|
import util from 'util';
|
|
11
|
+
|
|
12
|
+
import log from 'lighthouse-logger';
|
|
13
|
+
|
|
13
14
|
import {Simulator} from './dependency-graph/simulator/simulator.js';
|
|
14
15
|
import lanternTraceSaver from './lantern-trace-saver.js';
|
|
15
16
|
import {MetricTraceEvents} from './traces/metric-trace-events.js';
|
package/core/lib/axe.js
CHANGED
|
@@ -3,7 +3,6 @@
|
|
|
3
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
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
|
-
'use strict';
|
|
7
6
|
|
|
8
7
|
import fs from 'fs';
|
|
9
8
|
import {createRequire} from 'module';
|
package/core/lib/cdt/Common.js
CHANGED
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
5
5
|
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
|
|
6
6
|
*/
|
|
7
|
-
'use strict';
|
|
8
7
|
|
|
9
8
|
const ParsedURL = require('./generated/ParsedURL.js');
|
|
10
9
|
|
package/core/lib/cdt/Platform.js
CHANGED
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
5
5
|
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
|
|
6
6
|
*/
|
|
7
|
-
'use strict';
|
|
8
7
|
|
|
9
8
|
// Functions manually copied from:
|
|
10
9
|
// https://github.com/ChromeDevTools/devtools-frontend/blob/master/front_end/core/platform/array-utilities.ts#L125
|
package/core/lib/cdt/SDK.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
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
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
7
|
const SDK = {
|
|
8
8
|
TextSourceMap: require('./generated/SourceMap.js'),
|
|
9
9
|
};
|
|
@@ -3,18 +3,17 @@
|
|
|
3
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
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
|
-
'use strict';
|
|
7
6
|
|
|
8
7
|
/** @typedef {import('csp_evaluator/finding').Finding} Finding */
|
|
9
8
|
|
|
10
9
|
import {
|
|
11
10
|
evaluateForFailure, evaluateForSyntaxErrors, evaluateForWarnings,
|
|
12
11
|
} from 'csp_evaluator/dist/lighthouse/lighthouse_checks.js';
|
|
13
|
-
|
|
14
12
|
import {Type} from 'csp_evaluator/dist/finding.js';
|
|
15
13
|
import {CspParser} from 'csp_evaluator/dist/parser.js';
|
|
16
14
|
import {Directive} from 'csp_evaluator/dist/csp.js';
|
|
17
15
|
import log from 'lighthouse-logger';
|
|
16
|
+
|
|
18
17
|
import * as i18n from '../lib/i18n/i18n.js';
|
|
19
18
|
import {isIcuMessage} from '../../shared/localization/format.js';
|
|
20
19
|
|
|
@@ -3,7 +3,6 @@
|
|
|
3
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
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
|
-
'use strict';
|
|
7
6
|
|
|
8
7
|
/**
|
|
9
8
|
* A union of all types derived from BaseNode, allowing type check discrimination
|
|
@@ -3,7 +3,6 @@
|
|
|
3
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
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
|
-
'use strict';
|
|
7
6
|
|
|
8
7
|
import {BaseNode} from './base-node.js';
|
|
9
8
|
|
|
@@ -3,7 +3,6 @@
|
|
|
3
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
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
|
-
'use strict';
|
|
7
6
|
|
|
8
7
|
import {BaseNode} from './base-node.js';
|
|
9
8
|
import {NetworkRequest} from '../network-request.js';
|
|
@@ -3,7 +3,6 @@
|
|
|
3
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
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
|
-
'use strict';
|
|
7
6
|
|
|
8
7
|
import {NetworkAnalyzer} from './network-analyzer.js';
|
|
9
8
|
import {TcpConnection} from './tcp-connection.js';
|
|
@@ -3,7 +3,6 @@
|
|
|
3
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
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
|
-
'use strict';
|
|
7
6
|
|
|
8
7
|
// A DNS lookup will usually take ~1-2 roundtrips of connection latency plus the extra DNS routing time.
|
|
9
8
|
// Example: https://www.webpagetest.org/result/180703_3A_e33ec79747c002ed4d7bcbfc81462203/1/details/#waterfall_view_step1
|
|
@@ -3,7 +3,6 @@
|
|
|
3
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
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
|
-
'use strict';
|
|
7
6
|
|
|
8
7
|
import URL from '../../url-shim.js';
|
|
9
8
|
|
|
@@ -3,7 +3,6 @@
|
|
|
3
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
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
|
-
'use strict';
|
|
7
6
|
|
|
8
7
|
import {BaseNode} from '../base-node.js';
|
|
9
8
|
|
|
@@ -3,7 +3,6 @@
|
|
|
3
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
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
|
-
'use strict';
|
|
7
6
|
|
|
8
7
|
import {BaseNode} from '../base-node.js';
|
|
9
8
|
import {TcpConnection} from './tcp-connection.js';
|
|
@@ -3,7 +3,6 @@
|
|
|
3
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
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
|
-
'use strict';
|
|
7
6
|
|
|
8
7
|
const INITIAL_CONGESTION_WINDOW = 10;
|
|
9
8
|
const TCP_SEGMENT_SIZE = 1460;
|
package/core/lib/emulation.js
CHANGED
|
@@ -3,7 +3,6 @@
|
|
|
3
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
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
|
-
'use strict';
|
|
7
6
|
|
|
8
7
|
import {lighthouseVersion} from '../../root.js';
|
|
9
8
|
|
package/core/lib/i18n/i18n.js
CHANGED
|
@@ -3,7 +3,6 @@
|
|
|
3
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
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
|
-
'use strict';
|
|
7
6
|
|
|
8
7
|
/** @typedef {import('../../../shared/localization/locales').LhlMessages} LhlMessages */
|
|
9
8
|
|
|
@@ -11,8 +10,9 @@ import path from 'path';
|
|
|
11
10
|
import url from 'url';
|
|
12
11
|
|
|
13
12
|
import lookupClosestLocale from 'lookup-closest-locale';
|
|
14
|
-
import {getAvailableLocales} from '../../../shared/localization/format.js';
|
|
15
13
|
import log from 'lighthouse-logger';
|
|
14
|
+
|
|
15
|
+
import {getAvailableLocales} from '../../../shared/localization/format.js';
|
|
16
16
|
import {LH_ROOT} from '../../../root.js';
|
|
17
17
|
import {isIcuMessage, formatMessage, DEFAULT_LOCALE} from '../../../shared/localization/format.js';
|
|
18
18
|
import {getModulePath} from '../../../esm-utils.js';
|
package/core/lib/icons.js
CHANGED
|
@@ -3,7 +3,6 @@
|
|
|
3
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
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
|
-
'use strict';
|
|
7
6
|
|
|
8
7
|
import URL from './url-shim.js';
|
|
9
8
|
|
|
@@ -3,7 +3,6 @@
|
|
|
3
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
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
|
-
'use strict';
|
|
7
6
|
|
|
8
7
|
/**
|
|
9
8
|
* @param {LH.Gatherer.Simulation.Result['nodeTimings']} nodeTimings
|
package/core/lib/lh-env.js
CHANGED
|
@@ -3,7 +3,6 @@
|
|
|
3
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
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
|
-
'use strict';
|
|
7
6
|
|
|
8
7
|
import process from 'process';
|
|
9
8
|
|
package/core/lib/lh-error.js
CHANGED
|
@@ -3,7 +3,6 @@
|
|
|
3
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
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
|
-
'use strict';
|
|
7
6
|
|
|
8
7
|
import * as i18n from './i18n/i18n.js';
|
|
9
8
|
|
|
@@ -3,7 +3,6 @@
|
|
|
3
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
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
|
-
'use strict';
|
|
7
6
|
|
|
8
7
|
import {LighthouseError} from '../lib/lh-error.js';
|
|
9
8
|
import {TraceProcessor} from '../lib/tracehouse/trace-processor.js';
|
|
@@ -3,11 +3,11 @@
|
|
|
3
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
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
|
-
'use strict';
|
|
7
6
|
|
|
8
|
-
import URL from './url-shim.js';
|
|
9
7
|
import cssParsers from 'cssstyle/lib/parsers.js';
|
|
10
8
|
|
|
9
|
+
import URL from './url-shim.js';
|
|
10
|
+
|
|
11
11
|
const ALLOWED_DISPLAY_VALUES = [
|
|
12
12
|
'fullscreen',
|
|
13
13
|
'standalone',
|
package/core/lib/median-run.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
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
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
7
|
|
|
8
8
|
/** @param {LH.Result} lhr @param {string} auditName */
|
|
9
9
|
const getNumericValue = (lhr, auditName) => lhr.audits[auditName]?.numericValue || NaN;
|
|
@@ -3,7 +3,6 @@
|
|
|
3
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
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
|
-
'use strict';
|
|
7
6
|
|
|
8
7
|
// https://www.ecma-international.org/ecma-262/9.0/index.html#sec-punctuators
|
|
9
8
|
// eslint-disable-next-line max-len
|
|
@@ -3,7 +3,6 @@
|
|
|
3
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
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
|
-
'use strict';
|
|
7
6
|
|
|
8
7
|
/* eslint-disable no-console */
|
|
9
8
|
|
package/core/lib/minify-trace.js
CHANGED
|
@@ -3,7 +3,6 @@
|
|
|
3
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
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
|
-
'use strict';
|
|
7
6
|
|
|
8
7
|
/* eslint-disable no-console */
|
|
9
8
|
|
|
@@ -3,7 +3,6 @@
|
|
|
3
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
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
|
-
'use strict';
|
|
7
6
|
|
|
8
7
|
import {LighthouseError} from './lh-error.js';
|
|
9
8
|
import {NetworkAnalyzer} from './dependency-graph/simulator/network-analyzer.js';
|
|
@@ -3,11 +3,12 @@
|
|
|
3
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
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 {EventEmitter} from 'events';
|
|
7
8
|
|
|
8
9
|
import log from 'lighthouse-logger';
|
|
10
|
+
|
|
9
11
|
import {NetworkRequest} from './network-request.js';
|
|
10
|
-
import {EventEmitter} from 'events';
|
|
11
12
|
|
|
12
13
|
/**
|
|
13
14
|
* @typedef {{
|
|
@@ -3,7 +3,6 @@
|
|
|
3
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
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
|
-
'use strict';
|
|
7
6
|
|
|
8
7
|
/**
|
|
9
8
|
* @fileoverview Fills most of the role of NetworkManager and NetworkRequest classes from DevTools.
|
|
@@ -3,7 +3,6 @@
|
|
|
3
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
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
|
-
'use strict';
|
|
7
6
|
|
|
8
7
|
/**
|
|
9
8
|
* @fileoverview
|
|
@@ -4,9 +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
|
-
'use strict';
|
|
8
|
-
|
|
9
7
|
import fs from 'fs';
|
|
8
|
+
|
|
10
9
|
import esMain from 'es-main';
|
|
11
10
|
|
|
12
11
|
/**
|
package/core/lib/rect-helpers.js
CHANGED
|
@@ -3,7 +3,6 @@
|
|
|
3
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
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
|
-
'use strict';
|
|
7
6
|
|
|
8
7
|
/**
|
|
9
8
|
* @param {LH.Artifacts.Rect} rect
|
|
@@ -3,7 +3,6 @@
|
|
|
3
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
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
|
-
'use strict';
|
|
7
6
|
|
|
8
7
|
/**
|
|
9
8
|
* @param {LH.Artifacts.Script} script
|
package/core/lib/sentry.js
CHANGED
|
@@ -3,7 +3,6 @@
|
|
|
3
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
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
|
-
'use strict';
|
|
7
6
|
|
|
8
7
|
import log from 'lighthouse-logger';
|
|
9
8
|
|
package/core/lib/stack-packs.js
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
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
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
|
-
'use strict';
|
|
7
6
|
|
|
8
7
|
import log from 'lighthouse-logger';
|
|
9
8
|
import stackPacks from 'lighthouse-stack-packs';
|
|
9
|
+
|
|
10
10
|
import * as i18n from './i18n/i18n.js';
|
|
11
11
|
|
|
12
12
|
/**
|
package/core/lib/statistics.js
CHANGED
|
@@ -3,7 +3,6 @@
|
|
|
3
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
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
|
-
'use strict';
|
|
7
6
|
|
|
8
7
|
// The exact double values for the max and min scores possible in each range.
|
|
9
8
|
const MIN_PASSING_SCORE = 0.90000000000000002220446049250313080847263336181640625;
|
|
@@ -3,7 +3,6 @@
|
|
|
3
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
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
|
-
'use strict';
|
|
7
6
|
|
|
8
7
|
import * as RectHelpers from './rect-helpers.js';
|
|
9
8
|
|
|
@@ -3,7 +3,6 @@
|
|
|
3
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
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
|
-
'use strict';
|
|
7
6
|
|
|
8
7
|
import thirdPartyWeb from 'third-party-web/httparchive-nostats-subset.js';
|
|
9
8
|
|
|
@@ -3,7 +3,6 @@
|
|
|
3
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
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
|
-
'use strict';
|
|
7
6
|
|
|
8
7
|
/**
|
|
9
8
|
* Generates a chromium trace file from user timing measures
|
|
@@ -3,7 +3,6 @@
|
|
|
3
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
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
|
-
'use strict';
|
|
7
6
|
|
|
8
7
|
import {MainThreadTasks} from './main-thread-tasks.js';
|
|
9
8
|
|
|
@@ -3,7 +3,6 @@
|
|
|
3
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
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
|
-
'use strict';
|
|
7
6
|
|
|
8
7
|
import {taskGroups, taskNameToGroup} from './task-groups.js';
|
|
9
8
|
|
|
@@ -3,7 +3,6 @@
|
|
|
3
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
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
|
-
'use strict';
|
|
7
6
|
|
|
8
7
|
/** @typedef {'parseHTML'|'styleLayout'|'paintCompositeRender'|'scriptParseCompile'|'scriptEvaluation'|'garbageCollection'|'other'} TaskGroupIds */
|
|
9
8
|
|
|
@@ -3,7 +3,6 @@
|
|
|
3
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
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
|
-
'use strict';
|
|
7
6
|
|
|
8
7
|
/**
|
|
9
8
|
* @fileoverview Utility functions for grouping and summarizing tasks.
|
|
@@ -3,7 +3,6 @@
|
|
|
3
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
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
|
-
'use strict';
|
|
7
6
|
|
|
8
7
|
/**
|
|
9
8
|
* @fileoverview Singluar helper to parse a raw trace and extract the most useful data for
|
|
@@ -3,9 +3,9 @@
|
|
|
3
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
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
|
-
'use strict';
|
|
7
6
|
|
|
8
7
|
import log from 'lighthouse-logger';
|
|
8
|
+
|
|
9
9
|
import {TraceProcessor} from '../tracehouse/trace-processor.js';
|
|
10
10
|
|
|
11
11
|
/**
|
package/core/lib/url-shim.js
CHANGED
|
@@ -3,14 +3,12 @@
|
|
|
3
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
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
|
-
'use strict';
|
|
7
6
|
|
|
8
7
|
/**
|
|
9
8
|
* URL shim so we keep our code DRY
|
|
10
9
|
*/
|
|
11
10
|
|
|
12
11
|
import {Util} from '../util.cjs';
|
|
13
|
-
|
|
14
12
|
import {LighthouseError} from '../lib/lh-error.js';
|
|
15
13
|
|
|
16
14
|
/** @typedef {import('./network-request.js').NetworkRequest} NetworkRequest */
|
package/core/runner.js
CHANGED
|
@@ -3,19 +3,20 @@
|
|
|
3
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
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 fs from 'fs';
|
|
8
|
+
import path from 'path';
|
|
7
9
|
|
|
8
10
|
import isDeepEqual from 'lodash/isEqual.js';
|
|
11
|
+
import log from 'lighthouse-logger';
|
|
12
|
+
|
|
9
13
|
import {Driver} from './gather/driver.js';
|
|
10
14
|
import {GatherRunner} from './gather/gather-runner.js';
|
|
11
15
|
import {ReportScoring} from './scoring.js';
|
|
12
16
|
import {Audit} from './audits/audit.js';
|
|
13
|
-
import log from 'lighthouse-logger';
|
|
14
17
|
import * as format from '../shared/localization/format.js';
|
|
15
18
|
import * as stackPacks from './lib/stack-packs.js';
|
|
16
19
|
import * as assetSaver from './lib/asset-saver.js';
|
|
17
|
-
import fs from 'fs';
|
|
18
|
-
import path from 'path';
|
|
19
20
|
import {Sentry} from './lib/sentry.js';
|
|
20
21
|
import {ReportGenerator} from '../report/generator/report-generator.js';
|
|
21
22
|
import {LighthouseError} from './lib/lh-error.js';
|
package/core/scoring.js
CHANGED
|
@@ -4,8 +4,6 @@
|
|
|
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
|
-
'use strict';
|
|
8
|
-
|
|
9
7
|
import {Audit} from './audits/audit.js';
|
|
10
8
|
|
|
11
9
|
/**
|
package/esm-utils.js
CHANGED
|
@@ -3,8 +3,6 @@
|
|
|
3
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
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
|
-
'use strict';
|
|
7
|
-
// TODO(esmodules): rename to .js when root is type: module
|
|
8
6
|
|
|
9
7
|
import {createRequire} from 'module';
|
|
10
8
|
import url from 'url';
|
package/package.json
CHANGED
package/root.js
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
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
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
|
-
'use strict';
|
|
7
6
|
|
|
8
7
|
import fs from 'fs';
|
|
8
|
+
|
|
9
9
|
import {getModuleDirectory} from './esm-utils.js';
|
|
10
10
|
|
|
11
11
|
const LH_ROOT = getModuleDirectory(import.meta);
|
|
@@ -3,10 +3,11 @@
|
|
|
3
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
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
|
-
'use strict';
|
|
7
6
|
|
|
8
7
|
import fs from 'fs';
|
|
8
|
+
|
|
9
9
|
import IntlMessageFormat from 'intl-messageformat';
|
|
10
|
+
|
|
10
11
|
import {getModuleDirectory} from '../../esm-utils.js';
|
|
11
12
|
import {isObjectOfUnknownValues, isObjectOrArrayOfUnknownValues} from '../type-verifiers.js';
|
|
12
13
|
import {locales} from './locales.js';
|