@wdio/utils
Advanced tools
Comparing version 6.0.12 to 6.0.13
@@ -60,2 +60,8 @@ "use strict"; | ||
}); | ||
Object.defineProperty(exports, "transformCommandLogResult", { | ||
enumerable: true, | ||
get: function () { | ||
return _utils.transformCommandLogResult; | ||
} | ||
}); | ||
Object.defineProperty(exports, "wrapCommand", { | ||
@@ -62,0 +68,0 @@ enumerable: true, |
@@ -8,2 +8,3 @@ "use strict"; | ||
exports.commandCallStructure = commandCallStructure; | ||
exports.transformCommandLogResult = transformCommandLogResult; | ||
exports.isValidParameter = isValidParameter; | ||
@@ -15,2 +16,8 @@ exports.getArgumentType = getArgumentType; | ||
var _isBase = _interopRequireDefault(require("is-base64")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
const SCREENSHOT_REPLACEMENT = '"<Screenshot[base64]>"'; | ||
function overwriteElementCommands(propertiesObject) { | ||
@@ -59,2 +66,4 @@ const elementOverrides = propertiesObject['__elementOverrides__'] ? propertiesObject['__elementOverrides__'].value : {}; | ||
arg = '<fn>'; | ||
} else if (typeof arg === 'string' && (0, _isBase.default)(arg)) { | ||
arg = SCREENSHOT_REPLACEMENT; | ||
} else if (typeof arg === 'string') { | ||
@@ -77,2 +86,10 @@ arg = `"${arg}"`; | ||
function transformCommandLogResult(result) { | ||
if (typeof result.file === 'string' && (0, _isBase.default)(result.file)) { | ||
return SCREENSHOT_REPLACEMENT; | ||
} | ||
return result; | ||
} | ||
function isValidParameter(arg, expectedType) { | ||
@@ -79,0 +96,0 @@ let shouldBeArray = false; |
{ | ||
"name": "@wdio/utils", | ||
"version": "6.0.12", | ||
"version": "6.0.13", | ||
"description": "A WDIO helper utility to provide several utility functions used across the project.", | ||
@@ -34,3 +34,4 @@ "author": "Christian Bromann <christian@saucelabs.com>", | ||
"dependencies": { | ||
"@wdio/logger": "6.0.12" | ||
"@wdio/logger": "6.0.12", | ||
"is-base64": "^1.1.0" | ||
}, | ||
@@ -40,3 +41,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "8fc60c53a8af4af8d9bb5a16e96e7c315625fbc4" | ||
"gitHead": "dab0fc8fe4406eb3e02b9ad6c6898692de2d10f7" | ||
} |
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
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
29669
849
2
+ Addedis-base64@^1.1.0
+ Addedis-base64@1.1.0(transitive)