lighthouse 12.2.1-dev.20240917 → 12.2.1-dev.20240919

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.
@@ -38,10 +38,10 @@ const str_ = i18n.createIcuMessageFn(import.meta.url, UIStrings);
38
38
  /**
39
39
  * Given a simulation's nodeTimings, return an object with the nodes/timing keyed by network URL
40
40
  * @param {LH.Gatherer.Simulation.Result['nodeTimings']} nodeTimings
41
- * @return {Map<string, {node: LH.Gatherer.Simulation.GraphNode, nodeTiming: LH.Gatherer.Simulation.NodeTiming}>}
41
+ * @return {Map<string, {node: LH.Gatherer.Simulation.GraphNetworkNode, nodeTiming: LH.Gatherer.Simulation.NodeTiming}>}
42
42
  */
43
43
  function getNodesAndTimingByRequestId(nodeTimings) {
44
- /** @type {Map<string, {node: LH.Gatherer.Simulation.GraphNode, nodeTiming: LH.Gatherer.Simulation.NodeTiming}>} */
44
+ /** @type {Map<string, {node: LH.Gatherer.Simulation.GraphNetworkNode, nodeTiming: LH.Gatherer.Simulation.NodeTiming}>} */
45
45
  const requestIdToNode = new Map();
46
46
 
47
47
  for (const [node, nodeTiming] of nodeTimings) {
@@ -169,7 +169,7 @@ class RenderBlockingResources extends Audit {
169
169
 
170
170
  results.push({
171
171
  url: resource.args.data.url,
172
- totalBytes: resource.args.data.encodedDataLength,
172
+ totalBytes: node.request.transferSize,
173
173
  wastedMs,
174
174
  });
175
175
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "lighthouse",
3
3
  "type": "module",
4
- "version": "12.2.1-dev.20240917",
4
+ "version": "12.2.1-dev.20240919",
5
5
  "description": "Automated auditing, performance metrics, and best practices for the web.",
6
6
  "main": "./core/index.js",
7
7
  "bin": {