@percy/client 1.30.5 → 1.30.6-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.
Files changed (2) hide show
  1. package/dist/client.js +5 -2
  2. package/package.json +5 -5
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, 2);
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.5",
3
+ "version": "1.30.6-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": "latest"
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.30.5",
37
- "@percy/logger": "1.30.5",
36
+ "@percy/env": "1.30.6-beta.0",
37
+ "@percy/logger": "1.30.6-beta.0",
38
38
  "pako": "^2.1.0"
39
39
  },
40
- "gitHead": "bf1c4a33777ea241f1f0256a70068d34983812a7"
40
+ "gitHead": "31c3cd95c0edcba3a3dcc04154481f6fc2e5787c"
41
41
  }