lighthouse 12.5.1-dev.20250326 → 12.5.1-dev.20250328
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/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/i18n/i18n.d.ts +1 -1
- package/core/lib/legacy-javascript/legacy-javascript.js +4 -11
- 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 +3 -3
- package/readme.md +1 -1
- 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/tsconfig-base.json +1 -1
- package/tsconfig.json +1 -0
- package/types/internal/node.d.ts +0 -16
|
@@ -22,7 +22,7 @@ export class ConcurrentMapper {
|
|
|
22
22
|
*/
|
|
23
23
|
static map<T, U>(values: Array<T>, callbackfn: (value: T, index: number, array: Array<T>) => Promise<U>, options?: {
|
|
24
24
|
concurrency: number;
|
|
25
|
-
}
|
|
25
|
+
}): Promise<Array<U>>;
|
|
26
26
|
/** @type {Set<Promise<unknown>>} */
|
|
27
27
|
_promisePool: Set<Promise<unknown>>;
|
|
28
28
|
/**
|
|
@@ -61,7 +61,7 @@ export class ConcurrentMapper {
|
|
|
61
61
|
*/
|
|
62
62
|
pooledMap<T, U>(values: Array<T>, callbackfn: (value: T, index: number, array: Array<T>) => Promise<U>, options?: {
|
|
63
63
|
concurrency: number;
|
|
64
|
-
}
|
|
64
|
+
}): Promise<Array<U>>;
|
|
65
65
|
/**
|
|
66
66
|
* Runs `fn` concurrent to other operations in the pool, at a max of
|
|
67
67
|
* `concurrency` at a time across all callers on this instance. Default
|
|
@@ -73,6 +73,6 @@ export class ConcurrentMapper {
|
|
|
73
73
|
*/
|
|
74
74
|
runInPool<U>(fn: () => Promise<U>, options?: {
|
|
75
75
|
concurrency: number;
|
|
76
|
-
}
|
|
76
|
+
}): Promise<U>;
|
|
77
77
|
}
|
|
78
78
|
//# sourceMappingURL=concurrent-mapper.d.ts.map
|
package/core/audits/audit.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ export class Audit {
|
|
|
20
20
|
/**
|
|
21
21
|
* @return {LH.Audit.ScoreDisplayModes}
|
|
22
22
|
*/
|
|
23
|
-
static get SCORING_MODES():
|
|
23
|
+
static get SCORING_MODES(): LH.Audit.ScoreDisplayModes;
|
|
24
24
|
/**
|
|
25
25
|
* @return {LH.Audit.Meta}
|
|
26
26
|
*/
|
|
@@ -3,7 +3,7 @@ declare class BootupTime extends Audit {
|
|
|
3
3
|
/**
|
|
4
4
|
* @return {LH.Audit.ScoreOptions & {thresholdInMs: number}}
|
|
5
5
|
*/
|
|
6
|
-
static get defaultOptions():
|
|
6
|
+
static get defaultOptions(): LH.Audit.ScoreOptions & {
|
|
7
7
|
thresholdInMs: number;
|
|
8
8
|
};
|
|
9
9
|
/**
|
|
@@ -3,7 +3,7 @@ declare class TotalByteWeight extends Audit {
|
|
|
3
3
|
/**
|
|
4
4
|
* @return {LH.Audit.ScoreOptions}
|
|
5
5
|
*/
|
|
6
|
-
static get defaultOptions():
|
|
6
|
+
static get defaultOptions(): LH.Audit.ScoreOptions;
|
|
7
7
|
/**
|
|
8
8
|
* @param {LH.Artifacts} artifacts
|
|
9
9
|
* @param {LH.Audit.Context} context
|
|
@@ -3,7 +3,7 @@ declare class CacheHeaders extends Audit {
|
|
|
3
3
|
/**
|
|
4
4
|
* @return {LH.Audit.ScoreOptions}
|
|
5
5
|
*/
|
|
6
|
-
static get defaultOptions():
|
|
6
|
+
static get defaultOptions(): LH.Audit.ScoreOptions;
|
|
7
7
|
/**
|
|
8
8
|
* Computes the percent likelihood that a return visit will be within the cache lifetime, based on
|
|
9
9
|
* Chrome UMA stats see the note below.
|
|
@@ -39,6 +39,6 @@ export namespace UIStrings {
|
|
|
39
39
|
let title: string;
|
|
40
40
|
let description: string;
|
|
41
41
|
}
|
|
42
|
-
export const str_: (message: string, values?: Record<string, string | number>
|
|
42
|
+
export const str_: (message: string, values?: Record<string, string | number>) => LH.IcuMessage;
|
|
43
43
|
import { ByteEfficiencyAudit } from './byte-efficiency-audit.js';
|
|
44
44
|
//# sourceMappingURL=uses-responsive-images.d.ts.map
|
|
@@ -3,7 +3,7 @@ declare class DOMSize extends Audit {
|
|
|
3
3
|
/**
|
|
4
4
|
* @return {LH.Audit.ScoreOptions}
|
|
5
5
|
*/
|
|
6
|
-
static get defaultOptions():
|
|
6
|
+
static get defaultOptions(): LH.Audit.ScoreOptions;
|
|
7
7
|
/**
|
|
8
8
|
* @param {LH.Artifacts} artifacts
|
|
9
9
|
* @param {LH.Audit.Context} context
|
|
@@ -29,7 +29,7 @@ declare class LongTasks extends Audit {
|
|
|
29
29
|
* @param {Map<TaskGroupIds, number>} [timeByTaskGroup]
|
|
30
30
|
* @return {{startTime: number, duration: number, timeByTaskGroup: Map<TaskGroupIds, number>}}
|
|
31
31
|
*/
|
|
32
|
-
static getTimingBreakdown(task: LH.Artifacts.TaskNode, taskTimingsByEvent: Map<Lantern.Types.TraceEvent, LH.Gatherer.Simulation.NodeTiming> | undefined, timeByTaskGroup?: Map<
|
|
32
|
+
static getTimingBreakdown(task: LH.Artifacts.TaskNode, taskTimingsByEvent: Map<Lantern.Types.TraceEvent, LH.Gatherer.Simulation.NodeTiming> | undefined, timeByTaskGroup?: Map<TaskGroupIds, number>): {
|
|
33
33
|
startTime: number;
|
|
34
34
|
duration: number;
|
|
35
35
|
timeByTaskGroup: Map<TaskGroupIds, number>;
|
|
@@ -5,7 +5,7 @@ declare class MainThreadWorkBreakdown extends Audit {
|
|
|
5
5
|
/**
|
|
6
6
|
* @return {LH.Audit.ScoreOptions}
|
|
7
7
|
*/
|
|
8
|
-
static get defaultOptions():
|
|
8
|
+
static get defaultOptions(): LH.Audit.ScoreOptions;
|
|
9
9
|
/**
|
|
10
10
|
* @param {LH.Artifacts.TaskNode[]} tasks
|
|
11
11
|
* @return {Map<TaskGroupIds, number>}
|
|
@@ -3,7 +3,7 @@ declare class ManualAudit extends Audit {
|
|
|
3
3
|
/**
|
|
4
4
|
* @return {Pick<LH.Audit.Meta, 'scoreDisplayMode'|'requiredArtifacts'>}
|
|
5
5
|
*/
|
|
6
|
-
static get partialMeta(): Pick<
|
|
6
|
+
static get partialMeta(): Pick<LH.Audit.Meta, "scoreDisplayMode" | "requiredArtifacts">;
|
|
7
7
|
/**
|
|
8
8
|
* @return {LH.Audit.Product}
|
|
9
9
|
*/
|
|
@@ -6,7 +6,7 @@ declare class CumulativeLayoutShift extends Audit {
|
|
|
6
6
|
/**
|
|
7
7
|
* @return {LH.Audit.ScoreOptions}
|
|
8
8
|
*/
|
|
9
|
-
static get defaultOptions():
|
|
9
|
+
static get defaultOptions(): LH.Audit.ScoreOptions;
|
|
10
10
|
/**
|
|
11
11
|
* @param {LH.Artifacts} artifacts
|
|
12
12
|
* @param {LH.Audit.Context} context
|
|
@@ -6,7 +6,7 @@ declare class InteractionToNextPaint extends Audit {
|
|
|
6
6
|
/**
|
|
7
7
|
* @return {LH.Audit.ScoreOptions}
|
|
8
8
|
*/
|
|
9
|
-
static get defaultOptions():
|
|
9
|
+
static get defaultOptions(): LH.Audit.ScoreOptions;
|
|
10
10
|
/**
|
|
11
11
|
* @param {LH.Artifacts} artifacts
|
|
12
12
|
* @param {LH.Audit.Context} context
|
|
@@ -18,7 +18,7 @@ declare class MaxPotentialFID extends Audit {
|
|
|
18
18
|
/**
|
|
19
19
|
* @return {LH.Audit.ScoreOptions}
|
|
20
20
|
*/
|
|
21
|
-
static get defaultOptions():
|
|
21
|
+
static get defaultOptions(): LH.Audit.ScoreOptions;
|
|
22
22
|
/**
|
|
23
23
|
* Extract potential LoAF replacements for MPFID from the trace to log in
|
|
24
24
|
* debugdata details.
|
|
@@ -19,7 +19,7 @@ declare class UserTimings extends Audit {
|
|
|
19
19
|
/**
|
|
20
20
|
* @return {Array<string>}
|
|
21
21
|
*/
|
|
22
|
-
static get excludedPrefixes(): string
|
|
22
|
+
static get excludedPrefixes(): Array<string>;
|
|
23
23
|
/**
|
|
24
24
|
* We remove mark/measures entered by third parties not of interest to the user
|
|
25
25
|
* @param {MarkEvent|MeasureEvent} evt
|
|
@@ -6,7 +6,7 @@ declare const CriticalRequestChainsComputed: typeof CriticalRequestChains & {
|
|
|
6
6
|
devtoolsLog: LH.DevtoolsLog;
|
|
7
7
|
trace: LH.Trace;
|
|
8
8
|
settings: LH.Audit.Context["settings"];
|
|
9
|
-
}, context: LH.Artifacts.ComputedContext) =>
|
|
9
|
+
}, context: LH.Artifacts.ComputedContext) => Promise<import("../index.js").Artifacts.CriticalRequestNode>;
|
|
10
10
|
};
|
|
11
11
|
declare class CriticalRequestChains {
|
|
12
12
|
/**
|
|
@@ -3,7 +3,10 @@ declare const DocumentUrlsComputed: typeof DocumentUrls & {
|
|
|
3
3
|
request: (dependencies: {
|
|
4
4
|
trace: LH.Trace;
|
|
5
5
|
devtoolsLog: LH.DevtoolsLog;
|
|
6
|
-
}, context: LH.Artifacts.ComputedContext) =>
|
|
6
|
+
}, context: LH.Artifacts.ComputedContext) => Promise<{
|
|
7
|
+
requestedUrl: string;
|
|
8
|
+
mainDocumentUrl: string;
|
|
9
|
+
}>;
|
|
7
10
|
};
|
|
8
11
|
/**
|
|
9
12
|
* @fileoverview Compute the navigation specific URLs `requestedUrl` and `mainDocumentUrl` in situations where
|
|
@@ -4,7 +4,7 @@ declare const EntityClassificationComputed: typeof EntityClassification & {
|
|
|
4
4
|
request: (dependencies: {
|
|
5
5
|
URL: LH.Artifacts["URL"];
|
|
6
6
|
devtoolsLog: LH.DevtoolsLog;
|
|
7
|
-
}, context: LH.Artifacts.ComputedContext) =>
|
|
7
|
+
}, context: LH.Artifacts.ComputedContext) => Promise<import("../index.js").Artifacts.EntityClassification>;
|
|
8
8
|
};
|
|
9
9
|
/** @typedef {Map<string, LH.Artifacts.Entity>} EntityCache */
|
|
10
10
|
declare class EntityClassification {
|
|
@@ -3,7 +3,7 @@ declare const ImageRecordsComputed: typeof ImageRecords & {
|
|
|
3
3
|
request: (dependencies: {
|
|
4
4
|
ImageElements: LH.Artifacts["ImageElements"];
|
|
5
5
|
networkRecords: LH.Artifacts.NetworkRequest[];
|
|
6
|
-
}, context: LH.Artifacts.ComputedContext) =>
|
|
6
|
+
}, context: LH.Artifacts.ComputedContext) => Promise<import("../index.js").Artifacts.ImageElementRecord[]>;
|
|
7
7
|
};
|
|
8
8
|
declare class ImageRecords {
|
|
9
9
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { JSBundlesComputed as JSBundles };
|
|
2
2
|
declare const JSBundlesComputed: typeof JSBundles & {
|
|
3
|
-
request: (dependencies: Pick<import("../index.js").Artifacts, "Scripts" | "SourceMaps">, context: LH.Artifacts.ComputedContext) =>
|
|
3
|
+
request: (dependencies: Pick<import("../index.js").Artifacts, "Scripts" | "SourceMaps">, context: LH.Artifacts.ComputedContext) => Promise<import("../index.js").Artifacts.Bundle[]>;
|
|
4
4
|
};
|
|
5
5
|
declare class JSBundles {
|
|
6
6
|
/**
|
|
@@ -3,7 +3,7 @@ declare const LCPImageRecordComputed: typeof LCPImageRecord & {
|
|
|
3
3
|
request: (dependencies: {
|
|
4
4
|
trace: LH.Trace;
|
|
5
5
|
devtoolsLog: LH.DevtoolsLog;
|
|
6
|
-
}, context: LH.Artifacts.ComputedContext) =>
|
|
6
|
+
}, context: LH.Artifacts.ComputedContext) => Promise<import("../lib/network-request.js").NetworkRequest | undefined>;
|
|
7
7
|
};
|
|
8
8
|
/**
|
|
9
9
|
* @fileoverview Match the LCP event with the paint event to get the request of the image actually painted.
|
|
@@ -3,7 +3,7 @@ declare const LoadSimulatorComputed: typeof LoadSimulator & {
|
|
|
3
3
|
request: (dependencies: {
|
|
4
4
|
devtoolsLog: LH.DevtoolsLog;
|
|
5
5
|
settings: LH.Audit.Context["settings"];
|
|
6
|
-
}, context: LH.Artifacts.ComputedContext) =>
|
|
6
|
+
}, context: LH.Artifacts.ComputedContext) => Promise<import("../../types/gatherer.js").default.Simulation.Simulator>;
|
|
7
7
|
};
|
|
8
8
|
declare class LoadSimulator {
|
|
9
9
|
/**
|
|
@@ -3,7 +3,7 @@ declare const MainResourceComputed: typeof MainResource & {
|
|
|
3
3
|
request: (dependencies: {
|
|
4
4
|
URL: LH.Artifacts["URL"];
|
|
5
5
|
devtoolsLog: LH.DevtoolsLog;
|
|
6
|
-
}, context: LH.Artifacts.ComputedContext) =>
|
|
6
|
+
}, context: LH.Artifacts.ComputedContext) => Promise<import("../lib/network-request.js").NetworkRequest>;
|
|
7
7
|
};
|
|
8
8
|
/**
|
|
9
9
|
* @fileoverview This artifact identifies the main resource on the page. Current solution assumes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { MainThreadTasksComputed as MainThreadTasks };
|
|
2
2
|
declare const MainThreadTasksComputed: typeof MainThreadTasks & {
|
|
3
|
-
request: (dependencies: import("../index.js").Trace, context: LH.Artifacts.ComputedContext) =>
|
|
3
|
+
request: (dependencies: import("../index.js").Trace, context: LH.Artifacts.ComputedContext) => Promise<import("../lib/tracehouse/main-thread-tasks.js").TaskNode[]>;
|
|
4
4
|
};
|
|
5
5
|
declare class MainThreadTasks {
|
|
6
6
|
/**
|
|
@@ -7,7 +7,16 @@ export type LayoutShiftEvent = {
|
|
|
7
7
|
event: LH.TraceEvent;
|
|
8
8
|
};
|
|
9
9
|
declare const CumulativeLayoutShiftComputed: typeof CumulativeLayoutShift & {
|
|
10
|
-
request: (dependencies: import("../../index.js").Trace, context: LH.Artifacts.ComputedContext) =>
|
|
10
|
+
request: (dependencies: import("../../index.js").Trace, context: LH.Artifacts.ComputedContext) => Promise<{
|
|
11
|
+
cumulativeLayoutShift: number;
|
|
12
|
+
cumulativeLayoutShiftMainFrame: number;
|
|
13
|
+
impactByNodeId: Map<number, number>;
|
|
14
|
+
newEngineResult?: {
|
|
15
|
+
cumulativeLayoutShift: number;
|
|
16
|
+
cumulativeLayoutShiftMainFrame: number;
|
|
17
|
+
};
|
|
18
|
+
newEngineResultDiffered: boolean;
|
|
19
|
+
}>;
|
|
11
20
|
};
|
|
12
21
|
declare class CumulativeLayoutShift {
|
|
13
22
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { FirstContentfulPaintAllFramesComputed as FirstContentfulPaintAllFrames };
|
|
2
2
|
declare const FirstContentfulPaintAllFramesComputed: typeof FirstContentfulPaintAllFrames & {
|
|
3
|
-
request: (dependencies: import("../../index.js").Artifacts.MetricComputationDataInput, context: LH.Artifacts.ComputedContext) =>
|
|
3
|
+
request: (dependencies: import("../../index.js").Artifacts.MetricComputationDataInput, context: LH.Artifacts.ComputedContext) => Promise<import("../../index.js").Artifacts.Metric | import("../../index.js").Artifacts.LanternMetric>;
|
|
4
4
|
};
|
|
5
5
|
declare class FirstContentfulPaintAllFrames extends NavigationMetric {
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { FirstContentfulPaintComputed as FirstContentfulPaint };
|
|
2
2
|
declare const FirstContentfulPaintComputed: typeof FirstContentfulPaint & {
|
|
3
|
-
request: (dependencies: import("../../index.js").Artifacts.MetricComputationDataInput, context: LH.Artifacts.ComputedContext) =>
|
|
3
|
+
request: (dependencies: import("../../index.js").Artifacts.MetricComputationDataInput, context: LH.Artifacts.ComputedContext) => Promise<import("../../index.js").Artifacts.Metric | import("../../index.js").Artifacts.LanternMetric>;
|
|
4
4
|
};
|
|
5
5
|
declare class FirstContentfulPaint extends NavigationMetric {
|
|
6
6
|
/**
|
|
@@ -10,7 +10,7 @@ export type TimePeriod = {
|
|
|
10
10
|
end: number;
|
|
11
11
|
};
|
|
12
12
|
declare const InteractiveComputed: typeof Interactive & {
|
|
13
|
-
request: (dependencies: import("../../index.js").Artifacts.MetricComputationDataInput, context: LH.Artifacts.ComputedContext) =>
|
|
13
|
+
request: (dependencies: import("../../index.js").Artifacts.MetricComputationDataInput, context: LH.Artifacts.ComputedContext) => Promise<import("../../index.js").Artifacts.Metric | import("../../index.js").Artifacts.LanternMetric>;
|
|
14
14
|
};
|
|
15
15
|
/**
|
|
16
16
|
* @fileoverview Computes "Time To Interactive", the time at which the page has loaded critical
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { LanternFirstContentfulPaintComputed as LanternFirstContentfulPaint };
|
|
2
2
|
declare const LanternFirstContentfulPaintComputed: typeof LanternFirstContentfulPaint & {
|
|
3
|
-
request: (dependencies: import("../../index.js").Artifacts.MetricComputationDataInput, context: LH.Artifacts.ComputedContext) =>
|
|
3
|
+
request: (dependencies: import("../../index.js").Artifacts.MetricComputationDataInput, context: LH.Artifacts.ComputedContext) => Promise<import("../../index.js").Artifacts.LanternMetric>;
|
|
4
4
|
};
|
|
5
5
|
declare class LanternFirstContentfulPaint extends Lantern.Metrics.FirstContentfulPaint {
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { LanternInteractiveComputed as LanternInteractive };
|
|
2
2
|
declare const LanternInteractiveComputed: typeof LanternInteractive & {
|
|
3
|
-
request: (dependencies: import("../../index.js").Artifacts.MetricComputationDataInput, context: LH.Artifacts.ComputedContext) =>
|
|
3
|
+
request: (dependencies: import("../../index.js").Artifacts.MetricComputationDataInput, context: LH.Artifacts.ComputedContext) => Promise<import("../../index.js").Artifacts.LanternMetric>;
|
|
4
4
|
};
|
|
5
5
|
declare class LanternInteractive extends Lantern.Metrics.Interactive {
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { LanternLargestContentfulPaintComputed as LanternLargestContentfulPaint };
|
|
2
2
|
declare const LanternLargestContentfulPaintComputed: typeof LanternLargestContentfulPaint & {
|
|
3
|
-
request: (dependencies: import("../../index.js").Artifacts.MetricComputationDataInput, context: LH.Artifacts.ComputedContext) =>
|
|
3
|
+
request: (dependencies: import("../../index.js").Artifacts.MetricComputationDataInput, context: LH.Artifacts.ComputedContext) => Promise<import("../../index.js").Artifacts.LanternMetric>;
|
|
4
4
|
};
|
|
5
5
|
declare class LanternLargestContentfulPaint extends Lantern.Metrics.LargestContentfulPaint {
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { LanternMaxPotentialFIDComputed as LanternMaxPotentialFID };
|
|
2
2
|
declare const LanternMaxPotentialFIDComputed: typeof LanternMaxPotentialFID & {
|
|
3
|
-
request: (dependencies: import("../../index.js").Artifacts.MetricComputationDataInput, context: LH.Artifacts.ComputedContext) =>
|
|
3
|
+
request: (dependencies: import("../../index.js").Artifacts.MetricComputationDataInput, context: LH.Artifacts.ComputedContext) => Promise<import("../../index.js").Artifacts.LanternMetric>;
|
|
4
4
|
};
|
|
5
5
|
declare class LanternMaxPotentialFID extends Lantern.Metrics.MaxPotentialFID {
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { LanternSpeedIndexComputed as LanternSpeedIndex };
|
|
2
2
|
declare const LanternSpeedIndexComputed: typeof LanternSpeedIndex & {
|
|
3
|
-
request: (dependencies: import("../../index.js").Artifacts.MetricComputationDataInput, context: LH.Artifacts.ComputedContext) =>
|
|
3
|
+
request: (dependencies: import("../../index.js").Artifacts.MetricComputationDataInput, context: LH.Artifacts.ComputedContext) => Promise<import("../../index.js").Artifacts.LanternMetric>;
|
|
4
4
|
};
|
|
5
5
|
declare class LanternSpeedIndex extends Lantern.Metrics.SpeedIndex {
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { LanternTotalBlockingTimeComputed as LanternTotalBlockingTime };
|
|
2
2
|
declare const LanternTotalBlockingTimeComputed: typeof LanternTotalBlockingTime & {
|
|
3
|
-
request: (dependencies: import("../../index.js").Artifacts.MetricComputationDataInput, context: LH.Artifacts.ComputedContext) =>
|
|
3
|
+
request: (dependencies: import("../../index.js").Artifacts.MetricComputationDataInput, context: LH.Artifacts.ComputedContext) => Promise<import("../../index.js").Artifacts.LanternMetric>;
|
|
4
4
|
};
|
|
5
5
|
declare class LanternTotalBlockingTime extends Lantern.Metrics.TotalBlockingTime {
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { LargestContentfulPaintAllFramesComputed as LargestContentfulPaintAllFrames };
|
|
2
2
|
declare const LargestContentfulPaintAllFramesComputed: typeof LargestContentfulPaintAllFrames & {
|
|
3
|
-
request: (dependencies: import("../../index.js").Artifacts.MetricComputationDataInput, context: LH.Artifacts.ComputedContext) =>
|
|
3
|
+
request: (dependencies: import("../../index.js").Artifacts.MetricComputationDataInput, context: LH.Artifacts.ComputedContext) => Promise<import("../../index.js").Artifacts.Metric | import("../../index.js").Artifacts.LanternMetric>;
|
|
4
4
|
};
|
|
5
5
|
declare class LargestContentfulPaintAllFrames extends NavigationMetric {
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { LargestContentfulPaintComputed as LargestContentfulPaint };
|
|
2
2
|
declare const LargestContentfulPaintComputed: typeof LargestContentfulPaint & {
|
|
3
|
-
request: (dependencies: import("../../index.js").Artifacts.MetricComputationDataInput, context: LH.Artifacts.ComputedContext) =>
|
|
3
|
+
request: (dependencies: import("../../index.js").Artifacts.MetricComputationDataInput, context: LH.Artifacts.ComputedContext) => Promise<import("../../index.js").Artifacts.Metric | import("../../index.js").Artifacts.LanternMetric>;
|
|
4
4
|
};
|
|
5
5
|
declare class LargestContentfulPaint extends NavigationMetric {
|
|
6
6
|
/**
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
export { LCPBreakdownComputed as LCPBreakdown };
|
|
2
2
|
declare const LCPBreakdownComputed: typeof LCPBreakdown & {
|
|
3
|
-
request: (dependencies: import("../../index.js").Artifacts.MetricComputationDataInput, context: LH.Artifacts.ComputedContext) =>
|
|
3
|
+
request: (dependencies: import("../../index.js").Artifacts.MetricComputationDataInput, context: LH.Artifacts.ComputedContext) => Promise<{
|
|
4
|
+
ttfb: number;
|
|
5
|
+
loadStart?: number;
|
|
6
|
+
loadEnd?: number;
|
|
7
|
+
}>;
|
|
4
8
|
};
|
|
5
9
|
declare class LCPBreakdown {
|
|
6
10
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { MaxPotentialFIDComputed as MaxPotentialFID };
|
|
2
2
|
declare const MaxPotentialFIDComputed: typeof MaxPotentialFID & {
|
|
3
|
-
request: (dependencies: import("../../index.js").Artifacts.MetricComputationDataInput, context: LH.Artifacts.ComputedContext) =>
|
|
3
|
+
request: (dependencies: import("../../index.js").Artifacts.MetricComputationDataInput, context: LH.Artifacts.ComputedContext) => Promise<import("../../index.js").Artifacts.Metric | import("../../index.js").Artifacts.LanternMetric>;
|
|
4
4
|
};
|
|
5
5
|
declare class MaxPotentialFID extends NavigationMetric {
|
|
6
6
|
/**
|
|
@@ -42,7 +42,7 @@ declare const ResponsivenessComputed: typeof Responsiveness & {
|
|
|
42
42
|
request: (dependencies: {
|
|
43
43
|
trace: LH.Trace;
|
|
44
44
|
settings: LH.Audit.Context["settings"];
|
|
45
|
-
}, context: LH.Artifacts.ComputedContext) =>
|
|
45
|
+
}, context: LH.Artifacts.ComputedContext) => Promise<EventTimingEvent | null>;
|
|
46
46
|
};
|
|
47
47
|
declare class Responsiveness {
|
|
48
48
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { SpeedIndexComputed as SpeedIndex };
|
|
2
2
|
declare const SpeedIndexComputed: typeof SpeedIndex & {
|
|
3
|
-
request: (dependencies: import("../../index.js").Artifacts.MetricComputationDataInput, context: LH.Artifacts.ComputedContext) =>
|
|
3
|
+
request: (dependencies: import("../../index.js").Artifacts.MetricComputationDataInput, context: LH.Artifacts.ComputedContext) => Promise<import("../../index.js").Artifacts.Metric | import("../../index.js").Artifacts.LanternMetric>;
|
|
4
4
|
};
|
|
5
5
|
declare class SpeedIndex extends NavigationMetric {
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { TimeToFirstByteComputed as TimeToFirstByte };
|
|
2
2
|
declare const TimeToFirstByteComputed: typeof TimeToFirstByte & {
|
|
3
|
-
request: (dependencies: import("../../index.js").Artifacts.MetricComputationDataInput, context: LH.Artifacts.ComputedContext) =>
|
|
3
|
+
request: (dependencies: import("../../index.js").Artifacts.MetricComputationDataInput, context: LH.Artifacts.ComputedContext) => Promise<import("../../index.js").Artifacts.Metric | import("../../index.js").Artifacts.LanternMetric>;
|
|
4
4
|
};
|
|
5
5
|
declare class TimeToFirstByte extends NavigationMetric {
|
|
6
6
|
/**
|
|
@@ -7,7 +7,10 @@ declare const TimingSummaryComputed: typeof TimingSummary & {
|
|
|
7
7
|
settings: LH.Util.ImmutableObject<LH.Config.Settings>;
|
|
8
8
|
URL: LH.Artifacts["URL"];
|
|
9
9
|
SourceMaps: LH.Artifacts["SourceMaps"];
|
|
10
|
-
}, context: LH.Artifacts.ComputedContext) =>
|
|
10
|
+
}, context: LH.Artifacts.ComputedContext) => Promise<{
|
|
11
|
+
metrics: LH.Artifacts.TimingSummary;
|
|
12
|
+
debugInfo: Record<string, boolean>;
|
|
13
|
+
}>;
|
|
11
14
|
};
|
|
12
15
|
declare class TimingSummary {
|
|
13
16
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { TotalBlockingTimeComputed as TotalBlockingTime };
|
|
2
2
|
declare const TotalBlockingTimeComputed: typeof TotalBlockingTime & {
|
|
3
|
-
request: (dependencies: import("../../index.js").Artifacts.MetricComputationDataInput, context: LH.Artifacts.ComputedContext) =>
|
|
3
|
+
request: (dependencies: import("../../index.js").Artifacts.MetricComputationDataInput, context: LH.Artifacts.ComputedContext) => Promise<import("../../index.js").Artifacts.Metric | import("../../index.js").Artifacts.LanternMetric>;
|
|
4
4
|
};
|
|
5
5
|
/**
|
|
6
6
|
* @fileoverview This audit determines Total Blocking Time.
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
export { ModuleDuplicationComputed as ModuleDuplication };
|
|
2
2
|
declare const ModuleDuplicationComputed: typeof ModuleDuplication & {
|
|
3
|
-
request: (dependencies: Pick<import("../index.js").Artifacts, "Scripts" | "SourceMaps">, context: LH.Artifacts.ComputedContext) =>
|
|
3
|
+
request: (dependencies: Pick<import("../index.js").Artifacts, "Scripts" | "SourceMaps">, context: LH.Artifacts.ComputedContext) => Promise<Map<string, {
|
|
4
|
+
scriptId: string;
|
|
5
|
+
scriptUrl: string;
|
|
6
|
+
resourceSize: number;
|
|
7
|
+
}[]>>;
|
|
4
8
|
};
|
|
5
9
|
declare class ModuleDuplication {
|
|
6
10
|
/**
|
|
@@ -4,7 +4,7 @@ declare const NavigationInsightsComputed: typeof NavigationInsights & {
|
|
|
4
4
|
trace: LH.Trace;
|
|
5
5
|
settings: LH.Audit.Context["settings"];
|
|
6
6
|
SourceMaps: LH.Artifacts["SourceMaps"];
|
|
7
|
-
}, context: LH.Artifacts.ComputedContext) =>
|
|
7
|
+
}, context: LH.Artifacts.ComputedContext) => Promise<import("@paulirish/trace_engine/models/trace/insights/types.js").InsightSet>;
|
|
8
8
|
};
|
|
9
9
|
/**
|
|
10
10
|
* @fileoverview Gets insights from the shared trace engine for the navigation audited by Lighthouse.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { NetworkAnalysisComputed as NetworkAnalysis };
|
|
2
2
|
declare const NetworkAnalysisComputed: typeof NetworkAnalysis & {
|
|
3
|
-
request: (dependencies: import("../index.js").DevtoolsLog, context: LH.Artifacts.ComputedContext) =>
|
|
3
|
+
request: (dependencies: import("../index.js").DevtoolsLog, context: LH.Artifacts.ComputedContext) => Promise<import("../index.js").Artifacts.NetworkAnalysis>;
|
|
4
4
|
};
|
|
5
5
|
declare class NetworkAnalysis {
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { NetworkRecordsComputed as NetworkRecords };
|
|
2
2
|
declare const NetworkRecordsComputed: typeof NetworkRecords & {
|
|
3
|
-
request: (dependencies: LH.DevtoolsLog, context: LH.Artifacts.ComputedContext) =>
|
|
3
|
+
request: (dependencies: LH.DevtoolsLog, context: LH.Artifacts.ComputedContext) => Promise<import("../lib/network-request.js").NetworkRequest[]>;
|
|
4
4
|
};
|
|
5
5
|
declare class NetworkRecords {
|
|
6
6
|
/**
|
|
@@ -7,7 +7,7 @@ declare const PageDependencyGraphComputed: typeof PageDependencyGraph & {
|
|
|
7
7
|
URL: LH.Artifacts["URL"];
|
|
8
8
|
SourceMaps: LH.Artifacts["SourceMaps"];
|
|
9
9
|
fromTrace: boolean;
|
|
10
|
-
}, context: LH.Artifacts.ComputedContext) =>
|
|
10
|
+
}, context: LH.Artifacts.ComputedContext) => Promise<import("../../types/gatherer.js").default.Simulation.GraphNode>;
|
|
11
11
|
};
|
|
12
12
|
declare class PageDependencyGraph {
|
|
13
13
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { ProcessedNavigationComputed as ProcessedNavigation };
|
|
2
2
|
declare const ProcessedNavigationComputed: typeof ProcessedNavigation & {
|
|
3
|
-
request: (dependencies: import("../index.js").Trace | import("../index.js").Artifacts.ProcessedTrace, context: LH.Artifacts.ComputedContext) =>
|
|
3
|
+
request: (dependencies: import("../index.js").Trace | import("../index.js").Artifacts.ProcessedTrace, context: LH.Artifacts.ComputedContext) => Promise<import("../index.js").Artifacts.ProcessedNavigation>;
|
|
4
4
|
};
|
|
5
5
|
declare class ProcessedNavigation {
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { ProcessedTraceComputed as ProcessedTrace };
|
|
2
2
|
declare const ProcessedTraceComputed: typeof ProcessedTrace & {
|
|
3
|
-
request: (dependencies: import("../index.js").Trace, context: LH.Artifacts.ComputedContext) =>
|
|
3
|
+
request: (dependencies: import("../index.js").Trace, context: LH.Artifacts.ComputedContext) => Promise<import("../index.js").Artifacts.ProcessedTrace>;
|
|
4
4
|
};
|
|
5
5
|
declare class ProcessedTrace {
|
|
6
6
|
/**
|
|
@@ -9,7 +9,7 @@ declare const ResourceSummaryComputed: typeof ResourceSummary & {
|
|
|
9
9
|
request: (dependencies: {
|
|
10
10
|
URL: LH.Artifacts["URL"];
|
|
11
11
|
devtoolsLog: LH.DevtoolsLog;
|
|
12
|
-
}, context: LH.Artifacts.ComputedContext) =>
|
|
12
|
+
}, context: LH.Artifacts.ComputedContext) => Promise<Record<ResourceType, ResourceEntry>>;
|
|
13
13
|
};
|
|
14
14
|
/** @typedef {{count: number, resourceSize: number, transferSize: number}} ResourceEntry */
|
|
15
15
|
/** @typedef {'stylesheet'|'image'|'media'|'font'|'script'|'document'|'other'|'third-party'|'total'} ResourceType */
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
export { ScreenshotsComputed as Screenshots };
|
|
2
2
|
declare const ScreenshotsComputed: typeof Screenshots & {
|
|
3
|
-
request: (dependencies: import("../index.js").Trace, context: LH.Artifacts.ComputedContext) =>
|
|
3
|
+
request: (dependencies: import("../index.js").Trace, context: LH.Artifacts.ComputedContext) => Promise<{
|
|
4
|
+
timestamp: number;
|
|
5
|
+
datauri: string;
|
|
6
|
+
}[]>;
|
|
4
7
|
};
|
|
5
8
|
declare class Screenshots {
|
|
6
9
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { SpeedlineComputed as Speedline };
|
|
2
2
|
declare const SpeedlineComputed: typeof Speedline & {
|
|
3
|
-
request: (dependencies: import("../index.js").Trace, context: LH.Artifacts.ComputedContext) =>
|
|
3
|
+
request: (dependencies: import("../index.js").Trace, context: LH.Artifacts.ComputedContext) => Promise<import("../index.js").Artifacts.Speedline>;
|
|
4
4
|
};
|
|
5
5
|
declare class Speedline {
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { TBTImpactTasksComputed as TBTImpactTasks };
|
|
2
2
|
declare const TBTImpactTasksComputed: typeof TBTImpactTasks & {
|
|
3
|
-
request: (dependencies: import("../index.js").Artifacts.MetricComputationDataInput, context: LH.Artifacts.ComputedContext) =>
|
|
3
|
+
request: (dependencies: import("../index.js").Artifacts.MetricComputationDataInput, context: LH.Artifacts.ComputedContext) => Promise<import("../index.js").Artifacts.TBTImpactTask[]>;
|
|
4
4
|
};
|
|
5
5
|
declare class TBTImpactTasks {
|
|
6
6
|
/**
|
|
@@ -4,7 +4,7 @@ declare const TraceEngineResultComputed: typeof TraceEngineResult & {
|
|
|
4
4
|
trace: LH.Trace;
|
|
5
5
|
settings: LH.Audit.Context["settings"];
|
|
6
6
|
SourceMaps: LH.Artifacts["SourceMaps"];
|
|
7
|
-
}, context: LH.Artifacts.ComputedContext) =>
|
|
7
|
+
}, context: LH.Artifacts.ComputedContext) => Promise<LH.Artifacts.TraceEngineResult>;
|
|
8
8
|
};
|
|
9
9
|
/**
|
|
10
10
|
* @fileoverview Processes trace with the shared trace engine.
|
|
@@ -8,7 +8,7 @@ declare const UnusedCSSComputed: typeof UnusedCSS & {
|
|
|
8
8
|
Stylesheets: LH.Artifacts["Stylesheets"];
|
|
9
9
|
CSSUsage: LH.Artifacts["CSSUsage"];
|
|
10
10
|
devtoolsLog: LH.DevtoolsLog;
|
|
11
|
-
}, context: LH.Artifacts.ComputedContext) =>
|
|
11
|
+
}, context: LH.Artifacts.ComputedContext) => Promise<import("../../types/audit.js").default.ByteEfficiencyItem[]>;
|
|
12
12
|
};
|
|
13
13
|
/** @typedef {LH.Artifacts.CSSStyleSheetInfo & {networkRecord: LH.Artifacts.NetworkRequest, usedRules: Array<LH.Crdp.CSS.RuleUsage>}} StyleSheetInfo */
|
|
14
14
|
declare class UnusedCSS {
|
|
@@ -20,7 +20,7 @@ export type Summary = {
|
|
|
20
20
|
sourcesWastedBytes?: Record<string, number> | undefined;
|
|
21
21
|
};
|
|
22
22
|
declare const UnusedJavascriptSummaryComputed: typeof UnusedJavascriptSummary & {
|
|
23
|
-
request: (dependencies: ComputeInput, context: LH.Artifacts.ComputedContext) =>
|
|
23
|
+
request: (dependencies: ComputeInput, context: LH.Artifacts.ComputedContext) => Promise<Summary>;
|
|
24
24
|
};
|
|
25
25
|
/**
|
|
26
26
|
* @typedef WasteData
|