lighthouse 11.0.0-dev.20230822 → 11.0.0-dev.20230824

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.
@@ -144,10 +144,7 @@ class Redirects extends Audit {
144
144
  {overallSavingsMs: totalWastedMs});
145
145
 
146
146
  return {
147
- // We award a passing grade if you only have 1 redirect
148
- // TODO(phulce): reconsider if cases like the example in https://github.com/GoogleChrome/lighthouse/issues/8984
149
- // should fail this audit.
150
- score: documentRequests.length <= 2 ? 1 : ByteEfficiencyAudit.scoreForWastedMs(totalWastedMs),
147
+ score: ByteEfficiencyAudit.scoreForWastedMs(totalWastedMs),
151
148
  numericValue: totalWastedMs,
152
149
  numericUnit: 'millisecond',
153
150
  displayValue: totalWastedMs ?
@@ -44,6 +44,7 @@ class CrawlableAnchors extends Audit {
44
44
  name = '',
45
45
  role = '',
46
46
  id,
47
+ href,
47
48
  }) => {
48
49
  rawHref = rawHref.replace( /\s/g, '');
49
50
  name = name.trim();
@@ -61,7 +62,7 @@ class CrawlableAnchors extends Audit {
61
62
  if (rawHref.startsWith('file:')) return true;
62
63
  if (name.length > 0) return;
63
64
 
64
- if (rawHref === '') return true;
65
+ if (href === '') return true;
65
66
  if (javaScriptVoidRegExp.test(rawHref)) return true;
66
67
 
67
68
  // checking if rawHref is a valid
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "lighthouse",
3
3
  "type": "module",
4
- "version": "11.0.0-dev.20230822",
4
+ "version": "11.0.0-dev.20230824",
5
5
  "description": "Automated auditing, performance metrics, and best practices for the web.",
6
6
  "main": "./core/index.js",
7
7
  "bin": {