Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@wdio/utils

Package Overview
Dependencies
Maintainers
7
Versions
298
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wdio/utils - npm Package Compare versions

Comparing version 6.0.12 to 6.0.13

6

build/index.js

@@ -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;

7

package.json
{
"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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc