diff --git a/package-lock.json b/package-lock.json index ad9bc86a8ad..38f723ed6d5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -7843,6 +7843,15 @@ "integrity": "sha512-qQLMr+8o0WC4FZGQTcJiKBVC59JylcPSrTtk6usvmIDFUOCKegapy1VHQwRbFMOFyb/inzUVqHs+eMYKDM1YeQ==", "dev": true }, + "node_modules/address": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/address/-/address-2.0.3.tgz", + "integrity": "sha512-XNAb/a6TCqou+TufU8/u11HCu9x1gYvOoxLwtlXgIqmkrYQADVv6ljyW2zwiPhHz9R1gItAWpuDrdJMmrOBFEA==", + "license": "MIT", + "engines": { + "node": ">= 16.0.0" + } + }, "node_modules/adm-zip": { "version": "0.5.10", "resolved": "https://registry.npmjs.org/adm-zip/-/adm-zip-0.5.10.tgz", @@ -31183,7 +31192,7 @@ "@wdio/logger": "8.38.0", "@wdio/types": "8.40.3", "@wdio/utils": "8.40.3", - "ip": "^2.0.1", + "address": "^2.0.3", "saucelabs": "8.0.0", "webdriverio": "8.40.3" }, @@ -37652,7 +37661,7 @@ "@wdio/logger": "8.38.0", "@wdio/types": "8.40.3", "@wdio/utils": "8.40.3", - "ip": "^2.0.1", + "address": "^2.0.3", "saucelabs": "8.0.0", "webdriverio": "8.40.3" } @@ -37892,6 +37901,11 @@ "integrity": "sha512-qQLMr+8o0WC4FZGQTcJiKBVC59JylcPSrTtk6usvmIDFUOCKegapy1VHQwRbFMOFyb/inzUVqHs+eMYKDM1YeQ==", "dev": true }, + "address": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/address/-/address-2.0.3.tgz", + "integrity": "sha512-XNAb/a6TCqou+TufU8/u11HCu9x1gYvOoxLwtlXgIqmkrYQADVv6ljyW2zwiPhHz9R1gItAWpuDrdJMmrOBFEA==" + }, "adm-zip": { "version": "0.5.10", "resolved": "https://registry.npmjs.org/adm-zip/-/adm-zip-0.5.10.tgz", diff --git a/packages/wdio-sauce-service/package.json b/packages/wdio-sauce-service/package.json index 98913f9c234..71ec64f4bd0 100644 --- a/packages/wdio-sauce-service/package.json +++ b/packages/wdio-sauce-service/package.json @@ -33,7 +33,7 @@ "@wdio/logger": "8.38.0", "@wdio/types": "8.40.3", "@wdio/utils": "8.40.3", - "ip": "^2.0.1", + "address": "^2.0.3", "saucelabs": "8.0.0", "webdriverio": "8.40.3" }, diff --git a/packages/wdio-sauce-service/src/launcher.ts b/packages/wdio-sauce-service/src/launcher.ts index c1ebb4325cd..abb146d1452 100644 --- a/packages/wdio-sauce-service/src/launcher.ts +++ b/packages/wdio-sauce-service/src/launcher.ts @@ -1,6 +1,6 @@ import { performance, PerformanceObserver } from 'node:perf_hooks' -import ip from 'ip' +import { ip } from 'address' import { default as SauceLabs, type SauceLabsOptions, @@ -51,7 +51,7 @@ export default class SauceLauncher implements Services.ServiceInstance { noAutodetect: true, tunnelIdentifier: sauceConnectTunnelIdentifier, ...this._options.sauceConnectOpts, - noSslBumpDomains: `127.0.0.1,localhost,${ip.address()}` + ( + noSslBumpDomains: `127.0.0.1,localhost,${ip()}` + ( this._options.sauceConnectOpts?.noSslBumpDomains ? `,${this._options.sauceConnectOpts.noSslBumpDomains}` : ''