@percy/env 1.30.4 → 1.30.5-beta.0
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 +5 -2
- package/package.json +4 -4
package/dist/environment.js
CHANGED
|
@@ -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$
|
|
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$
|
|
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':
|
|
@@ -201,6 +201,9 @@ export class PercyEnv {
|
|
|
201
201
|
// parallel total & nonce
|
|
202
202
|
get parallel() {
|
|
203
203
|
let total = parseInt(this.vars.PERCY_PARALLEL_TOTAL, 10);
|
|
204
|
+
if (this.ci === 'circle') {
|
|
205
|
+
total = parseInt(this.vars.CIRCLE_NODE_TOTAL, 10);
|
|
206
|
+
}
|
|
204
207
|
if (!Number.isInteger(total)) total = null;
|
|
205
208
|
|
|
206
209
|
// no nonce if no total
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@percy/env",
|
|
3
|
-
"version": "1.30.
|
|
3
|
+
"version": "1.30.5-beta.0",
|
|
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": "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.
|
|
35
|
+
"@percy/logger": "1.30.5-beta.0"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "46870b6b3259c3770ca2c5563ca9ad8f1d725681"
|
|
38
38
|
}
|