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.2.0 to 6.3.0

1

build/envDetector.js

@@ -6,2 +6,3 @@ "use strict";

});
exports.isW3C = isW3C;
exports.capabilitiesEnvironmentDetector = capabilitiesEnvironmentDetector;

@@ -8,0 +9,0 @@ exports.sessionEnvironmentDetector = sessionEnvironmentDetector;

@@ -66,2 +66,8 @@ "use strict";

});
Object.defineProperty(exports, "canAccess", {
enumerable: true,
get: function () {
return _utils.canAccess;
}
});
Object.defineProperty(exports, "wrapCommand", {

@@ -115,2 +121,8 @@ enumerable: true,

});
Object.defineProperty(exports, "isW3C", {
enumerable: true,
get: function () {
return _envDetector.isW3C;
}
});
Object.defineProperty(exports, "capabilitiesEnvironmentDetector", {

@@ -117,0 +129,0 @@ enumerable: true,

@@ -15,2 +15,8 @@ "use strict";

exports.isBase64 = isBase64;
exports.canAccess = void 0;
var _fs = _interopRequireDefault(require("fs"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
const SCREENSHOT_REPLACEMENT = '"<Screenshot[base64]>"';

@@ -170,2 +176,18 @@

return firstPaddingChar === -1 || firstPaddingChar === len - 1 || firstPaddingChar === len - 2 && str[len - 1] === '=';
}
}
const canAccess = file => {
if (!file) {
return false;
}
try {
_fs.default.accessSync(file);
return true;
} catch (e) {
return false;
}
};
exports.canAccess = canAccess;

4

package.json
{
"name": "@wdio/utils",
"version": "6.2.0",
"version": "6.3.0",
"description": "A WDIO helper utility to provide several utility functions used across the project.",

@@ -39,3 +39,3 @@ "author": "Christian Bromann <christian@saucelabs.com>",

},
"gitHead": "aa726eb714e6f9cd8d6e59dba8af97c79053547f"
"gitHead": "1712ef3be66f25607f61d06af59385af433742cd"
}
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