@percy/client 1.29.2 → 1.29.3-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.
- package/dist/client.js +9 -2
- package/package.json +5 -5
package/dist/client.js
CHANGED
|
@@ -128,9 +128,14 @@ export class PercyClient {
|
|
|
128
128
|
// done more seemlessly without manually tracking build ids
|
|
129
129
|
async createBuild({
|
|
130
130
|
resources = [],
|
|
131
|
-
projectType
|
|
131
|
+
projectType,
|
|
132
|
+
cliStartTime = null
|
|
132
133
|
} = {}) {
|
|
133
134
|
this.log.debug('Creating a new build...');
|
|
135
|
+
let source = 'user_created';
|
|
136
|
+
if (process.env.PERCY_AUTO_ENABLED_GROUP_BUILD === 'true') {
|
|
137
|
+
source = 'auto_enabled_group';
|
|
138
|
+
}
|
|
134
139
|
let tagsArr = tagsList(this.labels);
|
|
135
140
|
return this.post('builds', {
|
|
136
141
|
data: {
|
|
@@ -151,7 +156,9 @@ export class PercyClient {
|
|
|
151
156
|
'parallel-nonce': this.env.parallel.nonce,
|
|
152
157
|
'parallel-total-shards': this.env.parallel.total,
|
|
153
158
|
partial: this.env.partial,
|
|
154
|
-
tags: tagsArr
|
|
159
|
+
tags: tagsArr,
|
|
160
|
+
'cli-start-time': cliStartTime,
|
|
161
|
+
source: source
|
|
155
162
|
},
|
|
156
163
|
relationships: {
|
|
157
164
|
resources: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@percy/client",
|
|
3
|
-
"version": "1.29.
|
|
3
|
+
"version": "1.29.3-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": "
|
|
12
|
+
"tag": "beta"
|
|
13
13
|
},
|
|
14
14
|
"engines": {
|
|
15
15
|
"node": ">=14"
|
|
@@ -33,9 +33,9 @@
|
|
|
33
33
|
"test:coverage": "yarn test --coverage"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@percy/env": "1.29.
|
|
37
|
-
"@percy/logger": "1.29.
|
|
36
|
+
"@percy/env": "1.29.3-beta.1",
|
|
37
|
+
"@percy/logger": "1.29.3-beta.1",
|
|
38
38
|
"pako": "^2.1.0"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "2a7eb67f9432b459594c464d5260b48b11cbea26"
|
|
41
41
|
}
|