@percy/client 1.30.5 → 1.30.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.
- package/dist/client.js +5 -2
- package/package.json +4 -4
package/dist/client.js
CHANGED
|
@@ -143,6 +143,7 @@ export class PercyClient {
|
|
|
143
143
|
projectType,
|
|
144
144
|
cliStartTime = null
|
|
145
145
|
} = {}) {
|
|
146
|
+
var _this$config$percy2;
|
|
146
147
|
this.log.debug('Creating a new build...');
|
|
147
148
|
let source = 'user_created';
|
|
148
149
|
if (process.env.PERCY_AUTO_ENABLED_GROUP_BUILD === 'true') {
|
|
@@ -170,7 +171,8 @@ export class PercyClient {
|
|
|
170
171
|
partial: this.env.partial,
|
|
171
172
|
tags: tagsArr,
|
|
172
173
|
'cli-start-time': cliStartTime,
|
|
173
|
-
source: source
|
|
174
|
+
source: source,
|
|
175
|
+
'skip-base-build': (_this$config$percy2 = this.config.percy) === null || _this$config$percy2 === void 0 ? void 0 : _this$config$percy2.skipBaseBuild
|
|
174
176
|
},
|
|
175
177
|
relationships: {
|
|
176
178
|
resources: {
|
|
@@ -370,6 +372,7 @@ export class PercyClient {
|
|
|
370
372
|
async uploadResources(buildId, resources, meta = {}) {
|
|
371
373
|
validateId('build', buildId);
|
|
372
374
|
this.log.debug(`Uploading resources for ${buildId}...`, meta);
|
|
375
|
+
const uploadConcurrency = parseInt(process.env.PERCY_RESOURCE_UPLOAD_CONCURRENCY) || 2;
|
|
373
376
|
return pool(function* () {
|
|
374
377
|
for (let resource of resources) {
|
|
375
378
|
let resourceMeta = {
|
|
@@ -380,7 +383,7 @@ export class PercyClient {
|
|
|
380
383
|
yield this.uploadResource(buildId, resource, resourceMeta);
|
|
381
384
|
this.log.debug(`Uploaded resource ${resource.url}`, resourceMeta);
|
|
382
385
|
}
|
|
383
|
-
}, this,
|
|
386
|
+
}, this, uploadConcurrency);
|
|
384
387
|
}
|
|
385
388
|
|
|
386
389
|
// Creates a snapshot for the active build using the provided attributes.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@percy/client",
|
|
3
|
-
"version": "1.30.
|
|
3
|
+
"version": "1.30.6",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -33,9 +33,9 @@
|
|
|
33
33
|
"test:coverage": "yarn test --coverage"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@percy/env": "1.30.
|
|
37
|
-
"@percy/logger": "1.30.
|
|
36
|
+
"@percy/env": "1.30.6",
|
|
37
|
+
"@percy/logger": "1.30.6",
|
|
38
38
|
"pako": "^2.1.0"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "4f08c2841c452d1d445077a8e465641100b712de"
|
|
41
41
|
}
|