chromedriver 148.0.1 → 148.0.3
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 +4 -4
- package/lib/chromedriver.js +1 -1
- package/package.json +9 -8
package/install.js
CHANGED
|
@@ -10,7 +10,7 @@ const os = require('node:os');
|
|
|
10
10
|
const { ProxyAgent } = require('proxy-agent');
|
|
11
11
|
const { promisify } = require('node:util');
|
|
12
12
|
const { finished } = require('node:stream');
|
|
13
|
-
const
|
|
13
|
+
const AdmZip = require("adm-zip");
|
|
14
14
|
const { getChromeVersion } = require('@testim/chrome-version');
|
|
15
15
|
const { compareVersions } = require('compare-versions');
|
|
16
16
|
const finishedAsync = promisify(finished);
|
|
@@ -76,7 +76,7 @@ class Installer {
|
|
|
76
76
|
else
|
|
77
77
|
await this.downloadFile(cdnUrl, downloadedFile, chromedriverVersion, platform);
|
|
78
78
|
}
|
|
79
|
-
|
|
79
|
+
this.extractDownload(extractDirectory, chromedriverBinaryFilePath, downloadedFile);
|
|
80
80
|
}
|
|
81
81
|
const libPath = path.join(__dirname, 'lib', 'chromedriver');
|
|
82
82
|
await this.copyIntoPlace(tmpPath, libPath);
|
|
@@ -385,7 +385,7 @@ class Installer {
|
|
|
385
385
|
* @param {string} chromedriverBinaryFilePath
|
|
386
386
|
* @param {string} downloadedFile
|
|
387
387
|
*/
|
|
388
|
-
|
|
388
|
+
extractDownload(dirToExtractTo, chromedriverBinaryFilePath, downloadedFile) {
|
|
389
389
|
if (path.extname(downloadedFile) !== '.zip') {
|
|
390
390
|
fs.mkdirSync(path.dirname(chromedriverBinaryFilePath), { recursive: true });
|
|
391
391
|
fs.copyFileSync(downloadedFile, chromedriverBinaryFilePath);
|
|
@@ -394,7 +394,7 @@ class Installer {
|
|
|
394
394
|
}
|
|
395
395
|
console.log(`Extracting zip contents to ${dirToExtractTo}.`);
|
|
396
396
|
try {
|
|
397
|
-
|
|
397
|
+
new AdmZip(path.resolve(downloadedFile)).extractAllTo(dirToExtractTo, true);
|
|
398
398
|
} catch (error) {
|
|
399
399
|
console.error('Error extracting archive: ' + error);
|
|
400
400
|
process.exit(1);
|
package/lib/chromedriver.js
CHANGED
|
@@ -28,7 +28,7 @@ const crpath =
|
|
|
28
28
|
process.platform === "win32"
|
|
29
29
|
? path.join(__dirname, "chromedriver", "chromedriver.exe")
|
|
30
30
|
: path.join(__dirname, "chromedriver", "chromedriver");
|
|
31
|
-
const version = "148.0.7778.
|
|
31
|
+
const version = "148.0.7778.167";
|
|
32
32
|
let defaultInstance = null;
|
|
33
33
|
|
|
34
34
|
function start(args, returnPromise) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "chromedriver",
|
|
3
|
-
"version": "148.0.
|
|
3
|
+
"version": "148.0.3",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"chromedriver",
|
|
6
6
|
"selenium"
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@testim/chrome-version": "^1.1.4",
|
|
34
|
-
"
|
|
34
|
+
"adm-zip": "^0.5.17",
|
|
35
|
+
"axios": "^1.16.0",
|
|
35
36
|
"compare-versions": "^6.1.0",
|
|
36
|
-
"extract-zip": "^2.0.1",
|
|
37
37
|
"proxy-agent": "^8.0.1",
|
|
38
38
|
"proxy-from-env": "^2.0.0",
|
|
39
39
|
"tcp-port-used": "^1.0.2"
|
|
@@ -41,20 +41,21 @@
|
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@eslint/eslintrc": "^3.3.5",
|
|
43
43
|
"@eslint/js": "^10.0.1",
|
|
44
|
+
"@types/adm-zip": "^0.5.8",
|
|
44
45
|
"@types/axios": "^0.9.36",
|
|
45
46
|
"@types/jest": "^30.0.0",
|
|
46
47
|
"@types/node": "^25.6.0",
|
|
47
48
|
"@types/proxy-from-env": "^1.0.4",
|
|
48
49
|
"@types/semver": "^7.7.1",
|
|
49
50
|
"@types/tcp-port-used": "^1.0.4",
|
|
50
|
-
"eslint": "^10.
|
|
51
|
-
"globals": "^17.
|
|
51
|
+
"eslint": "^10.3.0",
|
|
52
|
+
"globals": "^17.6.0",
|
|
52
53
|
"jest": "^30.3.0",
|
|
53
|
-
"jest-junit": "^
|
|
54
|
+
"jest-junit": "^17.0.0",
|
|
54
55
|
"semver": "^7.7.4",
|
|
55
|
-
"typescript": "^6.0.
|
|
56
|
+
"typescript": "^6.0.3"
|
|
56
57
|
},
|
|
57
58
|
"engines": {
|
|
58
|
-
"node": ">=
|
|
59
|
+
"node": ">=22"
|
|
59
60
|
}
|
|
60
61
|
}
|