lighthouse 10.4.0-dev.20230711 → 10.4.0-dev.20230712

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.
@@ -237,7 +237,7 @@ async function begin() {
237
237
 
238
238
  if (smokehouseOutputDir && testResultsToOutput) {
239
239
  fs.rmSync(smokehouseOutputDir, {recursive: true, force: true});
240
- fs.mkdirSync(smokehouseOutputDir);
240
+ fs.mkdirSync(smokehouseOutputDir, {recursive: true});
241
241
 
242
242
  for (const testResult of testResultsToOutput) {
243
243
  for (let i = 0; i < testResult.runs.length; i++) {
@@ -5,12 +5,9 @@
5
5
  * CHROME_PATH determines which Chrome is used–otherwise the default is puppeteer's chrome binary.
6
6
  * @param {string} url
7
7
  * @param {LH.Config=} config
8
- * @param {{isDebug?: boolean}=} testRunnerOptions
9
8
  * @return {Promise<{lhr: LH.Result, artifacts: LH.Artifacts, log: string}>}
10
9
  */
11
- export function runLighthouse(url: string, config?: LH.Config | undefined, testRunnerOptions?: {
12
- isDebug?: boolean;
13
- } | undefined): Promise<{
10
+ export function runLighthouse(url: string, config?: LH.Config | undefined): Promise<{
14
11
  lhr: LH.Result;
15
12
  artifacts: LH.Artifacts;
16
13
  log: string;
@@ -40,10 +40,9 @@ async function setup() {
40
40
  * CHROME_PATH determines which Chrome is used–otherwise the default is puppeteer's chrome binary.
41
41
  * @param {string} url
42
42
  * @param {LH.Config=} config
43
- * @param {{isDebug?: boolean}=} testRunnerOptions
44
43
  * @return {Promise<{lhr: LH.Result, artifacts: LH.Artifacts, log: string}>}
45
44
  */
46
- async function runLighthouse(url, config, testRunnerOptions = {}) {
45
+ async function runLighthouse(url, config) {
47
46
  const chromeFlags = [
48
47
  `--custom-devtools-frontend=file://${devtoolsDir}/out/LighthouseIntegration/gen/front_end`,
49
48
  ];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "lighthouse",
3
3
  "type": "module",
4
- "version": "10.4.0-dev.20230711",
4
+ "version": "10.4.0-dev.20230712",
5
5
  "description": "Automated auditing, performance metrics, and best practices for the web.",
6
6
  "main": "./core/index.js",
7
7
  "bin": {