@percy/client
Advanced tools
Comparing version 1.27.3-beta.0 to 1.27.3
@@ -45,2 +45,3 @@ import fs from 'fs'; | ||
environmentInfo, | ||
config, | ||
// versioned api url | ||
@@ -51,2 +52,3 @@ apiUrl = PERCY_CLIENT_API_URL | ||
token, | ||
config: config || {}, | ||
apiUrl | ||
@@ -80,4 +82,9 @@ }); | ||
// Checks for a Percy token and returns it. | ||
// Priority order is | ||
// 1. passed token to constructor | ||
// 2. PERCY_TOKEN env var [ from env package ] | ||
// 3. token from percy config | ||
getToken(raiseIfMissing = true) { | ||
let token = this.token || this.env.token; | ||
var _this$config$percy; | ||
let token = this.token || this.env.token || ((_this$config$percy = this.config.percy) === null || _this$config$percy === void 0 ? void 0 : _this$config$percy.token); | ||
if (!token && raiseIfMissing) throw new Error('Missing Percy token'); | ||
@@ -84,0 +91,0 @@ return token; |
{ | ||
"name": "@percy/client", | ||
"version": "1.27.3-beta.0", | ||
"version": "1.27.3", | ||
"license": "MIT", | ||
@@ -12,3 +12,3 @@ "repository": { | ||
"access": "public", | ||
"tag": "beta" | ||
"tag": "latest" | ||
}, | ||
@@ -36,6 +36,6 @@ "engines": { | ||
"dependencies": { | ||
"@percy/env": "1.27.3-beta.0", | ||
"@percy/logger": "1.27.3-beta.0" | ||
"@percy/env": "1.27.3", | ||
"@percy/logger": "1.27.3" | ||
}, | ||
"gitHead": "a9b7ebc7005ee50761373f49ce3454449f38f227" | ||
"gitHead": "932d9ce6c17628786cd19091a218d83d2d1f51d9" | ||
} |
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
44078
1014
1
+ Added@percy/env@1.27.3(transitive)
+ Added@percy/logger@1.27.3(transitive)
- Removed@percy/env@1.27.3-beta.0(transitive)
- Removed@percy/logger@1.27.3-beta.0(transitive)
Updated@percy/env@1.27.3
Updated@percy/logger@1.27.3