lighthouse 8.4.0-dev.20210913 → 8.4.0-dev.20210917
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/flow-report/assets/styles.css +46 -4
- package/flow-report/src/app.tsx +6 -2
- package/flow-report/src/icons.tsx +11 -0
- package/flow-report/src/topbar.tsx +60 -0
- package/flow-report/tsconfig.json +6 -22
- package/lighthouse-cli/.eslintrc.cjs +27 -0
- package/lighthouse-cli/bin.js +31 -21
- package/lighthouse-cli/cli-flags.js +12 -7
- package/lighthouse-cli/commands/commands.js +2 -7
- package/lighthouse-cli/commands/list-audits.js +2 -2
- package/lighthouse-cli/commands/list-trace-categories.js +2 -2
- package/lighthouse-cli/index.js +3 -1
- package/lighthouse-cli/{test/smokehouse/package.json → package.json} +0 -0
- package/lighthouse-cli/printer.js +4 -3
- package/lighthouse-cli/run.js +14 -15
- package/lighthouse-cli/sentry-prompt.js +5 -6
- package/lighthouse-cli/test/smokehouse/frontends/back-compat-util.js +1 -1
- package/lighthouse-cli/test/smokehouse/frontends/smokehouse-bin.js +54 -1
- package/lighthouse-cli/test/smokehouse/lighthouse-runners/bundle.js +1 -1
- package/lighthouse-cli/test/smokehouse/lighthouse-runners/cli.js +1 -1
- package/lighthouse-cli/test/smokehouse/smokehouse.js +1 -1
- package/lighthouse-core/audits/byte-efficiency/uses-responsive-images-snapshot.js +6 -1
- package/lighthouse-core/audits/dobetterweb/js-libraries.js +5 -0
- package/lighthouse-core/audits/dobetterweb/uses-http2.js +1 -0
- package/lighthouse-core/audits/lcp-lazy-loaded.js +1 -0
- package/lighthouse-core/audits/oopif-iframe-test-audit.js +1 -0
- package/lighthouse-core/fraggle-rock/config/validation.js +2 -1
- package/lighthouse-core/fraggle-rock/gather/timespan-runner.js +2 -0
- package/lighthouse-core/gather/driver/prepare.js +43 -17
- package/lighthouse-core/gather/gatherers/trace.js +4 -3
- package/lighthouse-core/index.js +4 -0
- package/lighthouse-core/lib/i18n/locales/en-US.json +6 -0
- package/lighthouse-core/lib/i18n/locales/en-XL.json +6 -0
- package/lighthouse-core/lib/proto-preprocessor.js +5 -10
- package/package.json +7 -6
- package/readme.md +2 -0
- package/report/generator/tsconfig.json +5 -16
- package/report/renderer/report-ui-features.js +1 -4
- package/report/tsconfig.json +6 -21
- package/root.js +3 -1
- package/tsconfig-all.json +15 -0
- package/tsconfig-base.json +24 -0
- package/tsconfig.json +8 -19
- package/types/lhr/lhr.d.ts +5 -1
- package/types/lhr/tsconfig.json +4 -14
package/tsconfig.json
CHANGED
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
{
|
|
2
|
+
"extends": "./tsconfig-base.json",
|
|
2
3
|
"compilerOptions": {
|
|
3
|
-
"
|
|
4
|
-
"module": "commonjs",
|
|
5
|
-
"target": "ES2020",
|
|
6
|
-
"allowJs": true,
|
|
7
|
-
"checkJs": true,
|
|
8
|
-
"strict": true,
|
|
9
|
-
// TODO: remove the next line to be fully `strict`.
|
|
10
|
-
"useUnknownInCatchVariables": false,
|
|
11
|
-
// "listFiles": true,
|
|
12
|
-
// "noErrorTruncation": true,
|
|
4
|
+
"outDir": ".tmp/tsbuildinfo/",
|
|
13
5
|
|
|
6
|
+
// TODO(esmodules): included to support require('file.json'). Remove on the switch to ES Modules.
|
|
14
7
|
"resolveJsonModule": true,
|
|
15
|
-
"diagnostics": true,
|
|
16
|
-
"composite": true,
|
|
17
|
-
"outDir": ".tmp/tsbuildinfo/",
|
|
18
|
-
"esModuleInterop": true,
|
|
19
8
|
},
|
|
9
|
+
"references": [
|
|
10
|
+
{"path": "./types/lhr/"},
|
|
11
|
+
{"path": "./report/"},
|
|
12
|
+
{"path": "./report/generator/"},
|
|
13
|
+
],
|
|
20
14
|
"include": [
|
|
21
15
|
"root.js",
|
|
22
16
|
"lighthouse-cli/**/*.js",
|
|
@@ -36,11 +30,6 @@
|
|
|
36
30
|
"third-party/snyk/snapshot.json",
|
|
37
31
|
"lighthouse-core/audits/byte-efficiency/polyfill-graph-data.json",
|
|
38
32
|
],
|
|
39
|
-
"references": [
|
|
40
|
-
{"path": "./types/lhr/"},
|
|
41
|
-
{"path": "./report/"},
|
|
42
|
-
{"path": "./report/generator/"},
|
|
43
|
-
],
|
|
44
33
|
"exclude": [
|
|
45
34
|
"lighthouse-core/test/audits/**/*.js",
|
|
46
35
|
"lighthouse-core/test/fixtures/**/*.js",
|
package/types/lhr/lhr.d.ts
CHANGED
|
@@ -41,7 +41,11 @@ interface Result {
|
|
|
41
41
|
/** Execution timings for the Lighthouse run */
|
|
42
42
|
timing: Result.Timing;
|
|
43
43
|
/** Strings for the report and the record of all formatted string locations in the LHR and their corresponding source values. */
|
|
44
|
-
i18n: {
|
|
44
|
+
i18n: {
|
|
45
|
+
rendererFormattedStrings: Record<string, string>;
|
|
46
|
+
/** Optional because LR has many old LHRs that return nothing for this property. */
|
|
47
|
+
icuMessagePaths?: Result.IcuMessagePaths;
|
|
48
|
+
};
|
|
45
49
|
/** An array containing the result of all stack packs. */
|
|
46
50
|
stackPacks?: Result.StackPack[];
|
|
47
51
|
}
|
package/types/lhr/tsconfig.json
CHANGED
|
@@ -1,22 +1,12 @@
|
|
|
1
1
|
{
|
|
2
|
+
"extends": "../../tsconfig-base.json",
|
|
2
3
|
"compilerOptions": {
|
|
3
|
-
"
|
|
4
|
-
"target": "esnext",
|
|
5
|
-
"esModuleInterop": true,
|
|
6
|
-
"moduleResolution": "node",
|
|
7
|
-
|
|
8
|
-
"strict": true,
|
|
9
|
-
"extendedDiagnostics": true,
|
|
4
|
+
"outDir": "../../.tmp/tsbuildinfo/types/lhr",
|
|
10
5
|
|
|
11
|
-
// We only need the base JS definitions, no
|
|
6
|
+
// We only need the base JS definitions, no DOM, etc.
|
|
12
7
|
"lib": ["esnext"],
|
|
8
|
+
// Don't include any types from node_modules/.
|
|
13
9
|
"types": [],
|
|
14
|
-
|
|
15
|
-
// "listFiles": true,
|
|
16
|
-
// "noErrorTruncation": true,
|
|
17
|
-
|
|
18
|
-
"composite": true,
|
|
19
|
-
"outDir": "../../.tmp/tsbuildinfo/types/lhr",
|
|
20
10
|
},
|
|
21
11
|
"include": [
|
|
22
12
|
"*.d.ts",
|