@jsenv/lighthouse-impact 4.2.42 → 4.2.44
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsenv/lighthouse-impact",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.44",
|
|
4
4
|
"description": "Package description",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -25,16 +25,16 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@jsenv/abort": "4.3.1",
|
|
27
27
|
"@jsenv/dynamic-import-worker": "1.2.1",
|
|
28
|
-
"@jsenv/filesystem": "4.15.
|
|
29
|
-
"@jsenv/github-pull-request-impact": "1.8.
|
|
30
|
-
"@jsenv/humanize": "1.7.
|
|
28
|
+
"@jsenv/filesystem": "4.15.12",
|
|
29
|
+
"@jsenv/github-pull-request-impact": "1.8.39",
|
|
30
|
+
"@jsenv/humanize": "1.7.4",
|
|
31
31
|
"lighthouse": "13.0.1"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@jsenv/assert": "../assert",
|
|
35
35
|
"@jsenv/lighthouse-impact": "./",
|
|
36
36
|
"@jsenv/server": "../../backend/server",
|
|
37
|
-
"playwright": "1.
|
|
37
|
+
"playwright": "1.58.1"
|
|
38
38
|
},
|
|
39
39
|
"engines": {
|
|
40
40
|
"node": ">=20.0.0"
|
|
@@ -16,9 +16,8 @@ export const runLighthouse = async (url, lighthouseOptions) => {
|
|
|
16
16
|
};
|
|
17
17
|
|
|
18
18
|
export const reduceToMedianReport = async (lighthouseReports) => {
|
|
19
|
-
const { computeMedianRun } =
|
|
20
|
-
"lighthouse/core/lib/median-run.js"
|
|
21
|
-
);
|
|
19
|
+
const { computeMedianRun } =
|
|
20
|
+
await import("lighthouse/core/lib/median-run.js");
|
|
22
21
|
return computeMedianRun(lighthouseReports);
|
|
23
22
|
};
|
|
24
23
|
|
|
@@ -36,9 +35,8 @@ export const formatReportAsJson = (lighthouseReport) => {
|
|
|
36
35
|
};
|
|
37
36
|
|
|
38
37
|
export const formatReportAsHtml = async (lighthouseReport) => {
|
|
39
|
-
const { ReportGenerator } =
|
|
40
|
-
"lighthouse/report/generator/report-generator.js"
|
|
41
|
-
);
|
|
38
|
+
const { ReportGenerator } =
|
|
39
|
+
await import("lighthouse/report/generator/report-generator.js");
|
|
42
40
|
const html = ReportGenerator.generateReportHtml(lighthouseReport);
|
|
43
41
|
return html;
|
|
44
42
|
};
|