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

@wdio/utils

Package Overview
Dependencies
Maintainers
4
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 5.14.4 to 5.15.0

17

build/utils.js

@@ -106,4 +106,17 @@ "use strict";

function safeRequire(name) {
let requirePath;
try {
require.resolve(name);
const localNodeModules = `${process.cwd()}/node_modules`;
if (!require.main.paths.includes(localNodeModules)) {
require.main.paths.push(localNodeModules);
const requireOpts = process.env.JEST_WORKER_ID ? {} : {
paths: require.main.paths
};
requirePath = require.resolve(name, requireOpts);
} else {
requirePath = require.resolve(name);
}
} catch (e) {

@@ -114,3 +127,3 @@ return null;

try {
return require(name);
return require(requirePath);
} catch (e) {

@@ -117,0 +130,0 @@ throw new Error(`Couldn't initialise "${name}".\n${e.stack}`);

4

package.json
{
"name": "@wdio/utils",
"version": "5.14.4",
"version": "5.15.0",
"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": "a61e97749a57e7b9e86864cbdf03456c71fd876a"
"gitHead": "f49384dd159bbd308c70db1c119499b774c95f75"
}
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