@percy/client 1.32.9 → 1.32.10-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 +17 -0
  2. package/package.json +6 -6
package/dist/client.js CHANGED
@@ -930,6 +930,23 @@ export class PercyClient {
930
930
  ...meta
931
931
  });
932
932
  }
933
+ async sendSnapshotLog(buildId, snapshotId, content, meta = {}) {
934
+ validateId('build', buildId);
935
+ validateId('snapshot', snapshotId);
936
+ this.log.debug('Sending Snapshot Log', meta);
937
+ return this.post('logs', {
938
+ data: {
939
+ content,
940
+ build_id: buildId,
941
+ reference_id: snapshotId,
942
+ service_name: 'snapshot',
943
+ base64encoded: true
944
+ }
945
+ }, {
946
+ identifier: 'snapshot.send_log',
947
+ ...meta
948
+ });
949
+ }
933
950
  async getErrorAnalysis(errors, meta = {}) {
934
951
  const errorLogs = formatLogErrors(errors);
935
952
  this.log.debug('Sending error logs for analysis', meta);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@percy/client",
3
- "version": "1.32.9",
3
+ "version": "1.32.10-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,11 +33,11 @@
33
33
  "test:coverage": "yarn test --coverage"
34
34
  },
35
35
  "dependencies": {
36
- "@percy/config": "1.32.9",
37
- "@percy/env": "1.32.9",
38
- "@percy/logger": "1.32.9",
36
+ "@percy/config": "1.32.10-beta.0",
37
+ "@percy/env": "1.32.10-beta.0",
38
+ "@percy/logger": "1.32.10-beta.0",
39
39
  "pac-proxy-agent": "^7.0.2",
40
40
  "pako": "^2.1.0"
41
41
  },
42
- "gitHead": "598d96e0ae2f4fde8cdcd9e1542eff3f8bd7e8ab"
42
+ "gitHead": "601168096f9265a7f538152e7bb37bf2a7ffc8a3"
43
43
  }