@wdio/utils
Advanced tools
Comparing version 5.16.13 to 5.16.15
@@ -64,3 +64,3 @@ "use strict"; | ||
if (!inCommandHook) { | ||
if (!inCommandHook && this.options.beforeCommand) { | ||
inCommandHook = true; | ||
@@ -80,3 +80,3 @@ await executeHooksWithArgs.call(this, this.options.beforeCommand, beforeHookArgs); | ||
if (!inCommandHook) { | ||
if (!inCommandHook && this.options.afterCommand) { | ||
inCommandHook = true; | ||
@@ -99,3 +99,3 @@ const afterHookArgs = [...beforeHookArgs, commandResult, commandError]; | ||
let executeSync = async function (fn, retries, args = []) { | ||
this.retries = retries.attempts; | ||
this.wdioRetries = retries.attempts; | ||
@@ -123,3 +123,3 @@ try { | ||
const executeAsync = async function (fn, retries, args = []) { | ||
this.retries = retries.attempts; | ||
this.wdioRetries = retries.attempts; | ||
@@ -141,10 +141,12 @@ try { | ||
try { | ||
const wdioSync = require('@wdio/sync'); | ||
if (!process.env.WDIO_NO_SYNC_SUPPORT) { | ||
const wdioSync = require('@wdio/sync'); | ||
exports.hasWdioSyncSupport = hasWdioSyncSupport = true; | ||
exports.runFnInFiberContext = runFnInFiberContext = wdioSync.runFnInFiberContext; | ||
exports.wrapCommand = wrapCommand = wdioSync.wrapCommand; | ||
exports.executeHooksWithArgs = executeHooksWithArgs = wdioSync.executeHooksWithArgs; | ||
exports.executeSync = executeSync = wdioSync.executeSync; | ||
exports.runSync = runSync = wdioSync.runSync; | ||
exports.hasWdioSyncSupport = hasWdioSyncSupport = true; | ||
exports.runFnInFiberContext = runFnInFiberContext = wdioSync.runFnInFiberContext; | ||
exports.wrapCommand = wrapCommand = wdioSync.wrapCommand; | ||
exports.executeHooksWithArgs = executeHooksWithArgs = wdioSync.executeHooksWithArgs; | ||
exports.executeSync = executeSync = wdioSync.executeSync; | ||
exports.runSync = runSync = wdioSync.runSync; | ||
} | ||
} catch (_unused) {} |
@@ -16,3 +16,3 @@ "use strict"; | ||
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } | ||
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } | ||
@@ -19,0 +19,0 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } |
{ | ||
"name": "@wdio/utils", | ||
"version": "5.16.13", | ||
"version": "5.16.15", | ||
"description": "A WDIO helper utility to provide several utility functions used across the project.", | ||
@@ -40,3 +40,3 @@ "author": "Christian Bromann <christian@saucelabs.com>", | ||
}, | ||
"gitHead": "d25c41d08c46c58a22282133d501990b652f34b7" | ||
"gitHead": "3f388c0f8b5b3ff56db62c6183dd92cdf39df0f3" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
29602
828
5