@wdio/cli 7.30.2 → 7.32.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.
@@ -171,13 +171,13 @@ exports.QUESTIONNAIRE = [{
171
171
  type: 'input',
172
172
  name: 'hostname',
173
173
  message: 'What is the host address of that cloud service?',
174
- when: /* istanbul ignore next */ (answers) => answers.backend.toString().indexOf('different service') > -1
174
+ when: /* istanbul ignore next */ (answers) => answers.backend.indexOf('different service') > -1
175
175
  }, {
176
176
  type: 'input',
177
177
  name: 'port',
178
178
  message: 'What is the port on which that service is running?',
179
179
  default: '80',
180
- when: /* istanbul ignore next */ (answers) => answers.backend.toString().indexOf('different service') > -1
180
+ when: /* istanbul ignore next */ (answers) => answers.backend.indexOf('different service') > -1
181
181
  }, {
182
182
  type: 'input',
183
183
  name: 'expEnvAccessKey',
@@ -210,14 +210,14 @@ exports.QUESTIONNAIRE = [{
210
210
  name: 'env_user',
211
211
  message: 'Environment variable for username',
212
212
  default: 'LT_USERNAME',
213
- when: /* istanbul ignore next */ (answers) => (answers.backend.toString().indexOf('LambdaTest') > -1 &&
213
+ when: /* istanbul ignore next */ (answers) => (answers.backend.indexOf('LambdaTest') > -1 &&
214
214
  answers.hostname.indexOf('lambdatest.com') > -1)
215
215
  }, {
216
216
  type: 'input',
217
217
  name: 'env_key',
218
218
  message: 'Environment variable for access key',
219
219
  default: 'LT_ACCESS_KEY',
220
- when: /* istanbul ignore next */ (answers) => (answers.backend.toString().indexOf('LambdaTest') > -1 &&
220
+ when: /* istanbul ignore next */ (answers) => (answers.backend.indexOf('LambdaTest') > -1 &&
221
221
  answers.hostname.indexOf('lambdatest.com') > -1)
222
222
  }, {
223
223
  type: 'input',
@@ -260,19 +260,19 @@ exports.QUESTIONNAIRE = [{
260
260
  name: 'hostname',
261
261
  message: 'What is the IP or URI to your Selenium standalone or grid server?',
262
262
  default: 'localhost',
263
- when: /* istanbul ignore next */ (answers) => answers.backend.toString().indexOf('own Selenium cloud') > -1
263
+ when: /* istanbul ignore next */ (answers) => answers.backend.indexOf('own Selenium cloud') > -1
264
264
  }, {
265
265
  type: 'input',
266
266
  name: 'port',
267
267
  message: 'What is the port which your Selenium standalone or grid server is running on?',
268
268
  default: '4444',
269
- when: /* istanbul ignore next */ (answers) => answers.backend.toString().indexOf('own Selenium cloud') > -1
269
+ when: /* istanbul ignore next */ (answers) => answers.backend.indexOf('own Selenium cloud') > -1
270
270
  }, {
271
271
  type: 'input',
272
272
  name: 'path',
273
273
  message: 'What is the path to your browser driver or grid server?',
274
274
  default: '/',
275
- when: /* istanbul ignore next */ (answers) => answers.backend.toString().indexOf('own Selenium cloud') > -1
275
+ when: /* istanbul ignore next */ (answers) => answers.backend.indexOf('own Selenium cloud') > -1
276
276
  }, {
277
277
  type: 'list',
278
278
  name: 'framework',
package/build/utils.js CHANGED
@@ -380,8 +380,7 @@ function getPathForFileGeneration(answers) {
380
380
  }
381
381
  exports.getPathForFileGeneration = getPathForFileGeneration;
382
382
  function getDefaultFiles(answers, filePath) {
383
- var _a;
384
- return ((_a = answers === null || answers === void 0 ? void 0 : answers.isUsingCompiler) === null || _a === void 0 ? void 0 : _a.toString().includes('TypeScript'))
383
+ return (answers === null || answers === void 0 ? void 0 : answers.isUsingCompiler).includes('TypeScript')
385
384
  ? `${filePath}.ts`
386
385
  : `${filePath}.js`;
387
386
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wdio/cli",
3
- "version": "7.30.2",
3
+ "version": "7.32.0",
4
4
  "description": "WebdriverIO testrunner command line interface",
5
5
  "author": "Christian Bromann <mail@bromann.dev>",
6
6
  "homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-cli",
@@ -30,14 +30,14 @@
30
30
  },
31
31
  "dependencies": {
32
32
  "@types/ejs": "^3.0.5",
33
- "@types/fs-extra": "^9.0.4",
33
+ "@types/fs-extra": "^11.0.1",
34
34
  "@types/inquirer": "^8.1.2",
35
35
  "@types/lodash.flattendeep": "^4.4.6",
36
36
  "@types/lodash.pickby": "^4.6.6",
37
37
  "@types/lodash.union": "^4.6.6",
38
38
  "@types/node": "^18.0.0",
39
39
  "@types/recursive-readdir": "^2.2.0",
40
- "@wdio/config": "7.30.2",
40
+ "@wdio/config": "7.31.1",
41
41
  "@wdio/logger": "7.26.0",
42
42
  "@wdio/protocols": "7.27.0",
43
43
  "@wdio/types": "7.30.2",
@@ -47,14 +47,14 @@
47
47
  "chokidar": "^3.0.0",
48
48
  "cli-spinners": "^2.1.0",
49
49
  "ejs": "^3.0.1",
50
- "fs-extra": "^10.0.0",
50
+ "fs-extra": "^11.1.1",
51
51
  "inquirer": "8.2.4",
52
52
  "lodash.flattendeep": "^4.4.0",
53
53
  "lodash.pickby": "^4.6.0",
54
54
  "lodash.union": "^4.6.0",
55
- "mkdirp": "^2.1.5",
55
+ "mkdirp": "^3.0.0",
56
56
  "recursive-readdir": "^2.2.2",
57
- "webdriverio": "7.30.2",
57
+ "webdriverio": "7.32.0",
58
58
  "yargs": "^17.0.0",
59
59
  "yarn-install": "^1.0.0"
60
60
  },
@@ -62,5 +62,5 @@
62
62
  "access": "public"
63
63
  },
64
64
  "types": "./build/index.d.ts",
65
- "gitHead": "f65ff89daa26bb039f4286a5eb466b403d19c715"
65
+ "gitHead": "c413d9310c8abb487bd9e1d2f82124c15a71b134"
66
66
  }