@wdio/utils 7.18.0 → 7.19.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.
Files changed (2) hide show
  1. package/build/shim.js +2 -2
  2. package/package.json +5 -5
package/build/shim.js CHANGED
@@ -197,7 +197,7 @@ let wrapCommand = function wrapCommand(commandName, fn) {
197
197
  * await $('foo').$('bar')
198
198
  * ```
199
199
  */
200
- if (ELEMENT_QUERY_COMMANDS.includes(prop)) {
200
+ if (ELEMENT_QUERY_COMMANDS.includes(prop) || prop.endsWith('$')) {
201
201
  // this: WebdriverIO.Element
202
202
  return wrapCommand(prop, function (...args) {
203
203
  return this[prop].apply(this, args);
@@ -270,7 +270,7 @@ let wrapCommand = function wrapCommand(commandName, fn) {
270
270
  */
271
271
  const command = hasWdioSyncSupport && wdioSync && Boolean(global.browser) && !exports.runAsync && !exports.asyncSpec
272
272
  ? wdioSync.wrapCommand(commandName, fn)
273
- : ELEMENT_QUERY_COMMANDS.includes(commandName)
273
+ : ELEMENT_QUERY_COMMANDS.includes(commandName) || commandName.endsWith('$')
274
274
  ? chainElementQuery
275
275
  : wrapCommandFn;
276
276
  return command.apply(this, args);
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@wdio/utils",
3
- "version": "7.18.0",
3
+ "version": "7.19.0",
4
4
  "description": "A WDIO helper utility to provide several utility functions used across the project.",
5
- "author": "Christian Bromann <christian@saucelabs.com>",
5
+ "author": "Christian Bromann <mail@bromann.dev>",
6
6
  "homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-utils",
7
7
  "license": "MIT",
8
8
  "main": "./build/index",
@@ -23,13 +23,13 @@
23
23
  "url": "https://github.com/webdriverio/webdriverio/issues"
24
24
  },
25
25
  "dependencies": {
26
- "@wdio/logger": "7.17.3",
27
- "@wdio/types": "7.18.0",
26
+ "@wdio/logger": "7.19.0",
27
+ "@wdio/types": "7.19.0",
28
28
  "p-iteration": "^1.1.8"
29
29
  },
30
30
  "publishConfig": {
31
31
  "access": "public"
32
32
  },
33
33
  "types": "./build/index.d.ts",
34
- "gitHead": "44729cdd585af3ad69f2093f32377f297f5ac344"
34
+ "gitHead": "a17ba0237dcbafa8f0215534c64ff9634caf4b43"
35
35
  }