@percy/client
Advanced tools
Comparing version 1.28.3 to 1.28.4-alpha.0
@@ -191,2 +191,3 @@ import fs from 'fs'; | ||
} catch (error) { | ||
this.log.error(error); | ||
if (error.response.statusCode === 403) { | ||
@@ -203,2 +204,3 @@ throw new Error(INVALID_TOKEN_ERROR_MESSAGE); | ||
} catch (error) { | ||
this.log.error(error); | ||
if (error.response.statusCode === 403) { | ||
@@ -557,2 +559,3 @@ throw new Error(INVALID_TOKEN_ERROR_MESSAGE); | ||
} catch (error) { | ||
this.log.error(error); | ||
if (error.response.statusCode === 400) { | ||
@@ -599,2 +602,8 @@ return false; | ||
} | ||
async sendBuildLogs(body) { | ||
this.log.debug('Sending Build Logs'); | ||
return this.post('logs', { | ||
data: body | ||
}); | ||
} | ||
mayBeLogUploadSize(contentSize) { | ||
@@ -601,0 +610,0 @@ if (contentSize >= 25 * 1024 * 1024) { |
{ | ||
"name": "@percy/client", | ||
"version": "1.28.3", | ||
"version": "1.28.4-alpha.0", | ||
"license": "MIT", | ||
@@ -12,3 +12,3 @@ "repository": { | ||
"access": "public", | ||
"tag": "latest" | ||
"tag": "alpha" | ||
}, | ||
@@ -36,7 +36,7 @@ "engines": { | ||
"dependencies": { | ||
"@percy/env": "1.28.3", | ||
"@percy/logger": "1.28.3", | ||
"@percy/env": "1.28.4-alpha.0", | ||
"@percy/logger": "1.28.4-alpha.0", | ||
"pako": "^2.1.0" | ||
}, | ||
"gitHead": "5d41045921c7ac06329c4b72caaf291d34e3f699" | ||
"gitHead": "596b98dc0cefdb51602facfc1843a9751be8ed2b" | ||
} |
@@ -148,3 +148,4 @@ import EventEmitter from 'events'; | ||
data: [] | ||
}] | ||
}], | ||
'/logs': () => [200, 'random_sha'] | ||
}, | ||
@@ -151,0 +152,0 @@ |
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
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
48491
1143
241
4
12
1
73
2
+ Added@percy/env@1.28.4-alpha.0(transitive)
+ Added@percy/logger@1.28.4-alpha.0(transitive)
- Removed@percy/env@1.28.3(transitive)
- Removed@percy/logger@1.28.3(transitive)
Updated@percy/env@1.28.4-alpha.0
Updated@percy/logger@1.28.4-alpha.0