🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@percy/webdriver-utils

Package Overview
Dependencies
Maintainers
1
Versions
222
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@percy/webdriver-utils - npm Package Compare versions

Comparing version
1.32.0-beta.8
to
1.32.0-beta.9
+2
-1
dist/playwrightDriver.js

@@ -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) {

{
"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"
}