@wdio/local-runner
Advanced tools
Comparing version 9.0.0-alpha.115 to 9.0.0-alpha.321
@@ -7,3 +7,3 @@ /// <reference types="node" resolution-mode="require"/> | ||
import type { WritableStreamBuffer } from 'stream-buffers'; | ||
import type { Capabilities, Options, Workers } from '@wdio/types'; | ||
import type { Options, Workers } from '@wdio/types'; | ||
/** | ||
@@ -18,4 +18,4 @@ * WorkerInstance | ||
configFile: string; | ||
caps: Capabilities.RemoteCapability; | ||
capabilities: Capabilities.RemoteCapability; | ||
caps: WebdriverIO.Capabilities; | ||
capabilities: WebdriverIO.Capabilities; | ||
specs: string[]; | ||
@@ -22,0 +22,0 @@ execArgv: string[]; |
@@ -17,11 +17,2 @@ import url from 'node:url'; | ||
stdErrStream.pipe(process.stderr); | ||
var NodeVersion; | ||
(function (NodeVersion) { | ||
NodeVersion[NodeVersion["major"] = 0] = "major"; | ||
NodeVersion[NodeVersion["minor"] = 1] = "minor"; | ||
NodeVersion[NodeVersion["patch"] = 2] = "patch"; | ||
})(NodeVersion || (NodeVersion = {})); | ||
function nodeVersion(type) { | ||
return process.versions.node.split('.').map(Number)[NodeVersion[type]]; | ||
} | ||
/** | ||
@@ -102,14 +93,8 @@ * WorkerInstance | ||
*/ | ||
process.env.WDIO_LOAD_TS_NODE === '1' && | ||
process.env.WDIO_LOAD_TSX === '1' && | ||
/** | ||
* the `@wdio/cli` didn't already attached the loader to the environment | ||
*/ | ||
!(process.env.NODE_OPTIONS || '').includes('--loader ts-node/esm')) { | ||
runnerEnv.NODE_OPTIONS = (runnerEnv.NODE_OPTIONS || '') + ' --loader ts-node/esm/transpile-only --no-warnings'; | ||
if (nodeVersion('major') >= 20 || (nodeVersion('major') === 18 && nodeVersion('minor') >= 19)) { | ||
// Changes in Node 18.19 (and up) and Node 20 affect how TS Node works with source maps, hence the need for this workaround. See: | ||
// - https://github.com/webdriverio/webdriverio/issues/10901 | ||
// - https://github.com/TypeStrong/ts-node/issues/2053 | ||
runnerEnv.NODE_OPTIONS += ' -r ts-node/register'; | ||
} | ||
!(process.env.NODE_OPTIONS || '').includes('--import tsx')) { | ||
runnerEnv.NODE_OPTIONS = (runnerEnv.NODE_OPTIONS || '') + ' --import tsx'; | ||
} | ||
@@ -116,0 +101,0 @@ log.info(`Start worker ${cid} with arg: ${argv}`); |
{ | ||
"name": "@wdio/local-runner", | ||
"version": "9.0.0-alpha.115+8196c4ccb", | ||
"version": "9.0.0-alpha.321+63953a607", | ||
"description": "A WebdriverIO runner to run tests locally", | ||
@@ -34,6 +34,6 @@ "author": "Christian Bromann <mail@bromann.dev>", | ||
"@types/node": "^20.1.0", | ||
"@wdio/logger": "9.0.0-alpha.115+8196c4ccb", | ||
"@wdio/repl": "9.0.0-alpha.115+8196c4ccb", | ||
"@wdio/runner": "9.0.0-alpha.115+8196c4ccb", | ||
"@wdio/types": "9.0.0-alpha.115+8196c4ccb", | ||
"@wdio/logger": "9.0.0-alpha.321+63953a607", | ||
"@wdio/repl": "9.0.0-alpha.321+63953a607", | ||
"@wdio/runner": "9.0.0-alpha.321+63953a607", | ||
"@wdio/types": "9.0.0-alpha.321+63953a607", | ||
"async-exit-hook": "^2.0.1", | ||
@@ -50,3 +50,3 @@ "split2": "^4.1.0", | ||
}, | ||
"gitHead": "8196c4ccb4f66e217e161804ef549f18b60dccb3" | ||
"gitHead": "63953a6079023cb390a113fe5ce1c1b01b8e4bb6" | ||
} |
Sorry, the diff of this file is not supported yet
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
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
32720
666