@applitools/spec-driver-webdriver
Advanced tools
Comparing version 1.0.47 to 1.0.48
# Changelog | ||
## [1.0.48](https://github.com/applitools/eyes.sdk.javascript1/compare/js/spec-driver-webdriver@1.0.47...js/spec-driver-webdriver@1.0.48) (2023-10-17) | ||
### Dependencies | ||
* @applitools/utils bumped to 1.6.2 | ||
#### Code Refactoring | ||
* disallow usage of global Buffer ([#1957](https://github.com/applitools/eyes.sdk.javascript1/issues/1957)) ([adcc082](https://github.com/applitools/eyes.sdk.javascript1/commit/adcc082f20f6b92e819b96424e995d9a69d99758)) | ||
* @applitools/logger bumped to 2.0.12 | ||
#### Code Refactoring | ||
* disallow usage of global Buffer ([#1957](https://github.com/applitools/eyes.sdk.javascript1/issues/1957)) ([adcc082](https://github.com/applitools/eyes.sdk.javascript1/commit/adcc082f20f6b92e819b96424e995d9a69d99758)) | ||
* @applitools/driver bumped to 1.14.4 | ||
#### Code Refactoring | ||
* disallow usage of global Buffer ([#1957](https://github.com/applitools/eyes.sdk.javascript1/issues/1957)) ([adcc082](https://github.com/applitools/eyes.sdk.javascript1/commit/adcc082f20f6b92e819b96424e995d9a69d99758)) | ||
## [1.0.47](https://github.com/applitools/eyes.sdk.javascript1/compare/js/spec-driver-webdriver@1.0.46...js/spec-driver-webdriver@1.0.47) (2023-09-29) | ||
@@ -4,0 +28,0 @@ |
@@ -79,21 +79,7 @@ "use strict"; | ||
if (getFrameworkMajorVersion() < 8) { | ||
let commandPath; | ||
try { | ||
commandPath = require.resolve('webdriver/build/command', { paths: [`${process.cwd()}/node_modules`] }); | ||
} | ||
catch { | ||
commandPath = 'webdriver/build/command'; | ||
} | ||
const { default: command } = require(commandPath); | ||
const { default: command } = require('webdriver/build/command'); | ||
return command(method, url, body); | ||
} | ||
else { | ||
let frameworkPath; | ||
try { | ||
frameworkPath = require.resolve('webdriver', { paths: [`${process.cwd()}/node_modules`] }); | ||
} | ||
catch { | ||
frameworkPath = 'webdriver'; | ||
} | ||
const { command } = require(frameworkPath); | ||
const { command } = require('webdriver'); | ||
return command(method, url, body); | ||
@@ -103,20 +89,7 @@ } | ||
function getFrameworkMajorVersion() { | ||
let version; | ||
try { | ||
version = require(require.resolve('webdriver/package.json', { paths: [`${process.cwd()}/node_modules`] })).version; | ||
} | ||
catch { | ||
version = require('webdriver/package.json').version; | ||
} | ||
const version = require('webdriver/package.json').version; | ||
return Number.parseInt(version); | ||
} | ||
function getWebDriver() { | ||
let frameworkPath; | ||
try { | ||
frameworkPath = require.resolve('webdriver', { paths: [`${process.cwd()}/node_modules`] }); | ||
} | ||
catch { | ||
frameworkPath = 'webdriver'; | ||
} | ||
return getFrameworkMajorVersion() < 8 ? require(frameworkPath).default : require(frameworkPath); | ||
return getFrameworkMajorVersion() < 8 ? require('webdriver').default : require('webdriver'); | ||
} | ||
@@ -123,0 +96,0 @@ function isDriver(driver) { |
{ | ||
"name": "@applitools/spec-driver-webdriver", | ||
"version": "1.0.47", | ||
"version": "1.0.48", | ||
"keywords": [ | ||
@@ -52,4 +52,4 @@ "webdriver", | ||
"dependencies": { | ||
"@applitools/driver": "1.14.3", | ||
"@applitools/utils": "1.6.1", | ||
"@applitools/driver": "1.14.4", | ||
"@applitools/utils": "1.6.2", | ||
"http-proxy-agent": "5.0.0", | ||
@@ -64,3 +64,3 @@ "https-proxy-agent": "5.0.1" | ||
"nock": "^13.3.2", | ||
"webdriver": "^8.14.3" | ||
"webdriver": "^7.31.1" | ||
}, | ||
@@ -67,0 +67,0 @@ "peerDependencies": { |
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
54457
0
622
+ Added@applitools/driver@1.14.4(transitive)
+ Added@applitools/logger@2.0.12(transitive)
+ Added@applitools/utils@1.6.2(transitive)
+ Added@types/node@20.17.12(transitive)
+ Addedbare-buffer@3.0.1(transitive)
+ Addedbare-fs@2.3.5(transitive)
+ Addedbare-os@2.4.4(transitive)
+ Addedbare-path@2.1.3(transitive)
+ Addedbare-stream@2.6.2(transitive)
+ Addedtar-fs@3.0.7(transitive)
+ Addedundici@6.21.0(transitive)
- Removed@applitools/driver@1.14.3(transitive)
- Removed@applitools/logger@2.0.11(transitive)
- Removed@applitools/utils@1.6.1(transitive)
- Removed@types/node@20.17.14(transitive)
- Removedbare-fs@4.0.1(transitive)
- Removedbare-os@3.4.0(transitive)
- Removedbare-path@3.0.0(transitive)
- Removedbare-stream@2.6.4(transitive)
- Removedtar-fs@3.0.8(transitive)
- Removedundici@6.21.1(transitive)
Updated@applitools/driver@1.14.4
Updated@applitools/utils@1.6.2