@percy/client 1.30.5-beta.1 → 1.31.0-alpha.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/client.js +2 -1
- package/package.json +5 -5
package/dist/client.js
CHANGED
|
@@ -370,6 +370,7 @@ export class PercyClient {
|
|
|
370
370
|
async uploadResources(buildId, resources, meta = {}) {
|
|
371
371
|
validateId('build', buildId);
|
|
372
372
|
this.log.debug(`Uploading resources for ${buildId}...`, meta);
|
|
373
|
+
const uploadConcurrency = parseInt(process.env.PERCY_RESOURCE_UPLOAD_CONCURRENCY) || 2;
|
|
373
374
|
return pool(function* () {
|
|
374
375
|
for (let resource of resources) {
|
|
375
376
|
let resourceMeta = {
|
|
@@ -380,7 +381,7 @@ export class PercyClient {
|
|
|
380
381
|
yield this.uploadResource(buildId, resource, resourceMeta);
|
|
381
382
|
this.log.debug(`Uploaded resource ${resource.url}`, resourceMeta);
|
|
382
383
|
}
|
|
383
|
-
}, this,
|
|
384
|
+
}, this, uploadConcurrency);
|
|
384
385
|
}
|
|
385
386
|
|
|
386
387
|
// 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.
|
|
3
|
+
"version": "1.31.0-alpha.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": "alpha"
|
|
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.
|
|
37
|
-
"@percy/logger": "1.
|
|
36
|
+
"@percy/env": "1.31.0-alpha.0",
|
|
37
|
+
"@percy/logger": "1.31.0-alpha.0",
|
|
38
38
|
"pako": "^2.1.0"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "c53d22eed0481ebf681db4390a575ee094003a9a"
|
|
41
41
|
}
|