appium-chromedriver 5.1.3 → 5.1.6

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.
@@ -1,4 +1,5 @@
1
1
  {
2
+ "104.0.5112.79": "104.0.5112.79",
2
3
  "103.0.5060.134": "103.0.5060.134",
3
4
  "103.0.5060.53": "103.0.5060.53",
4
5
  "102.0.5005.61": "102.0.5005.61",
package/install-npm.js CHANGED
@@ -17,7 +17,7 @@ B.config({
17
17
  cancellation: true,
18
18
  });
19
19
 
20
- const {fs} = require('fs/promises');
20
+ const fs = require('fs/promises');
21
21
  const path = require('path');
22
22
  const log = require('fancy-log');
23
23
  const _ = require('lodash');
@@ -31,9 +31,14 @@ async function main() {
31
31
  try {
32
32
  await fs.stat(BUILD_PATH);
33
33
  } catch {
34
- log.info('Project not yet built; building...');
34
+ log.info(`The Chromedriver install script cannot be found at '${BUILD_PATH}'. ` +
35
+ `Building appium-chromedriver package`);
35
36
  const npmCommand = process.platform === 'win32' ? 'npm.cmd' : 'npm';
36
- await exec(npmCommand, ['run', 'build'], {logger: log});
37
+ try {
38
+ await exec(npmCommand, ['run', 'build'], {logger: log, cwd: __dirname});
39
+ } catch (e) {
40
+ throw new Error(`appium-chromedriver package cannot be built: ${e.stderr || e.message}`);
41
+ }
37
42
  }
38
43
 
39
44
  // check if we should skip install
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "chrome",
7
7
  "android"
8
8
  ],
9
- "version": "5.1.3",
9
+ "version": "5.1.6",
10
10
  "author": "appium",
11
11
  "license": "Apache-2.0",
12
12
  "repository": {
@@ -44,7 +44,7 @@
44
44
  "lodash": "^4.17.4",
45
45
  "semver": "^7.0.0",
46
46
  "source-map-support": "^0.x",
47
- "teen_process": "^1.15.0",
47
+ "teen_process": "^2.0.0",
48
48
  "xpath": "^0.x"
49
49
  },
50
50
  "pre-commit": [