Skip to content

Commit 764bfb4

Browse files
committed
update lighthouse
1 parent bf61247 commit 764bfb4

File tree

8 files changed

+117
-374
lines changed

8 files changed

+117
-374
lines changed

webdriver-ts/package-lock.json

Lines changed: 93 additions & 347 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

webdriver-ts/package.json

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"version": "1.0.0",
44
"description": "",
55
"main": "index.js",
6+
"type": "commonjs",
67
"scripts": {
78
"test": "echo \"Error: no test specified\" && exit 1",
89
"lint": "eslint . --ext .ts",
@@ -20,36 +21,36 @@
2021
"devDependencies": {
2122
"@types/lodash": "4.14.191",
2223
"@types/node": "18.14.6",
23-
"@types/ramda": "^0.28.23",
24+
"@types/ramda": "0.28.23",
2425
"@types/selenium-webdriver": "4.1.12",
2526
"@types/semver": "7.3.13",
26-
"@types/underscore": "^1.11.4",
27+
"@types/underscore": "1.11.4",
2728
"@types/yargs": "17.0.22",
28-
"@typescript-eslint/eslint-plugin": "^5.54.0",
29-
"@typescript-eslint/parser": "^5.54.0",
30-
"dockerode": "^3.3.4",
31-
"eslint": "^8.35.0",
29+
"@typescript-eslint/eslint-plugin": "5.54.0",
30+
"@typescript-eslint/parser": "5.54.0",
31+
"dockerode": "3.3.4",
32+
"eslint": "8.35.0",
3233
"ts-node": "10.9.1",
3334
"typescript": "4.9.5"
3435
},
3536
"dependencies": {
36-
"axios": "^1.3.4",
37-
"chromedriver": "^110.0.0",
37+
"axios": "1.3.4",
38+
"chromedriver": "110.0.0",
3839
"cross-env": "7.0.3",
3940
"dot": "1.1.3",
4041
"jstat": "1.9.6",
41-
"lighthouse": "9.6.8",
42+
"lighthouse": "10.0.2",
4243
"lodash": "4.17.21",
43-
"marky": "^1.2.5",
44+
"marky": "1.2.5",
4445
"npm-check-updates": "16.7.10",
45-
"playwright": "^1.31.2",
46-
"playwright-firefox": "^1.31.2",
47-
"playwright-webkit": "^1.31.2",
48-
"puppeteer-core": "^19.7.2",
49-
"ramda": "^0.28.0",
46+
"playwright": "1.31.2",
47+
"playwright-firefox": "1.31.2",
48+
"playwright-webkit": "1.31.2",
49+
"puppeteer-core": "19.7.2",
50+
"ramda": "0.28.0",
5051
"selenium-webdriver": "4.8.1",
5152
"semver": "7.3.8",
52-
"underscore": "^1.13.6",
53-
"yargs": "17.6.2"
53+
"underscore": "1.13.6",
54+
"yargs": "17.7.1"
5455
}
5556
}

webdriver-ts/src/benchmarkRunner.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { fork } from "child_process";
22
import * as fs from "fs";
3-
import * as yargs from "yargs";
3+
import yargs from 'yargs';
44
import { BenchmarkInfo, benchmarkInfos, BenchmarkType, CPUBenchmarkInfo, MemBenchmarkInfo, StartupBenchmarkInfo } from "./benchmarksCommon";
55
import { StartupBenchmarkResult } from "./benchmarksLighthouse";
66
import { BenchmarkOptions, BENCHMARK_RUNNER, config, ErrorAndWarning, FrameworkData, initializeFrameworks } from "./common";

webdriver-ts/src/createResultJS.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as fs from "fs";
2-
import * as yargs from "yargs";
2+
import yargs from "yargs";
33
import { BenchmarkInfo, benchmarkInfos, BenchmarkType, fileName } from "./benchmarksCommon";
44
import { subbenchmarks } from "./benchmarksLighthouse";
55
import { config, initializeFrameworks, JSONResult } from "./common";

webdriver-ts/src/forkedBenchmarkRunnerLighthouse.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import * as lighthouse from "lighthouse";
21
import * as chromeLauncher from "chrome-launcher";
32

43
import { TConfig, config as defaultConfig, FrameworkData, ErrorAndWarning, BenchmarkOptions } from "./common";
@@ -39,6 +38,8 @@ async function runLighthouse(framework: FrameworkData, startupBenchmarks: Startu
3938
logLevel: "info",
4039
};
4140

41+
const lighthouse = (await (eval('import("lighthouse")'))).default;
42+
4243
try {
4344
if (benchmarkOptions.chromeBinaryPath) opts.chromePath = benchmarkOptions.chromeBinaryPath;
4445
let chrome = await chromeLauncher.launch(opts);

webdriver-ts/src/isCSPCompliant.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as yargs from "yargs";
1+
import yargs from "yargs";
22
import { checkElementContainsText, checkElementExists, clickElement, startBrowser } from "./playwrightAccess";
33
import { config, FrameworkData, initializeFrameworks, BenchmarkOptions } from "./common";
44

webdriver-ts/src/isKeyed.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as yargs from "yargs";
1+
import yargs from "yargs";
22
import { checkElementContainsText, checkElementExists, clickElement, startBrowser } from "./playwrightAccess";
33
import { config, FrameworkData, initializeFrameworks, BenchmarkOptions } from "./common";
44

webdriver-ts/src/typings/lighthouse.ts

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)