lighthouse 10.1.1-dev.20230416 → 10.1.1-dev.20230417

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.
Files changed (2) hide show
  1. package/core/runner.js +8 -2
  2. package/package.json +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: resolvedConfig.settings.disableFullPageScreenshot ?
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.20230416",
4
+ "version": "10.1.1-dev.20230417",
5
5
  "description": "Automated auditing, performance metrics, and best practices for the web.",
6
6
  "main": "./core/index.js",
7
7
  "bin": {