lighthouse 12.8.1-dev.20250804 → 12.8.1-dev.20250805

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.
@@ -40,6 +40,8 @@ for (const array of Object.values(exclusions)) {
40
40
  array.push('csp-block-all');
41
41
  // glitch is gone.
42
42
  array.push('issues-mixed-content');
43
+ // works most of the time, but since it uses a live site it can be flaky
44
+ array.push('trusted-types-directive-present');
43
45
  }
44
46
 
45
47
  export default exclusions;
@@ -14,6 +14,10 @@ import log from 'lighthouse-logger';
14
14
  import {Audit} from './audit.js';
15
15
  import {JSBundles} from '../computed/js-bundles.js';
16
16
  import * as i18n from '../lib/i18n/i18n.js';
17
+ import {Util} from '../../shared/util.js';
18
+
19
+ const KB = 1024;
20
+ const MAX_CONSOLE_ERRORS = 1000;
17
21
 
18
22
  const UIStrings = {
19
23
  /** Title of a Lighthouse audit that provides detail on browser errors. This descriptive title is shown to users when no browser errors were logged into the devtools console. */
@@ -90,10 +94,10 @@ class ErrorLogs extends Audit {
90
94
  const bundle = bundles.find(bundle => bundle.script.scriptId === item.scriptId);
91
95
  return {
92
96
  source: item.source,
93
- description: item.text,
97
+ description: item.text ? Util.truncate(item.text, 10 * KB) : undefined,
94
98
  sourceLocation: Audit.makeSourceLocationFromConsoleMessage(item, bundle),
95
99
  };
96
- });
100
+ }).slice(0, MAX_CONSOLE_ERRORS);
97
101
 
98
102
  const tableRows = ErrorLogs.filterAccordingToOptions(consoleRows, auditOptions)
99
103
  .sort((a, b) => (a.description || '').localeCompare(b.description || ''));
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "lighthouse",
3
3
  "type": "module",
4
- "version": "12.8.1-dev.20250804",
4
+ "version": "12.8.1-dev.20250805",
5
5
  "description": "Automated auditing, performance metrics, and best practices for the web.",
6
6
  "main": "./core/index.js",
7
7
  "bin": {