lighthouse 10.1.1-dev.20230416 → 10.1.1-dev.20230418
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/core/runner.js +8 -2
- package/package.json +2 -2
- package/report/README.md +1 -1
- package/types/externs.d.ts +1 -1
package/core/runner.js
CHANGED
|
@@ -88,6 +88,13 @@ class Runner {
|
|
|
88
88
|
log.timeEnd(resultsStatus);
|
|
89
89
|
log.timeEnd(runnerStatus);
|
|
90
90
|
|
|
91
|
+
/** @type {LH.Artifacts['FullPageScreenshot']|undefined} */
|
|
92
|
+
let fullPageScreenshot = artifacts.FullPageScreenshot;
|
|
93
|
+
if (resolvedConfig.settings.disableFullPageScreenshot ||
|
|
94
|
+
fullPageScreenshot instanceof Error) {
|
|
95
|
+
fullPageScreenshot = undefined;
|
|
96
|
+
}
|
|
97
|
+
|
|
91
98
|
/** @type {LH.RawIcu<LH.Result>} */
|
|
92
99
|
const i18nLhr = {
|
|
93
100
|
lighthouseVersion,
|
|
@@ -113,8 +120,7 @@ class Runner {
|
|
|
113
120
|
categoryGroups: resolvedConfig.groups || undefined,
|
|
114
121
|
stackPacks: stackPacks.getStackPacks(artifacts.Stacks),
|
|
115
122
|
entities: await Runner.getEntityClassification(artifacts, {computedCache}),
|
|
116
|
-
fullPageScreenshot
|
|
117
|
-
undefined : artifacts.FullPageScreenshot,
|
|
123
|
+
fullPageScreenshot,
|
|
118
124
|
timing: this._getTiming(artifacts),
|
|
119
125
|
i18n: {
|
|
120
126
|
rendererFormattedStrings: format.getRendererFormattedStrings(settings.locale),
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lighthouse",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "10.1.1-dev.
|
|
4
|
+
"version": "10.1.1-dev.20230418",
|
|
5
5
|
"description": "Automated auditing, performance metrics, and best practices for the web.",
|
|
6
6
|
"main": "./core/index.js",
|
|
7
7
|
"bin": {
|
|
@@ -187,7 +187,7 @@
|
|
|
187
187
|
"dependencies": {
|
|
188
188
|
"@sentry/node": "^6.17.4",
|
|
189
189
|
"axe-core": "4.6.3",
|
|
190
|
-
"chrome-launcher": "^0.15.
|
|
190
|
+
"chrome-launcher": "^0.15.2",
|
|
191
191
|
"configstore": "^5.0.1",
|
|
192
192
|
"csp_evaluator": "1.1.1",
|
|
193
193
|
"devtools-protocol": "0.0.1130274",
|
package/report/README.md
CHANGED
|
@@ -27,5 +27,5 @@ Examples:
|
|
|
27
27
|
The renderer was designed to be portable across various environments.
|
|
28
28
|
|
|
29
29
|
1. _LH CLI_: It [creates the HTML as the runner finishes up](https://github.com/GoogleChrome/lighthouse/blob/da3c865d698abc9365fa7bb087a08ce8c89b0a05/core/runner.js#L130-L131) and [saves it to disk](https://github.com/GoogleChrome/lighthouse/blob/da3c865d698abc9365fa7bb087a08ce8c89b0a05/cli/printer.js#L52-L70).
|
|
30
|
-
1. _Chrome DevTools Lighthouse Panel_: The `renderer` files are rolled into the Chromium repo, and they execute within the DevTools context. The
|
|
30
|
+
1. _Chrome DevTools Lighthouse Panel_: The `renderer` files are rolled into the Chromium repo, and they execute within the DevTools context. The Lighthouse panel [receives the LHR object from a WebWorker](https://github.com/ChromeDevTools/devtools-frontend/blob/e540d8037c1f724d61ae70553cc630a0453efebe/front_end/panels/lighthouse/LighthouseProtocolService.ts#L122-L142), through a `postMessage` and then runs [the renderer within DevTools UI](https://github.com/ChromeDevTools/devtools-frontend/blob/e540d8037c1f724d61ae70553cc630a0453efebe/front_end/panels/lighthouse/LighthousePanel.ts#L293-L317), making a few [simplifications](https://github.com/ChromeDevTools/devtools-frontend/blob/main/front_end/panels/lighthouse/LighthouseReportRenderer.ts).
|
|
31
31
|
1. _Hosted [Lighthouse Viewer](https://googlechrome.github.io/lighthouse/viewer/)_: It's a webapp that has the renderer (along with some [additional features](https://github.com/GoogleChrome/lighthouse/blob/main/report/renderer/report-ui-features.js)) all compiled into a [`main-XXX.js`](https://github.com/GoogleChrome/lighthouse/tree/main/viewer/app/src) file. Same [basic approach](https://github.com/GoogleChrome/lighthouse/blob/da3c865d698abc9365fa7bb087a08ce8c89b0a05/viewer/app/src/lighthouse-report-viewer.js#L235-L239) there.
|
package/types/externs.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ export interface Flags extends SharedFlagsSettings {
|
|
|
18
18
|
/** The hostname to use for the debugging protocol, if manually connecting. */
|
|
19
19
|
hostname?: string;
|
|
20
20
|
/** The level of logging to enable. */
|
|
21
|
-
logLevel?: 'silent'|'error'|'info'|'verbose';
|
|
21
|
+
logLevel?: 'silent'|'error'|'warn'|'info'|'verbose';
|
|
22
22
|
/** The path to the config JSON. */
|
|
23
23
|
configPath?: string;
|
|
24
24
|
/** Run the specified plugins. */
|