@percy/client 1.30.5-beta.1 → 1.31.0-alpha.2

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.
Files changed (2) hide show
  1. package/dist/client.js +2 -1
  2. 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, 2);
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.30.5-beta.1",
3
+ "version": "1.31.0-alpha.2",
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": "beta"
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.30.5-beta.1",
37
- "@percy/logger": "1.30.5-beta.1",
36
+ "@percy/env": "1.31.0-alpha.2",
37
+ "@percy/logger": "1.31.0-alpha.2",
38
38
  "pako": "^2.1.0"
39
39
  },
40
- "gitHead": "4951bc46ffffcd2fd5947f6aa88fd7eb68a34ef3"
40
+ "gitHead": "1c7711f564fd4a112e1e1490a772db757df0535d"
41
41
  }