lighthouse 9.5.0-dev.20220825 → 9.5.0-dev.20220828
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/core/config/default-config.js +45 -40
- package/package.json +1 -1
|
@@ -123,49 +123,54 @@ const UIStrings = {
|
|
|
123
123
|
|
|
124
124
|
const str_ = i18n.createIcuMessageFn(import.meta.url, UIStrings);
|
|
125
125
|
|
|
126
|
-
|
|
126
|
+
// Ensure all artifact IDs match the typedefs.
|
|
127
|
+
/** @type {Record<keyof LH.FRArtifacts, string>} */
|
|
127
128
|
const artifacts = {
|
|
128
|
-
DevtoolsLog: '
|
|
129
|
-
Trace: '
|
|
130
|
-
Accessibility: '
|
|
131
|
-
AnchorElements: '
|
|
132
|
-
CacheContents: '
|
|
133
|
-
ConsoleMessages: '
|
|
134
|
-
CSSUsage: '
|
|
135
|
-
Doctype: '
|
|
136
|
-
DOMStats: '
|
|
137
|
-
EmbeddedContent: '
|
|
138
|
-
FontSize: '
|
|
139
|
-
Inputs: '
|
|
140
|
-
FullPageScreenshot: '
|
|
141
|
-
GlobalListeners: '
|
|
142
|
-
IFrameElements: '
|
|
143
|
-
ImageElements: '
|
|
144
|
-
InstallabilityErrors: '
|
|
145
|
-
InspectorIssues: '
|
|
146
|
-
JsUsage: '
|
|
147
|
-
LinkElements: '
|
|
148
|
-
MainDocumentContent: '
|
|
149
|
-
MetaElements: '
|
|
150
|
-
NetworkUserAgent: '
|
|
151
|
-
OptimizedImages: '
|
|
152
|
-
PasswordInputsWithPreventedPaste: '
|
|
153
|
-
ResponseCompression: '
|
|
154
|
-
RobotsTxt: '
|
|
155
|
-
ServiceWorker: '
|
|
156
|
-
ScriptElements: '
|
|
157
|
-
Scripts: '
|
|
158
|
-
SourceMaps: '
|
|
159
|
-
Stacks: '
|
|
160
|
-
TagsBlockingFirstPaint: '
|
|
161
|
-
TapTargets: '
|
|
162
|
-
TraceElements: '
|
|
163
|
-
ViewportDimensions: '
|
|
164
|
-
WebAppManifest: '
|
|
165
|
-
devtoolsLogs: '
|
|
166
|
-
traces: '
|
|
129
|
+
DevtoolsLog: '',
|
|
130
|
+
Trace: '',
|
|
131
|
+
Accessibility: '',
|
|
132
|
+
AnchorElements: '',
|
|
133
|
+
CacheContents: '',
|
|
134
|
+
ConsoleMessages: '',
|
|
135
|
+
CSSUsage: '',
|
|
136
|
+
Doctype: '',
|
|
137
|
+
DOMStats: '',
|
|
138
|
+
EmbeddedContent: '',
|
|
139
|
+
FontSize: '',
|
|
140
|
+
Inputs: '',
|
|
141
|
+
FullPageScreenshot: '',
|
|
142
|
+
GlobalListeners: '',
|
|
143
|
+
IFrameElements: '',
|
|
144
|
+
ImageElements: '',
|
|
145
|
+
InstallabilityErrors: '',
|
|
146
|
+
InspectorIssues: '',
|
|
147
|
+
JsUsage: '',
|
|
148
|
+
LinkElements: '',
|
|
149
|
+
MainDocumentContent: '',
|
|
150
|
+
MetaElements: '',
|
|
151
|
+
NetworkUserAgent: '',
|
|
152
|
+
OptimizedImages: '',
|
|
153
|
+
PasswordInputsWithPreventedPaste: '',
|
|
154
|
+
ResponseCompression: '',
|
|
155
|
+
RobotsTxt: '',
|
|
156
|
+
ServiceWorker: '',
|
|
157
|
+
ScriptElements: '',
|
|
158
|
+
Scripts: '',
|
|
159
|
+
SourceMaps: '',
|
|
160
|
+
Stacks: '',
|
|
161
|
+
TagsBlockingFirstPaint: '',
|
|
162
|
+
TapTargets: '',
|
|
163
|
+
TraceElements: '',
|
|
164
|
+
ViewportDimensions: '',
|
|
165
|
+
WebAppManifest: '',
|
|
166
|
+
devtoolsLogs: '',
|
|
167
|
+
traces: '',
|
|
167
168
|
};
|
|
168
169
|
|
|
170
|
+
for (const key of Object.keys(artifacts)) {
|
|
171
|
+
artifacts[/** @type {keyof typeof artifacts} */ (key)] = key;
|
|
172
|
+
}
|
|
173
|
+
|
|
169
174
|
/** @type {LH.Config.Json} */
|
|
170
175
|
const defaultConfig = {
|
|
171
176
|
settings: constants.defaultSettings,
|
package/package.json
CHANGED