@percy/webdriver-utils
Advanced tools
Comparing version 1.27.4-beta.4 to 1.27.4
@@ -50,4 +50,3 @@ import utils from '@percy/sdk-utils'; | ||
} finally { | ||
var _response, _response$body; | ||
await this.percyScreenshotEnd(name, (_response = response) === null || _response === void 0 ? void 0 : (_response$body = _response.body) === null || _response$body === void 0 ? void 0 : _response$body.link, `${error}`); | ||
await this.percyScreenshotEnd(name, error); | ||
} | ||
@@ -74,10 +73,11 @@ return response; | ||
} | ||
async percyScreenshotEnd(name, percyScreenshotUrl, statusMessage = null) { | ||
async percyScreenshotEnd(name, error) { | ||
return await TimeIt.run('percyScreenshotEnd', async () => { | ||
try { | ||
var _this$buildInfo; | ||
await this.browserstackExecutor('percyScreenshot', { | ||
name, | ||
percyScreenshotUrl, | ||
status: percyScreenshotUrl ? 'success' : 'failure', | ||
statusMessage, | ||
percyScreenshotUrl: (_this$buildInfo = this.buildInfo) === null || _this$buildInfo === void 0 ? void 0 : _this$buildInfo.url, | ||
status: error ? 'failure' : 'success', | ||
statusMessage: error ? `${error}` : '', | ||
state: 'end' | ||
@@ -84,0 +84,0 @@ }); |
{ | ||
"name": "@percy/webdriver-utils", | ||
"version": "1.27.4-beta.4", | ||
"version": "1.27.4", | ||
"license": "MIT", | ||
@@ -12,3 +12,3 @@ "repository": { | ||
"access": "public", | ||
"tag": "beta" | ||
"tag": "latest" | ||
}, | ||
@@ -33,6 +33,6 @@ "engines": { | ||
"dependencies": { | ||
"@percy/config": "1.27.4-beta.4", | ||
"@percy/sdk-utils": "1.27.4-beta.4" | ||
"@percy/config": "1.27.4", | ||
"@percy/sdk-utils": "1.27.4" | ||
}, | ||
"gitHead": "4aaa7b217f60ed9ce953fa8c788f4061a7689459" | ||
"gitHead": "bb901bc6aabf20e27528b6cdfab22c9d8721a2b2" | ||
} |
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
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1
33425
+ Added@percy/config@1.27.4(transitive)
+ Added@percy/logger@1.27.4(transitive)
+ Added@percy/sdk-utils@1.27.4(transitive)
- Removed@percy/config@1.27.4-beta.4(transitive)
- Removed@percy/logger@1.27.4-beta.4(transitive)
- Removed@percy/sdk-utils@1.27.4-beta.4(transitive)
Updated@percy/config@1.27.4
Updated@percy/sdk-utils@1.27.4