lighthouse 9.5.0-dev.20220605 → 9.5.0-dev.20220608
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/dist/report/bundle.esm.js +25 -1
- package/dist/report/flow.js +3 -3
- package/flow-report/tsconfig.json +0 -2
- package/lighthouse-core/config/config.js +1 -0
- package/lighthouse-core/fraggle-rock/config/filters.js +1 -0
- package/lighthouse-core/fraggle-rock/gather/driver.js +8 -10
- package/lighthouse-core/fraggle-rock/gather/session.js +31 -30
- package/lighthouse-core/gather/connections/cri.js +4 -1
- package/lighthouse-core/gather/driver/network-monitor.js +24 -9
- package/lighthouse-core/gather/driver/wait-for-condition.js +4 -3
- package/lighthouse-core/gather/gather-runner.js +15 -0
- package/lighthouse-core/gather/gatherers/devtools-log.js +1 -1
- package/lighthouse-core/lib/network-recorder.js +2 -2
- package/lighthouse-core/runner.js +1 -0
- package/package.json +4 -4
- package/report/generator/tsconfig.json +0 -2
- package/report/renderer/swap-locale-feature.js +2 -2
- package/report/tsconfig.json +0 -2
- package/shared/tsconfig.json +0 -2
- package/tsconfig-base.json +5 -0
- package/tsconfig.json +0 -2
- package/types/artifacts.d.ts +2 -0
- package/types/lhr/lhr.d.ts +2 -0
- package/types/lhr/tsconfig.json +0 -2
- package/types/lighthouse-logger/index.d.ts +1 -0
|
@@ -5757,6 +5757,30 @@ function renderReport(lhr, opts = {}) {
|
|
|
5757
5757
|
return rootEl;
|
|
5758
5758
|
}
|
|
5759
5759
|
|
|
5760
|
-
|
|
5760
|
+
/**
|
|
5761
|
+
* Returns a new LHR with all strings changed to the new requestedLocale.
|
|
5762
|
+
* @param {LH.Result} lhr
|
|
5763
|
+
* @param {LH.Locale} requestedLocale
|
|
5764
|
+
* @return {{lhr: LH.Result, missingIcuMessageIds: string[]}}
|
|
5765
|
+
*/
|
|
5766
|
+
function swapLocale(lhr, requestedLocale) {
|
|
5767
|
+
// Stub function only included for types
|
|
5768
|
+
return {
|
|
5769
|
+
lhr,
|
|
5770
|
+
missingIcuMessageIds: [],
|
|
5771
|
+
};
|
|
5772
|
+
}
|
|
5773
|
+
|
|
5774
|
+
/**
|
|
5775
|
+
* Populate the i18n string lookup dict with locale data
|
|
5776
|
+
* Used when the host environment selects the locale and serves lighthouse the intended locale file
|
|
5777
|
+
* @see https://docs.google.com/document/d/1jnt3BqKB-4q3AE94UWFA0Gqspx8Sd_jivlB7gQMlmfk/edit
|
|
5778
|
+
* @param {LH.Locale} locale
|
|
5779
|
+
* @param {Record<string, {message: string}>} lhlMessages
|
|
5780
|
+
*/
|
|
5781
|
+
function registerLocaleData(locale, lhlMessages) {
|
|
5782
|
+
// Stub function only included for types
|
|
5783
|
+
}
|
|
5784
|
+
const format = {registerLocaleData};
|
|
5761
5785
|
|
|
5762
5786
|
export { DOM, ReportRenderer, ReportUIFeatures, format, renderReport, swapLocale };
|