lighthouse 12.5.0 → 12.5.1-dev.20250327
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.
- package/cli/test/smokehouse/lib/concurrent-mapper.d.ts +3 -3
- package/core/audits/audit.d.ts +1 -1
- package/core/audits/bootup-time.d.ts +1 -1
- package/core/audits/byte-efficiency/total-byte-weight.d.ts +1 -1
- package/core/audits/byte-efficiency/uses-long-cache-ttl.d.ts +1 -1
- package/core/audits/byte-efficiency/uses-responsive-images.d.ts +1 -1
- package/core/audits/dobetterweb/dom-size.d.ts +1 -1
- package/core/audits/long-tasks.d.ts +1 -1
- package/core/audits/mainthread-work-breakdown.d.ts +1 -1
- package/core/audits/manual/manual-audit.d.ts +1 -1
- package/core/audits/metrics/cumulative-layout-shift.d.ts +1 -1
- package/core/audits/metrics/interaction-to-next-paint.d.ts +1 -1
- package/core/audits/metrics/max-potential-fid.d.ts +1 -1
- package/core/audits/user-timings.d.ts +1 -1
- package/core/computed/critical-request-chains.d.ts +1 -1
- package/core/computed/document-urls.d.ts +4 -1
- package/core/computed/entity-classification.d.ts +1 -1
- package/core/computed/image-records.d.ts +1 -1
- package/core/computed/js-bundles.d.ts +1 -1
- package/core/computed/lcp-image-record.d.ts +1 -1
- package/core/computed/load-simulator.d.ts +1 -1
- package/core/computed/main-resource.d.ts +1 -1
- package/core/computed/main-thread-tasks.d.ts +1 -1
- package/core/computed/metrics/cumulative-layout-shift.d.ts +10 -1
- package/core/computed/metrics/first-contentful-paint-all-frames.d.ts +1 -1
- package/core/computed/metrics/first-contentful-paint.d.ts +1 -1
- package/core/computed/metrics/interactive.d.ts +1 -1
- package/core/computed/metrics/lantern-first-contentful-paint.d.ts +1 -1
- package/core/computed/metrics/lantern-interactive.d.ts +1 -1
- package/core/computed/metrics/lantern-largest-contentful-paint.d.ts +1 -1
- package/core/computed/metrics/lantern-max-potential-fid.d.ts +1 -1
- package/core/computed/metrics/lantern-speed-index.d.ts +1 -1
- package/core/computed/metrics/lantern-total-blocking-time.d.ts +1 -1
- package/core/computed/metrics/largest-contentful-paint-all-frames.d.ts +1 -1
- package/core/computed/metrics/largest-contentful-paint.d.ts +1 -1
- package/core/computed/metrics/lcp-breakdown.d.ts +5 -1
- package/core/computed/metrics/max-potential-fid.d.ts +1 -1
- package/core/computed/metrics/responsiveness.d.ts +1 -1
- package/core/computed/metrics/speed-index.d.ts +1 -1
- package/core/computed/metrics/time-to-first-byte.d.ts +1 -1
- package/core/computed/metrics/timing-summary.d.ts +4 -1
- package/core/computed/metrics/total-blocking-time.d.ts +1 -1
- package/core/computed/module-duplication.d.ts +5 -1
- package/core/computed/navigation-insights.d.ts +1 -1
- package/core/computed/network-analysis.d.ts +1 -1
- package/core/computed/network-records.d.ts +1 -1
- package/core/computed/page-dependency-graph.d.ts +1 -1
- package/core/computed/processed-navigation.d.ts +1 -1
- package/core/computed/processed-trace.d.ts +1 -1
- package/core/computed/resource-summary.d.ts +1 -1
- package/core/computed/screenshots.d.ts +4 -1
- package/core/computed/speedline.d.ts +1 -1
- package/core/computed/tbt-impact-tasks.d.ts +1 -1
- package/core/computed/trace-engine-result.d.ts +1 -1
- package/core/computed/trace-engine-result.js +1 -1
- package/core/computed/unused-css.d.ts +1 -1
- package/core/computed/unused-javascript-summary.d.ts +1 -1
- package/core/computed/user-timings.d.ts +1 -1
- package/core/computed/viewport-meta.d.ts +1 -1
- package/core/gather/driver/network-monitor.d.ts +1 -1
- package/core/gather/driver/network.d.ts +1 -1
- package/core/gather/driver.d.ts +1 -1
- package/core/gather/gatherers/devtools-log.d.ts +1 -1
- package/core/gather/navigation-runner.d.ts +1 -1
- package/core/gather/snapshot-runner.d.ts +1 -1
- package/core/gather/timespan-runner.d.ts +1 -1
- package/core/index.d.ts +6 -6
- package/core/lib/asset-saver.d.ts +1 -1
- package/core/lib/cdt/generated/SourceMap.d.ts +6 -3
- package/core/lib/cdt/generated/SourceMap.js +3 -0
- package/core/lib/i18n/i18n.d.ts +1 -1
- package/core/lib/page-functions.d.ts +1 -1
- package/core/lib/tracehouse/cpu-profile-model.d.ts +1 -1
- package/core/lib/tracehouse/main-thread-tasks.d.ts +3 -3
- package/core/lib/tracehouse/trace-processor.d.ts +1 -1
- package/core/lib/traces/metric-trace-events.d.ts +2 -2
- package/core/scoring.d.ts +492 -3
- package/core/user-flow.d.ts +6 -6
- package/package.json +2 -2
- package/report/renderer/category-renderer.d.ts +2 -2
- package/report/renderer/details-renderer.d.ts +1 -1
- package/report/renderer/features-util.d.ts +1 -1
- package/report/renderer/performance-category-renderer.d.ts +2 -2
- package/shared/localization/format.d.ts +1 -1
- package/types/internal/node.d.ts +0 -16
package/core/scoring.d.ts
CHANGED
|
@@ -15,11 +15,500 @@ export class ReportScoring {
|
|
|
15
15
|
* @return {Object<string, LH.RawIcu<LH.Result.Category>>}
|
|
16
16
|
*/
|
|
17
17
|
static scoreAllCategories(configCategories: {
|
|
18
|
-
[x: string]:
|
|
18
|
+
[x: string]: import("./index.js").Config.Category;
|
|
19
19
|
}, resultsByAuditId: {
|
|
20
|
-
[x: string]:
|
|
20
|
+
[x: string]: {
|
|
21
|
+
displayValue?: string | import("./index.js").IcuMessage | undefined;
|
|
22
|
+
explanation?: string | import("./index.js").IcuMessage | undefined;
|
|
23
|
+
errorMessage?: string | import("./index.js").IcuMessage | undefined;
|
|
24
|
+
errorStack?: string | import("./index.js").IcuMessage | undefined;
|
|
25
|
+
warnings?: (string | import("./index.js").IcuMessage)[] | undefined;
|
|
26
|
+
score: number | null;
|
|
27
|
+
scoreDisplayMode: import("../types/lhr/audit-result.js").ScoreDisplayMode;
|
|
28
|
+
title: string | import("./index.js").IcuMessage;
|
|
29
|
+
id: string | import("./index.js").IcuMessage;
|
|
30
|
+
description: string | import("./index.js").IcuMessage;
|
|
31
|
+
numericValue?: number | undefined;
|
|
32
|
+
numericUnit?: string | import("./index.js").IcuMessage | undefined;
|
|
33
|
+
details?: {
|
|
34
|
+
type: "criticalrequestchain";
|
|
35
|
+
longestChain: {
|
|
36
|
+
duration: number;
|
|
37
|
+
length: number;
|
|
38
|
+
transferSize: number;
|
|
39
|
+
};
|
|
40
|
+
chains: {
|
|
41
|
+
[x: string]: {
|
|
42
|
+
request: {
|
|
43
|
+
url: string | import("./index.js").IcuMessage;
|
|
44
|
+
startTime: number;
|
|
45
|
+
endTime: number;
|
|
46
|
+
responseReceivedTime: number;
|
|
47
|
+
transferSize: number;
|
|
48
|
+
};
|
|
49
|
+
children?: /*elided*/ any | undefined;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
debugData?: {
|
|
53
|
+
[x: string]: any;
|
|
54
|
+
type: "debugdata";
|
|
55
|
+
} | undefined;
|
|
56
|
+
} | {
|
|
57
|
+
[x: string]: any;
|
|
58
|
+
type: "debugdata";
|
|
59
|
+
} | {
|
|
60
|
+
type: "treemap-data";
|
|
61
|
+
nodes: {
|
|
62
|
+
name: string | import("./index.js").IcuMessage;
|
|
63
|
+
resourceBytes: number;
|
|
64
|
+
unusedBytes?: number | undefined;
|
|
65
|
+
duplicatedNormalizedModuleName?: string | import("./index.js").IcuMessage | undefined;
|
|
66
|
+
children?: /*elided*/ any[] | undefined;
|
|
67
|
+
}[];
|
|
68
|
+
debugData?: {
|
|
69
|
+
[x: string]: any;
|
|
70
|
+
type: "debugdata";
|
|
71
|
+
} | undefined;
|
|
72
|
+
} | {
|
|
73
|
+
type: "filmstrip";
|
|
74
|
+
scale: number;
|
|
75
|
+
items: {
|
|
76
|
+
timing: number;
|
|
77
|
+
timestamp: number;
|
|
78
|
+
data: string | import("./index.js").IcuMessage;
|
|
79
|
+
}[];
|
|
80
|
+
debugData?: {
|
|
81
|
+
[x: string]: any;
|
|
82
|
+
type: "debugdata";
|
|
83
|
+
} | undefined;
|
|
84
|
+
} | {
|
|
85
|
+
type: "list";
|
|
86
|
+
items: ({
|
|
87
|
+
[x: string]: any;
|
|
88
|
+
type: "debugdata";
|
|
89
|
+
} | {
|
|
90
|
+
type: "table";
|
|
91
|
+
headings: {
|
|
92
|
+
key: string | import("./index.js").IcuMessage | null;
|
|
93
|
+
label: import("./index.js").IcuMessage | string;
|
|
94
|
+
valueType: import("../types/lhr/audit-details.js").default.ItemValueType;
|
|
95
|
+
subItemsHeading?: {
|
|
96
|
+
key: string | import("./index.js").IcuMessage;
|
|
97
|
+
valueType?: import("../types/lhr/audit-details.js").default.ItemValueType | undefined;
|
|
98
|
+
displayUnit?: string | import("./index.js").IcuMessage | undefined;
|
|
99
|
+
granularity?: number | undefined;
|
|
100
|
+
} | undefined;
|
|
101
|
+
displayUnit?: string | import("./index.js").IcuMessage | undefined;
|
|
102
|
+
granularity?: number | undefined;
|
|
103
|
+
}[];
|
|
104
|
+
items: {
|
|
105
|
+
[x: string]: string | number | boolean | import("./index.js").IcuMessage | {
|
|
106
|
+
[x: string]: any;
|
|
107
|
+
type: "debugdata";
|
|
108
|
+
} | {
|
|
109
|
+
type: "subitems";
|
|
110
|
+
items: /*elided*/ any[];
|
|
111
|
+
} | {
|
|
112
|
+
type: "node";
|
|
113
|
+
lhId?: string | import("./index.js").IcuMessage | undefined;
|
|
114
|
+
path?: string | import("./index.js").IcuMessage | undefined;
|
|
115
|
+
selector?: string | import("./index.js").IcuMessage | undefined;
|
|
116
|
+
boundingRect?: {
|
|
117
|
+
width: number;
|
|
118
|
+
height: number;
|
|
119
|
+
top: number;
|
|
120
|
+
right: number;
|
|
121
|
+
bottom: number;
|
|
122
|
+
left: number;
|
|
123
|
+
} | undefined;
|
|
124
|
+
snippet?: string | import("./index.js").IcuMessage | undefined;
|
|
125
|
+
nodeLabel?: string | import("./index.js").IcuMessage | undefined;
|
|
126
|
+
explanation?: string | import("./index.js").IcuMessage | undefined;
|
|
127
|
+
} | {
|
|
128
|
+
type: "source-location";
|
|
129
|
+
url: string | import("./index.js").IcuMessage;
|
|
130
|
+
urlProvider: "network" | "comment";
|
|
131
|
+
line: number;
|
|
132
|
+
column: number;
|
|
133
|
+
original?: {
|
|
134
|
+
file: string | import("./index.js").IcuMessage;
|
|
135
|
+
line: number;
|
|
136
|
+
column: number;
|
|
137
|
+
} | undefined;
|
|
138
|
+
} | {
|
|
139
|
+
type: "link";
|
|
140
|
+
text: string | import("./index.js").IcuMessage;
|
|
141
|
+
url: string | import("./index.js").IcuMessage;
|
|
142
|
+
} | {
|
|
143
|
+
type: "url";
|
|
144
|
+
value: string | import("./index.js").IcuMessage;
|
|
145
|
+
} | {
|
|
146
|
+
type: "code";
|
|
147
|
+
value: import("./index.js").IcuMessage | string;
|
|
148
|
+
} | {
|
|
149
|
+
type: "numeric";
|
|
150
|
+
value: number;
|
|
151
|
+
granularity?: number | undefined;
|
|
152
|
+
} | {
|
|
153
|
+
type: "text";
|
|
154
|
+
value: import("./index.js").IcuMessage | string;
|
|
155
|
+
} | undefined;
|
|
156
|
+
debugData?: {
|
|
157
|
+
[x: string]: any;
|
|
158
|
+
type: "debugdata";
|
|
159
|
+
} | undefined;
|
|
160
|
+
subItems?: {
|
|
161
|
+
type: "subitems";
|
|
162
|
+
items: /*elided*/ any[];
|
|
163
|
+
} | undefined;
|
|
164
|
+
}[];
|
|
165
|
+
summary?: {
|
|
166
|
+
wastedMs?: number | undefined;
|
|
167
|
+
wastedBytes?: number | undefined;
|
|
168
|
+
} | undefined;
|
|
169
|
+
sortedBy?: (string | import("./index.js").IcuMessage)[] | undefined;
|
|
170
|
+
isEntityGrouped?: boolean | undefined;
|
|
171
|
+
skipSumming?: (string | import("./index.js").IcuMessage)[] | undefined;
|
|
172
|
+
debugData?: {
|
|
173
|
+
[x: string]: any;
|
|
174
|
+
type: "debugdata";
|
|
175
|
+
} | undefined;
|
|
176
|
+
})[];
|
|
177
|
+
debugData?: {
|
|
178
|
+
[x: string]: any;
|
|
179
|
+
type: "debugdata";
|
|
180
|
+
} | undefined;
|
|
181
|
+
} | {
|
|
182
|
+
type: "opportunity";
|
|
183
|
+
headings: {
|
|
184
|
+
key: string | import("./index.js").IcuMessage | null;
|
|
185
|
+
label: import("./index.js").IcuMessage | string;
|
|
186
|
+
valueType: import("../types/lhr/audit-details.js").default.ItemValueType;
|
|
187
|
+
subItemsHeading?: {
|
|
188
|
+
key: string | import("./index.js").IcuMessage;
|
|
189
|
+
valueType?: import("../types/lhr/audit-details.js").default.ItemValueType | undefined;
|
|
190
|
+
displayUnit?: string | import("./index.js").IcuMessage | undefined;
|
|
191
|
+
granularity?: number | undefined;
|
|
192
|
+
} | undefined;
|
|
193
|
+
displayUnit?: string | import("./index.js").IcuMessage | undefined;
|
|
194
|
+
granularity?: number | undefined;
|
|
195
|
+
}[];
|
|
196
|
+
items: {
|
|
197
|
+
[x: string]: string | number | boolean | import("./index.js").IcuMessage | {
|
|
198
|
+
[x: string]: any;
|
|
199
|
+
type: "debugdata";
|
|
200
|
+
} | {
|
|
201
|
+
type: "subitems";
|
|
202
|
+
items: {
|
|
203
|
+
[x: string]: string | number | boolean | import("./index.js").IcuMessage | {
|
|
204
|
+
[x: string]: any;
|
|
205
|
+
type: "debugdata";
|
|
206
|
+
} | /*elided*/ any | {
|
|
207
|
+
type: "node";
|
|
208
|
+
lhId?: string | import("./index.js").IcuMessage | undefined;
|
|
209
|
+
path?: string | import("./index.js").IcuMessage | undefined;
|
|
210
|
+
selector?: string | import("./index.js").IcuMessage | undefined;
|
|
211
|
+
boundingRect?: {
|
|
212
|
+
width: number;
|
|
213
|
+
height: number;
|
|
214
|
+
top: number;
|
|
215
|
+
right: number;
|
|
216
|
+
bottom: number;
|
|
217
|
+
left: number;
|
|
218
|
+
} | undefined;
|
|
219
|
+
snippet?: string | import("./index.js").IcuMessage | undefined;
|
|
220
|
+
nodeLabel?: string | import("./index.js").IcuMessage | undefined;
|
|
221
|
+
explanation?: string | import("./index.js").IcuMessage | undefined;
|
|
222
|
+
} | {
|
|
223
|
+
type: "source-location";
|
|
224
|
+
url: string | import("./index.js").IcuMessage;
|
|
225
|
+
urlProvider: "network" | "comment";
|
|
226
|
+
line: number;
|
|
227
|
+
column: number;
|
|
228
|
+
original?: {
|
|
229
|
+
file: string | import("./index.js").IcuMessage;
|
|
230
|
+
line: number;
|
|
231
|
+
column: number;
|
|
232
|
+
} | undefined;
|
|
233
|
+
} | {
|
|
234
|
+
type: "link";
|
|
235
|
+
text: string | import("./index.js").IcuMessage;
|
|
236
|
+
url: string | import("./index.js").IcuMessage;
|
|
237
|
+
} | {
|
|
238
|
+
type: "url";
|
|
239
|
+
value: string | import("./index.js").IcuMessage;
|
|
240
|
+
} | {
|
|
241
|
+
type: "code";
|
|
242
|
+
value: import("./index.js").IcuMessage | string;
|
|
243
|
+
} | {
|
|
244
|
+
type: "numeric";
|
|
245
|
+
value: number;
|
|
246
|
+
granularity?: number | undefined;
|
|
247
|
+
} | {
|
|
248
|
+
type: "text";
|
|
249
|
+
value: import("./index.js").IcuMessage | string;
|
|
250
|
+
} | undefined;
|
|
251
|
+
debugData?: {
|
|
252
|
+
[x: string]: any;
|
|
253
|
+
type: "debugdata";
|
|
254
|
+
} | undefined;
|
|
255
|
+
subItems?: /*elided*/ any | undefined;
|
|
256
|
+
}[];
|
|
257
|
+
} | {
|
|
258
|
+
type: "node";
|
|
259
|
+
lhId?: string | import("./index.js").IcuMessage | undefined;
|
|
260
|
+
path?: string | import("./index.js").IcuMessage | undefined;
|
|
261
|
+
selector?: string | import("./index.js").IcuMessage | undefined;
|
|
262
|
+
boundingRect?: {
|
|
263
|
+
width: number;
|
|
264
|
+
height: number;
|
|
265
|
+
top: number;
|
|
266
|
+
right: number;
|
|
267
|
+
bottom: number;
|
|
268
|
+
left: number;
|
|
269
|
+
} | undefined;
|
|
270
|
+
snippet?: string | import("./index.js").IcuMessage | undefined;
|
|
271
|
+
nodeLabel?: string | import("./index.js").IcuMessage | undefined;
|
|
272
|
+
explanation?: string | import("./index.js").IcuMessage | undefined;
|
|
273
|
+
} | {
|
|
274
|
+
type: "source-location";
|
|
275
|
+
url: string | import("./index.js").IcuMessage;
|
|
276
|
+
urlProvider: "network" | "comment";
|
|
277
|
+
line: number;
|
|
278
|
+
column: number;
|
|
279
|
+
original?: {
|
|
280
|
+
file: string | import("./index.js").IcuMessage;
|
|
281
|
+
line: number;
|
|
282
|
+
column: number;
|
|
283
|
+
} | undefined;
|
|
284
|
+
} | {
|
|
285
|
+
type: "link";
|
|
286
|
+
text: string | import("./index.js").IcuMessage;
|
|
287
|
+
url: string | import("./index.js").IcuMessage;
|
|
288
|
+
} | {
|
|
289
|
+
type: "url";
|
|
290
|
+
value: string | import("./index.js").IcuMessage;
|
|
291
|
+
} | {
|
|
292
|
+
type: "code";
|
|
293
|
+
value: import("./index.js").IcuMessage | string;
|
|
294
|
+
} | {
|
|
295
|
+
type: "numeric";
|
|
296
|
+
value: number;
|
|
297
|
+
granularity?: number | undefined;
|
|
298
|
+
} | {
|
|
299
|
+
type: "text";
|
|
300
|
+
value: import("./index.js").IcuMessage | string;
|
|
301
|
+
} | undefined;
|
|
302
|
+
url: string | import("./index.js").IcuMessage;
|
|
303
|
+
wastedBytes?: number | undefined;
|
|
304
|
+
totalBytes?: number | undefined;
|
|
305
|
+
wastedMs?: number | undefined;
|
|
306
|
+
debugData?: {
|
|
307
|
+
[x: string]: any;
|
|
308
|
+
type: "debugdata";
|
|
309
|
+
} | undefined;
|
|
310
|
+
subItems?: {
|
|
311
|
+
type: "subitems";
|
|
312
|
+
items: {
|
|
313
|
+
[x: string]: string | number | boolean | import("./index.js").IcuMessage | {
|
|
314
|
+
[x: string]: any;
|
|
315
|
+
type: "debugdata";
|
|
316
|
+
} | /*elided*/ any | {
|
|
317
|
+
type: "node";
|
|
318
|
+
lhId?: string | import("./index.js").IcuMessage | undefined;
|
|
319
|
+
path?: string | import("./index.js").IcuMessage | undefined;
|
|
320
|
+
selector?: string | import("./index.js").IcuMessage | undefined;
|
|
321
|
+
boundingRect?: {
|
|
322
|
+
width: number;
|
|
323
|
+
height: number;
|
|
324
|
+
top: number;
|
|
325
|
+
right: number;
|
|
326
|
+
bottom: number;
|
|
327
|
+
left: number;
|
|
328
|
+
} | undefined;
|
|
329
|
+
snippet?: string | import("./index.js").IcuMessage | undefined;
|
|
330
|
+
nodeLabel?: string | import("./index.js").IcuMessage | undefined;
|
|
331
|
+
explanation?: string | import("./index.js").IcuMessage | undefined;
|
|
332
|
+
} | {
|
|
333
|
+
type: "source-location";
|
|
334
|
+
url: string | import("./index.js").IcuMessage;
|
|
335
|
+
urlProvider: "network" | "comment";
|
|
336
|
+
line: number;
|
|
337
|
+
column: number;
|
|
338
|
+
original?: {
|
|
339
|
+
file: string | import("./index.js").IcuMessage;
|
|
340
|
+
line: number;
|
|
341
|
+
column: number;
|
|
342
|
+
} | undefined;
|
|
343
|
+
} | {
|
|
344
|
+
type: "link";
|
|
345
|
+
text: string | import("./index.js").IcuMessage;
|
|
346
|
+
url: string | import("./index.js").IcuMessage;
|
|
347
|
+
} | {
|
|
348
|
+
type: "url";
|
|
349
|
+
value: string | import("./index.js").IcuMessage;
|
|
350
|
+
} | {
|
|
351
|
+
type: "code";
|
|
352
|
+
value: import("./index.js").IcuMessage | string;
|
|
353
|
+
} | {
|
|
354
|
+
type: "numeric";
|
|
355
|
+
value: number;
|
|
356
|
+
granularity?: number | undefined;
|
|
357
|
+
} | {
|
|
358
|
+
type: "text";
|
|
359
|
+
value: import("./index.js").IcuMessage | string;
|
|
360
|
+
} | undefined;
|
|
361
|
+
debugData?: {
|
|
362
|
+
[x: string]: any;
|
|
363
|
+
type: "debugdata";
|
|
364
|
+
} | undefined;
|
|
365
|
+
subItems?: /*elided*/ any | undefined;
|
|
366
|
+
}[];
|
|
367
|
+
} | undefined;
|
|
368
|
+
}[];
|
|
369
|
+
sortedBy?: (string | import("./index.js").IcuMessage)[] | undefined;
|
|
370
|
+
isEntityGrouped?: boolean | undefined;
|
|
371
|
+
skipSumming?: (string | import("./index.js").IcuMessage)[] | undefined;
|
|
372
|
+
overallSavingsMs?: number | undefined;
|
|
373
|
+
overallSavingsBytes?: number | undefined;
|
|
374
|
+
debugData?: {
|
|
375
|
+
[x: string]: any;
|
|
376
|
+
type: "debugdata";
|
|
377
|
+
} | undefined;
|
|
378
|
+
} | {
|
|
379
|
+
type: "screenshot";
|
|
380
|
+
timing: number;
|
|
381
|
+
timestamp: number;
|
|
382
|
+
data: string | import("./index.js").IcuMessage;
|
|
383
|
+
debugData?: {
|
|
384
|
+
[x: string]: any;
|
|
385
|
+
type: "debugdata";
|
|
386
|
+
} | undefined;
|
|
387
|
+
} | {
|
|
388
|
+
type: "checklist";
|
|
389
|
+
items: {
|
|
390
|
+
[x: string]: {
|
|
391
|
+
value: boolean;
|
|
392
|
+
label: import("./index.js").IcuMessage | string;
|
|
393
|
+
};
|
|
394
|
+
};
|
|
395
|
+
debugData?: {
|
|
396
|
+
[x: string]: any;
|
|
397
|
+
type: "debugdata";
|
|
398
|
+
} | undefined;
|
|
399
|
+
} | {
|
|
400
|
+
type: "table";
|
|
401
|
+
headings: {
|
|
402
|
+
key: string | import("./index.js").IcuMessage | null;
|
|
403
|
+
label: import("./index.js").IcuMessage | string;
|
|
404
|
+
valueType: import("../types/lhr/audit-details.js").default.ItemValueType;
|
|
405
|
+
subItemsHeading?: {
|
|
406
|
+
key: string | import("./index.js").IcuMessage;
|
|
407
|
+
valueType?: import("../types/lhr/audit-details.js").default.ItemValueType | undefined;
|
|
408
|
+
displayUnit?: string | import("./index.js").IcuMessage | undefined;
|
|
409
|
+
granularity?: number | undefined;
|
|
410
|
+
} | undefined;
|
|
411
|
+
displayUnit?: string | import("./index.js").IcuMessage | undefined;
|
|
412
|
+
granularity?: number | undefined;
|
|
413
|
+
}[];
|
|
414
|
+
items: {
|
|
415
|
+
[x: string]: string | number | boolean | import("./index.js").IcuMessage | {
|
|
416
|
+
[x: string]: any;
|
|
417
|
+
type: "debugdata";
|
|
418
|
+
} | {
|
|
419
|
+
type: "subitems";
|
|
420
|
+
items: /*elided*/ any[];
|
|
421
|
+
} | {
|
|
422
|
+
type: "node";
|
|
423
|
+
lhId?: string | import("./index.js").IcuMessage | undefined;
|
|
424
|
+
path?: string | import("./index.js").IcuMessage | undefined;
|
|
425
|
+
selector?: string | import("./index.js").IcuMessage | undefined;
|
|
426
|
+
boundingRect?: {
|
|
427
|
+
width: number;
|
|
428
|
+
height: number;
|
|
429
|
+
top: number;
|
|
430
|
+
right: number;
|
|
431
|
+
bottom: number;
|
|
432
|
+
left: number;
|
|
433
|
+
} | undefined;
|
|
434
|
+
snippet?: string | import("./index.js").IcuMessage | undefined;
|
|
435
|
+
nodeLabel?: string | import("./index.js").IcuMessage | undefined;
|
|
436
|
+
explanation?: string | import("./index.js").IcuMessage | undefined;
|
|
437
|
+
} | {
|
|
438
|
+
type: "source-location";
|
|
439
|
+
url: string | import("./index.js").IcuMessage;
|
|
440
|
+
urlProvider: "network" | "comment";
|
|
441
|
+
line: number;
|
|
442
|
+
column: number;
|
|
443
|
+
original?: {
|
|
444
|
+
file: string | import("./index.js").IcuMessage;
|
|
445
|
+
line: number;
|
|
446
|
+
column: number;
|
|
447
|
+
} | undefined;
|
|
448
|
+
} | {
|
|
449
|
+
type: "link";
|
|
450
|
+
text: string | import("./index.js").IcuMessage;
|
|
451
|
+
url: string | import("./index.js").IcuMessage;
|
|
452
|
+
} | {
|
|
453
|
+
type: "url";
|
|
454
|
+
value: string | import("./index.js").IcuMessage;
|
|
455
|
+
} | {
|
|
456
|
+
type: "code";
|
|
457
|
+
value: import("./index.js").IcuMessage | string;
|
|
458
|
+
} | {
|
|
459
|
+
type: "numeric";
|
|
460
|
+
value: number;
|
|
461
|
+
granularity?: number | undefined;
|
|
462
|
+
} | {
|
|
463
|
+
type: "text";
|
|
464
|
+
value: import("./index.js").IcuMessage | string;
|
|
465
|
+
} | undefined;
|
|
466
|
+
debugData?: {
|
|
467
|
+
[x: string]: any;
|
|
468
|
+
type: "debugdata";
|
|
469
|
+
} | undefined;
|
|
470
|
+
subItems?: {
|
|
471
|
+
type: "subitems";
|
|
472
|
+
items: /*elided*/ any[];
|
|
473
|
+
} | undefined;
|
|
474
|
+
}[];
|
|
475
|
+
summary?: {
|
|
476
|
+
wastedMs?: number | undefined;
|
|
477
|
+
wastedBytes?: number | undefined;
|
|
478
|
+
} | undefined;
|
|
479
|
+
sortedBy?: (string | import("./index.js").IcuMessage)[] | undefined;
|
|
480
|
+
isEntityGrouped?: boolean | undefined;
|
|
481
|
+
skipSumming?: (string | import("./index.js").IcuMessage)[] | undefined;
|
|
482
|
+
debugData?: {
|
|
483
|
+
[x: string]: any;
|
|
484
|
+
type: "debugdata";
|
|
485
|
+
} | undefined;
|
|
486
|
+
} | undefined;
|
|
487
|
+
metricSavings?: {
|
|
488
|
+
[x: string]: number | undefined;
|
|
489
|
+
} | undefined;
|
|
490
|
+
scoringOptions?: {
|
|
491
|
+
p10: number;
|
|
492
|
+
median: number;
|
|
493
|
+
} | undefined;
|
|
494
|
+
guidanceLevel?: number | undefined;
|
|
495
|
+
replacesAudits?: (string | import("./index.js").IcuMessage)[] | undefined;
|
|
496
|
+
};
|
|
21
497
|
}): {
|
|
22
|
-
[x: string]:
|
|
498
|
+
[x: string]: {
|
|
499
|
+
id: string | import("./index.js").IcuMessage;
|
|
500
|
+
title: string | import("./index.js").IcuMessage;
|
|
501
|
+
description?: string | import("./index.js").IcuMessage | undefined;
|
|
502
|
+
manualDescription?: string | import("./index.js").IcuMessage | undefined;
|
|
503
|
+
score: number | null;
|
|
504
|
+
auditRefs: {
|
|
505
|
+
id: string | import("./index.js").IcuMessage;
|
|
506
|
+
weight: number;
|
|
507
|
+
group?: string | import("./index.js").IcuMessage | undefined;
|
|
508
|
+
acronym?: string | import("./index.js").IcuMessage | undefined;
|
|
509
|
+
}[];
|
|
510
|
+
supportedModes?: import("./index.js").Result.GatherMode[] | undefined;
|
|
511
|
+
};
|
|
23
512
|
};
|
|
24
513
|
}
|
|
25
514
|
//# sourceMappingURL=scoring.d.ts.map
|
package/core/user-flow.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export class UserFlow {
|
|
|
4
4
|
* @param {LH.Puppeteer.Page} page
|
|
5
5
|
* @param {LH.UserFlow.Options} [options]
|
|
6
6
|
*/
|
|
7
|
-
constructor(page: LH.Puppeteer.Page, options?: LH.UserFlow.Options
|
|
7
|
+
constructor(page: LH.Puppeteer.Page, options?: LH.UserFlow.Options);
|
|
8
8
|
/** @type {LH.Puppeteer.Page} */
|
|
9
9
|
_page: LH.Puppeteer.Page;
|
|
10
10
|
/** @type {LH.UserFlow.Options|undefined} */
|
|
@@ -27,19 +27,19 @@ export class UserFlow {
|
|
|
27
27
|
* @param {LH.Gatherer.GatherResult} gatherResult
|
|
28
28
|
* @param {LH.UserFlow.StepFlags} [flags]
|
|
29
29
|
*/
|
|
30
|
-
_addGatherStep(gatherResult: LH.Gatherer.GatherResult, flags?: LH.UserFlow.StepFlags
|
|
30
|
+
_addGatherStep(gatherResult: LH.Gatherer.GatherResult, flags?: LH.UserFlow.StepFlags): void;
|
|
31
31
|
/**
|
|
32
32
|
* @param {LH.NavigationRequestor} requestor
|
|
33
33
|
* @param {LH.UserFlow.StepFlags} [flags]
|
|
34
34
|
*/
|
|
35
|
-
navigate(requestor: LH.NavigationRequestor, flags?: LH.UserFlow.StepFlags
|
|
35
|
+
navigate(requestor: LH.NavigationRequestor, flags?: LH.UserFlow.StepFlags): Promise<void>;
|
|
36
36
|
/**
|
|
37
37
|
* This is an alternative to `navigate()` that can be used to analyze a navigation triggered by user interaction.
|
|
38
38
|
* For more on user triggered navigations, see https://github.com/GoogleChrome/lighthouse/blob/main/docs/user-flows.md#triggering-a-navigation-via-user-interactions.
|
|
39
39
|
*
|
|
40
40
|
* @param {LH.UserFlow.StepFlags} [stepOptions]
|
|
41
41
|
*/
|
|
42
|
-
startNavigation(stepOptions?: LH.UserFlow.StepFlags
|
|
42
|
+
startNavigation(stepOptions?: LH.UserFlow.StepFlags): Promise<void>;
|
|
43
43
|
currentNavigation: {
|
|
44
44
|
continueAndAwaitResult: () => Promise<void>;
|
|
45
45
|
} | undefined;
|
|
@@ -47,7 +47,7 @@ export class UserFlow {
|
|
|
47
47
|
/**
|
|
48
48
|
* @param {LH.UserFlow.StepFlags} [flags]
|
|
49
49
|
*/
|
|
50
|
-
startTimespan(flags?: LH.UserFlow.StepFlags
|
|
50
|
+
startTimespan(flags?: LH.UserFlow.StepFlags): Promise<void>;
|
|
51
51
|
currentTimespan: {
|
|
52
52
|
timespan: {
|
|
53
53
|
endTimespanGather(): Promise<LH.Gatherer.GatherResult>;
|
|
@@ -58,7 +58,7 @@ export class UserFlow {
|
|
|
58
58
|
/**
|
|
59
59
|
* @param {LH.UserFlow.StepFlags} [flags]
|
|
60
60
|
*/
|
|
61
|
-
snapshot(flags?: LH.UserFlow.StepFlags
|
|
61
|
+
snapshot(flags?: LH.UserFlow.StepFlags): Promise<void>;
|
|
62
62
|
/**
|
|
63
63
|
* @returns {Promise<LH.FlowResult>}
|
|
64
64
|
*/
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lighthouse",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "12.5.
|
|
4
|
+
"version": "12.5.1-dev.20250327",
|
|
5
5
|
"description": "Automated auditing, performance metrics, and best practices for the web.",
|
|
6
6
|
"main": "./core/index.js",
|
|
7
7
|
"bin": {
|
|
@@ -180,7 +180,7 @@
|
|
|
180
180
|
"terser": "^5.18.2",
|
|
181
181
|
"testdouble": "^3.18.0",
|
|
182
182
|
"typed-query-selector": "^2.11.2",
|
|
183
|
-
"typescript": "5.
|
|
183
|
+
"typescript": "5.8.2",
|
|
184
184
|
"wait-for-expect": "^3.0.2",
|
|
185
185
|
"webtreemap-cdt": "^3.2.1"
|
|
186
186
|
},
|
|
@@ -64,7 +64,7 @@ export class CategoryRenderer {
|
|
|
64
64
|
* @return {Array<Element>}
|
|
65
65
|
*/
|
|
66
66
|
_renderGroupedAudits(auditRefs: Array<LH.ReportResult.AuditRef>, groupDefinitions: {
|
|
67
|
-
[x: string]:
|
|
67
|
+
[x: string]: import("../../types/lhr/lhr.js").default.ReportGroup;
|
|
68
68
|
}): Array<Element>;
|
|
69
69
|
/**
|
|
70
70
|
* Take a set of audits, group them if they have groups, then render in a top-level
|
|
@@ -74,7 +74,7 @@ export class CategoryRenderer {
|
|
|
74
74
|
* @return {Element}
|
|
75
75
|
*/
|
|
76
76
|
renderUnexpandableClump(auditRefs: Array<LH.ReportResult.AuditRef>, groupDefinitions: {
|
|
77
|
-
[x: string]:
|
|
77
|
+
[x: string]: import("../../types/lhr/lhr.js").default.ReportGroup;
|
|
78
78
|
}): Element;
|
|
79
79
|
/**
|
|
80
80
|
* Take a set of audits and render in a top-level, expandable clump that starts
|
|
@@ -6,7 +6,7 @@ export class DetailsRenderer {
|
|
|
6
6
|
constructor(dom: DOM, options?: {
|
|
7
7
|
fullPageScreenshot?: LH.Result.FullPageScreenshot;
|
|
8
8
|
entities?: LH.Result.Entities;
|
|
9
|
-
}
|
|
9
|
+
});
|
|
10
10
|
_dom: import("./dom.js").DOM;
|
|
11
11
|
_fullPageScreenshot: import("../../types/lhr/lhr.js").default.FullPageScreenshot | undefined;
|
|
12
12
|
_entities: import("../../types/lhr/lhr.js").default.Entities | undefined;
|
|
@@ -8,6 +8,6 @@
|
|
|
8
8
|
* @param {DOM} dom
|
|
9
9
|
* @param {boolean} [force]
|
|
10
10
|
*/
|
|
11
|
-
export function toggleDarkTheme(dom: DOM, force?: boolean
|
|
11
|
+
export function toggleDarkTheme(dom: DOM, force?: boolean): void;
|
|
12
12
|
export type DOM = import("./dom.js").DOM;
|
|
13
13
|
//# sourceMappingURL=features-util.d.ts.map
|
|
@@ -31,7 +31,7 @@ export class PerformanceCategoryRenderer extends CategoryRenderer {
|
|
|
31
31
|
* @override
|
|
32
32
|
*/
|
|
33
33
|
override render(category: LH.ReportResult.Category, groups: {
|
|
34
|
-
[x: string]:
|
|
34
|
+
[x: string]: import("../../types/lhr/lhr.js").default.ReportGroup;
|
|
35
35
|
}, options?: {
|
|
36
36
|
gatherMode: LH.Result.GatherMode;
|
|
37
37
|
} | undefined): Element;
|
|
@@ -43,7 +43,7 @@ export class PerformanceCategoryRenderer extends CategoryRenderer {
|
|
|
43
43
|
* @return {Element|null}
|
|
44
44
|
*/
|
|
45
45
|
renderFilterableSection(category: LH.ReportResult.Category, groups: {
|
|
46
|
-
[x: string]:
|
|
46
|
+
[x: string]: import("../../types/lhr/lhr.js").default.ReportGroup;
|
|
47
47
|
}, groupNames: string[], metricAudits: LH.ReportResult.AuditRef[]): Element | null;
|
|
48
48
|
/**
|
|
49
49
|
* Render the control to filter the audits by metric. The filtering is done at runtime by CSS only
|
|
@@ -19,7 +19,7 @@ export function _formatPathAsString(pathInLHR: string[]): string;
|
|
|
19
19
|
* @param {Map<string, MessageFormatElement>} [customElements]
|
|
20
20
|
* @return {Map<string, MessageFormatElement>}
|
|
21
21
|
*/
|
|
22
|
-
export function collectAllCustomElementsFromICU(icuElements: Array<MessageFormatElement>, customElements?: Map<string,
|
|
22
|
+
export function collectAllCustomElementsFromICU(icuElements: Array<MessageFormatElement>, customElements?: Map<string, MessageFormatElement>): Map<string, MessageFormatElement>;
|
|
23
23
|
/**
|
|
24
24
|
* Returns whether `icuMessageOrNot`` is an `LH.IcuMessage` instance.
|
|
25
25
|
* @param {unknown} icuMessageOrNot
|
package/types/internal/node.d.ts
CHANGED
|
@@ -30,22 +30,6 @@ declare global {
|
|
|
30
30
|
/** Injected into the page when the `--debug` flag is used. */
|
|
31
31
|
continueLighthouseRun(): void;
|
|
32
32
|
}
|
|
33
|
-
|
|
34
|
-
// `fetchPriority` not defined in tsc as of 4.9.4.
|
|
35
|
-
interface HTMLImageElement {
|
|
36
|
-
/**
|
|
37
|
-
* Sets the priority for fetches initiated by the element.
|
|
38
|
-
* @see https://html.spec.whatwg.org/multipage/embedded-content.html#dom-img-fetchpriority
|
|
39
|
-
*/
|
|
40
|
-
fetchPriority: string;
|
|
41
|
-
}
|
|
42
|
-
interface HTMLLinkElement {
|
|
43
|
-
/**
|
|
44
|
-
* Sets the priority for fetches initiated by the element.
|
|
45
|
-
* @see https://html.spec.whatwg.org/multipage/semantics.html#dom-link-fetchpriority
|
|
46
|
-
*/
|
|
47
|
-
fetchPriority: string;
|
|
48
|
-
}
|
|
49
33
|
}
|
|
50
34
|
|
|
51
35
|
export {};
|