@percy/env 1.28.8-beta.4 → 1.28.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/environment.js +4 -8
- package/package.json +4 -4
package/dist/environment.js
CHANGED
|
@@ -68,8 +68,7 @@ export class PercyEnv {
|
|
|
68
68
|
if (this.vars.PERCY_COMMIT) {
|
|
69
69
|
return this.vars.PERCY_COMMIT;
|
|
70
70
|
}
|
|
71
|
-
let commit = (
|
|
72
|
-
var _github$pull_request;
|
|
71
|
+
let commit = (_github$pull_request => {
|
|
73
72
|
switch (this.ci) {
|
|
74
73
|
case 'travis':
|
|
75
74
|
return this.vars.TRAVIS_COMMIT;
|
|
@@ -114,8 +113,7 @@ export class PercyEnv {
|
|
|
114
113
|
if (this.vars.PERCY_BRANCH) {
|
|
115
114
|
return this.vars.PERCY_BRANCH;
|
|
116
115
|
}
|
|
117
|
-
let branch = (
|
|
118
|
-
var _github$pull_request2;
|
|
116
|
+
let branch = (_github$pull_request2 => {
|
|
119
117
|
switch (this.ci) {
|
|
120
118
|
case 'travis':
|
|
121
119
|
return this.pullRequest && this.vars.TRAVIS_PULL_REQUEST_BRANCH || this.vars.TRAVIS_BRANCH;
|
|
@@ -161,8 +159,7 @@ export class PercyEnv {
|
|
|
161
159
|
if (this.vars.PERCY_PULL_REQUEST) {
|
|
162
160
|
return this.vars.PERCY_PULL_REQUEST;
|
|
163
161
|
}
|
|
164
|
-
let pr = (() => {
|
|
165
|
-
var _this$vars$CI_PULL_RE, _this$vars$PULL_REQUE, _github$pull_request3, _this$vars$DRONE_COMM;
|
|
162
|
+
let pr = ((_this$vars$CI_PULL_RE, _this$vars$PULL_REQUE, _github$pull_request3, _this$vars$DRONE_COMM) => {
|
|
166
163
|
switch (this.ci) {
|
|
167
164
|
case 'travis':
|
|
168
165
|
return this.vars.TRAVIS_PULL_REQUEST !== 'false' && this.vars.TRAVIS_PULL_REQUEST;
|
|
@@ -207,8 +204,7 @@ export class PercyEnv {
|
|
|
207
204
|
if (!Number.isInteger(total)) total = null;
|
|
208
205
|
|
|
209
206
|
// no nonce if no total
|
|
210
|
-
let nonce = total && (
|
|
211
|
-
var _this$vars$BUILD_TAG;
|
|
207
|
+
let nonce = total && (_this$vars$BUILD_TAG => {
|
|
212
208
|
if (this.vars.PERCY_PARALLEL_NONCE) {
|
|
213
209
|
return this.vars.PERCY_PARALLEL_NONCE;
|
|
214
210
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@percy/env",
|
|
3
|
-
"version": "1.28.8
|
|
3
|
+
"version": "1.28.8",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
},
|
|
10
10
|
"publishConfig": {
|
|
11
11
|
"access": "public",
|
|
12
|
-
"tag": "
|
|
12
|
+
"tag": "latest"
|
|
13
13
|
},
|
|
14
14
|
"engines": {
|
|
15
15
|
"node": ">=14"
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"test:coverage": "yarn test --coverage"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@percy/logger": "1.28.8
|
|
35
|
+
"@percy/logger": "1.28.8"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "1b93761a01b608afadf8d4efccacc11f925396bd"
|
|
38
38
|
}
|