browsertime 24.0.0-alpha.4 → 24.0.0-alpha.5

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.
@@ -3,6 +3,9 @@ import { xvfbDisplay } from '../video/defaults.js';
3
3
  import { getViewPort } from '../support/getViewPort.js';
4
4
  import { getProperty } from '../support/util.js';
5
5
  import { isAndroidConfigured } from '../android/index.js';
6
+ import { getLogger } from '@sitespeed.io/log';
7
+
8
+ const logger = getLogger('browsertime');
6
9
 
7
10
  function buildXvfbCommand({ display, screen = 0, size, silent }) {
8
11
  return {
@@ -43,6 +46,10 @@ export async function startXvfb({ size, options }) {
43
46
  detached: true
44
47
  });
45
48
 
49
+ xvfbProcess.catch(error => {
50
+ logger.error('Failed xvfb:', error);
51
+ });
52
+
46
53
  const waitToSettle = getProperty(options, 'xvfbParams.waitToSettle', 500);
47
54
  await new Promise(resolve => {
48
55
  setTimeout(resolve, waitToSettle);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "browsertime",
3
3
  "description": "Get performance metrics from your web page using Browsertime.",
4
- "version": "24.0.0-alpha.4",
4
+ "version": "24.0.0-alpha.5",
5
5
  "bin": "./bin/browsertime.js",
6
6
  "type": "module",
7
7
  "types": "./types/scripting.d.ts",