browser-ava 1.4.0 → 2.0.0

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": "browser-ava",
3
- "version": "1.4.0",
3
+ "version": "2.0.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -45,10 +45,10 @@
45
45
  "ava": "^5.3.1",
46
46
  "c8": "^8.0.1",
47
47
  "execa": "^8.0.1",
48
- "semantic-release": "^22.0.5"
48
+ "semantic-release": "^22.0.6"
49
49
  },
50
50
  "engines": {
51
- "node": ">=18.18.2",
51
+ "node": ">=20.9.0",
52
52
  "bun": ">=1.0"
53
53
  },
54
54
  "repository": {
@@ -64,12 +64,19 @@ program
64
64
  }
65
65
  options.browser = parts[0];
66
66
  }
67
- browsers.push(knownBrowsers[options.browser]);
67
+
68
+ const browser = knownBrowsers[options.browser];
69
+ if(browser) {
70
+ browsers.push(browser);
71
+ }
72
+ else {
73
+ console.error(`Unknwon browser ${options.browser}`);
74
+ }
68
75
  }
69
76
 
70
77
  if (browsers.length === 0) {
71
78
  console.error(
72
- "No browsers selected use --webkit, --chromium and/or --firefox"
79
+ `No browsers selected use ${Object.keys(knownBrowsers).map(b => ` --${b}`)}`
73
80
  );
74
81
  process.exit(2);
75
82
  }