lighthouse 10.0.1-dev.20230220 → 10.0.1-dev.20230221
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.
|
@@ -273,7 +273,9 @@ async function _navigations(args) {
|
|
|
273
273
|
computedCache,
|
|
274
274
|
} = args;
|
|
275
275
|
|
|
276
|
-
if (!resolvedConfig.
|
|
276
|
+
if (!resolvedConfig.artifacts || !resolvedConfig.navigations) {
|
|
277
|
+
throw new Error('No artifacts were defined on the config');
|
|
278
|
+
}
|
|
277
279
|
|
|
278
280
|
/** @type {Partial<LH.FRArtifacts & LH.FRBaseArtifacts>} */
|
|
279
281
|
const artifacts = {};
|
|
@@ -35,6 +35,7 @@ function processForProto(lhr) {
|
|
|
35
35
|
onlyCategories,
|
|
36
36
|
channel,
|
|
37
37
|
throttling,
|
|
38
|
+
screenEmulation,
|
|
38
39
|
throttlingMethod} = reportJson.configSettings;
|
|
39
40
|
|
|
40
41
|
// @ts-expect-error - intentionally only a subset of settings.
|
|
@@ -44,6 +45,7 @@ function processForProto(lhr) {
|
|
|
44
45
|
onlyCategories,
|
|
45
46
|
channel,
|
|
46
47
|
throttling,
|
|
48
|
+
screenEmulation,
|
|
47
49
|
throttlingMethod};
|
|
48
50
|
}
|
|
49
51
|
|
package/package.json
CHANGED
package/types/artifacts.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ import {Simulator} from '../core/lib/dependency-graph/simulator/simulator.js';
|
|
|
11
11
|
import {LighthouseError} from '../core/lib/lh-error.js';
|
|
12
12
|
import {NetworkRequest as _NetworkRequest} from '../core/lib/network-request.js';
|
|
13
13
|
import speedline from 'speedline-core';
|
|
14
|
-
import TextSourceMap from '../core/lib/cdt/generated/SourceMap.js';
|
|
14
|
+
import * as TextSourceMap from '../core/lib/cdt/generated/SourceMap.js';
|
|
15
15
|
import {ArbitraryEqualityMap} from '../core/lib/arbitrary-equality-map.js';
|
|
16
16
|
import type { TaskNode as _TaskNode } from '../core/lib/tracehouse/main-thread-tasks.js';
|
|
17
17
|
import AuditDetails from './lhr/audit-details.js'
|