@wdio/browserstack-service 9.19.0 → 9.19.2

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 +1 @@
1
- {"version":3,"file":"accessibility-handler.d.ts","sourceRoot":"","sources":["../src/accessibility-handler.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAEpE,OAAO,KAAK,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAA;AAEzE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAA;AA+BjE,cAAM,qBAAqB;IAiBnB,OAAO,CAAC,QAAQ;IAGhB,OAAO,CAAC,aAAa;IAErB,OAAO,CAAC,UAAU,CAAC;IArBvB,OAAO,CAAC,iBAAiB,CAA6B;IACtD,OAAO,CAAC,KAAK,CAA6C;IAC1D,OAAO,CAAC,UAAU,CAAC,CAAQ;IAC3B,OAAO,CAAC,cAAc,CAAC,CAAS;IAChC,OAAO,CAAC,WAAW,CAAC,CAAS;IAC7B,OAAO,CAAC,QAAQ,CAA0C;IAC1D,OAAO,CAAC,OAAO,CAAoB;IACnC,OAAO,CAAC,qBAAqB,CAAC,CAA6B;IAC3D,OAAO,CAAC,aAAa,CAAgB;IACrC,OAAO,CAAC,eAAe,CAAsB;IAC7C,OAAO,CAAC,aAAa,CAAkC;IACvD,OAAO,CAAC,MAAM,CAAC,mBAAmB,CAAkC;IACpE,OAAO,CAAC,UAAU,CAAsB;IACxC,OAAO,CAAC,QAAQ,CAAyB;gBAG7B,QAAQ,EAAE,WAAW,CAAC,OAAO,GAAG,WAAW,CAAC,kBAAkB,EACtE,aAAa,EAAE,YAAY,CAAC,8BAA8B,EAC1D,QAAQ,EAAG,kBAAkB,GAAG,mBAAmB,EAC3C,aAAa,EAAE,OAAO,EAC9B,OAAO,EAAG,OAAO,CAAC,UAAU,EACpB,UA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EAAE,IAAI,EAAE,UAAU,CAAC,IAAI;IAwCjE,SAAS,CAAE,UAAU,EAAE,MAAM,GAAG,SAAS,EAAE,IAAI,EAAE,UAAU,CAAC,IAAI;IAsCtE;;MAEE;IACI,cAAc,CAAE,KAAK,EAAE,sBAAsB;IAsC7C,aAAa,CAAE,KAAK,EAAE,sBAAsB;YAwCpC,cAAc;YAcd,iBAAiB;IAuB/B,OAAO,CAAC,aAAa;IAOrB,OAAO,CAAC,kBAAkB;YAOZ,iBAAiB;IAkB/B,OAAO,CAAC,MAAM,CAAC,wBAAwB;YAWzB,cAAc;CAW/B;AAGD,QAAA,MAAM,oBAAoB,EAAE,OAAO,qBAAoE,CAAA;AACvG,KAAK,oBAAoB,GAAG,qBAAqB,CAAA;AAEjD,eAAe,oBAAoB,CAAA"}
package/build/cleanup.js CHANGED
@@ -71,7 +71,7 @@ import logger from "@wdio/logger";
71
71
  // package.json
72
72
  var package_default = {
73
73
  name: "@wdio/browserstack-service",
74
- version: "9.18.4",
74
+ version: "9.19.1",
75
75
  description: "WebdriverIO service for better Browserstack integration",
76
76
  author: "Adam Bjerstedt <abjerstedt@gmail.com>",
77
77
  homepage: "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-browserstack-service",
package/build/index.js CHANGED
@@ -26,7 +26,7 @@ import * as BrowserstackLocalLauncher from "browserstack-local";
26
26
  // package.json
27
27
  var package_default = {
28
28
  name: "@wdio/browserstack-service",
29
- version: "9.18.4",
29
+ version: "9.19.1",
30
30
  description: "WebdriverIO service for better Browserstack integration",
31
31
  author: "Adam Bjerstedt <abjerstedt@gmail.com>",
32
32
  homepage: "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-browserstack-service",
@@ -5886,7 +5886,8 @@ var _AccessibilityHandler = class {
5886
5886
  accessibility_scripts_default.commandsToWrap.filter((command) => command.name && command.class).forEach((command) => {
5887
5887
  const browser = this._browser;
5888
5888
  try {
5889
- browser.overwriteCommand(command.name, this.commandWrapper.bind(this, command), command.class === "Element");
5889
+ const prevImpl = browser[command.name].bind(browser);
5890
+ browser.overwriteCommand(command.name, this.commandWrapper.bind(this, command, prevImpl), command.class === "Element");
5890
5891
  } catch (error) {
5891
5892
  BStackLogger.debug(`Exception in overwrite command ${command.name} - ${error}`);
5892
5893
  }
@@ -6004,12 +6005,12 @@ var _AccessibilityHandler = class {
6004
6005
  /*
6005
6006
  * private methods
6006
6007
  */
6007
- async commandWrapper(command, origFunction, ...args) {
6008
+ async commandWrapper(command, prevImpl, origFunction, ...args) {
6008
6009
  if (this._sessionId && AccessibilityHandler._a11yScanSessionMap[this._sessionId] && (!command.name.includes("execute") || !AccessibilityHandler.shouldPatchExecuteScript(args.length ? args[0] : null))) {
6009
6010
  BStackLogger.debug(`Performing scan for ${command.class} ${command.name}`);
6010
6011
  await performA11yScan(this.isAppAutomate, this._browser, true, true, command.name);
6011
6012
  }
6012
- return origFunction(...args);
6013
+ return prevImpl(...args);
6013
6014
  }
6014
6015
  async sendTestStopEvent(browser, dataForExtension) {
6015
6016
  BStackLogger.debug("Performing scan before saving results");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wdio/browserstack-service",
3
- "version": "9.19.0",
3
+ "version": "9.19.2",
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",
@@ -41,8 +41,8 @@
41
41
  "@percy/selenium-webdriver": "^2.2.2",
42
42
  "@types/gitconfiglocal": "^2.0.1",
43
43
  "@wdio/logger": "9.18.0",
44
- "@wdio/reporter": "9.19.0",
45
- "@wdio/types": "9.19.0",
44
+ "@wdio/reporter": "9.19.2",
45
+ "@wdio/types": "9.19.2",
46
46
  "browserstack-local": "^1.5.1",
47
47
  "chalk": "^5.3.0",
48
48
  "csv-writer": "^1.6.0",
@@ -51,7 +51,7 @@
51
51
  "gitconfiglocal": "^2.1.0",
52
52
  "undici": "^6.21.3",
53
53
  "uuid": "^11.1.0",
54
- "webdriverio": "9.19.0",
54
+ "webdriverio": "9.19.2",
55
55
  "winston-transport": "^4.5.0",
56
56
  "yauzl": "^3.0.0"
57
57
  },
@@ -66,5 +66,5 @@
66
66
  "publishConfig": {
67
67
  "access": "public"
68
68
  },
69
- "gitHead": "be9a42358a6646d48c3ce5a341761f55aa605b24"
69
+ "gitHead": "4ca46771777a0ef20bfd911fbd0da0904059fd9e"
70
70
  }