@percy/client 1.32.0-beta.8 → 1.32.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 +15 -3
  2. package/package.json +6 -6
package/dist/client.js CHANGED
@@ -406,7 +406,8 @@ export class PercyClient {
406
406
  files,
407
407
  modules,
408
408
  storybookPaths,
409
- affectedNodes
409
+ affectedNodes,
410
+ affectedFileLocations
410
411
  } = {}) {
411
412
  this.log.debug(`Smartsnap: enqueueing graph build for build ${buildId}...`);
412
413
  return this.post('smartsnap/generate-graph', {
@@ -414,7 +415,8 @@ export class PercyClient {
414
415
  files,
415
416
  modules,
416
417
  storybook_paths: storybookPaths,
417
- affected_nodes: affectedNodes
418
+ affected_nodes: affectedNodes,
419
+ affected_file_locations: affectedFileLocations
418
420
  }, {
419
421
  identifier: 'smartsnap.generate_graph'
420
422
  });
@@ -862,10 +864,20 @@ export class PercyClient {
862
864
  this.log.debug(`Finalized comparison: ${comparison.data.id} ${options.tag.name}`, meta);
863
865
  return comparison;
864
866
  }
865
- async sendBuildEvents(buildId, body, meta = {}) {
867
+ async sendBuildEvents(buildId, body, meta = {}, {
868
+ eventName,
869
+ category
870
+ } = {}) {
866
871
  validateId('build', buildId);
867
872
  this.log.debug('Sending Build Events');
868
873
  return this.post(`builds/${buildId}/send-events`, {
874
+ // newer params are optional; when omitted the API applies its defaults
875
+ ...(eventName && {
876
+ event_name: eventName
877
+ }),
878
+ ...(category && {
879
+ category
880
+ }),
869
881
  data: body
870
882
  }, {
871
883
  identifier: 'build.send_events',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@percy/client",
3
- "version": "1.32.0-beta.8",
3
+ "version": "1.32.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": "beta"
12
+ "tag": "latest"
13
13
  },
14
14
  "engines": {
15
15
  "node": ">=14"
@@ -33,11 +33,11 @@
33
33
  "test:coverage": "yarn test --coverage"
34
34
  },
35
35
  "dependencies": {
36
- "@percy/config": "1.32.0-beta.8",
37
- "@percy/env": "1.32.0-beta.8",
38
- "@percy/logger": "1.32.0-beta.8",
36
+ "@percy/config": "1.32.0",
37
+ "@percy/env": "1.32.0",
38
+ "@percy/logger": "1.32.0",
39
39
  "pac-proxy-agent": "^7.0.2",
40
40
  "pako": "^2.1.0"
41
41
  },
42
- "gitHead": "8e91413b6ed95aeefad697f058709e2a0fe56f0e"
42
+ "gitHead": "87f5058139cf3f9a44cd6649d797e6f95571b749"
43
43
  }