@percy/env 1.30.5-alpha.0 → 1.30.5-beta.1

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.
@@ -159,7 +159,7 @@ export class PercyEnv {
159
159
  if (this.vars.PERCY_PULL_REQUEST) {
160
160
  return this.vars.PERCY_PULL_REQUEST;
161
161
  }
162
- let pr = ((_this$vars$CI_PULL_RE, _this$vars$PULL_REQUE, _github$pull_request3, _this$vars$DRONE_COMM) => {
162
+ let pr = ((_this$vars$CIRCLE_PUL, _this$vars$PULL_REQUE, _github$pull_request3, _this$vars$DRONE_COMM) => {
163
163
  switch (this.ci) {
164
164
  case 'travis':
165
165
  return this.vars.TRAVIS_PULL_REQUEST !== 'false' && this.vars.TRAVIS_PULL_REQUEST;
@@ -168,7 +168,7 @@ export class PercyEnv {
168
168
  case 'jenkins':
169
169
  return this.vars.CHANGE_ID;
170
170
  case 'circle':
171
- return (_this$vars$CI_PULL_RE = this.vars.CI_PULL_REQUESTS) === null || _this$vars$CI_PULL_RE === void 0 ? void 0 : _this$vars$CI_PULL_RE.split('/').slice(-1)[0];
171
+ return (_this$vars$CIRCLE_PUL = this.vars.CIRCLE_PULL_REQUESTS) === null || _this$vars$CIRCLE_PUL === void 0 ? void 0 : _this$vars$CIRCLE_PUL.split('/').slice(-1)[0];
172
172
  case 'drone':
173
173
  return this.vars.CI_PULL_REQUEST;
174
174
  case 'semaphore':
@@ -202,6 +202,12 @@ export class PercyEnv {
202
202
  get parallel() {
203
203
  let total = parseInt(this.vars.PERCY_PARALLEL_TOTAL, 10);
204
204
  if (!Number.isInteger(total)) total = null;
205
+ if (total === null) {
206
+ switch (this.ci) {
207
+ case 'circle':
208
+ total = parseInt(this.vars.CIRCLE_NODE_TOTAL, 10);
209
+ }
210
+ }
205
211
 
206
212
  // no nonce if no total
207
213
  let nonce = total && (_this$vars$BUILD_TAG => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@percy/env",
3
- "version": "1.30.5-alpha.0",
3
+ "version": "1.30.5-beta.1",
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": "alpha"
12
+ "tag": "beta"
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.30.5-alpha.0"
35
+ "@percy/logger": "1.30.5-beta.1"
36
36
  },
37
- "gitHead": "36a251be65edbc48f440a7645470933280c2357c"
37
+ "gitHead": "4951bc46ffffcd2fd5947f6aa88fd7eb68a34ef3"
38
38
  }