@percy/webdriver-utils
Advanced tools
@@ -30,3 +30,4 @@ import utils from '@percy/sdk-utils'; | ||
| const options = this.requestPostOptions(command); | ||
| const baseUrl = `https://cdp.browserstack.com/wd/hub/session/${this.sessionId}/execute`; | ||
| const cdpDomain = process.env.PERCY_CDP_DOMAIN || 'cdp.browserstack.com'; | ||
| const baseUrl = `https://${cdpDomain}/wd/hub/session/${this.sessionId}/execute`; | ||
| const response = JSON.parse((await request(baseUrl, options)).body); | ||
@@ -33,0 +34,0 @@ return response; |
@@ -101,4 +101,5 @@ import utils from '@percy/sdk-utils'; | ||
| if (!this.driver) throw new Error('Driver is null, please initialize driver with createDriver().'); | ||
| const automateDomain = process.env.PERCY_AUTOMATE_DOMAIN || 'automate.browserstack.com'; | ||
| this.debugUrl = await Cache.withCache(Cache.bstackSessionDetails, this.driver.sessionId, async () => { | ||
| return `https://automate.browserstack.com/builds/${this.automateResults.buildHash}/sessions/${this.automateResults.sessionHash}`; | ||
| return `https://${automateDomain}/builds/${this.automateResults.buildHash}/sessions/${this.automateResults.sessionHash}`; | ||
| }); | ||
@@ -105,0 +106,0 @@ } |
@@ -94,2 +94,8 @@ import utils from '@percy/sdk-utils'; | ||
| if (!this.driver) throw new Error('Driver is null, please initialize driver with createDriver().'); | ||
| if (action === 'percyScreenshot' && process.env.PERCY_ENABLE_DEV === 'true') { | ||
| args = { | ||
| ...args, | ||
| projectId: 'percy-dev' | ||
| }; | ||
| } | ||
| let options = args ? { | ||
@@ -96,0 +102,0 @@ action, |
@@ -24,3 +24,4 @@ import utils from '@percy/sdk-utils'; | ||
| async setDebugUrl() { | ||
| this.debugUrl = `https://automate.browserstack.com/builds/${this.automateResults.buildHash}/sessions/${this.automateResults.sessionHash}`; | ||
| const automateDomain = process.env.PERCY_AUTOMATE_DOMAIN || 'automate.browserstack.com'; | ||
| this.debugUrl = `https://${automateDomain}/builds/${this.automateResults.buildHash}/sessions/${this.automateResults.sessionHash}`; | ||
| } | ||
@@ -27,0 +28,0 @@ async screenshot(name, options) { |
+4
-4
| { | ||
| "name": "@percy/webdriver-utils", | ||
| "version": "1.32.0-beta.8", | ||
| "version": "1.32.0-beta.9", | ||
| "license": "MIT", | ||
@@ -32,6 +32,6 @@ "repository": { | ||
| "dependencies": { | ||
| "@percy/config": "1.32.0-beta.8", | ||
| "@percy/sdk-utils": "1.32.0-beta.8" | ||
| "@percy/config": "1.32.0-beta.9", | ||
| "@percy/sdk-utils": "1.32.0-beta.9" | ||
| }, | ||
| "gitHead": "8e91413b6ed95aeefad697f058709e2a0fe56f0e" | ||
| "gitHead": "cc176ec0fa5e36551db037a14186ea8b7cd07ff6" | ||
| } |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 3 instances
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
54090
0.75%1326
0.68%7
133.33%+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
Updated