chromedriver 147.0.2 → 147.0.4

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/install.js CHANGED
@@ -235,7 +235,7 @@ class Installer {
235
235
  fs.writeFileSync(testFile, 'test');
236
236
  fs.unlinkSync(testFile);
237
237
  return candidatePath;
238
- } catch (e) {
238
+ } catch (/** @type {any} */e) {
239
239
  console.log(candidatePath, 'is not writable:', e.message);
240
240
  }
241
241
  }
@@ -346,7 +346,7 @@ class Installer {
346
346
  let response;
347
347
  try {
348
348
  response = await axios.request({ responseType: 'stream', ...requestOptions });
349
- } catch (error) {
349
+ } catch (/** @type {any} */ error) {
350
350
  let errorData = '';
351
351
  if (error && error.response) {
352
352
  if (error.response.status)
@@ -19,6 +19,7 @@ function getPortFromArgs(args) {
19
19
  return;
20
20
  }
21
21
  }
22
+ // @ts-expect-error Regex already checked
22
23
  const port = parseInt(portRegexp.exec(portArg)[1]);
23
24
  return port;
24
25
  }
@@ -27,7 +28,7 @@ const crpath =
27
28
  process.platform === "win32"
28
29
  ? path.join(__dirname, "chromedriver", "chromedriver.exe")
29
30
  : path.join(__dirname, "chromedriver", "chromedriver");
30
- const version = "147.0.7727.56";
31
+ const version = "147.0.7727.57";
31
32
  let defaultInstance = null;
32
33
 
33
34
  function start(args, returnPromise) {
@@ -38,8 +39,11 @@ function start(args, returnPromise) {
38
39
  console.log("Falling back to use global chromedriver bin");
39
40
  command = process.platform === "win32" ? "chromedriver.exe" : "chromedriver";
40
41
  }
41
- const port = getPortFromArgs(args);
42
- if (!port) args.push("--port=9515");
42
+ let port = getPortFromArgs(args);
43
+ if (!port) {
44
+ args.push("--port=9515");
45
+ port = 9515;
46
+ }
43
47
  const cp = require("child_process").spawn(command, args);
44
48
  cp.stdout.pipe(process.stdout);
45
49
  cp.stderr.pipe(process.stderr);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chromedriver",
3
- "version": "147.0.2",
3
+ "version": "147.0.4",
4
4
  "keywords": [
5
5
  "chromedriver",
6
6
  "selenium"
@@ -31,24 +31,28 @@
31
31
  },
32
32
  "dependencies": {
33
33
  "@testim/chrome-version": "^1.1.4",
34
- "axios": "^1.13.5",
34
+ "axios": "^1.15.0",
35
35
  "compare-versions": "^6.1.0",
36
36
  "extract-zip": "^2.0.1",
37
- "proxy-agent": "^6.5.0",
37
+ "proxy-agent": "^8.0.1",
38
38
  "proxy-from-env": "^2.0.0",
39
39
  "tcp-port-used": "^1.0.2"
40
40
  },
41
41
  "devDependencies": {
42
- "@eslint/eslintrc": "^3.3.4",
42
+ "@eslint/eslintrc": "^3.3.5",
43
43
  "@eslint/js": "^10.0.1",
44
+ "@types/axios": "^0.9.36",
44
45
  "@types/jest": "^30.0.0",
45
- "@types/node": "^25.3.2",
46
- "eslint": "^10.0.2",
47
- "globals": "^17.3.0",
48
- "jest": "^30.2.0",
46
+ "@types/node": "^25.6.0",
47
+ "@types/proxy-from-env": "^1.0.4",
48
+ "@types/semver": "^7.7.1",
49
+ "@types/tcp-port-used": "^1.0.4",
50
+ "eslint": "^10.2.0",
51
+ "globals": "^17.5.0",
52
+ "jest": "^30.3.0",
49
53
  "jest-junit": "^16.0.0",
50
54
  "semver": "^7.7.4",
51
- "typescript": "^5.9.3"
55
+ "typescript": "^6.0.2"
52
56
  },
53
57
  "engines": {
54
58
  "node": ">=20"