lighthouse 12.5.1-dev.20250412 → 12.5.1-dev.20250414

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.
@@ -5,11 +5,9 @@
5
5
  */
6
6
 
7
7
  /**
8
- * @fileoverview Determines optimized jpeg/webp filesizes for all same-origin and dataURI images by
9
- * running the images through canvas in the browser context.
8
+ * @fileoverview Determines optimized jpeg/webp filesizes for all same-origin and dataURI images
10
9
  */
11
10
 
12
-
13
11
  import log from 'lighthouse-logger';
14
12
 
15
13
  import BaseGatherer from '../../base-gatherer.js';
@@ -133,7 +131,7 @@ class OptimizedImages extends BaseGatherer {
133
131
  const image = {failed: false, ...stats, ...record};
134
132
  results.push(image);
135
133
  } catch (err) {
136
- log.warn('optimized-images', err.message);
134
+ log.warn('optimized-images', err.message, record.url);
137
135
 
138
136
  // Track this with Sentry since these errors aren't surfaced anywhere else, but we don't
139
137
  // want to tank the entire run due to a single image.
@@ -164,12 +162,7 @@ class OptimizedImages extends BaseGatherer {
164
162
  .filterImageRequests(networkRecords)
165
163
  .sort((a, b) => b.resourceSize - a.resourceSize);
166
164
 
167
- const results = await this.computeOptimizedImages(context.driver.defaultSession, imageRecords);
168
- const successfulResults = results.filter(result => !result.failed);
169
- if (results.length && !successfulResults.length) {
170
- throw new Error('All image optimizations failed');
171
- }
172
- return results;
165
+ return await this.computeOptimizedImages(context.driver.defaultSession, imageRecords);
173
166
  }
174
167
  }
175
168
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "lighthouse",
3
3
  "type": "module",
4
- "version": "12.5.1-dev.20250412",
4
+ "version": "12.5.1-dev.20250414",
5
5
  "description": "Automated auditing, performance metrics, and best practices for the web.",
6
6
  "main": "./core/index.js",
7
7
  "bin": {