@wdio/browserstack-service 7.20.7 → 7.20.8

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/README.md CHANGED
@@ -6,17 +6,7 @@ WebdriverIO Browserstack Service
6
6
  ## Installation
7
7
 
8
8
 
9
- The easiest way is to keep `@wdio/browserstack-service` as a devDependency in your `package.json`.
10
-
11
- ```json
12
- {
13
- "devDependencies": {
14
- "@wdio/browserstack-service": "^7.16.3"
15
- }
16
- }
17
- ```
18
-
19
- You can simple do it by:
9
+ The easiest way is to keep `@wdio/browserstack-service` as a devDependency in your `package.json`, via:
20
10
 
21
11
  ```sh
22
12
  npm install @wdio/browserstack-service --save-dev
@@ -1 +1 @@
1
- {"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../src/util.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAA;AAC9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAI/C;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,YAAY,CAAC,mBAAmB,UAa1E;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,GAAG,kBAAkB,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,EAAE,YAAY,CAAC,gBAAgB,EAAE,WAAW,CAAC,EAAE,MAAM,6BASzJ;AAED;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,GAAG,CAAC,EAAE,YAAY,CAAC,YAAY,WAEvE;AAED,wBAAgB,kBAAkB,CAAC,SAAS,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,GAAG,MAAM,CAUpF"}
1
+ {"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../src/util.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAA;AAC9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAI/C;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,YAAY,CAAC,mBAAmB,UAa1E;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,GAAG,kBAAkB,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,EAAE,YAAY,CAAC,gBAAgB,EAAE,WAAW,CAAC,EAAE,MAAM,6BASzJ;AAED;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,GAAG,CAAC,EAAE,YAAY,CAAC,YAAY,WAWvE;AAED,wBAAgB,kBAAkB,CAAC,SAAS,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,GAAG,MAAM,CAUpF"}
package/build/util.js CHANGED
@@ -41,7 +41,12 @@ exports.getBrowserCapabilities = getBrowserCapabilities;
41
41
  * @param cap browser capabilities
42
42
  */
43
43
  function isBrowserstackCapability(cap) {
44
- return Boolean(cap && cap['bstack:options']);
44
+ return Boolean(cap &&
45
+ cap['bstack:options'] &&
46
+ // return false if the only cap in bstack:options is wdioService,
47
+ // as that is added by the service and not present in user passed caps
48
+ !(Object.keys(cap['bstack:options']).length === 1 &&
49
+ cap['bstack:options'].wdioService));
45
50
  }
46
51
  exports.isBrowserstackCapability = isBrowserstackCapability;
47
52
  function getParentSuiteName(fullTitle, testSuiteTitle) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wdio/browserstack-service",
3
- "version": "7.20.7",
3
+ "version": "7.20.8",
4
4
  "description": "WebdriverIO service for better Browserstack integration",
5
5
  "author": "Adam Bjerstedt <abjerstedt@gmail.com>",
6
6
  "homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-browserstack-service",
@@ -28,7 +28,7 @@
28
28
  "@wdio/types": "7.20.7",
29
29
  "browserstack-local": "^1.4.5",
30
30
  "got": "^11.0.2",
31
- "webdriverio": "7.20.7"
31
+ "webdriverio": "7.20.8"
32
32
  },
33
33
  "peerDependencies": {
34
34
  "@wdio/cli": "^5.0.0 || ^6.0.0 || ^7.0.0"
@@ -37,5 +37,5 @@
37
37
  "access": "public"
38
38
  },
39
39
  "types": "./build/index.d.ts",
40
- "gitHead": "21b8b61453f4749d87eca3e4d7d6e5e2cb60f043"
40
+ "gitHead": "8ea0ee903b02157b9ee511c8750be2282b4f4519"
41
41
  }