@percy/env 1.28.8-beta.3 → 1.28.8-beta.6

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.
@@ -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-beta.3",
3
+ "version": "1.28.8-beta.6",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -32,7 +32,7 @@
32
32
  "test:coverage": "yarn test --coverage"
33
33
  },
34
34
  "dependencies": {
35
- "@percy/logger": "1.28.8-beta.3"
35
+ "@percy/logger": "1.28.8-beta.6"
36
36
  },
37
- "gitHead": "60fcc0cc0e65b1dd9f81286a3a3cd7383f1f6220"
37
+ "gitHead": "33ebd1aded619784a02e27cb26dbd344c7131ee9"
38
38
  }